| Index: LayoutTests/imported/web-platform-tests/custom-elements/registering-custom-elements/extensions-to-document-interface/custom-element-prototype.html
|
| diff --git a/LayoutTests/imported/web-platform-tests/custom-elements/registering-custom-elements/extensions-to-document-interface/custom-element-prototype.html b/LayoutTests/imported/web-platform-tests/custom-elements/registering-custom-elements/extensions-to-document-interface/custom-element-prototype.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a4fea7465f32ddefa5eb2eb8e799509877f6514c
|
| --- /dev/null
|
| +++ b/LayoutTests/imported/web-platform-tests/custom-elements/registering-custom-elements/extensions-to-document-interface/custom-element-prototype.html
|
| @@ -0,0 +1,28 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<title>Test prototype object of a custom element</title>
|
| +<meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
|
| +<meta name="assert" content="If PROTOTYPE is null, let PROTOTYPE be the result of invoking Object.create with HTMLElement's interface prototype object as only argument">
|
| +<link rel="help" href="http://www.w3.org/TR/custom-elements/#extensions-to-document-interface-to-register">
|
| +<script src="../../../../../resources/testharness.js"></script>
|
| +<script src="../../../../../resources/testharnessreport.js"></script>
|
| +<script src="../../testcommon.js"></script>
|
| +<link rel="stylesheet" href="../../../../../resources/testharness.css">
|
| +</head>
|
| +<body>
|
| +<div id="log"></div>
|
| +<script>
|
| +test(function() {
|
| + var doc = newHTMLDocument();
|
| + var GeneratedConstructor = doc.registerElement('x-a');
|
| + var customElement = new GeneratedConstructor();
|
| +
|
| + assert_class_string(customElement, 'HTMLElement',
|
| + 'Custom element should be a HTMLElement, ' +
|
| + 'if its type is registered without prototype');
|
| +}, 'Custom element should have HTMLElement prototype, ' +
|
| + 'if its type is registered without prototype');
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|