summaryrefslogtreecommitdiff
path: root/test/test.js
AgeCommit message (Collapse)Author
2021-07-22extension: factor out routeDirectoryForChildren and createWritableDirectoryOmar Rizwan
sort routes by specificity (__matchVarCount) makes evals & watches much simpler; is prep work for writable tab directory stuff
2021-04-22test: fix JS test so window worksOmar Rizwan
2021-03-22extension,test: Move Router down, Router -> Routes.Omar Rizwan
2021-03-21extension,test: router -> Router.Omar Rizwan
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)