Commit graph

4 commits

Author SHA1 Message Date
Kai Ninomiya
9cbb800a96
Make test cases hierarchical, and refactor/cleanup a lot in the process (#181)
* update tests, approximately

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* unittests:loading:* now passes

* passes 63 unittests, but not all are running...

* typechecks!!

* 58 unittests passing

* reenable getStackTrace tests

* wip

* finally all tests and checks pass!

* fixups

* wip

* replace all spaces with underscores in test names

* wip

* wip

* wip

* Dissolve TestLoader (now just use DefaultTestFileLoader)

* tighten ParamSpec type

* rename ParamSpec -> CaseParams

* make kParamSeparator ";", now standalone runner is working!

* add separate icon for leaf run buttons

* file renames

* remove user-select:all (not really needed anymore, triple click works fine now)

* cleanup some tests, add tests for test queries

* split interface for defining and running TestGroups

* more cleanup, fix URL encoding stuff, and standalone HTML

* fix readmes for parents of query

* clean up unused ReadmeFile interface

* dissolve id.ts

* test_suite_listing.ts

* split params_utils into param_utils + stringify_params

* rename encodeURLSelectively again

* add query.isMulti{File,Test,Case}

* fix gen_wpt_cts_html (at least for the simple mode; advanced mode probably still broken

* better run-one icon

* standalone: always make the url bar show the complete url

* revert tasks.json

* fix number out of bounds

* don't drop worker results, report input string on all query parse errors

* update docs/terms.md

* revisions

* more revisions

* make comparePublicParamsPaths order-agnostic (now allows queries against params out of order, but tree will not reorder itself accordingly)

* revise compareQueries, part 1

* revise compareQueries, part 2: compareOneLevel

* remove incorrect comment

* undo fast-glob dependency

* address Austin's comments

* address comments

* pass debug flag into test worker

* typo fixes
2020-05-18 15:33:41 -07:00
Austin Eng
639527efe4
Add lint and compile watcher. Move from TSLint to ESLint. (#159)
* Add lint and compile watcher. Move from tslint to eslint.

This commit adds a "grunt dev" task which signficiantly improves
productivity by watching the src/ directory and recompiling and
relinting files on save.

It also moves the linting from TSLint to ESLint. TSLint is being
deprecated, and ESLint is the recommended path forward. It also
has nicer integration with prettier for code formatting. gts, the
Typescript styles we extend, is also in the process of migrating,
so this commit updates to using gts@next which includes the eslint
config.

* Update eslint config, errors instead of warnings

* ESLint: Sort imports

* ESLint: Remove empty block and inner functions from cmdline.ts

* ESLint: Remove unecessary escape characters

* ESLint: Suppress empty catch blocks

* ESLint: Suppress no-unused-var

* Use ESLint plugin import/order instead of sort-imports

This reverts commit 4a10503bfa277a045ae4a0508f723cac3cee6e22.
and includes some additional small fixes

* Remove uneccessary allowUmdGlobalAccess
2020-04-14 16:20:36 -07:00
Kai Ninomiya
b23cba31c5
Update prettier config so it doesn't disagree with tslint, and yarn upgrade (#145) 2020-04-03 19:40:09 -07:00
Kai Ninomiya
14dab93b4b set up gts for style 2019-06-21 08:34:51 -07:00