summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/webmidi
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/LayoutTests/webmidi')
-rw-r--r--third_party/WebKit/LayoutTests/webmidi/requestmidiaccess-in-detached-frame-expected.txt2
-rw-r--r--third_party/WebKit/LayoutTests/webmidi/requestmidiaccess-in-detached-frame.html11
2 files changed, 6 insertions, 7 deletions
diff --git a/third_party/WebKit/LayoutTests/webmidi/requestmidiaccess-in-detached-frame-expected.txt b/third_party/WebKit/LayoutTests/webmidi/requestmidiaccess-in-detached-frame-expected.txt
index adcd69a..711be74 100644
--- a/third_party/WebKit/LayoutTests/webmidi/requestmidiaccess-in-detached-frame-expected.txt
+++ b/third_party/WebKit/LayoutTests/webmidi/requestmidiaccess-in-detached-frame-expected.txt
@@ -3,6 +3,8 @@ Tests navigator.requestMIDIAccess fails in a detached frame.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+PASS errorName is "AbortError"
+PASS requestMIDIAccess() fail as expected.
PASS successfullyParsed is true
TEST COMPLETE
diff --git a/third_party/WebKit/LayoutTests/webmidi/requestmidiaccess-in-detached-frame.html b/third_party/WebKit/LayoutTests/webmidi/requestmidiaccess-in-detached-frame.html
index 47273b6..dbe30c2 100644
--- a/third_party/WebKit/LayoutTests/webmidi/requestmidiaccess-in-detached-frame.html
+++ b/third_party/WebKit/LayoutTests/webmidi/requestmidiaccess-in-detached-frame.html
@@ -13,19 +13,16 @@ document.body.appendChild(iframe);
contentNavigator = iframe.contentWindow.navigator;
document.body.removeChild(iframe);
-// set testRunner configuration so that requestMIDIAccess returns "InvalidStateError".
+// set testRunner configuration so that requestMIDIAccess returns "AbortError".
contentNavigator.requestMIDIAccess().then(function() {
testFailed("requestMIDIAccess() does not fail unexpectedly.");
finishJSTest();
-}, function() {
- errorName = error.name;
- shouldBe("errorName", "'InvalidStateError'");
+}, function(error) {
+ window.errorName = error.name;
+ shouldBeEqualToString("errorName", 'AbortError');
testPassed("requestMIDIAccess() fail as expected.");
finishJSTest();
});
-// FIXME: errorCallback should be called, but due to the Blink Promise impelementation the
-// returned Promise never be resolved nor rejected.
-finishJSTest();
</script>
</body>