| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 description("This tests the constructor for the MIDIMessageEvent DOM class."); | 9 description("This tests the constructor for the MIDIMessageEvent DOM class."); |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // data is passed. | 24 // data is passed. |
| 25 var data = new Uint8Array(16); | 25 var data = new Uint8Array(16); |
| 26 shouldEvaluateTo("new MIDIMessageEvent('eventType', { data: data }).data", data)
; | 26 shouldEvaluateTo("new MIDIMessageEvent('eventType', { data: data }).data", data)
; |
| 27 | 27 |
| 28 // All initializers are passed. | 28 // All initializers are passed. |
| 29 data = new Uint8Array(3); | 29 data = new Uint8Array(3); |
| 30 shouldBe("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, d
ata: data }).bubbles", "true"); | 30 shouldBe("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, d
ata: data }).bubbles", "true"); |
| 31 shouldBe("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, d
ata: data }).cancelable", "true"); | 31 shouldBe("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, d
ata: data }).cancelable", "true"); |
| 32 shouldEvaluateTo("new MIDIMessageEvent('eventType', { bubbles: true, cancelable:
true, data: data }).data", data); | 32 shouldEvaluateTo("new MIDIMessageEvent('eventType', { bubbles: true, cancelable:
true, data: data }).data", data); |
| 33 | 33 |
| 34 if (window.SharedArrayBuffer) { |
| 35 data = new Uint8Array(new SharedArrayBuffer(3)); |
| 36 shouldThrow("new MIDIMessageEvent('eventType', { data: data })"); |
| 37 } |
| 38 |
| 34 </script> | 39 </script> |
| 35 </body> | 40 </body> |
| 36 </html> | 41 </html> |
| OLD | NEW |