| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |