TabFS/test
Omar Rizwan be519afe5f extension,test: Start on simplifying routing.
Introduces a 'named variable' syntax so we can remove all the manual
indexing into path components / converting to int in individual fs
ops.

Also rewrites the route finding to use regex: all routes are compiled
to regexes, then the route finder just walks through them all until it
hits a match.

Doesn't fully work yet; JS test passes.
2021-03-21 15:35:01 -07:00
..
test-resources test: separate tests from background.js, clean up and document a bit 2021-03-14 21:33:23 -07:00
Makefile test: separate tests from background.js, clean up and document a bit 2021-03-14 21:33:23 -07:00
README.md test: separate tests from background.js, clean up and document a bit 2021-03-14 21:33:23 -07:00
test.c test: separate tests from background.js, clean up and document a bit 2021-03-14 21:33:23 -07:00
test.js extension,test: Start on simplifying routing. 2021-03-21 15:35:01 -07:00

test

Two separate test 'suites': one in test.js that uses node, and one in test.c that is an integration test that actually tests against the extension in browser.

Right now, you need to have Chrome open (I haven't tried Firefox or Safari), and you'll want to make sure a window other than the extension console is focused (the console is non-debuggable, so it breaks the test).

Run make in this folder.