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

Unified Diff: LayoutTests/fast/media/mq-append-delete.html

Issue 23621013: Make MediaList API arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/fast/media/mq-append-delete.html
diff --git a/LayoutTests/fast/media/mq-append-delete.html b/LayoutTests/fast/media/mq-append-delete.html
index 65354b8f538fd5888e70ea85d00831f87a7b4013..224330a1ddfb9407e89913854ef47b43d4026b47 100644
--- a/LayoutTests/fast/media/mq-append-delete.html
+++ b/LayoutTests/fast/media/mq-append-delete.html
@@ -84,6 +84,13 @@ test(function () {
// Ignored; terminate steps.
}, "Add '#?:/' to 'screen, tv'");
+test(function () {
+ mediaList.mediaText = "screen, tv";
+ assert_throws({ name: "TypeError" },
+ function () { document.appendMedium(); },
+ "Not enough arguments");
+}, "Add without argument");
+
// - deleteMedium()
test(function () {
@@ -155,4 +162,11 @@ test(function () {
// Ignored; terminate steps.
assert_equals(mediaList.mediaText, "screen, tv");
}, "Remove '#?:/' from 'screen, tv, not all'");
+
+test(function () {
+ mediaList.mediaText = "tv, print, screen";
+ assert_throws({ name: "TypeError" },
+ function () { document.deleteMedium(); },
+ "Not enough arguments");
+}, "Remove without argument");
</script>

Powered by Google App Engine
This is Rietveld 408576698