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

Side by Side Diff: LayoutTests/fast/media/media-query-overflow-value.html

Issue 639783002: Media query values should not be 0 when overflowed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7 function log(m)
8 {
9 var results = document.getElementById('results');
10 results.innerHTML += m + '<br>';
11 }
12 function testQuery(query, expected)
13 {
14 var isTrue = window.matchMedia(query).matches;
15 var message = '\"' + query + '\" evaluates to ' + (isTrue ? 'true' : 'fa lse');
16 message += (isTrue == expected) ? ': PASS' : ': FAIL';
17 log(message);
18 }
19 function runTests()
20 {
21 testQuery('(min-width: 9999999999px)', false);
22 testQuery('(max-width: 9999999999px)', true);
23 testQuery('(min-device-width: 9999999999px)', false);
24 testQuery('(max-device-width: 9999999999px)', true);
25 testQuery('(min-height: 9999999999px)', false);
26 testQuery('(max-height: 9999999999px)', true);
27 testQuery('(min-device-height: 9999999999px)', false);
28 testQuery('(max-device-height: 9999999999px)', true);
29 }
30 </script>
31 </head>
32 <body onload="runTests()">
33 <p>Test MediaQuery values that overflow int range</p>
34 <div id="results">
35 </div>
36 </body>
37 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/media/media-query-overflow-value-expected.txt » ('j') | Source/core/css/MediaValues.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698