diff options
Diffstat (limited to 'app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt')
-rw-r--r-- | app/src/test/kotlin/com/pitchedapps/frost/debugger/OfflineWebsiteTest.kt | 25 |
1 files changed, 25 insertions, 0 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 |