summaryrefslogtreecommitdiff
path: root/test/test.js
AgeCommit message (Collapse)Author
2021-03-21extension: Big refactor to use named variables in routes.Omar Rizwan
Also move debugger-specific stuff into the debugger block.
2021-03-21extension,test: Start on simplifying routing.Omar Rizwan
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-14test: separate tests from background.js, clean up and document a bitOmar Rizwan
also makes the test more lenient (subset instead of equality for tab entries)