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 #import("dart:math", prefix: "Math"); |
4 #source("Common.dart"); | 5 #source("Common.dart"); |
5 #source("RunnerSuite.dart"); | 6 #source("RunnerSuite.dart"); |
6 | 7 |
7 void main() { | 8 void main() { |
8 final int num = 10240; | 9 final int num = 10240; |
9 | 10 |
10 // Try to force real results. | 11 // Try to force real results. |
11 var ret; | 12 var ret; |
12 | 13 |
13 Element elem = document.query('#test1'); | 14 Element elem = document.query('#test1'); |
(...skipping 11 matching lines...) Expand all Loading... |
25 .test('setAttribute', () { | 26 .test('setAttribute', () { |
26 for (int i = 0; i < num; i++) | 27 for (int i = 0; i < num; i++) |
27 a.attributes['id'] = 'foo'; | 28 a.attributes['id'] = 'foo'; |
28 }) | 29 }) |
29 .test('element.property = value', () { | 30 .test('element.property = value', () { |
30 for (int i = 0; i < num; i++) | 31 for (int i = 0; i < num; i++) |
31 a.id = 'foo'; | 32 a.id = 'foo'; |
32 }) | 33 }) |
33 .end(); | 34 .end(); |
34 } | 35 } |
OLD | NEW |