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

Side by Side Diff: sky/tests/dom/getChildElements.sky

Issue 1048333006: Fix getChildElements. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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/engine/core/dom/ContainerNode.cpp ('k') | sky/tests/dom/getChildElements-expected.txt » ('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 <parent>
2 <child1>
3 <grandchild />
4 </child1>
5 <child2 />
6 </parent>
7
8 <script>
9 import "../resources/third_party/unittest/unittest.dart";
10 import "../resources/unit.dart";
11
12 import "dart:sky";
13
14 void main() {
15 initUnit();
16
17 test("getChildElements should only include immediate children", () {
18 var parent = document.querySelector('parent');
19 var children = parent.getChildElements();
20 expect(children.length, equals(2));
21 expect(children[0], equals(document.querySelector('child1')));
22 expect(children[1], equals(document.querySelector('child2')));
23 });
24 }
25 </script>
26 </sky>
OLDNEW
« no previous file with comments | « sky/engine/core/dom/ContainerNode.cpp ('k') | sky/tests/dom/getChildElements-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698