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

Unified Diff: sky/engine/web/tests/data/touch-action-tests.js

Issue 759663003: Only allow one shadowRoot. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: ojan review. Created 6 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 | « sky/engine/core/page/FocusController.cpp ('k') | sky/framework/sky-element/sky-element.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/tests/data/touch-action-tests.js
diff --git a/sky/engine/web/tests/data/touch-action-tests.js b/sky/engine/web/tests/data/touch-action-tests.js
index 82265d5b91de17671d5a0ad981e6d5da234fe131..7eff011db1f1e49f20b0ddb5a45c4acc4239a0f9 100644
--- a/sky/engine/web/tests/data/touch-action-tests.js
+++ b/sky/engine/web/tests/data/touch-action-tests.js
@@ -4,7 +4,7 @@ document.addEventListener('touchstart', function() {});
window.addEventListener('load', function() {
// Create any shadow DOM nodes requested by the test.
var shadowTrees = document.querySelectorAll('[make-shadow-dom]');
- if (shadowTrees.length > 0 && !HTMLElement.prototype.createShadowRoot) {
+ if (shadowTrees.length > 0 && !HTMLElement.prototype.ensureShadowRoot) {
document.body.innerHTML = 'ERROR: Shadow DOM not supported!';
return;
}
@@ -16,7 +16,7 @@ window.addEventListener('load', function() {
return;
}
tree.parentElement.removeChild(tree);
- var shadowRoot = host.createShadowRoot();
+ var shadowRoot = host.ensureShadowRoot();
shadowRoot.appendChild(tree);
}
});
« no previous file with comments | « sky/engine/core/page/FocusController.cpp ('k') | sky/framework/sky-element/sky-element.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698