Chromium Code Reviews| Index: pkg/custom_element/test/custom_element_test.dart |
| diff --git a/pkg/custom_element/test/custom_element_test.dart b/pkg/custom_element/test/custom_element_test.dart |
| index 93fcd1555cc2e63f603c975318a45098bc377977..d5894c2d49bcd95ac7c08f04e50b90a2d0414903 100644 |
| --- a/pkg/custom_element/test/custom_element_test.dart |
| +++ b/pkg/custom_element/test/custom_element_test.dart |
| @@ -13,6 +13,16 @@ import 'package:unittest/unittest.dart'; |
| main() { |
| useHtmlConfiguration(); |
| + // Load the MutationObserver polyfill. |
| + HttpRequest.getString('/root_dart/pkg/mutation_observer/lib/' |
| + 'mutation_observer.js').then((code) { |
| + document.head.children.add(new ScriptElement()..text = code); |
|
blois
2013/07/30 17:11:09
Is this test run under CSP? If so, does it need an
Jennifer Messerly
2013/07/30 18:05:20
I think it will be okay because Chrome is the only
|
| + |
| + customElementTests(); |
| + }); |
| +} |
| + |
| +customElementTests() { |
| test('register creates the element and calls lifecycle methods', () { |
| // Add element to the page. |
| var element = new Element.html('<fancy-button>foo bar</fancy-button>'); |