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
Kai Ninomiya
fb584a5f09
Add ParamsBuilder, and infer params types in test functions (#160)
* split .fn() from .test()

* swap the order of .fn() and .params()

* wip

* wip

* remove pcombine()

* remove pexclude, pfilter

* simplifications/refactors

* add strong typing for params generation

* Infer params types in test functions

* improve type issues spotted by Austin

* disable @typescript-eslint/typedef; its README says it is not really needed with strict TS

* fix lints, change error type from unknown to void

* found a typedef for Merged<> which works, and made it stricter and commented it
2020-04-16 16:43:24 -07:00
Kai Ninomiya
991efd3188
Merge params/* and remove index files and re-exports (#144)
This:
- Makes it so there's only one true way to import anything
- Prevents IDE from assuming it's Node and generating an import of the
  directory containing an `index.ts` (e.g. 'path/to/' for 'path/to/index.js').
- Without blowing up the total number of imports too much
2020-04-03 18:55:41 -07:00
Kai Ninomiya
4459d443d3
Organize webgpu suite according to CTS guidelines (#143) 2020-03-31 16:55:50 -07:00
Renamed from src/webgpu/validation/queue_submit.spec.ts (Browse further)