diff options
Diffstat (limited to 'app/src/test/kotlin')
-rw-r--r-- | app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt | 25 | ||||
-rw-r--r-- | app/src/test/kotlin/com/pitchedapps/frost/utils/UrlTests.kt | 2 |
2 files changed, 26 insertions, 1 deletions
diff --git a/app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt new file mode 100644 index 00000000..63c11bac --- /dev/null +++ b/app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt @@ -0,0 +1,25 @@ +package com.pitchedapps.frost.debugger + +import com.pitchedapps.frost.facebook.FB_URL_BASE +import com.pitchedapps.frost.internal.COOKIE +import org.junit.Test +import java.io.File +import java.util.concurrent.CountDownLatch + +/** + * Created by Allan Wang on 05/01/18. + */ +class OfflineWebsiteTest { + + @Test + fun basic() { + val countdown = CountDownLatch(1) + OfflineWebsite(FB_URL_BASE, COOKIE, File("app/build/offline_test")) + .loadAndZip("test") { + println("Outcome $it") + countdown.countDown() + } + countdown.await() + } + +}
\ No newline at end of file diff --git a/app/src/test/kotlin/com/pitchedapps/frost/utils/UrlTests.kt b/app/src/test/kotlin/com/pitchedapps/frost/utils/UrlTests.kt index c400c0f7..5dbcad65 100644 --- a/app/src/test/kotlin/com/pitchedapps/frost/utils/UrlTests.kt +++ b/app/src/test/kotlin/com/pitchedapps/frost/utils/UrlTests.kt @@ -22,7 +22,7 @@ class UrlTests { assertFalse("#!".isIndependent, "#!") assertFalse("#!/".isIndependent, "#!/") assertTrue("/this/is/valid".isIndependent, "url segments") -// assertTrue("#!/facebook/segment".isIndependent, "facebook segments") + assertTrue("#!/facebook/segment".isIndependent, "facebook segments") } @Test |