Index: LayoutTests/webmidi/requestmidiaccess-in-detached-frame.html |
diff --git a/LayoutTests/webmidi/requestmidiaccess-in-detached-frame.html b/LayoutTests/webmidi/requestmidiaccess-in-detached-frame.html |
index 47273b629dac451a1062547b7038f139afb51278..dbe30c220ca902cd13e6146ba769214faf1896fe 100644 |
--- a/LayoutTests/webmidi/requestmidiaccess-in-detached-frame.html |
+++ b/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> |