summaryrefslogtreecommitdiffstats
path: root/dom/html/test/test_bug383383_2.xhtml
blob: 4dccd381c4dca265b55c920dce110bc334e2a8b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Test for bug 383383</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
</head>
<body>
  <script>
    SimpleTest.waitForExplicitFinish()
  </script>
  <script for="window" event="bar">
    // This script should not run, but should not cause a parse error either.
    ok(false, "Script was unexpectedly run")
  </script>
  <script>
    ok(true, "Script was run as it should")
    SimpleTest.finish()
  </script>
</body>
</html>