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

Side by Side Diff: sky/tests/dom/getChildElements.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/dom/document_child_mutations-expected.txt ('k') | sky/tests/dom/getChildElements.sky » ('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 import "../resources/third_party/unittest/unittest.dart";
2 import "../resources/unit.dart";
3
4 import "dart:sky";
5
6 void main() {
7 initUnit();
8
9 test("getChildElements should only include immediate children", () {
10 var doc = new Document();
11 var parent = doc.createElement('parent');
12 var child1 = doc.createElement('child1');
13 var child2 = doc.createElement('child1');
14 var grandchild = doc.createElement('grandchild');
15
16 doc.appendChild(parent);
17 parent.appendChild(child1);
18 parent.appendChild(child2);
19 child1.appendChild(grandchild);
20
21 var children = parent.getChildElements();
22 expect(children.length, equals(2));
23 expect(children[0], equals(child1));
24 expect(children[1], equals(child2));
25 });
26 }
OLDNEW
« no previous file with comments | « sky/tests/dom/document_child_mutations-expected.txt ('k') | sky/tests/dom/getChildElements.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698