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

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

Issue 10389097: Move dart:dom to dart:dom_deprecated (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes from review Created 8 years, 7 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_modify"); 1 #library("dom_modify");
2 #import("dart:dom"); 2 #import("dart:dom_deprecated");
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 = 400; 8 final int num = 400;
9 9
10 String str = 'null'; 10 String str = 'null';
11 // Very ugly way to build up the string, but let's mimic JS version as much as possible. 11 // Very ugly way to build up the string, but let's mimic JS version as much as possible.
12 for (int i = 0; i < 1024; i++) { 12 for (int i = 0; i < 1024; i++) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 .test('appendChild', () { 59 .test('appendChild', () {
60 for (int i = 0; i < elems.length; i++) 60 for (int i = 0; i < elems.length; i++)
61 document.body.appendChild(elems[i]); 61 document.body.appendChild(elems[i]);
62 }) 62 })
63 .test('insertBefore', () { 63 .test('insertBefore', () {
64 for (int i = 0; i < elems.length; i++) 64 for (int i = 0; i < elems.length; i++)
65 document.body.insertBefore(elems[i], document.body.firstChild); 65 document.body.insertBefore(elems[i], document.body.firstChild);
66 }) 66 })
67 .end(); 67 .end();
68 } 68 }
OLDNEW
« no previous file with comments | « samples/third_party/dromaeo/tests/dom-attr.dart ('k') | samples/third_party/dromaeo/tests/dom-query.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698