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

Unified Diff: sky/tests/editing/delete_block_contents.sky

Issue 924203002: Morph the APIs for Node, ParentNode, and Element closer to the specs (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: less Created 5 years, 10 months 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 | « sky/tests/dom/replaceChild-expected.txt ('k') | sky/tests/lowlevel/bug-438036.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/editing/delete_block_contents.sky
diff --git a/sky/tests/editing/delete_block_contents.sky b/sky/tests/editing/delete_block_contents.sky
index 8552e9d1e68806e8602104d903d7bccbd58f1c56..d7c041a68d151ddf5d2942af1a0800c37ce20bc8 100644
--- a/sky/tests/editing/delete_block_contents.sky
+++ b/sky/tests/editing/delete_block_contents.sky
@@ -20,9 +20,7 @@ void main() {
d.appendChild(new Text('bbb'));
var newHeight = elem.offsetHeight;
- while (elem.firstChild != null) {
- elem.removeChild(elem.firstChild);
- }
+ elem.removeChildren();
new Timer(Duration.ZERO, expectAsync(() {
expect(elem.offsetHeight, equals(originalHeight));
« no previous file with comments | « sky/tests/dom/replaceChild-expected.txt ('k') | sky/tests/lowlevel/bug-438036.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698