-
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
WebCryptoAPI: Use .any.js for generateKey tests and split up slow tests #10984
Conversation
305131f
to
19f8aab
Compare
This needs to be rebased on top of #10985 to satisfy the linter. |
I like the use of The splitting is done with variants. The indexes are hard coded, which might be a bit brittle. I'm not sure how to improve though. One idea I have is to not hard code the last index, but use something like |
Slow tests test 10 subtests at a time, using the `// META: variant=...` feature. Fixes #10794.
19f8aab
to
e2bae53
Compare
Thanks, good idea about |
@zcorpan Do we have any idea if there are more or fewer failures than before. I am not seeing anything in the changes that triggers to me that we will have more failures, but trying to look through the travis logs it seems that there are a great number of fails. |
Comparing https://w3c-test.org/WebCryptoAPI/generateKey/ and https://w3c-test.org/submissions/10984/WebCryptoAPI/generateKey/
(This is unfortunately manual collection of results, see #7475) In Firefox, the all-fail in |
var match; | ||
if (location.search) { | ||
match = /^\?(\d+)-(\d+|last)$/.exec(location.search); | ||
subTestStart = match[1]; |
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.
What happens if the match operation fails here?
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.
I made it run all tests.
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.
Things look good. Thanks for the change
Thanks for the reviews! |
Slow tests test 10 subtests at a time, using the
// META: variant=...
feature.
Fixes #10794.