OLD | NEW |
1 #library("dom_attr_html"); | 1 #library("dom_attr_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 = 10240; | 8 final int num = 10240; |
9 | 9 |
10 // Try to force real results. | 10 // Try to force real results. |
(...skipping 14 matching lines...) Expand all Loading... |
25 .test('setAttribute', () { | 25 .test('setAttribute', () { |
26 for (int i = 0; i < num; i++) | 26 for (int i = 0; i < num; i++) |
27 a.attributes['id'] = 'foo'; | 27 a.attributes['id'] = 'foo'; |
28 }) | 28 }) |
29 .test('element.property = value', () { | 29 .test('element.property = value', () { |
30 for (int i = 0; i < num; i++) | 30 for (int i = 0; i < num; i++) |
31 a.id = 'foo'; | 31 a.id = 'foo'; |
32 }) | 32 }) |
33 .end(); | 33 .end(); |
34 } | 34 } |
OLD | NEW |