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

Unified Diff: LayoutTests/inspector/elements/remove-node.html

Issue 705263002: DevTools: [Elements] Fix updates of the DOM tree upon inline text node removal (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/remove-node-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/remove-node-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698