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

Side by Side Diff: tests/html/utils.dart

Issue 33643002: "Reverting 28947" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « tests/html/custom_elements_test.dart ('k') | tools/dom/src/dart2js_Platform.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 TestUtils; 1 library TestUtils;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:js' as js;
6 import 'dart:typed_data'; 5 import 'dart:typed_data';
7 import 'package:unittest/unittest.dart'; 6 import 'package:unittest/unittest.dart';
8 7
9 /** 8 /**
10 * Verifies that [actual] has the same graph structure as [expected]. 9 * Verifies that [actual] has the same graph structure as [expected].
11 * Detects cycles and DAG structure in Maps and Lists. 10 * Detects cycles and DAG structure in Maps and Lists.
12 */ 11 */
13 verifyGraph(expected, actual) { 12 verifyGraph(expected, actual) {
14 var eItems = []; 13 var eItems = [];
15 var aItems = []; 14 var aItems = [];
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 ..src = '/packages/custom_element/custom-elements.debug.js'; 166 ..src = '/packages/custom_element/custom-elements.debug.js';
168 document.head.append(script); 167 document.head.append(script);
169 return document.body.on['WebComponentsReady'].first; 168 return document.body.on['WebComponentsReady'].first;
170 } 169 }
171 return new Future.value(); 170 return new Future.value();
172 } 171 }
173 172
174 Future loadPolyfills() { 173 Future loadPolyfills() {
175 return loadCustomElementPolyfill(); 174 return loadCustomElementPolyfill();
176 } 175 }
177
178 // Pump custom events polyfill events.
179 void customElementsTakeRecords() {
180 if (js.context.hasProperty('CustomElements')) {
181 js.context['CustomElements'].callMethod('takeRecords');
182 }
183 }
OLDNEW
« no previous file with comments | « tests/html/custom_elements_test.dart ('k') | tools/dom/src/dart2js_Platform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698