Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / webmidi / requestmidiaccess-in-detached-frame.html
blobdbe30c220ca902cd13e6146ba769214faf1896fe
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description("Tests navigator.requestMIDIAccess fails in a detached frame.");
10 window.jsTestIsAsync = true;
11 iframe = document.createElement('iframe');
12 document.body.appendChild(iframe);
13 contentNavigator = iframe.contentWindow.navigator;
14 document.body.removeChild(iframe);
16 // set testRunner configuration so that requestMIDIAccess returns "AbortError".
17 contentNavigator.requestMIDIAccess().then(function() {
18 testFailed("requestMIDIAccess() does not fail unexpectedly.");
19 finishJSTest();
20 }, function(error) {
21 window.errorName = error.name;
22 shouldBeEqualToString("errorName", 'AbortError');
23 testPassed("requestMIDIAccess() fail as expected.");
24 finishJSTest();
25 });
27 </script>
28 </body>
29 </html>