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

Side by Side Diff: LayoutTests/fast/media/media-query-list-01.html

Issue 15679021: Parse media attributes and CSSOM media text as media_query_list. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed review issues. Created 7 years, 6 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Test CSSOM View module: MediaQueryList interface</title> 3 <title>Test CSSOM View module: MediaQueryList interface</title>
4 <style type="text/css"> 4 <style type="text/css">
5 5
6 </style> 6 </style>
7 <script type="text/javascript" charset="utf-8"> 7 <script type="text/javascript" charset="utf-8">
8 if (window.testRunner) 8 if (window.testRunner)
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 10
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 function runTests() 25 function runTests()
26 { 26 {
27 testQuery('screen', true); 27 testQuery('screen', true);
28 testQuery('projection', false); 28 testQuery('projection', false);
29 29
30 testQuery('all and (color)', true); 30 testQuery('all and (color)', true);
31 testQuery('not projection and (color)', true); 31 testQuery('not projection and (color)', true);
32 testQuery('(color)', true); 32 testQuery('(color)', true);
33 testQuery('(color', false); 33 testQuery('(color', true);
34 testQuery('color', false); 34 testQuery('color', false);
35 35
36 testQuery('garbage', false); 36 testQuery('garbage', false);
37 37
38 testQuery('(min-device-width: 100px)', true); 38 testQuery('(min-device-width: 100px)', true);
39 testQuery('(min-device-width: 50000px)', false); 39 testQuery('(min-device-width: 50000px)', false);
40 40
41 testQuery('(-webkit-animation: 1)', true); 41 testQuery('(-webkit-animation: 1)', true);
42 testQuery('(-webkit-transform-2d)', true); 42 testQuery('(-webkit-transform-2d)', true);
43 } 43 }
44 44
45 </script> 45 </script>
46 </head> 46 </head>
47 <body onload="runTests()"> 47 <body onload="runTests()">
48 <p>Test the MediaQueryList interface: <a href="http://dev.w3.org/csswg/cssom -view/#the-mediaquerylist-interface" title="CSSOM View Module">http://dev.w3.org /csswg/cssom-view/#the-mediaquerylist-interface</a>.</p> 48 <p>Test the MediaQueryList interface: <a href="http://dev.w3.org/csswg/cssom -view/#the-mediaquerylist-interface" title="CSSOM View Module">http://dev.w3.org /csswg/cssom-view/#the-mediaquerylist-interface</a>.</p>
49 <div id="results"> 49 <div id="results">
50 </div> 50 </div>
51 </body> 51 </body>
52 </html> 52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698