Index: LayoutTests/inspector/elements/remove-node.html |
diff --git a/LayoutTests/inspector/elements/remove-node.html b/LayoutTests/inspector/elements/remove-node.html |
index dc5663cac2036404ae5183b86dd963cb8b64fe74..bc2f5c0d498d224efa45fcb1d70b01f9b9c2ad29 100644 |
--- a/LayoutTests/inspector/elements/remove-node.html |
+++ b/LayoutTests/inspector/elements/remove-node.html |
@@ -10,6 +10,11 @@ function removeNode(id) |
child.parentNode.removeChild(child); |
} |
+function removeTextNode(id) |
+{ |
+ document.getElementById(id).textContent = ""; |
+} |
+ |
function test() |
{ |
var containerNode; |
@@ -28,6 +33,17 @@ function test() |
InspectorTest.expandElementsTree(callback); |
}, |
+ function testRemoveTextNode(next) |
+ { |
+ function callback() |
+ { |
+ InspectorTest.addResult("===== Removed Text node ====="); |
+ InspectorTest.dumpElementsTree(containerNode); |
+ next(); |
+ } |
+ InspectorTest.evaluateInPage("removeTextNode('child1')", callback); |
+ }, |
+ |
function testRemoveFirst(next) |
{ |
function callback() |
@@ -82,7 +98,7 @@ function test() |
Tests that elements panel updates dom tree structure upon node removal. |
</p> |
-<div id="container"><div id="child1"></div><div id="child2"></div><div id="child3"></div><div id="child4"></div></div> |
+<div id="container"><div id="child1">Text</div><div id="child2"></div><div id="child3"></div><div id="child4"></div></div> |
</body> |
</html> |