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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/creating-and-passing-registries/share-registry-import-document.html

Issue 1962003002: Import web-platform-tests@41d6911b288a9624c249a406b9bf51607a2dd04d (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skip submit-entity-body.html 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/creating-and-passing-registries/share-registry-import-document.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/creating-and-passing-registries/share-registry-import-document.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/creating-and-passing-registries/share-registry-import-document.html
deleted file mode 100644
index fa2464a9caeb81ea45235a177a2f82ba95edee87..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/creating-and-passing-registries/share-registry-import-document.html
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title>When creating an import, use the registry of the master document</title>
-<meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
-<meta name="assert" content="When creating an import, use the registry of the master document.">
-<link rel="help" href="http://www.w3.org/TR/custom-elements/#creating-and-passing-registries">
-<script src="../../../../resources/testharness.js"></script>
-<script src="../../../../resources/testharnessreport.js"></script>
-<script src="../testcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-var test1 = async_test('Registry of the imported document should be shared with master document. ' +
- 'Import is asynchronous');
-test1.step(function() {
- var iframe = newIFrame('../resources/import-master-async.html');
- document.body.appendChild(iframe);
- iframe.onload = test1.step_func(function() {
- var doc = iframe.contentDocument;
- var link = doc.querySelector('link[rel=import]');
- link.onload = test1.step_func(function() {
- try {
- var doc2 = link.import;
- var name = 'x-frame';
- doc.registerElement(name);
- assert_throws(
- 'NotSupportedError',
- function() { doc2.registerElement(name); },
- 'Registering a custom element type name that is already registered in a shared ' +
- 'registry should throw an exception');
- test1.done();
- } finally {
- iframe.remove();
- }
- });
- });
-});
-
-
-var test2 = async_test('Registry of the master document should be shared with imported document. ' +
- 'Import is asynchronous');
-test2.step(function() {
- var iframe = newIFrame('../resources/import-master-async.html');
- document.body.appendChild(iframe);
- iframe.onload = test2.step_func(function() {
- var doc = iframe.contentDocument;
- var link = doc.querySelector('link[rel=import]');
- link.onload = test2.step_func(function() {
- try {
- var doc2 = link.import;
- var name = 'x-frame';
- doc2.registerElement(name);
- assert_throws(
- 'NotSupportedError',
- function() { doc.registerElement(name); },
- 'Registering a custom element type name that is already registered in a shared ' +
- 'registry should throw an exception');
- test2.done();
- } finally {
- iframe.remove();
- }
- });
- });
-});
-
-
-testInIFrame('../resources/import-master.html', function(doc) {
- var link = doc.querySelector('link[rel=import]');
- var doc2 = link.import;
- var name = 'x-frame';
- doc.registerElement(name);
- assert_throws(
- 'NotSupportedError',
- function() { doc2.registerElement(name); },
- 'Registering a custom element type name that is already registered in a shared ' +
- 'registry should throw an exception');
-}, 'Registry of the imported document should be shared with master document. Import is syncronous');
-
-
-testInIFrame('../resources/import-master.html', function(doc) {
- var link = doc.querySelector('link[rel=import]');
- var doc2 = link.import;
- var name = 'x-frame';
- doc2.registerElement(name);
- assert_throws(
- 'NotSupportedError',
- function() { doc.registerElement(name); },
- 'Registering a custom element type name that is already registered in a shared ' +
- 'registry should throw an exception');
-}, 'Registry of the master document should be shared with imported document. Import is syncronous');
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698