aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2020-12-25 14:55:35 -0800
committerOmar Rizwan <omar@omar.website>2020-12-25 14:55:35 -0800
commit2d8bedcc4b45a8e52c1f99453019068ed7775b65 (patch)
treee51b412a5ee6a6acc5596338c22bfe90aeb09aa6 /test.c
parent58d5e819ae08afb06dea91de016471fca65ae78f (diff)
start working on windows/ (so i can have cleaner screenshot API)
Diffstat (limited to 'test.c')
-rwxr-xr-xtest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test.c b/test.c
index a02c9d7..0d2595f 100755
--- a/test.c
+++ b/test.c
@@ -24,13 +24,14 @@ char* expand(char* phrase) { // expand path with wildcard
// integration tests
int main() {
+ system("node extension/background.js"); // run quick local JS tests
+
// reload the extension so we know it's the latest code.
system("echo reload > fs/mnt/runtime/reload"); // this may error, but it should still have effect
- sleep(2);
+ sleep(3);
assert(system("echo about:blank > fs/mnt/tabs/create") == 0);
assert(file_contents_equal("fs/mnt/tabs/last-focused/url.txt", "about:blank"));
- assert(system("file fs/mnt/tabs/last-focused/screenshot.png") == 0); // slow
assert(system("echo remove > fs/mnt/tabs/last-focused/control") == 0);
assert(file_contents_equal(expand("fs/mnt/extensions/TabFS*/enabled"), "true"));