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

Unified Diff: LayoutTests/inspector/elements/edit-dom-test.js

Issue 596323002: DevTools: make ElementsTreeOutline shadow dom-based. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests fixed Created 6 years, 2 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: LayoutTests/inspector/elements/edit-dom-test.js
diff --git a/LayoutTests/inspector/elements/edit-dom-test.js b/LayoutTests/inspector/elements/edit-dom-test.js
index 676d96e594c965f50bc9e032655073fc2a380eed..18af497d867547769800d6cb18ca5e87f7834c59 100644
--- a/LayoutTests/inspector/elements/edit-dom-test.js
+++ b/LayoutTests/inspector/elements/edit-dom-test.js
@@ -14,7 +14,7 @@ InspectorTest.doAddAttribute = function(testName, dataNodeId, attributeText, nex
function testContinuation()
{
- var editorElement = window.getSelection().anchorNode.parentElement;
+ var editorElement = WebInspector.panels.elements._treeOutlines[0]._shadowRoot.getSelection().anchorNode.parentElement;
editorElement.textContent = attributeText;
editorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
InspectorTest.addSniffer(WebInspector.ElementsTreeUpdater.prototype, "_updateModifiedNodes", done);

Powered by Google App Engine
This is Rietveld 408576698