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

Unified Diff: pkg/custom_element/test/custom_element_test.dart

Issue 21109007: add mutation observer polyfill package (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix for constructor property Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/mutation_observer/README.md » ('j') | pkg/mutation_observer/README.md » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>');
« no previous file with comments | « no previous file | pkg/mutation_observer/README.md » ('j') | pkg/mutation_observer/README.md » ('J')

Powered by Google App Engine
This is Rietveld 408576698