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

Unified Diff: LayoutTests/webmidi/requestmidiaccess.html

Issue 77773003: Make WebMIDI use blink Promise. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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.html
diff --git a/LayoutTests/webmidi/requestmidiaccess.html b/LayoutTests/webmidi/requestmidiaccess.html
index 97f3a179bf714a5e5b8cdf9e07934426e60d531f..1e1285b9d142e6b41713818908f9b948b637467f 100644
--- a/LayoutTests/webmidi/requestmidiaccess.html
+++ b/LayoutTests/webmidi/requestmidiaccess.html
@@ -56,7 +56,7 @@ function successCallback1(a) {
shouldThrow('output.send([0xf1, 0x45, 0x7f])', '"SecurityError: Failed to execute \'send\' on \'MIDIOutput\': permission to send system exclusive messages is denied."');
// Now test System Exclusive access - our test mock should not allow this type of access.
- shouldNotThrow("navigator.requestMIDIAccess({sysex: true}).then(successCallback2, errorCallback2)");
+ navigator.requestMIDIAccess({sysex: true}).then(successCallback2, errorCallback2);
}
function errorCallback1(error) {
@@ -77,7 +77,7 @@ function errorCallback2(error) {
window.jsTestIsAsync = true;
// Test basic access, with no System Exclusive.
-shouldNotThrow("navigator.requestMIDIAccess().then(successCallback1, errorCallback1)");
+navigator.requestMIDIAccess().then(successCallback1, errorCallback1);
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698