-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "WPT: Allow
window.onload
to contain multiple `test(…
…)`s"" (#38806) This reverts commit 5c571b8. DO NOT MERGE: run `./wpt test-jobs --all` to see if it passes Adjust test to test for two assertions #38806 (comment) Revert "DO NOT MERGE: run `./wpt test-jobs --all` to see if it passes" This reverts commit 8891404. Update comments - Add @foolip's suggestion from #38806 (comment) - Also, update comment at the top with better phrasing. change referenced PR/CL
- Loading branch information
1 parent
31655b3
commit 9f9188a
Showing
7 changed files
with
138 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
|
||
<script> | ||
window.onload = () => { | ||
test((t) => { | ||
assert_true(true,'This should pass'); | ||
}, 'test 1'); | ||
test((t) => { | ||
assert_true(false,'This should FAIL'); | ||
}, 'test 2'); | ||
test((t) => { | ||
assert_true(false,'This should FAIL'); | ||
}, 'test 3'); | ||
|
||
promise_test(async t => { | ||
assert_true(false,'This should FAIL'); | ||
},'promise 1'); | ||
promise_test(async t => { | ||
assert_true(false,'This should FAIL'); | ||
},'promise 2'); | ||
promise_test(async t => { | ||
assert_true(false,'This should FAIL'); | ||
},'promise 3'); | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters