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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor.html

Issue 2489033005: Web MIDI: deprecate MIDIMessageEvent.receivedTime (Closed)
Patch Set: expectation for virtual Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor.html b/third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor.html
index d87d5a40931e0d947a08fd519683fd71a66c4696..0631a3904ebad78c681b6d488834266bf9fcae15 100644
--- a/third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor.html
+++ b/third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor.html
@@ -11,7 +11,6 @@ description("This tests the constructor for the MIDIMessageEvent DOM class.");
// No initializer is passed.
shouldBe("new MIDIMessageEvent('eventType').bubbles", "false");
shouldBe("new MIDIMessageEvent('eventType').cancelable", "false");
-shouldBe("new MIDIMessageEvent('eventType').receivedTime", "0.0");
shouldBe("new MIDIMessageEvent('eventType').data", "null");
// bubbles is passed.
@@ -22,19 +21,15 @@ shouldBe("new MIDIMessageEvent('eventType', { bubbles: true }).bubbles", "true")
shouldBe("new MIDIMessageEvent('eventType', { cancelable: false }).cancelable", "false");
shouldBe("new MIDIMessageEvent('eventType', { cancelable: true }).cancelable", "true");
-// receivedTime is passed.
-shouldBe("new MIDIMessageEvent('eventType', { receivedTime: 3.14 }).receivedTime", "3.14");
-
// data is passed.
var data = new Uint8Array(16);
shouldEvaluateTo("new MIDIMessageEvent('eventType', { data: data }).data", data);
// All initializers are passed.
data = new Uint8Array(3);
-shouldBe("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, receivedTime: 1976.0501, data: data }).bubbles", "true");
-shouldBe("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, receivedTime: 1976.0501, data: data }).cancelable", "true");
-shouldBe("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, receivedTime: 1976.0501, data: data }).receivedTime", "1976.0501");
-shouldEvaluateTo("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, receivedTime: 1976.0501, data: data }).data", data);
+shouldBe("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, data: data }).bubbles", "true");
+shouldBe("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, data: data }).cancelable", "true");
+shouldEvaluateTo("new MIDIMessageEvent('eventType', { bubbles: true, cancelable: true, data: data }).data", data);
</script>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/constructors/midi-message-event-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698