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

Unified Diff: LayoutTests/media/media-can-play-type.html

Issue 138063006: Make the type argument to HTMLMediaElement.canPlayType non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove redundant failing test Created 6 years, 11 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/media-can-play-type.html
diff --git a/LayoutTests/media/media-can-play-type.html b/LayoutTests/media/media-can-play-type.html
index 29efb71ee9c83dccdb8cb78ed24b57a76650211a..9d1fdf0f3153f9fa032b3321a854d67a40c898ad 100644
--- a/LayoutTests/media/media-can-play-type.html
+++ b/LayoutTests/media/media-can-play-type.html
@@ -6,7 +6,7 @@
function start() {
video = document.getElementsByTagName('video')[0];
- testExpected("video.canPlayType()", "");
+ testException("video.canPlayType()", '"TypeError: Failed to execute \'canPlayType\' on \'HTMLMediaElement\': 1 argument required, but only 0 present."');
testExpected("video.canPlayType('video/')", "");
testExpected("video.canPlayType('video/blahblah')", "");
testExpected("video.canPlayType('video/blahblah; codecs=\"blah, , blah\"')", "");

Powered by Google App Engine
This is Rietveld 408576698