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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/instantiating/prototype-is-interface-prototype-object.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/prototype-is-interface-prototype-object.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/instantiating/prototype-is-interface-prototype-object.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/instantiating/prototype-is-interface-prototype-object.html
deleted file mode 100644
index 77ab92a40e49ba2b914e83ab8d5019cbf1c5f16f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/v0/instantiating/prototype-is-interface-prototype-object.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title>If prototype is already an interface prototype object, Document.registerElement() throws a NotSupportedError</title>
-<meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
-<meta name="assert" content="If PROTOTYPE is already an interface prototype object for any interface object, throw a NotSupportedError and stop">
-<link rel="help" href="http://www.w3.org/TR/custom-elements/#instantiating-custom-elements">
-<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();
- HTML5_ELEMENTS.forEach(function(tagName) {
- var obj = doc.createElement(tagName);
- var name = 'x-a-' + tagName;
- assert_throws('NotSupportedError', function() {
- doc.registerElement(name, {prototype: obj.constructor.prototype});
- }, 'Exception should be thrown in case of attempt to register element ' +
- 'if prototype is already an interface prototype object (' + name + ')');
- });
-}, 'Test Document.registerElement() throws NotSupportedError ' +
- 'if prototype is already an interface prototype object');
-
-
-test(function() {
- var doc = newHTMLDocument();
- var proto = Object.create(HTMLElement.prototype);
- doc.registerElement('x-b', {
- prototype: proto
- });
- assert_throws('NotSupportedError', function() {
- doc.registerElement('x-b', {
- prototype: proto
- });
- }, 'Exception should be thrown if registring custom element type with already used prototype');
-}, 'Test Document.registerElement() throws NotSupportedError ' +
- 'if prototype is already used for another custom element type');
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698