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

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

Issue 675473002: DevTools: preload codemirror for edit-dom-actions test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 function initialize_EditDOMTests() 1 function initialize_EditDOMTests()
2 { 2 {
3 3
4 // Preload codemirror which is used for "Edit as HTML".
5 InspectorTest.preloadPanel("sources");
6
4 InspectorTest.doAddAttribute = function(testName, dataNodeId, attributeText, nex t) 7 InspectorTest.doAddAttribute = function(testName, dataNodeId, attributeText, nex t)
5 { 8 {
6 InspectorTest.domActionTestForNodeId(testName, dataNodeId, testBody, next); 9 InspectorTest.domActionTestForNodeId(testName, dataNodeId, testBody, next);
7 10
8 function testBody(node, done) 11 function testBody(node, done)
9 { 12 {
10 var editorElement = InspectorTest.editNodePart(node, "webkit-html-attrib ute"); 13 var editorElement = InspectorTest.editNodePart(node, "webkit-html-attrib ute");
11 editorElement.dispatchEvent(InspectorTest.createKeyEvent("U+0009")); // Tab 14 editorElement.dispatchEvent(InspectorTest.createKeyEvent("U+0009")); // Tab
12 15
13 InspectorTest.runAfterPendingDispatches(testContinuation); 16 InspectorTest.runAfterPendingDispatches(testContinuation);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 var editorElement = InspectorTest.editNodePart(node, className); 75 var editorElement = InspectorTest.editNodePart(node, className);
73 editorElement.textContent = newValue; 76 editorElement.textContent = newValue;
74 editorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")); 77 editorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
75 if (useSniffer) 78 if (useSniffer)
76 InspectorTest.addSniffer(WebInspector.ElementsTreeUpdater.prototype, "_u pdateModifiedNodes", step2); 79 InspectorTest.addSniffer(WebInspector.ElementsTreeUpdater.prototype, "_u pdateModifiedNodes", step2);
77 else 80 else
78 InspectorTest.runAfterPendingDispatches(step2); 81 InspectorTest.runAfterPendingDispatches(step2);
79 } 82 }
80 83
81 } 84 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698