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

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

Issue 2241173002: CustomElements: test create an element inside a template (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | no next file » | 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
new file mode 100644
index 0000000000000000000000000000000000000000..7f5eb7edec178b0ce0ac26a0796609ddaf919d66
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/custom-elements/spec/create-element-inside-template.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<title>Custom Elements: create an element inside a template </title>
+<link rel="help" href="https://dom.spec.whatwg.org/#concept-create-element">
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="resources/custom-elements-helpers.js"></script>
+<iframe id="iframe"></iframe>
+<script>
+'use strict';
+
+// Setup iframe to test the parser.
+iframe.srcdoc = `<template id="test"><a-a>innerHTML</a-a></template>`;
+setup({ explicit_done: true });
+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")');
+ done();
+};
+</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698