Index: LayoutTests/fast/media/media-query-list-missing-arguments.html |
diff --git a/LayoutTests/fast/media/media-query-list-missing-arguments.html b/LayoutTests/fast/media/media-query-list-missing-arguments.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e02ccf12b477faf362f8688d619bc72de632e7ec |
--- /dev/null |
+++ b/LayoutTests/fast/media/media-query-list-missing-arguments.html |
@@ -0,0 +1,14 @@ |
+<!doctype html> |
+<html> |
rune
2014/12/18 09:43:11
Skip html, head, body.
|
+<head> |
+<script src="../../resources/js-test.js"></script> |
+</head> |
+<body> |
+<script> |
+var mediaList = matchMedia("(max-width: 100px)"); |
+shouldBeType(mediaList, "MediaQueryList"); |
+shouldThrow("mediaList.addListener()"); |
+shouldThrow("mediaList.removeListener()"); |
+</script> |
+</body> |
+</html> |