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

Side by Side Diff: LayoutTests/inspector/elements/styles/media-emulation.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698