Index: LayoutTests/fast/media/media-query-overflow-value.html |
diff --git a/LayoutTests/fast/media/media-query-overflow-value.html b/LayoutTests/fast/media/media-query-overflow-value.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..773771abfecc472a3a5ab486ba611aad16b911db |
--- /dev/null |
+++ b/LayoutTests/fast/media/media-query-overflow-value.html |
@@ -0,0 +1,38 @@ |
+<!DOCTYPE html> |
+<head> |
+<script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+ function log(m) |
+ { |
+ var results = document.getElementById('results'); |
+ results.innerHTML += m + '<br>'; |
+ } |
+ |
+ function testQuery(query, expected) |
+ { |
+ var isTrue = window.matchMedia(query).matches; |
+ var message = '\"' + query + '\" evaluates to ' + (isTrue ? 'true' : 'false'); |
+ message += (isTrue == expected) ? ': PASS' : ': FAIL'; |
+ log(message); |
+ } |
+ |
+ function runTests() |
+ { |
+ testQuery('(min-width: 9999999999px)', false); |
+ testQuery('(max-width: 9999999999px)', true); |
+ testQuery('(min-device-width: 9999999999px)', false); |
+ testQuery('(max-device-width: 9999999999px)', true); |
+ testQuery('(min-height: 9999999999px)', false); |
+ testQuery('(max-height: 9999999999px)', true); |
+ testQuery('(min-device-height: 9999999999px)', false); |
+ testQuery('(max-device-height: 9999999999px)', true); |
+ } |
+</script> |
+</head> |
+<body onload="runTests()"> |
+ <p>Test MediaQuery values that overflow int range</p> |
+ <div id="results"> |
+ </div> |
+</body> |