summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/custom-elements/v0/resources
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/custom-elements/v0/resources')
-rw-r--r--testing/web-platform/tests/custom-elements/v0/resources/blank.html9
-rw-r--r--testing/web-platform/tests/custom-elements/v0/resources/import-master-async.html10
-rw-r--r--testing/web-platform/tests/custom-elements/v0/resources/import-master.html10
-rw-r--r--testing/web-platform/tests/custom-elements/v0/resources/import.html9
-rw-r--r--testing/web-platform/tests/custom-elements/v0/resources/register-and-create-custom-element.html19
-rw-r--r--testing/web-platform/tests/custom-elements/v0/resources/x-element.html10
-rw-r--r--testing/web-platform/tests/custom-elements/v0/resources/x-mathml-element.html12
-rw-r--r--testing/web-platform/tests/custom-elements/v0/resources/x-svg-element.html12
8 files changed, 91 insertions, 0 deletions
diff --git a/testing/web-platform/tests/custom-elements/v0/resources/blank.html b/testing/web-platform/tests/custom-elements/v0/resources/blank.html
new file mode 100644
index 000000000..2e5697ba1
--- /dev/null
+++ b/testing/web-platform/tests/custom-elements/v0/resources/blank.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Blank document</title>
+ <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
+</head>
+<body>
+</body>
+</html>
diff --git a/testing/web-platform/tests/custom-elements/v0/resources/import-master-async.html b/testing/web-platform/tests/custom-elements/v0/resources/import-master-async.html
new file mode 100644
index 000000000..0ecaafb29
--- /dev/null
+++ b/testing/web-platform/tests/custom-elements/v0/resources/import-master-async.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Import Master Document (asynchronous)</title>
+ <link rel="import" href="import.html" async>
+ </head>
+ <body>
+ <p>Master document body</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/custom-elements/v0/resources/import-master.html b/testing/web-platform/tests/custom-elements/v0/resources/import-master.html
new file mode 100644
index 000000000..d91bcb9cd
--- /dev/null
+++ b/testing/web-platform/tests/custom-elements/v0/resources/import-master.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Import Master Document</title>
+ <link rel="import" href="import.html">
+ </head>
+ <body>
+ <p>Master document body</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/custom-elements/v0/resources/import.html b/testing/web-platform/tests/custom-elements/v0/resources/import.html
new file mode 100644
index 000000000..dddc46701
--- /dev/null
+++ b/testing/web-platform/tests/custom-elements/v0/resources/import.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Import Document</title>
+ </head>
+ <body>
+ <p>Import Document body</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/custom-elements/v0/resources/register-and-create-custom-element.html b/testing/web-platform/tests/custom-elements/v0/resources/register-and-create-custom-element.html
new file mode 100644
index 000000000..3aabff244
--- /dev/null
+++ b/testing/web-platform/tests/custom-elements/v0/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').textContent = 'Created callback was called';
+ };
+ document.registerElement('x-element', {prototype: proto});
+ </script>
+ <x-element id="x-element"></x-element>
+</body>
+</html>
diff --git a/testing/web-platform/tests/custom-elements/v0/resources/x-element.html b/testing/web-platform/tests/custom-elements/v0/resources/x-element.html
new file mode 100644
index 000000000..0c0d2daad
--- /dev/null
+++ b/testing/web-platform/tests/custom-elements/v0/resources/x-element.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>x-element custom element</title>
+ <link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
+</head>
+<body>
+ <x-element id="x-element"></x-element>
+</body>
+</html>
diff --git a/testing/web-platform/tests/custom-elements/v0/resources/x-mathml-element.html b/testing/web-platform/tests/custom-elements/v0/resources/x-mathml-element.html
new file mode 100644
index 000000000..3efdc2d00
--- /dev/null
+++ b/testing/web-platform/tests/custom-elements/v0/resources/x-mathml-element.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Custom element in MathML namespace</title>
+ <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
+</head>
+<body>
+ <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <x-math-element id="x-math-element"></x-math-element>
+ </math>
+</body>
+</html>
diff --git a/testing/web-platform/tests/custom-elements/v0/resources/x-svg-element.html b/testing/web-platform/tests/custom-elements/v0/resources/x-svg-element.html
new file mode 100644
index 000000000..6cea85758
--- /dev/null
+++ b/testing/web-platform/tests/custom-elements/v0/resources/x-svg-element.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>SVG custom element</title>
+ <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
+</head>
+<body>
+ <svg height="100" width="100">
+ <x-svg-element id="x-svg-element"></x-element>
+ </svg>
+</body>
+</html>