Index: LayoutTests/http/tests/custom-elements/no-registry-test.html |
diff --git a/LayoutTests/imported/web-platform-tests/custom-elements/creating-and-passing-registries/no-registry-test.html b/LayoutTests/http/tests/custom-elements/no-registry-test.html |
similarity index 58% |
copy from LayoutTests/imported/web-platform-tests/custom-elements/creating-and-passing-registries/no-registry-test.html |
copy to LayoutTests/http/tests/custom-elements/no-registry-test.html |
index 3cd931af183e8fca00d7d61079e385b67b73f61d..4f1ca3080d9f75e74c3bd8a1c9aac89fa9d2de42 100644 |
--- a/LayoutTests/imported/web-platform-tests/custom-elements/creating-and-passing-registries/no-registry-test.html |
+++ b/LayoutTests/http/tests/custom-elements/no-registry-test.html |
@@ -1,18 +1,6 @@ |
<!DOCTYPE html> |
-<html> |
-<head> |
-<title>New document without browsing context must not have a registry</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="In all other cases, new documents must not have a registry."> |
-<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> |
-<link rel="stylesheet" href="../../../../resources/testharness.css"> |
-</head> |
-<body> |
-<div id="log"></div> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
<script> |
test(function() { |
var doc = document.implementation.createDocument(null, 'test', null); |
@@ -26,8 +14,8 @@ test(function() { |
async_test(function(t) { |
var request = new XMLHttpRequest(); |
request.onreadystatechange = t.step_func(function() { |
- if (request.readyState == 4){ |
- assert_equals(200, request.status, 'Test document is not loaded correctly'); |
+ if (request.readyState == 4) { |
+ assert_equals(request.status, 200, 'Test document is not loaded correctly'); |
var doc = request.response; |
assert_true(doc instanceof HTMLDocument, |
'XMLHttpRequest\'s asynchronous response should be HTML document'); |
@@ -40,7 +28,7 @@ async_test(function(t) { |
} |
}); |
- request.open('GET', '../resources/blank.html', true); |
+ request.open('GET', 'resources/blank.html', true); |
request.responseType = 'document'; |
request.send(); |
}, 'XMLHttpRequest\'s asynchronous response HTML document must not have a registry'); |