Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Side by Side Diff: LayoutTests/fast/events/constructors/midi-connection-event-constructor.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.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 MIDIConnectionEvent DOM class.") ; 9 description("This tests the constructor for the MIDIConnectionEvent DOM class.") ;
10 10
11 // No initializer is passed. 11 // No initializer is passed.
12 shouldBe("new MIDIConnectionEvent('eventType').bubbles", "false"); 12 shouldBe("new MIDIConnectionEvent('eventType').bubbles", "false");
13 shouldBe("new MIDIConnectionEvent('eventType').cancelable", "false"); 13 shouldBe("new MIDIConnectionEvent('eventType').cancelable", "false");
14 shouldBe("new MIDIConnectionEvent('eventType').port", "null"); 14 shouldBe("new MIDIConnectionEvent('eventType').port", "null");
15 15
16 // bubbles is passed. 16 // bubbles is passed.
17 shouldBe("new MIDIConnectionEvent('eventType', { bubbles: false }).bubbles", "fa lse"); 17 shouldBe("new MIDIConnectionEvent('eventType', { bubbles: false }).bubbles", "fa lse");
18 shouldBe("new MIDIConnectionEvent('eventType', { bubbles: true }).bubbles", "tru e"); 18 shouldBe("new MIDIConnectionEvent('eventType', { bubbles: true }).bubbles", "tru e");
19 19
20 // cancelable is passed. 20 // cancelable is passed.
21 shouldBe("new MIDIConnectionEvent('eventType', { cancelable: false }).cancelable ", "false"); 21 shouldBe("new MIDIConnectionEvent('eventType', { cancelable: false }).cancelable ", "false");
22 shouldBe("new MIDIConnectionEvent('eventType', { cancelable: true }).cancelable" , "true"); 22 shouldBe("new MIDIConnectionEvent('eventType', { cancelable: true }).cancelable" , "true");
23 23
24 // FIXME: Add a test case to pass port once MIDIPort is available. 24 // FIXME: Add a test case to pass port once MIDIPort is available.
25 25
26 // All initializers are passed. 26 // All initializers are passed.
27 shouldBe("new MIDIConnectionEvent('eventType', { bubbles: true, cancelable: true }).bubbles", "true"); 27 shouldBe("new MIDIConnectionEvent('eventType', { bubbles: true, cancelable: true }).bubbles", "true");
28 shouldBe("new MIDIConnectionEvent('eventType', { bubbles: true, cancelable: true }).cancelable", "true"); 28 shouldBe("new MIDIConnectionEvent('eventType', { bubbles: true, cancelable: true }).cancelable", "true");
29 29
30 </script> 30 </script>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698