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

Unified Diff: LayoutTests/webmidi/requestmidiaccess-in-detached-frame.html

Issue 207583005: Revert of Make WebMIDI use blink Promise. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index 47273b629dac451a1062547b7038f139afb51278..0000000000000000000000000000000000000000
--- a/LayoutTests/webmidi/requestmidiaccess-in-detached-frame.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("Tests navigator.requestMIDIAccess fails in a detached frame.");
-
-window.jsTestIsAsync = true;
-iframe = document.createElement('iframe');
-document.body.appendChild(iframe);
-contentNavigator = iframe.contentWindow.navigator;
-document.body.removeChild(iframe);
-
-// set testRunner configuration so that requestMIDIAccess returns "InvalidStateError".
-contentNavigator.requestMIDIAccess().then(function() {
- testFailed("requestMIDIAccess() does not fail unexpectedly.");
- finishJSTest();
-}, function() {
- errorName = error.name;
- shouldBe("errorName", "'InvalidStateError'");
- 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>
-</html>

Powered by Google App Engine
This is Rietveld 408576698