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 7f5eb7edec178b0ce0ac26a0796609ddaf919d66..89bd75c3ccfec5e8144d92cce66016fbcef2d0e4 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 |
@@ -15,7 +15,9 @@ iframe.onload = () => { |
let doc = iframe.contentDocument; |
let tmpl = doc.querySelector('#test'); |
let element = tmpl.content.querySelector('a-a'); |
- assert_equals(element.matches(':defined'), true, 'matches(":defined")'); |
+ test(function () { |
+ assert_false(element.matches(':defined')); |
+ }, 'Custom element state in template content should be "not defined"'); |
done(); |
}; |
</script> |