| OLD | NEW |
| 1 #library("dom-modify.dart"); | 1 #library("dom-modify.dart"); |
| 2 #import("dart:dom"); | 2 #import("dart:dom"); |
| 3 #import('runner.dart'); | 3 #import('runner.dart'); |
| 4 | 4 |
| 5 void main() { | 5 void main() { |
| 6 final int num = 400; | 6 final int num = 400; |
| 7 | 7 |
| 8 String str = 'null'; | 8 String str = 'null'; |
| 9 // Very ugly way to build up the string, but let's mimic JS version as much as
possible. | 9 // Very ugly way to build up the string, but let's mimic JS version as much as
possible. |
| 10 for (int i = 0; i < 1024; i++) { | 10 for (int i = 0; i < 1024; i++) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 .test('appendChild', () { | 57 .test('appendChild', () { |
| 58 for (int i = 0; i < elems.length; i++) | 58 for (int i = 0; i < elems.length; i++) |
| 59 document.body.appendChild(elems[i]); | 59 document.body.appendChild(elems[i]); |
| 60 }) | 60 }) |
| 61 .test('insertBefore', () { | 61 .test('insertBefore', () { |
| 62 for (int i = 0; i < elems.length; i++) | 62 for (int i = 0; i < elems.length; i++) |
| 63 document.body.insertBefore(elems[i], document.body.firstChild); | 63 document.body.insertBefore(elems[i], document.body.firstChild); |
| 64 }) | 64 }) |
| 65 .end(); | 65 .end(); |
| 66 } | 66 } |
| OLD | NEW |