OLD | NEW |
1 #library("dom_modify_html"); | 1 #library("dom_modify_html"); |
2 #import("dart:html"); | 2 #import("dart:html"); |
3 #import("dart:json"); | 3 #import("dart:json"); |
4 #source("Common.dart"); | 4 #source("Common.dart"); |
5 #source("RunnerSuite.dart"); | 5 #source("RunnerSuite.dart"); |
6 | 6 |
7 void main() { | 7 void main() { |
8 final int num = 400; | 8 final int num = 400; |
9 | 9 |
10 String str = 'null'; | 10 String str = 'null'; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 }) | 51 }) |
52 .test('cloneNode', () { | 52 .test('cloneNode', () { |
53 for (int i = 0; i < elems.length; i++) { | 53 for (int i = 0; i < elems.length; i++) { |
54 ret = elems[i].clone(false); | 54 ret = elems[i].clone(false); |
55 ret = elems[i].clone(true); | 55 ret = elems[i].clone(true); |
56 ret = elems[i].clone(true); | 56 ret = elems[i].clone(true); |
57 } | 57 } |
58 }) | 58 }) |
59 .test('appendChild', () { | 59 .test('appendChild', () { |
60 for (int i = 0; i < elems.length; i++) | 60 for (int i = 0; i < elems.length; i++) |
61 document.body.nodes.add(elems[i]); | 61 document.body.$dom_appendChild(elems[i]); |
62 }) | 62 }) |
63 .test('insertBefore', () { | 63 .test('insertBefore', () { |
64 for (int i = 0; i < elems.length; i++) | 64 for (int i = 0; i < elems.length; i++) |
65 document.body.insertBefore(elems[i], document.body.nodes.first); | 65 document.body.insertBefore(elems[i], document.body.$dom_firstChild); |
66 }) | 66 }) |
67 .end(); | 67 .end(); |
68 } | 68 } |
OLD | NEW |