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

Unified Diff: third_party/WebKit/LayoutTests/webmidi/loopback-receive.html

Issue 2099213002: Web MIDI: prepare to deprecate MIDIMessageEvent::receivedTime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CallWith=ExecutionContext Created 4 years, 6 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: third_party/WebKit/LayoutTests/webmidi/loopback-receive.html
diff --git a/third_party/WebKit/LayoutTests/webmidi/loopback-receive.html b/third_party/WebKit/LayoutTests/webmidi/loopback-receive.html
index 9728155a3a70d1aa81c44e2be35522c4705aa1d1..e052dbeebc1aee7798f0a35290bea0b4a0c6457f 100644
--- a/third_party/WebKit/LayoutTests/webmidi/loopback-receive.html
+++ b/third_party/WebKit/LayoutTests/webmidi/loopback-receive.html
@@ -43,6 +43,8 @@ function verifyData(e) {
expected = testData[receiveCount];
actual = e.data;
shouldBe("actual", "expected");
+ receivedTimeIsDefined = e.receivedTime !== undefined;
+ shouldBeDefined(receivedTimeIsDefined);
kouhei (in TOK) 2016/06/30 12:40:45 How about shouldBeTrue("e.receivedTime !== undefin
Takashi Toyoshima 2016/07/01 06:50:23 Done.
receiveCount++;
if (receiveCount == testData.length)
e.target.resolve();

Powered by Google App Engine
This is Rietveld 408576698