-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove test-level assert property from tests #14409
Remove test-level assert property from tests #14409
Conversation
test-level asserts is the only remaining use of is for test-level assert metadata. Remove all the assert property from tests and mark them as test comments if possible. Related: web-platform-tests#14394
common/performance-timeline-utils.js
Outdated
@@ -10,7 +10,8 @@ function wp_test(func, msg, properties) | |||
if (performanceNamespace === undefined || performanceNamespace == null) | |||
{ | |||
// show a single error that window.performance is undefined | |||
test(function() { assert_true(performanceNamespace !== undefined && performanceNamespace != null, "window.performance is defined and not null"); }, "window.performance is defined and not null.", {author:"W3C http://www.w3.org/",help:"http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute",assert:"The window.performance attribute provides a hosting area for performance related attributes. "}); | |||
// The window.performance attribute provides a hosting area for performance related attributes. | |||
test(function() { assert_true(performanceNamespace !== undefined && performanceNamespace != null, "window.performance is defined and not null"); }, "window.performance is defined and not null.", {author:"W3C http://www.w3.org/",help:"http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute"}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For help
and author
may I suggest moving the information to the top of the test files using the existing style for that? Otherwise these same tests will need to be updated again to remove the properties entirely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@foolip , I move them to the head of test files.
1591fe5
to
78aa08d
Compare
For `help` and `author`, moving the information to the top of the test files. Related: web-platform-tests#14394
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % single nit. I'll push a commit to fix that.
@@ -4,6 +4,10 @@ | |||
<title>CSS Test: CSSOM StyleSheet Initial Values</title> | |||
<link rel="author" title="Bear Travis" href="mailto:[email protected]"> | |||
<link rel="help" href="http://www.w3.org/TR/cssom-1/#css-style-sheets"> | |||
<link rel="help" href="http://www.w3.org/TR/cssom-1/#the-linkstyle-interface"> | |||
<link rel="help" href="https://www.w3.org/TR/cssom-1/#the-linkstyle-interface"> | |||
<link rel="help" href="http://www.w3.org/TR/cssom-1/#css-style-sheets"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line was already present above.
There's some preexisting flakiness here: https://tools.taskcluster.net/groups/POzAsNBJQd6tqMf6yT_yag/tasks/GJDhtVt_QzaLfLIj2SBRlA/details:
https://tools.taskcluster.net/groups/POzAsNBJQd6tqMf6yT_yag/tasks/PHx9hP8jQM2zOPeisrZ4Tw/details
|
Diff of runs before/after this change: There are apparent regressions, but not in the directories changed, so I suspect this was flakiness. @lukebjerring FYI if you're keeping track of people/occurrences of people trying to get this info. |
test-level asserts is the only remaining use of is for test-level
assert metadata. Remove all the assert property from tests and mark
them as test comments if possible.
Related: #14394