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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/created-callback-element-prototype-test.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/custom-element-lifecycle/types-of-callbacks/created-callback-element-prototype-test.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/created-callback-element-prototype-test.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/created-callback-element-prototype-test.html
deleted file mode 100644
index d9ff05ec324002be72569bda2d6b0e157927f856..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/created-callback-element-prototype-test.html
+++ /dev/null
@@ -1,87 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title>The custom element prototype must be set just prior to invoking created callback</title>
-<meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
-<meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
-<meta name="assert" content="The custom element prototype must be set just prior to invoking callback.">
-<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();
-
- doc.body.innerHTML = '<x-a></x-a>';
- doc.registerElement('x-a', {prototype: proto});
- assert_equals(proto.createdCallbackThis.constructor.prototype, proto,
- 'The custom element prototype is incorrect inside created callback');
-}, 'Test custom element prototype inside created callback when custom element is created ' +
- 'in HTML before registration of a custom element');
-
-
-test(function() {
- var doc = newHTMLDocument();
- var proto = newHTMLElementPrototype();
-
- doc.registerElement('x-b', {prototype: proto});
- doc.body.innerHTML = '<x-b></x-b>';
- assert_equals(proto.createdCallbackThis.constructor.prototype, proto,
- 'The custom element prototype is incorrect inside created callback');
-}, 'Test custom element prototype inside created callback when custom element is created ' +
- 'in HTML after registration of a custom element');
-
-
-test(function() {
- var doc = newHTMLDocument();
- var proto = newHTMLElementPrototype();
- var customElement = doc.createElement('x-c');
-
- doc.body.appendChild(customElement);
- doc.registerElement('x-c', {prototype: proto});
- assert_equals(proto.createdCallbackThis.constructor.prototype, proto,
- 'The custom element prototype is incorrect inside created callback');
-}, 'Test custom element prototype inside created callback when custom element is created ' +
- 'via document.createElement() before registration of a custom element');
-
-
-test(function() {
- var doc = newHTMLDocument();
- var proto = newHTMLElementPrototype();
- doc.registerElement('x-d', {prototype: proto});
-
- var customElement = doc.createElement('x-d');
- doc.body.appendChild(customElement);
- assert_equals(proto.createdCallbackThis.constructor.prototype, proto,
- 'The custom element prototype is incorrect inside created callback');
-}, 'Test custom element prototype inside created callback when custom element is created ' +
- 'via document.createElement() after registration of a custom element');
-
-
-test(function() {
- var doc = newHTMLDocument();
- var proto = newHTMLElementPrototype();
- var GeneratedConstructor = doc.registerElement('x-e', {prototype: proto});
- var customElement = new GeneratedConstructor();
-
- assert_equals(proto.createdCallbackThis.constructor.prototype, proto,
- 'The custom element prototype is incorrect inside created callback');
-}, 'Test custom element prototype inside created callback when custom element is created ' +
- 'via constructor returned by method registerElement');
-
-
-testInIFrame('../../resources/x-element.html', function(doc) {
- var proto = newHTMLElementPrototype();
- doc.registerElement('x-element', {prototype: proto});
- assert_equals(proto.createdCallbackThis.constructor.prototype, proto,
- 'The custom element prototype is incorrect inside created callback');
-}, 'Test custom element prototype inside created callback when custom element is created ' +
- 'by UA parser before registration of a custom element');
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698