Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: samples/third_party/dromaeo/tests/dom-attr-htmlidiomatic.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « samples/third_party/dromaeo/tests/dom-attr-html.dart ('k') | samples/third_party/dromaeo/tests/dom-modify-dom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698