OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../js/resources/js-test-pre.js"></script> | |
5 </head> | |
6 <body> | |
7 <script> | |
8 | |
9 description("This tests the constructor for the MIDIConnectionEvent DOM class.") ; | |
10 | |
11 // No initializer is passed. | |
12 shouldBe("new MIDIConnectionEvent('eventType').bubbles", "false"); | |
13 shouldBe("new MIDIConnectionEvent('eventType').cancelable", "false"); | |
14 shouldBe("new MIDIConnectionEvent('eventType').port", "null"); | |
15 | |
16 // bubbles is passed. | |
17 shouldBe("new MIDIConnectionEvent('eventType', { bubbles: false }).bubbles", "fa lse"); | |
18 shouldBe("new MIDIConnectionEvent('eventType', { bubbles: true }).bubbles", "tru e"); | |
19 | |
20 // cancelable is passed. | |
21 shouldBe("new MIDIConnectionEvent('eventType', { cancelable: false }).cancelable ", "false"); | |
22 shouldBe("new MIDIConnectionEvent('eventType', { cancelable: true }).cancelable" , "true"); | |
23 | |
24 // FIXME: Add a test case to pass port once MIDIPort is available. | |
haraken
2013/04/25 06:33:00
Why can't you add the test in this patch?
Takashi Toyoshima
2013/04/25 07:20:27
Currently MIDIPort is implemented, but no way is e
haraken
2013/04/25 07:36:47
Why isn't it exposed? You've written Dictionary::g
Takashi Toyoshima
2013/04/25 07:47:51
As line 14 is, it's always null for now :(
MIDIPor
| |
25 | |
26 // All initializers are passed. | |
27 shouldBe("new MIDIConnectionEvent('eventType', { bubbles: true, cancelable: true }).bubbles", "true"); | |
28 shouldBe("new MIDIConnectionEvent('eventType', { bubbles: true, cancelable: true }).cancelable", "true"); | |
29 | |
30 </script> | |
31 <script src="../../js/resources/js-test-post.js"></script> | |
32 </body> | |
33 </html> | |
OLD | NEW |