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

Unified Diff: tests/html/utils.dart

Issue 140853005: update custom elements and shadow dom (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | « tests/html/html.status ('k') | tools/dom/src/dart2js_CustomElementSupport.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/utils.dart
diff --git a/tests/html/utils.dart b/tests/html/utils.dart
index b1d7f689911f7d14958f4bbe79d3417259a7ba9d..6e5010e9d2b949709d5b2232824eb292ca3afa85 100644
--- a/tests/html/utils.dart
+++ b/tests/html/utils.dart
@@ -163,10 +163,15 @@ void validateNodeTree(Node a, Node b, [String path = '']) {
Future loadCustomElementPolyfill() {
if (!document.supportsRegister) {
+ if (!MutationObserver.supported) {
+ var script = new ScriptElement()
+ ..src = '/packages/mutation_observer/mutation_observer.js';
+ document.head.append(script);
+ }
var script = new ScriptElement()
..src = '/packages/custom_element/custom-elements.debug.js';
document.head.append(script);
- return document.body.on['WebComponentsReady'].first;
+ return document.on['WebComponentsReady'].first;
}
return new Future.value();
}
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/src/dart2js_CustomElementSupport.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698