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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-ns-attr-modified.html

Issue 2955943002: DevTools: migrate inspector-protocol/dom tests to a new test runner (Closed)
Patch Set: rebaseline 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/dom/dom-ns-attr-modified.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-ns-attr-modified.html b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-ns-attr-modified.html
deleted file mode 100644
index a416efaf2a222b30e70521b5fb743a45dda7d384..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-ns-attr-modified.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-function test()
-{
- var rootNodeId;
-
- InspectorTest.sendCommand("DOM.getDocument", {}, onGotDocument);
-
- function onGotDocument(msg)
- {
- rootNodeId = msg.result.root.nodeId;
- getMainNodeId();
- }
-
- function getMainNodeId(next)
- {
- InspectorTest.sendCommand("DOM.querySelector", { "nodeId": rootNodeId, "selector": "#main" }, onMainNodeLoaded);
- }
-
- function onMainNodeLoaded()
- {
- InspectorTest.log("");
- InspectorTest.log("Changing attribute...");
- InspectorTest.eventHandler["DOM.attributeModified"] = onAttributeModified;
- var expression = "";
- expression += "var element = document.getElementById('main');\n";
- expression += "element.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', 'changed-url');\n";
- InspectorTest.sendCommand("Runtime.evaluate", { expression: expression });
- }
-
- function onAttributeModified(msg)
- {
- var result = msg.params;
- InspectorTest.log("Modified attribute: '" + result.name + "'='" + result.value + "'");
-
- InspectorTest.log("Removing attribute...");
- InspectorTest.eventHandler["DOM.attributeRemoved"] = onAttributeRemoved;
- var expression = "";
- expression += "var element = document.getElementById('main');\n";
- expression += "element.removeAttribute('xlink:href', 'changed-url');\n";
- InspectorTest.sendCommand("Runtime.evaluate", { expression: expression });
- }
-
- function onAttributeRemoved(msg)
- {
- var result = msg.params;
- InspectorTest.log("Removed attribute: '" + result.name + "'");
- InspectorTest.completeTest();
- }
-}
-</script>
-</head>
-<body onload="runTest()">
-<p>Test that DOM events have correct parameters for attribute with namespace in XML document.</p>
-<svg>
- <a id="main" xlink:href="http://localhost">link</a>
-</svg>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698