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

Unified Diff: LayoutTests/imported/web-platform-tests/custom-elements/resources/register-and-create-custom-element.html

Issue 560893005: First checked-in import of the W3C's test suites. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add new expectations for newly failing w3c tests Created 6 years, 3 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
Index: LayoutTests/imported/web-platform-tests/custom-elements/resources/register-and-create-custom-element.html
diff --git a/LayoutTests/imported/web-platform-tests/custom-elements/resources/register-and-create-custom-element.html b/LayoutTests/imported/web-platform-tests/custom-elements/resources/register-and-create-custom-element.html
new file mode 100644
index 0000000000000000000000000000000000000000..c128cbf413c5c2ffdd7a7233a5fc73d4db759da8
--- /dev/null
+++ b/LayoutTests/imported/web-platform-tests/custom-elements/resources/register-and-create-custom-element.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Register and create custom element</title>
+ <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
+ <link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
+</head>
+<body>
+ <div id="log"></div>
+ <script>
+ var proto = Object.create(HTMLElement.prototype);
+ proto.createdCallback = function() {
+ document.querySelector('#log').innerText = 'Created callback was called';
+ };
+ document.registerElement('x-element', {prototype: proto});
+ </script>
+ <x-element id="x-element"></x-element>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698