OLD | NEW |
1 #library("dom-attr.dart"); | 1 #library("dom-attr.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 = 10240; | 6 final int num = 10240; |
7 | 7 |
8 // Try to force real results. | 8 // Try to force real results. |
9 var ret; | 9 var ret; |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 .test('setAttribute', () { | 23 .test('setAttribute', () { |
24 for (int i = 0; i < num; i++) | 24 for (int i = 0; i < num; i++) |
25 a.setAttribute('id', 'foo'); | 25 a.setAttribute('id', 'foo'); |
26 }) | 26 }) |
27 .test('element.property = value', () { | 27 .test('element.property = value', () { |
28 for (int i = 0; i < num; i++) | 28 for (int i = 0; i < num; i++) |
29 a.id = 'foo'; | 29 a.id = 'foo'; |
30 }) | 30 }) |
31 .end(); | 31 .end(); |
32 } | 32 } |
OLD | NEW |