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

Side by Side Diff: sky/tests/resources/dom-utils.sky

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/lowlevel/unittest.sky ('k') | sky/tests/resources/dom_utils.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script>
2 import "dart:sky";
3
4 int childNodeCount(parent) {
5 int count = 0;
6 for (Node node = parent.firstChild; node != null; node = node.nextSibling)
7 ++count;
8 return count;
9 }
10
11 int childElementCount(parent) {
12 int count = 0;
13 for (Element element = parent.firstElementChild; element != null; element = el ement.nextElementSibling)
14 ++count;
15 return count;
16 }
17 </script>
OLDNEW
« no previous file with comments | « sky/tests/lowlevel/unittest.sky ('k') | sky/tests/resources/dom_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698