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

Unified Diff: third_party/WebKit/LayoutTests/custom-elements/spec/create-element-inside-template.html

Issue 2252003002: Change custom element state in documents without browsing context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dominicc review Created 4 years, 4 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 | « no previous file | third_party/WebKit/LayoutTests/custom-elements/spec/selectors/pseudo-class-defined.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/custom-elements/spec/selectors/pseudo-class-defined.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698