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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/instantiating/extensions-to-document-interface/created-callback-create-element-ns.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/instantiating/extensions-to-document-interface/created-callback-create-element-ns.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/instantiating/extensions-to-document-interface/created-callback-create-element-ns.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/instantiating/extensions-to-document-interface/created-callback-create-element-ns.html
deleted file mode 100644
index 8e44e1f3a1cce6baf7e61a318748cb3fa7a3a495..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/instantiating/extensions-to-document-interface/created-callback-create-element-ns.html
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title>Document.createElementNS() must enqueue created callback for registered custom element type</title>
-<meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
-<meta name="assert" content="Document.createElementNS() must enqueue created callback for registered custom element type">
-<link rel="help" href="http://www.w3.org/TR/custom-elements/#extensions-to-document-interface-to-instantiate">
-<link rel="help" href="http://www.w3.org/TR/custom-elements/#types-of-callbacks">
-<script src="../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../resources/testharnessreport.js"></script>
-<script src="../../testcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-test(function() {
- var doc = newHTMLDocument();
- var proto = newHTMLElementPrototype();
- var name = 'x-a';
-
- doc.registerElement(name, {prototype: proto});
- var customElement = doc.createElementNS(HTML_NAMESPACE, name);
- assert_equals(proto.createdCallbackCalledCounter, 1,
- 'Callback created should be enqueued by Document.createElementNS()');
-}, 'Test Document.createElementNS() without typeExtension argument enqueues created callback');
-
-
-test(function() {
- var doc = newHTMLDocument();
- var proto = newHTMLElementPrototype();
- var name = 'x-b';
-
- doc.registerElement(name, {prototype: proto});
- var customElement = doc.createElementNS(HTML_NAMESPACE, name, name);
- assert_equals(proto.createdCallbackCalledCounter, 1,
- 'Callback created should be enqueued by Document.createElementNS()');
-}, 'Test Document.createElementNS() with typeExtension argument enqueues created callback');
-
-
-test(function() {
- var doc = newHTMLDocument();
- var proto = newHTMLElementPrototype();
- var name = 'x-c';
- var customElement = doc.createElementNS(HTML_NAMESPACE, name);
- assert_equals(proto.createdCallbackCalledCounter, 0,
- 'Document.createElementNS() should not enqueue created callback ' +
- 'for unresolved custom element');
-
- doc.registerElement(name, {prototype: proto});
- assert_equals(proto.createdCallbackCalledCounter, 1,
- 'Callback created should be called after custom element is registered');
-}, 'Document.createElementNS() should not enqueue created callback ' +
- 'for unresolved custom element');
-
-
-test(function() {
- var doc = newHTMLDocument();
- HTML5_ELEMENTS.forEach(function(tagName) {
- var obj = doc.createElement(tagName);
- var name = 'x-d-' + tagName;
- var proto = newCustomElementPrototype(Object.create(obj.constructor.prototype));
- doc.registerElement(name, {prototype: proto, extends: tagName});
- var customElement = doc.createElementNS(HTML_NAMESPACE, tagName, name);
-
- assert_equals(proto.createdCallbackCalledCounter, 1,
- 'Callback created should be enqueued by Document.createElementNS()');
- });
-}, 'Test Document.createElementNS() enqueues created callback for custom elements ' +
- 'that are extensions of HTML5 elements');
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698