summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/infrastructure/expected-fail/window-onload-test.html
blob: b0514bce045aa8c864209ec8cc929646bb4e30b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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>