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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-02.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/html/dom/documents/dom-tree-accessors/nameditem-02.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-02.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-02.html
deleted file mode 100644
index 01ebf2f43395feeb4a830878c3bb1d78b84289d8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-02.html
+++ /dev/null
@@ -1,99 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>Named items: iframes</title>
-<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
-<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-nameditem">
-<script src="../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../resources/testharnessreport.js"></script>
-<div id="log"></div>
-<div id="test">
-<iframe name="test1"></iframe>
-
-<iframe name="test2"></iframe>
-<iframe name="test2"></iframe>
-
-<iframe name="test3"></iframe>
-<img name="test3">
-
-<img name="test4">
-<iframe name="test4"></iframe>
-
-<iframe id="test5"></iframe>
-
-<iframe name="test6" id="fail"></iframe>
-
-<iframe name="fail" id="test7"></iframe>
-
-<iframe name="42"></iframe>
-</div>
-<script>
-test(function() {
- var iframe = document.getElementsByTagName("iframe")[0];
- assert_equals(iframe.name, "test1");
-
- assert_true("test1" in document, '"test1" in document should be true');
- assert_equals(document.test1, iframe.contentWindow);
-}, "If the only named item is an iframe, the contentWindow should be returned.");
-
-test(function() {
- var iframe1 = document.getElementsByTagName("iframe")[1];
- assert_equals(iframe1.name, "test2");
- var iframe2 = document.getElementsByTagName("iframe")[2];
- assert_equals(iframe2.name, "test2");
-
- assert_true("test2" in document, '"test2" in document should be true');
- var collection = document.test2;
- assert_class_string(collection, "HTMLCollection", "collection should be an HTMLCollection");
- assert_array_equals(collection, [iframe1, iframe2]);
-}, "If there are two iframes, a collection should be returned.");
-
-test(function() {
- var iframe = document.getElementsByTagName("iframe")[3];
- assert_equals(iframe.name, "test3");
- var img = document.getElementsByTagName("img")[0];
- assert_equals(img.name, "test3");
-
- assert_true("test3" in document, '"test3" in document should be true');
- var collection = document.test3;
- assert_class_string(collection, "HTMLCollection", "collection should be an HTMLCollection");
- assert_array_equals(collection, [iframe, img]);
-}, "If there are an iframe and another element (iframe first), a collection should be returned.");
-
-test(function() {
- var iframe = document.getElementsByTagName("iframe")[4];
- assert_equals(iframe.name, "test4");
- var img = document.getElementsByTagName("img")[1];
- assert_equals(img.name, "test4");
-
- assert_true("test4" in document, '"test4" in document should be true');
- var collection = document.test4;
- assert_class_string(collection, "HTMLCollection", "collection should be an HTMLCollection");
- assert_array_equals(collection, [img, iframe]);
-}, "If there are an iframe and another element (iframe last), a collection should be returned.");
-
-test(function() {
- assert_false("test5" in document, '"test5" in document should be false');
- assert_equals(document.test5, undefined);
-}, "If an iframe has an id and no name, it should not be returned.");
-
-test(function() {
- var iframe = document.getElementsByTagName("iframe")[6];
- assert_equals(iframe.name, "test6");
-
- assert_true("test6" in document, '"test6" in document should be true');
- assert_equals(document.test6, iframe.contentWindow);
-}, "If an iframe has a name and a different id, it should be returned by its name.");
-
-test(function() {
- assert_false("test7" in document, '"test7" in document should be false');
- assert_equals(document.test7, undefined);
-}, "If an iframe has an id and a different name, it should not be returned by its id.");
-
-test(function() {
- var iframe = document.getElementsByTagName("iframe")[8];
- assert_equals(iframe.name, "42");
-
- assert_true(42 in document, '42 in document should be true');
- assert_equals(document[42], iframe.contentWindow);
-}, "An iframe whose name looks like an array index should work.");
-</script>

Powered by Google App Engine
This is Rietveld 408576698