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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-cleared.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 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 3
4 <style> 4 <style>
5 html { 5 html {
6 margin: 0; 6 margin: 0;
7 } 7 }
8 </style> 8 </style>
9 9
10 <script src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></s cript> 10 <script src="../../http/tests/inspector-protocol/resources/inspector-protocol-te st.js"></script>
11 11
12 <script> 12 <script>
13 function test() 13 function test()
14 { 14 {
15 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testRunner.du mpAsTextWithPixelResults();"} ); 15 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testRunner.du mpAsTextWithPixelResults();"} );
16 16
17 InspectorTest.sendCommand("Emulation.setDefaultBackgroundColorOverride", { " color": { "r": 0x12, "g": 0x34, "b": 0x56, "a": 1.0 } }, backgroundColorSet); 17 InspectorTest.sendCommand("Emulation.setDefaultBackgroundColorOverride", { " color": { "r": 0x12, "g": 0x34, "b": 0x56, "a": 1.0 } }, backgroundColorSet);
18 18
19 function backgroundColorSet(messageObject) { 19 function backgroundColorSet(messageObject) {
20 if (!!messageObject.result.exceptionDetails) 20 if (!!messageObject.result.exceptionDetails)
(...skipping 11 matching lines...) Expand all
32 } 32 }
33 </script> 33 </script>
34 34
35 </head> 35 </head>
36 <body onload="runTest()"> 36 <body onload="runTest()">
37 <p> 37 <p>
38 Tests that resetting Emulation.setDefaultBackgroundColorOverride clears the back ground color override. 38 Tests that resetting Emulation.setDefaultBackgroundColorOverride clears the back ground color override.
39 </p> 39 </p>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698