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

Side by Side Diff: sky/tests/resources/dom_utils.dart

Issue 1212163009: Port remaining Sky tests to the new world (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: add Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « sky/tests/resources/dom-utils.sky ('k') | sky/tests/services/network.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script>
2 import "dart:sky"; 1 import "dart:sky";
3 2
4 int childNodeCount(parent) { 3 int childNodeCount(parent) {
5 int count = 0; 4 int count = 0;
6 for (Node node = parent.firstChild; node != null; node = node.nextSibling) 5 for (Node node = parent.firstChild; node != null; node = node.nextSibling)
7 ++count; 6 ++count;
8 return count; 7 return count;
9 } 8 }
10 9
11 int childElementCount(parent) { 10 int childElementCount(parent) {
12 int count = 0; 11 int count = 0;
13 for (Element element = parent.firstElementChild; element != null; element = el ement.nextElementSibling) 12 for (Element element = parent.firstElementChild; element != null; element = el ement.nextElementSibling)
14 ++count; 13 ++count;
15 return count; 14 return count;
16 } 15 }
17 </script>
OLDNEW
« no previous file with comments | « sky/tests/resources/dom-utils.sky ('k') | sky/tests/services/network.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698