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', () { |