Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 5 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /infrastructure/expected-fail/window-onload-test.html - WPT Dashboard Interop Dashboard
<!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>