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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor.html

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO Created 3 years, 8 months 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
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698