diff options
author | Allan Wang <me@allanwang.ca> | 2018-01-07 02:43:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-07 02:43:57 -0500 |
commit | 8aece5e3f9209d7c161410c304655f0aec2d6054 (patch) | |
tree | 1a68d7289a7e67dfaba37a9152fc3942f944bc5e /app/src/test/kotlin | |
parent | 726d2a4dc3d3158490ca94b660b195898becb30a (diff) | |
download | frost-8aece5e3f9209d7c161410c304655f0aec2d6054.tar.gz frost-8aece5e3f9209d7c161410c304655f0aec2d6054.tar.bz2 frost-8aece5e3f9209d7c161410c304655f0aec2d6054.zip |
Feature/website debug (#603)
* Create beginning of web downloader
* Clean up
* Update KAU for reified activity launching
* Update web attachments and setFrostColor
* Test other zipper
* Test simpler image saving model
* Finish up image activity
* Restore aggressive overlays
* Try new zipper
* Test again
* Fix tests
* Add working build
* Rename
* Support cancellation
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 |