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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow.html

Issue 1875293003: DevTools: split edit-dom-actions-shadow.html into two tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@edit-dom-actions.html
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow-1.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow.html b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow.html
deleted file mode 100644
index 65e9c101b58043036e19c5749a4a8954d5c52eb4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow.html
+++ /dev/null
@@ -1,83 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<script src="edit-dom-test.js"></script>
-<script>
-
-function test()
-{
- // Save time on style updates.
- WebInspector.ElementsPanel.show();
-
- WebInspector.StylesSidebarPane.prototype.update = function() {};
- WebInspector.MetricsSidebarPane.prototype.update = function() {};
-
- InspectorTest.runTestSuite([
- function testSetUp(next)
- {
- InspectorTest.expandElementsTree(next);
- },
-
- function testSetAuthorShadowDOMElementAttribute(next)
- {
- InspectorTest.domActionTestForNodeId("testSetAuthorShadowDOMElementAttribute", "shadow-node-to-set-attribute", testBody, next);
-
- function testBody(node, done)
- {
- InspectorTest.editNodePartAndRun(node, "webkit-html-attribute", "bar=\"edited attribute\"", done, true);
- }
- },
-
- function testEditShadowDOMAsHTML(next)
- {
- InspectorTest.domActionTestForNodeId("testEditAuthorShadowDOMAsHTML", "authorShadowDOMElement", testBody, next);
-
- function testBody(node, done)
- {
- var treeOutline = InspectorTest.firstElementsTreeOutline();
- var treeElement = treeOutline.findTreeElement(node);
- treeOutline.toggleEditAsHTML(node);
- InspectorTest.runAfterPendingDispatches(step2);
-
- function step2()
- {
- InspectorTest.addResult(treeElement._editing.codeMirror.getValue());
- treeElement._editing.codeMirror.setValue("<span foo=\"shadow-span\"><span id=\"inner-shadow-span\">Shadow span contents</span></span>");
- var event = InspectorTest.createKeyEvent("Enter");
- event.isMetaOrCtrlForTest = true;
- treeElement._htmlEditElement.dispatchEvent(event);
- InspectorTest.runAfterPendingDispatches(InspectorTest.expandElementsTree.bind(InspectorTest, done));
- }
- }
- }
-
- ]);
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that user can mutate author shadow DOM by means of elements panel.
-</p>
-
-<div>
- <div id="testEditAuthorShadowDOMAsHTML"></div>
-
- <div id="testSetAuthorShadowDOMElementAttribute"></div>
-</div>
-<script>
-function createRootWithContents(id, html)
-{
- var container = document.getElementById(id);
- var root = container.createShadowRoot();
- root.innerHTML = html;
-}
-
-createRootWithContents("testEditAuthorShadowDOMAsHTML", "<div id='authorShadowDOMElement'></div>");
-createRootWithContents("testSetAuthorShadowDOMElementAttribute", "<div foo='attribute value' id='shadow-node-to-set-attribute'></div>");
-</script>
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow-1.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698