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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-memory.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-memory.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-memory.html b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-memory.html
deleted file mode 100644
index ec1ce68e732a84bb18873ca7d8431ad2b01df96f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-memory.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-
-function dumpInnerHtml()
-{
- frame = document.documentElement.appendChild(document.createElement("iframe"));
- frame.src = "resources/iframe.html";
- frame.onload = function()
- {
- var location = frame.contentWindow.location;
- frame.remove();
- memory = console.__lookupGetter__("memory").call(location);
- console.log(memory.constructor.constructor("return document.querySelector(\"#mydiv\").textContent")());
- }
-}
-
-function test()
-{
- InspectorTest.sendCommandOrDie("Runtime.enable", {});
- InspectorTest.eventHandler["Runtime.consoleAPICalled"] = dumpMessageAndCompleTest;
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "dumpInnerHtml()" });
-
- function dumpMessageAndCompleTest(result)
- {
- InspectorTest.log("=== Dump console message ===");
- InspectorTest.log(result.params.args[0].value);
- InspectorTest.completeTest();
- }
-}
-</script>
-</head>
-<body onLoad="runTest();">Tests that console.memory works correct.</body>
-<div id="mydiv">div from page</div>
-</html>

Powered by Google App Engine
This is Rietveld 408576698