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

Side by Side Diff: LayoutTests/webmidi/requestmidiaccess.html

Issue 18350002: Web MIDI: rename sysexEnabled to sysex (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/modules/webmidi/MIDIAccess.cpp » ('j') | public/platform/WebMIDIAccessor.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"> 4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css">
5 <script src="../fast/js/resources/js-test-pre.js"></script> 5 <script src="../fast/js/resources/js-test-pre.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <p id="description"></p> 8 <p id="description"></p>
9 <div id="console"></div> 9 <div id="console"></div>
10 <script> 10 <script>
(...skipping 29 matching lines...) Expand all
40 output.manufacturer == "MockOutputManufacturer" && 40 output.manufacturer == "MockOutputManufacturer" &&
41 output.name == "MockOutputName" && 41 output.name == "MockOutputName" &&
42 output.version == "MockOutputVersion") { 42 output.version == "MockOutputVersion") {
43 testPassed('output attributes are correct'); 43 testPassed('output attributes are correct');
44 } else { 44 } else {
45 testFailed('output attributes are not correct'); 45 testFailed('output attributes are not correct');
46 } 46 }
47 47
48 // Now test System Exclusive access - our test mock should not allow this ty pe of access. 48 // Now test System Exclusive access - our test mock should not allow this ty pe of access.
49 try { 49 try {
50 navigator.requestMIDIAccess( { sysexEnabled: true } ).then(successCallba ck2, errorCallback2); 50 navigator.requestMIDIAccess( { sysex: true } ).then(successCallback2, er rorCallback2);
51 testPassed('navigator.requestMIDIAccess() did not throw exception.'); 51 testPassed('navigator.requestMIDIAccess() did not throw exception.');
52 } catch(e) { 52 } catch(e) {
53 testFailed('navigator.requestMIDIAccess() should not throw exception.'); 53 testFailed('navigator.requestMIDIAccess() should not throw exception.');
54 finishJSTest(); 54 finishJSTest();
55 } 55 }
56 } 56 }
57 57
58 function errorCallback1(error) { 58 function errorCallback1(error) {
59 testFailed('requestMIDIAccess() error callback should not be called when req uesting basic access.'); 59 testFailed('requestMIDIAccess() error callback should not be called when req uesting basic access.');
60 finishJSTest(); 60 finishJSTest();
(...skipping 19 matching lines...) Expand all
80 testFailed('navigator.requestMIDIAccess() should not throw exception.'); 80 testFailed('navigator.requestMIDIAccess() should not throw exception.');
81 finishJSTest(); 81 finishJSTest();
82 } 82 }
83 83
84 window.successfullyParsed = true; 84 window.successfullyParsed = true;
85 85
86 </script> 86 </script>
87 <script src="../fast/js/resources/js-test-post.js"></script> 87 <script src="../fast/js/resources/js-test-post.js"></script>
88 </body> 88 </body>
89 </html> 89 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/modules/webmidi/MIDIAccess.cpp » ('j') | public/platform/WebMIDIAccessor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698