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

Side by Side Diff: LayoutTests/inspector-protocol/css/css-get-media-queries.html

Issue 653263004: DevTools: CSSAgent::enable should report an error if DOM agent hasn't been enabled (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 function test() 5 function test()
6 { 6 {
7 InspectorTest.sendCommandOrDie("DOM.enable", {});
7 InspectorTest.sendCommandOrDie("CSS.enable", {}, onCSSEnabled); 8 InspectorTest.sendCommandOrDie("CSS.enable", {}, onCSSEnabled);
8 9
9 function onCSSEnabled() 10 function onCSSEnabled()
10 { 11 {
11 InspectorTest.sendCommandOrDie("CSS.getMediaQueries", {}, onMediaQueries ); 12 InspectorTest.sendCommandOrDie("CSS.getMediaQueries", {}, onMediaQueries );
12 } 13 }
13 14
14 function onMediaQueries(response) 15 function onMediaQueries(response)
15 { 16 {
16 function mediaComparator(media1, media2) 17 function mediaComparator(media1, media2)
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 * { 111 * {
111 margin: 1in; 112 margin: 1in;
112 } 113 }
113 } 114 }
114 } 115 }
115 </style> 116 </style>
116 </head> 117 </head>
117 <body onload="runTest()"> 118 <body onload="runTest()">
118 </body> 119 </body>
119 </html> 120 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698