Chromium Code Reviews

Unified Diff: LayoutTests/fast/media/media-query-list-missing-arguments.html

Issue 809613008: Expose MediaQueryList interface and make arguments non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: minimize Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | LayoutTests/fast/media/media-query-list-missing-arguments-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..29f5f7a4aeb119e3d8cbba3be1d4776e2b795c1f
--- /dev/null
+++ b/LayoutTests/fast/media/media-query-list-missing-arguments.html
@@ -0,0 +1,8 @@
+<!doctype html>
+<script src="../../resources/js-test.js"></script>
+<script>
+var mediaList = matchMedia("(max-width: 100px)");
+shouldBeType(mediaList, "MediaQueryList");
+shouldThrow("mediaList.addListener()");
+shouldThrow("mediaList.removeListener()");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/media/media-query-list-missing-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine