| 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 src="../../../http/tests/inspector/console-test.js"></script> | 5 <script src="../../../http/tests/inspector/console-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function appendChild(parentId, id) | 8 function appendChild(parentId, id) |
| 9 { | 9 { |
| 10 var e = document.createElement("span"); | 10 var e = document.createElement("span"); |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 runAndDumpHighlights("setTextContent('textTest', 'Text')", textTestN
ode, next); | 127 runAndDumpHighlights("setTextContent('textTest', 'Text')", textTestN
ode, next); |
| 128 }, | 128 }, |
| 129 | 129 |
| 130 function testClearTextNodeTextContent(next) | 130 function testClearTextNodeTextContent(next) |
| 131 { | 131 { |
| 132 runAndDumpHighlights("setFirstChildTextContent('textTest', '')", tex
tTestNode, next); | 132 runAndDumpHighlights("setFirstChildTextContent('textTest', '')", tex
tTestNode, next); |
| 133 }, | 133 }, |
| 134 | 134 |
| 135 function testAppendChildWhenHidden(next) | 135 function testAppendChildWhenHidden(next) |
| 136 { | 136 { |
| 137 WebInspector.viewManager.showView("console"); | 137 UI.viewManager.showView("console"); |
| 138 runAndDumpHighlights("appendChild('childTest', 'child1')", childTest
Node, next); | 138 runAndDumpHighlights("appendChild('childTest', 'child1')", childTest
Node, next); |
| 139 } | 139 } |
| 140 ]); | 140 ]); |
| 141 | 141 |
| 142 function runAndDumpHighlights(script, root, next) | 142 function runAndDumpHighlights(script, root, next) |
| 143 { | 143 { |
| 144 dumpHighlights(root, next); | 144 dumpHighlights(root, next); |
| 145 InspectorTest.evaluateInPage(script); | 145 InspectorTest.evaluateInPage(script); |
| 146 } | 146 } |
| 147 | 147 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 169 </p> | 169 </p> |
| 170 | 170 |
| 171 <div id="container"> | 171 <div id="container"> |
| 172 <div id="attrTest" attrFoo="foo"></div> | 172 <div id="attrTest" attrFoo="foo"></div> |
| 173 <div id="childTest"></div> | 173 <div id="childTest"></div> |
| 174 <div id="textTest"></div> | 174 <div id="textTest"></div> |
| 175 </div> | 175 </div> |
| 176 | 176 |
| 177 </body> | 177 </body> |
| 178 </html> | 178 </html> |
| OLD | NEW |