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

Unified Diff: LayoutTests/media/video-test.js

Issue 224833002: Implement DataCue interface. (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/media/video-test.js
diff --git a/LayoutTests/media/video-test.js b/LayoutTests/media/video-test.js
index e558c1db9a90094ddbfc71a27856c090e750edfb..3b1ba7555c68e281ea08422b901851f79cb4171f 100644
--- a/LayoutTests/media/video-test.js
+++ b/LayoutTests/media/video-test.js
@@ -88,6 +88,7 @@ function testExpected(testFuncString, expected, comparison)
case '!=': success = observed != expected; break;
case '==': success = observed == expected; break;
case '===': success = observed === expected; break;
+ case 'instanceof': success = observed instanceof expected; break;
}
reportExpected(success, testFuncString, comparison, expected, observed)
@@ -216,7 +217,7 @@ function testDOMException(testString, exceptionString)
var exception = ex;
}
logResult(exception instanceof DOMException && exception.code === eval(exceptionString),
- "TEST(" + testString + ") THROWS(" + exceptionString + ": " + exception.message + ")");
+ "TEST(" + testString + ") THROWS(" + exceptionString + ": " + (exception ? exception.message : undefined) + ")");
philipj_slow 2014/04/04 14:54:33 Unrelated change?
Brendan Long 2014/04/04 15:07:22 This was necessary to make the test not crash if i
}
function testException(testString, exceptionString) {

Powered by Google App Engine
This is Rietveld 408576698