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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-form-element/form-elements-nameditem-01.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/semantics/forms/the-form-element/form-elements-nameditem-01.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-form-element/form-elements-nameditem-01.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-form-element/form-elements-nameditem-01.html
deleted file mode 100644
index eb742cb05ec7d7b074686cd191730fa864b319f4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-form-element/form-elements-nameditem-01.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<title>form.elements: namedItem</title>
-<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
-<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-form-elements">
-<script src="../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../resources/testharnessreport.js"></script>
-<div id="log"></div>
-<div id="test">
-<form id=form>
-<input name=b id=i1>
-<input name=b id=i2>
-</form>
-</div>
-<script>
-test(function() {
- assert_true("RadioNodeList" in window, "RadioNodeList should exist");
-}, "RadioNodeList should exist")
-test(function() {
- var nl = document.forms.form.elements["b"];
- assert_true(nl instanceof NodeList, "Should get a NodeList");
- if ("RadioNodeList" in window) {
- assert_true(nl instanceof RadioNodeList, "Should get a RadioNodeList");
- }
- assert_array_equals(nl,
- [document.getElementById("i1"),
- document.getElementById("i2")]);
-
- var el = nl[0];
- el.parentNode.removeChild(el);
- assert_true(nl instanceof NodeList, "Should get a NodeList");
- if ("RadioNodeList" in window) {
- assert_true(nl instanceof RadioNodeList, "Should get a RadioNodeList");
- }
- assert_array_equals(nl, [document.getElementById("i2")]);
- assert_equals(document.forms.form.elements["b"], document.getElementById("i2"));
-}, "elements collection should return elements or RadioNodeLists")
-test(function() {
- var fs = document.forms.form.appendChild(document.createElement("fieldset"));
- fs.name = "fs";
- assert_equals(document.forms.form.elements.fs, fs);
- fs.parentNode.removeChild(fs);
-}, "elements collection should include fieldsets")
-</script>

Powered by Google App Engine
This is Rietveld 408576698