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> |