Commit graph

6 commits

Author SHA1 Message Date
Omar Rizwan dfc73e55d3 test: fix JS test so window works 2021-04-22 18:32:40 -07:00
Omar Rizwan 383096da00 extension,test: Move Router down, Router -> Routes. 2021-03-22 23:25:38 -07:00
Omar Rizwan 73f4672a8c extension,test: router -> Router. 2021-03-21 20:29:30 -07:00
Omar Rizwan b6f44d95f4 extension: Big refactor to use named variables in routes.
Also move debugger-specific stuff into the debugger block.
2021-03-21 19:42:44 -07:00
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
Omar Rizwan 11cf48259a test: separate tests from background.js, clean up and document a bit
also makes the test more lenient (subset instead of equality for tab
entries)
2021-03-14 21:33:23 -07:00