Commit graph

35 commits

Author SHA1 Message Date
petermcneeleychromium
a4a4a2bc7d
Enable only results failures by default (#4511)
Co-authored-by: Peter McNeeley <petermcneeley@google.com>
2025-11-26 13:26:06 -05:00
James Price
b62c3fc76c
Show default device in standalone runner (#4464)
This makes it easier to know what device you are running on. Also save
the default device description to the JSON results file.
2025-09-29 14:32:21 -07:00
petermcneeleychromium
35ecea5948
Save failed results only (#4457)
* Save failed results only

* add types to predicate

* Make input element also typed

* linter changes

* typed predicate

* Minor change in html style

---------

Co-authored-by: Peter McNeeley <petermcneeley@google.com>
2025-09-10 09:20:28 -04:00
petermcneeleychromium
75af759c3c
Save cts results as json (#4334) 2025-04-07 15:32:07 -07:00
Kai Ninomiya
44754dbf52
Remove CSS attribute that did nothing and now breaks layout (#4011)
See https://crbug.com/374115881
2024-10-21 20:20:32 -07:00
David Neto
6c236a3029
Add Origin Trial token for Subgroups in localhost:8080 (#3939)
* Add Origin Trial token for Subgroups in localhost:8080

Adds a localhost:8080 token to standalone/index.html for local testing.

https://crbug.com/358117283

Followup to #3895

* Remove the OT token from dev_server.ts
2024-09-06 22:52:45 +00:00
David Neto
9bde59301a
Add Chrome OT token for "WebGPU Subgroups Feature" (#3895)
Remove the OT tokens for Chrome's initial WebGPU feature launch.

crbug.com/358117283
2024-08-23 20:45:08 +00:00
Kai Ninomiya
f2c7128ac3
Add lang="en" to standalone index.html (#3828)
Should avoid browsers offering to translate the page (this happened in
Safari but I think I've seen it happen in Chrome before too).
2024-06-28 20:28:53 +00:00
Greggman
5aab3c2bda
Use standard html instead of quirks html (#3785)
* Use standard html instead of quirks html
2024-06-10 19:00:42 +00:00
David Neto
31fc42ca8a
spelling: "take affect" -> "take effect" (#3720) 2024-05-06 01:01:11 +00:00
Gregg Tavares
0fac55fb09 Prevent Double Runs and make run clearer.
Prevents clicking a run button while tests are running.
I seem to do this once in a while and get errors about DevicePool
acquire device in use 😅

Also made the progress bar have a background color so it's slightly
clearer that tests are running.
2023-11-02 08:21:56 +09:00
Greggman
b178e3598a
Add a copy button (#2958)
Cllicking it puts the query in the clipboard
2023-09-14 17:20:11 +00:00
Greggman
09c55ea144
Give a visual indication for skipped tests (#2875)
As it is, skipped tests, at a glance, show no or a
very subtle indication that they've been run.
2023-07-26 14:32:12 -07:00
Kai Ninomiya
0be3bde33c
Add eslint custom rules for tabs and trailing spaces (#2667)
`wpt lint` doesn't like tabs or trailing spaces, even inside multiline
strings (which eslint normally ignores). Add custom rules to catch
these.

Issue: 2628
2023-05-24 21:08:56 -07:00
Greggman
221d3004ff
CSS, make button colors match (#2221) 2023-02-01 15:43:13 -08:00
Gregg Tavares
f3764ef0c3 Unclutter the URL
The URL is getting long as new options are added. It's common to want
to edit the q parameter but as more options are added this gets harder
as it get pushed off the to the right.

So, only show options that are non-falsy but, display the options
on the page and make them editable.
2023-01-10 11:49:32 -08:00
Gregg Tavares
030f44dcf8 Add some progress
This is a first attempt at providing some progress, at least something
that shows that things are running. Often I click play and I can't
tell.
2022-12-28 09:48:54 -08:00
Gregg Tavares
62dbcc5ee9 Support dark mode 2022-12-28 09:43:05 -08:00
Kai Ninomiya
9618103c4a refresh origin trial tokens 2022-05-20 13:49:54 -07:00
Kai Ninomiya
09f024e50e
Add checkbox to auto-close subtrees when they pass (#1090) 2022-03-18 16:49:33 -07:00
Kai Ninomiya
e4abe59781
replaced another expired origin trial token (#1054)
Missed in #1018
2022-03-10 17:50:00 -08:00
Kai Ninomiya
89f20c5e69
Count TODOs and display them in /standalone/ (#931) 2022-01-26 19:44:19 +00:00
Kai Ninomiya
2961e70ac9
Add Chrome Origin Trial tokens (#808) 2021-10-29 22:43:09 +00:00
Brandon Jones
f19dd8595c
Visually indicate test results of entire subtrees (#643) 2021-07-19 23:07:11 +00:00
Brandon Jones
0b4ad38c21
Some minor visual updates for the standalone page (#636)
Trying to make it feel less busy and a bit easier to read.
2021-07-16 01:46:55 +00:00
Brandon Jones
76f4f57e21
Added some CompilationInfo tests. (#548)
* Added some CompilationInfo tests.

* Address feedback

* More feedback

* roll types

* buildfix

* add meta charset so unicode will display correctly (e.g. from error messages on unicode shaders)

(has no effect in Chromium now because we currently mangle the unicode by treating
it as bytes)

Co-authored-by: Kai Ninomiya <kainino@chromium.org>
2021-05-05 22:26:35 +00:00
Brandon Jones
1b4c3acc76
Make the intent of the expand/collapse UI clearer using details elements (#501) 2021-03-12 15:58:15 -08:00
Kai Ninomiya
3412d93350
standalone: Don't generate DOM when test finishes (#323)
* standalone: Don't generate DOM when test finishes

Previously the test status and logs would get inserted into the DOM
immediately when run. This just stores off the result so that it can be
rendered into the DOM on-demand.

* standalone: Fix "expand all" button

Previously this just searched the entire page for checkboxes and checked
all of them. With lazy DOM generation, this didn't work anymore.

Returns a function from GenerateSubtreeHTML whichs sets the subtree as
"checked", recursively.

* hide testcaselogs by default

* nit
2020-11-04 13:37:54 -08:00
Kai Ninomiya
a33b671c42
standalone: Show only the full query string for a test, and aligned (#324)
Remove the "relative" paths in the test tree and promote the full query
string. With the "relative" paths I find that it's way too hard to see
"where" you are in the tree when browsing.

Aligns all of the full query strings with one another (unless the screen
is too small), so the tree structure is easy to see.
2020-11-04 12:19:24 -08:00
Kai Ninomiya
21a476f227
standalone: Replace results JSON textarea with copy button (#322)
* standalone: Replace results JSON textarea with copy button

In Chromium, this textarea causes a massive relayout whenever it gets
updated (40s on my machine). Remove it, and replace it with a button
that copies the JSON to the clipboard (fast).

* move event listener setup

* nit
2020-11-03 11:30:21 -08:00
Kai Ninomiya
0b79a453b0
standalone: use <pre> for descriptions (#259)
Now that we put test plans in descriptions, the contents are not just
trivial paragraph-style text blocks. So we have to preserve the original
formatting for descriptions to render properly.
2020-08-12 17:53:30 -07:00
Kai Ninomiya
6f811a0ef1
standalone: dissolveLevelBoundaries (#193)
* standalone: dissolveLevelBoundaries

Reduces node count from 6460 to 4171, making things much more navigable.

* Always set leaf readableRelativeName; tweak formatting

* swap "Run" icons to match formatting on subtree names

* readability styling tweaks
2020-05-20 15:04:39 -07:00
Kai Ninomiya
98cfd95770
standalone runner: implement collapsing, show relative names (#187)
* standalone: add rudimentary collapsing, start with files collapsed, make buttons smaller

Unfortunately, still can't lazily create DOM subtrees, so page loading
is still very slow. It's not easy to do so, because the "run subtree"
button (as implemented) depends on the tree already being processed.
(However it could be done without generating the actual DOM.)
This page needs more serious overhauling.

* revise
2020-05-20 12:11:55 -07:00
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
20bc11b931 Adjust the directory structure outside the tests for navigability
- Moves src/{framework,runtime,tools,constants.ts} to src/common/*
- Moves templates/ to src/common/templates/
- Moves src/suites/*/ up to src/*/
- Renames the `cts:` suite to `webgpu:`
- Unhides some files from vscode
2020-03-31 16:36:26 -07:00