blob: e30ec17441c03b9f56ab295674ddd034cc54a228 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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)
val buildPath = if (File(".").parentFile?.name == "app") "build/offline_test" else "app/build/offline_test"
OfflineWebsite(FB_URL_BASE, COOKIE, baseDir = File(buildPath))
.loadAndZip("test") {
println("Outcome $it")
countdown.countDown()
}
countdown.await()
}
}
|