OLD | NEW |
---|---|
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../resources/js-test.js"></script> | 3 <script src="../resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <script> | 6 <script> |
7 description("Check that interfaces inherit from EventTarget"); | 7 description("Check that interfaces inherit from EventTarget"); |
8 | 8 |
9 eventTargets = ['EventSource', 'FileReader', 'MediaController', 'MediaSource', ' MessagePort', 'Node', 'Performance', 'SVGElementInstance', 'SharedWorker', 'WebS ocket', 'Window', 'Worker', 'AudioContext']; | 9 eventTargets = ['EventSource', 'FileReader', 'MediaController', 'MediaSource', ' MessagePort', 'Node', 'Performance', 'SharedWorker', 'WebSocket', 'Window', 'Wor ker', 'AudioContext']; |
10 | 10 |
11 for (var i = 0; i < eventTargets.length; i++) { | 11 for (var i = 0; i < eventTargets.length; i++) { |
12 if (eventTargets[i] in window) | 12 if (eventTargets[i] in window) |
13 shouldBe(eventTargets[i] + ".prototype.__proto__", "EventTarget.prototyp e"); | 13 shouldBe(eventTargets[i] + ".prototype.__proto__", "EventTarget.prototyp e"); |
14 } | 14 } |
15 | 15 |
16 </script> | 16 </script> |
17 </body> | 17 </body> |
18 </html> | 18 </html> |
OLD | NEW |