| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <style type="text/css"> | 4 <style type="text/css"> |
| 5 #main { color: red; } | 5 #main { color: red; } |
| 6 | 6 |
| 7 @media print { | 7 @media print { |
| 8 #main { color: black; } | 8 #main { color: black; } |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 function step3() | 47 function step3() |
| 48 { | 48 { |
| 49 InspectorTest.addResult("No media emulated:"); | 49 InspectorTest.addResult("No media emulated:"); |
| 50 InspectorTest.dumpSelectedElementStyles(true); | 50 InspectorTest.dumpSelectedElementStyles(true); |
| 51 InspectorTest.completeTest(); | 51 InspectorTest.completeTest(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 function applyEmulatedMedia(media) | 54 function applyEmulatedMedia(media) |
| 55 { | 55 { |
| 56 InspectorTest.PageAgent.setEmulatedMedia(media); | 56 InspectorTest.PageAgent.setEmulatedMedia(media); |
| 57 WebInspector.cssModel.mediaQueryResultChanged(); | 57 InspectorTest.cssModel.mediaQueryResultChanged(); |
| 58 } | 58 } |
| 59 } | 59 } |
| 60 </script> | 60 </script> |
| 61 </head> | 61 </head> |
| 62 | 62 |
| 63 <body onload="runTest()"> | 63 <body onload="runTest()"> |
| 64 <p> | 64 <p> |
| 65 Tests that emulated CSS media is reflected in the Styles pane. | 65 Tests that emulated CSS media is reflected in the Styles pane. |
| 66 </p> | 66 </p> |
| 67 | 67 |
| 68 <div id="main"></div> | 68 <div id="main"></div> |
| 69 </body> | 69 </body> |
| 70 </html> | 70 </html> |
| OLD | NEW |