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

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

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « sky/tests/modules/resources/syntax-error.sky ('k') | sky/tests/resources/dump-as-markup.sky » ('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> 1 <script>
2 function childNodeCount(parent) { 2 import "dart:sky";
3 var count = 0;
4 for (var node = parent.firstChild; node; node = node.nextSibling)
5 ++count;
6 return count;
7 }
8 3
9 function childElementCount(parent) { 4 int childNodeCount(parent) {
10 var count = 0; 5 int count = 0;
11 for (var element = parent.firstElementChild; element; element = element.next ElementSibling) 6 for (Node node = parent.firstChild; node != null; node = node.nextSibling)
12 ++count; 7 ++count;
13 return count; 8 return count;
14 } 9 }
15 10
16 module.exports = { 11 int childElementCount(parent) {
17 childNodeCount: childNodeCount, 12 int count = 0;
18 childElementCount: childElementCount, 13 for (Element element = parent.firstElementChild; element != null; element = el ement.nextElementSibling)
19 }; 14 ++count;
20 </script> 15 return count;
16 }
17 </script>
OLDNEW
« no previous file with comments | « sky/tests/modules/resources/syntax-error.sky ('k') | sky/tests/resources/dump-as-markup.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698