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

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

Issue 12596004: Replaced Element.append with Node.appendChild (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | samples/third_party/dromaeo/tests/dom-query-html.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library dromaeo; 1 library dromaeo;
2 import 'dart:async'; 2 import 'dart:async';
3 import 'dart:html'; 3 import 'dart:html';
4 import 'dart:json' as json; 4 import 'dart:json' as json;
5 import 'dart:math' as Math; 5 import 'dart:math' as Math;
6 part 'Common.dart'; 6 part 'Common.dart';
7 part 'RunnerSuite.dart'; 7 part 'RunnerSuite.dart';
8 8
9 void main() { 9 void main() {
10 final int num = 400; 10 final int num = 400;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 }) 54 })
55 .test('cloneNode', () { 55 .test('cloneNode', () {
56 for (int i = 0; i < elems.length; i++) { 56 for (int i = 0; i < elems.length; i++) {
57 ret = elems[i].clone(false); 57 ret = elems[i].clone(false);
58 ret = elems[i].clone(true); 58 ret = elems[i].clone(true);
59 ret = elems[i].clone(true); 59 ret = elems[i].clone(true);
60 } 60 }
61 }) 61 })
62 .test('appendChild', () { 62 .test('appendChild', () {
63 for (int i = 0; i < elems.length; i++) 63 for (int i = 0; i < elems.length; i++)
64 document.body.$dom_appendChild(elems[i]); 64 document.body.append(elems[i]);
65 }) 65 })
66 .test('insertBefore', () { 66 .test('insertBefore', () {
67 for (int i = 0; i < elems.length; i++) 67 for (int i = 0; i < elems.length; i++)
68 document.body.insertBefore(elems[i], document.body.$dom_firstChild); 68 document.body.insertBefore(elems[i], document.body.$dom_firstChild);
69 }) 69 })
70 .end(); 70 .end();
71 } 71 }
OLDNEW
« no previous file with comments | « no previous file | samples/third_party/dromaeo/tests/dom-query-html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698