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

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

Issue 2372663004: DevTools: Replace multiline InplaceEditor with CodeMirrorTextEditor (Closed)
Patch Set: resize width Created 3 years, 10 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-4.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-4.html b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-4.html
index 84b93b4eb66ac202c8c6f7af22f853a0606f062a..172a44d7428131fc3bb47667d0320c81d61112c4 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-4.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-actions-4.html
@@ -30,12 +30,12 @@ function test()
function step2()
{
- var codeMirror = treeElement._editing.codeMirror;
- InspectorTest.addResult(codeMirror.getValue());
- codeMirror.setValue(codeMirror.getValue().replace(/&/g, '#'));
+ var editor = treeElement._editing.editor;
+ InspectorTest.addResult(editor.text());
+ editor.setText(editor.text().replace(/&/g, '#'));
var event = InspectorTest.createKeyEvent("Enter");
event.isMetaOrCtrlForTest = true;
- treeElement._htmlEditElement.dispatchEvent(event);
+ editor.widget().element.dispatchEvent(event);
InspectorTest.deprecatedRunAfterPendingDispatches(InspectorTest.expandElementsTree.bind(InspectorTest, done));
}
}
@@ -64,12 +64,12 @@ function test()
function step2()
{
- var value = treeElement._editing.codeMirror.getValue();
+ var value = treeElement._editing.editor._codeMirror.getValue();
InspectorTest.addResult(value);
- treeElement._editing.codeMirror.setValue(value.replace("100", "110"));
+ treeElement._editing.editor.setText(value.replace("100", "110"));
var event = InspectorTest.createKeyEvent("Enter");
event.isMetaOrCtrlForTest = true;
- treeElement._htmlEditElement.dispatchEvent(event);
+ treeElement._editing.editor.widget().element.dispatchEvent(event);
InspectorTest.deprecatedRunAfterPendingDispatches(InspectorTest.expandElementsTree.bind(InspectorTest, done));
}
}

Powered by Google App Engine
This is Rietveld 408576698