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

Side by Side Diff: pkg/template_binding/test/custom_element_bindings_test.dart

Issue 158083002: introduce web_components pkg for consolidated polyfills (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library template_binding.test.custom_element_bindings_test; 5 library template_binding.test.custom_element_bindings_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'package:custom_element/polyfill.dart';
10 import 'package:template_binding/template_binding.dart'; 9 import 'package:template_binding/template_binding.dart';
11 import 'package:observe/observe.dart'; 10 import 'package:observe/observe.dart';
12 import 'package:unittest/html_config.dart'; 11 import 'package:unittest/html_config.dart';
13 import 'package:unittest/unittest.dart'; 12 import 'package:unittest/unittest.dart';
13 import 'package:web_components/polyfill.dart';
14 import 'utils.dart'; 14 import 'utils.dart';
15 15
16 Future _registered; 16 Future _registered;
17 17
18 main() => dirtyCheckZone().run(() { 18 main() => dirtyCheckZone().run(() {
19 useHtmlConfiguration(); 19 useHtmlConfiguration();
20 20
21 _registered = loadCustomElementPolyfill().then((_) { 21 _registered = customElementsReady.then((_) {
22 document.register('my-custom-element', MyCustomElement); 22 document.register('my-custom-element', MyCustomElement);
23 document.register('with-attrs-custom-element', WithAttrsCustomElement); 23 document.register('with-attrs-custom-element', WithAttrsCustomElement);
24 }); 24 });
25 25
26 group('Custom Element Bindings', customElementBindingsTest); 26 group('Custom Element Bindings', customElementBindingsTest);
27 }); 27 });
28 28
29 customElementBindingsTest() { 29 customElementBindingsTest() {
30 setUp(() { 30 setUp(() {
31 document.body.append(testDiv = new DivElement()); 31 document.body.append(testDiv = new DivElement());
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 void addAll(Map<K, V> other) => _map.addAll(other); 240 void addAll(Map<K, V> other) => _map.addAll(other);
241 void clear() => _map.clear(); 241 void clear() => _map.clear();
242 void forEach(void f(K key, V value)) => _map.forEach(f); 242 void forEach(void f(K key, V value)) => _map.forEach(f);
243 Iterable<K> get keys => _map.keys; 243 Iterable<K> get keys => _map.keys;
244 Iterable<V> get values => _map.values; 244 Iterable<V> get values => _map.values;
245 int get length => _map.length; 245 int get length => _map.length;
246 bool get isEmpty => _map.isEmpty; 246 bool get isEmpty => _map.isEmpty;
247 bool get isNotEmpty => _map.isNotEmpty; 247 bool get isNotEmpty => _map.isNotEmpty;
248 } 248 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698