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

Unified Diff: dart/pkg/template_binding/test/template_binding_test.dart

Issue 62783003: Version 0.8.10.7 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/pkg/template_binding/pubspec.yaml ('k') | dart/pkg/third_party/html5lib/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/template_binding/test/template_binding_test.dart
===================================================================
--- dart/pkg/template_binding/test/template_binding_test.dart (revision 29987)
+++ dart/pkg/template_binding/test/template_binding_test.dart (working copy)
@@ -27,15 +27,25 @@
main() {
useHtmlConfiguration();
- setUp(() {
+ // Load MutationObserver polyfill in case IE needs it.
+ var script = new ScriptElement()
+ ..src = '/root_dart/pkg/mutation_observer/lib/mutation_observer.min.js';
+ var polyfillLoaded = script.onLoad.first;
+ document.head.append(script);
+
+ setUp(() => polyfillLoaded.then((_) {
document.body.append(testDiv = new DivElement());
- });
+ }));
tearDown(() {
testDiv.remove();
testDiv = null;
});
+ test('MutationObserver is supported', () {
+ expect(MutationObserver.supported, true, reason: 'polyfill was loaded.');
+ });
+
group('Template Instantiation', templateInstantiationTests);
group('Binding Delegate API', () {
« no previous file with comments | « dart/pkg/template_binding/pubspec.yaml ('k') | dart/pkg/third_party/html5lib/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698