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

Side by Side Diff: LayoutTests/webmidi/requestmidiaccess-fail.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="../fast/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 description("Tests navigator.requestMIDIAccess failure."); 8 description("Tests navigator.requestMIDIAccess failure.");
9 9
10 function successCallback(access) { 10 function successCallback(access) {
11 testFailed("requestMIDIAccess() does not fail unexpectedly."); 11 testFailed("requestMIDIAccess() does not fail unexpectedly.");
12 finishJSTest(); 12 finishJSTest();
13 } 13 }
14 14
15 function errorCallback(error) { 15 function errorCallback(error) {
16 errorName = error.name; 16 errorName = error.name;
17 shouldBe("errorName", "'InvalidStateError'"); 17 shouldBe("errorName", "'InvalidStateError'");
18 testPassed("requestMIDIAccess() fail as expected."); 18 testPassed("requestMIDIAccess() fail as expected.");
19 finishJSTest(); 19 finishJSTest();
20 } 20 }
21 21
22 window.jsTestIsAsync = true; 22 window.jsTestIsAsync = true;
23 23
24 // set testRunner configuration so that requestMIDIAccess returns "InvalidStateE rror". 24 // set testRunner configuration so that requestMIDIAccess returns "InvalidStateE rror".
25 testRunner.setMIDIAccessorResult(false); 25 testRunner.setMIDIAccessorResult(false);
26 shouldNotThrow("navigator.requestMIDIAccess().then(successCallback, errorCallbac k)"); 26 shouldNotThrow("navigator.requestMIDIAccess().then(successCallback, errorCallbac k)");
27 27
28 </script> 28 </script>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW
« no previous file with comments | « LayoutTests/webmidi/requestmidiaccess-basic.html ('k') | Tools/Scripts/webkitpy/layout_tests/servers/apache_http_server.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698