OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../http/tests/inspector/elements-test.js"></script> | 4 <script src="../../http/tests/inspector/elements-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function test() | 7 function test() |
8 { | 8 { |
9 // Save time on style updates. | 9 // Save time on style updates. |
10 WebInspector.showPanel("elements"); | 10 WebInspector.showPanel("elements"); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 doAddAttribute("testAddAttributeUnquotedValue", "node-to-add-attribu
te-unquoted-value", "newattr=unquotedValue", next); | 99 doAddAttribute("testAddAttributeUnquotedValue", "node-to-add-attribu
te-unquoted-value", "newattr=unquotedValue", next); |
100 }, | 100 }, |
101 | 101 |
102 function testEditCommentAsHTML(next) | 102 function testEditCommentAsHTML(next) |
103 { | 103 { |
104 function commentNodeSelectionCallback(testNode, callback) | 104 function commentNodeSelectionCallback(testNode, callback) |
105 { | 105 { |
106 var childNodes = testNode.children(); | 106 var childNodes = testNode.children(); |
107 for (var i = 0; i < childNodes.length; ++i) { | 107 for (var i = 0; i < childNodes.length; ++i) { |
108 if (childNodes[i].nodeType() === 8) { | 108 if (childNodes[i].nodeType() === 8) { |
109 WebInspector._updateFocusedNode(childNodes[i].id); | 109 WebInspector.Revealer.reveal(childNodes[i]); |
110 callback(childNodes[i]); | 110 callback(childNodes[i]); |
111 return; | 111 return; |
112 } | 112 } |
113 } | 113 } |
114 InspectorTest.addResult("Comment node not found"); | 114 InspectorTest.addResult("Comment node not found"); |
115 InspectorTest.completeTest(); | 115 InspectorTest.completeTest(); |
116 } | 116 } |
117 domActionTest("testEditCommentAsHTML", commentNodeSelectionCallback,
testBody, next); | 117 domActionTest("testEditCommentAsHTML", commentNodeSelectionCallback,
testBody, next); |
118 | 118 |
119 function testBody(node, done) | 119 function testBody(node, done) |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 </script> | 335 </script> |
336 </div> | 336 </div> |
337 | 337 |
338 <div id="testEditCommentAsHTML"> | 338 <div id="testEditCommentAsHTML"> |
339 <!-- Comment --> | 339 <!-- Comment --> |
340 </div> | 340 </div> |
341 | 341 |
342 </div> | 342 </div> |
343 </body> | 343 </body> |
344 </html> | 344 </html> |
OLD | NEW |