| 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);
|
| }
|
| });
|
|
|