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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow-1.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
Index: third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow-1.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-1.html
similarity index 54%
copy from third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow.html
copy to third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-shadow-1.html
index 65e9c101b58043036e19c5749a4a8954d5c52eb4..869a62cd5732e2ce25564ae3d3594c7832745de8 100644
--- 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-1.html
@@ -28,30 +28,6 @@ function test()
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));
- }
- }
- }
-
]);
}
@@ -64,8 +40,6 @@ 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>
@@ -76,7 +50,6 @@ function createRootWithContents(id, html)
root.innerHTML = html;
}
-createRootWithContents("testEditAuthorShadowDOMAsHTML", "<div id='authorShadowDOMElement'></div>");
createRootWithContents("testSetAuthorShadowDOMElementAttribute", "<div foo='attribute value' id='shadow-node-to-set-attribute'></div>");
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698