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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-log-handle-navigate.html

Issue 2954093003: [DevTools] Migrate inspector-protocol/runtime tests to new harness (Closed)
Patch Set: fail: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-log-handle-navigate.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-log-handle-navigate.html b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-log-handle-navigate.html
deleted file mode 100644
index 16482b7a2aea0c7eeb9bcce1f67670116a2fbb61..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-log-handle-navigate.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-function appendIframe()
-{
- var frame = document.createElement("iframe");
- frame.src = "resources/console-log-navigate.html";
- document.body.appendChild(frame);
- return new Promise((resolve) => frame.onload = resolve);
-}
-
-function createIframeAndRunTest()
-{
- var frame = document.createElement("iframe");
- frame.id = "iframe";
- frame.src = "resources/console-log-navigate-on-load.html";
- frame.onload = () => runTest();
- document.body.appendChild(frame);
-}
-
-function test()
-{
- InspectorTest.sendCommandPromise("Runtime.enable", {})
- .then(() => checkExpression("logArray()"))
- .then(() => checkExpression("logDate()"))
- .then(() => checkExpression("logDateWithArg()"))
- .then(() => InspectorTest.completeTest());
-
- function checkExpression(expression)
- {
- var contextId;
- InspectorTest.waitForEventPromise("Runtime.executionContextCreated")
- .then((result) => contextId = result.params.context.id);
- return InspectorTest.sendCommandPromise("Runtime.evaluate", { expression: "appendIframe()", awaitPromise: true})
- .then(() => InspectorTest.sendCommandPromise("Runtime.evaluate", { expression: expression, contextId: contextId }))
- .then((r) => logObject(r));
- }
-
- function logObject(result)
- {
- result.id = 0;
- InspectorTest.logObject(result);
- }
-}
-</script>
-</head>
-<body onload="createIframeAndRunTest()">
-This tests how navigation is handled from inside debugger code (console.log).
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698