Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/custom-elements/spec/create-element-inside-template.html |
| diff --git a/third_party/WebKit/LayoutTests/custom-elements/spec/create-element-inside-template.html b/third_party/WebKit/LayoutTests/custom-elements/spec/create-element-inside-template.html |
| index 89bd75c3ccfec5e8144d92cce66016fbcef2d0e4..c7cc4b5059e13c34392bb183d24bcf94531ec4c2 100644 |
| --- a/third_party/WebKit/LayoutTests/custom-elements/spec/create-element-inside-template.html |
| +++ b/third_party/WebKit/LayoutTests/custom-elements/spec/create-element-inside-template.html |
| @@ -8,15 +8,17 @@ |
| <script> |
| 'use strict'; |
| -// Setup iframe to test the parser. |
| -iframe.srcdoc = `<template id="test"><a-a>innerHTML</a-a></template>`; |
| +iframe.srcdoc = `<template id="test"><a-a></a-a></template>`; |
| setup({ explicit_done: true }); |
| iframe.onload = () => { |
| let doc = iframe.contentDocument; |
| + let w = doc.defaultView; |
| let tmpl = doc.querySelector('#test'); |
| let element = tmpl.content.querySelector('a-a'); |
| + w.customElements.define('a-a', class extends w.HTMLElement {}); |
| test(function () { |
| - assert_false(element.matches(':defined')); |
| + assert_true(element.matches(':not(:defined)')); |
| + assert_equals(Object.getPrototypeOf(element), w.HTMLElement.prototype); |
|
kojii
2016/09/06 04:58:51
I'm not sure what is the good way to test "impleme
|
| }, 'Custom element state in template content should be "not defined"'); |
| done(); |
| }; |