mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
fix: Same domain unit tests
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.kunzisoft.keepass.tests.utils
|
||||
|
||||
import com.kunzisoft.keepass.utils.UnsignedInt
|
||||
import com.kunzisoft.keepass.utils.inTheSameDomainAs
|
||||
import junit.framework.TestCase
|
||||
|
||||
@@ -42,5 +41,8 @@ class UriHelperTest: TestCase() {
|
||||
assertFalse(expected.inTheSameDomainAs("odomain.org", sameSubDomain = true))
|
||||
assertFalse(expected.inTheSameDomainAs("tcp://domain.org", sameSubDomain = true))
|
||||
assertFalse(expected.inTheSameDomainAs("dom.org/domain.org", sameSubDomain = true))
|
||||
|
||||
assertFalse(expected.inTheSameDomainAs("https://example.com/domain.org", sameSubDomain = true))
|
||||
assertFalse(expected.inTheSameDomainAs("https://example.com/www.domain.org", sameSubDomain = false))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user