| Index: third_party/WebKit/LayoutTests/inspector/device-mode/forced-viewport-far.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/emulation/forced-viewport-far.html b/third_party/WebKit/LayoutTests/inspector/device-mode/forced-viewport-far.html
|
| similarity index 65%
|
| rename from third_party/WebKit/LayoutTests/inspector-protocol/emulation/forced-viewport-far.html
|
| rename to third_party/WebKit/LayoutTests/inspector/device-mode/forced-viewport-far.html
|
| index e20589cc80c7b01384d5a15d7fb382f5d32f5f0c..0dd17174c99b40cbe8bfb8b1576dcbc7d8b6caf4 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/emulation/forced-viewport-far.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/device-mode/forced-viewport-far.html
|
| @@ -1,7 +1,7 @@
|
| <html>
|
| <head>
|
|
|
| -<script src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
|
| +<script src="../../http/tests/inspector/inspector-test.js"></script>
|
|
|
| <style>
|
| html {
|
| @@ -36,14 +36,15 @@ body {
|
| <script>
|
| function test()
|
| {
|
| - InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testRunner.dumpAsTextWithPixelResults();"} );
|
| -
|
| - InspectorTest.sendCommand("Emulation.forceViewport", { "x": 200, "y": 9000, "scale": 2.0 }, overrideActive);
|
| + InspectorTest.evaluateInPage("testRunner.dumpAsTextWithPixelResults();", () => {
|
| + InspectorTest.EmulationAgent.invoke_forceViewport({x: 200, y: 9000, scale: 2.0}).then(overrideActive);
|
| + });
|
|
|
| function overrideActive(msg)
|
| {
|
| // Complete the test without closing the inspector, so that the override stays active for the picture.
|
| - InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testRunner.notifyDone();"} );
|
| + InspectorTest.flushResults();
|
| + InspectorTest.evaluateInPage("testRunner.notifyDone();");
|
| }
|
| }
|
| </script>
|
|
|