OLD | NEW |
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 Loading... |
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> |
OLD | NEW |