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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLFormElement/script-tests/elements-not-in-document.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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/fast/dom/HTMLFormElement/script-tests/elements-not-in-document.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLFormElement/script-tests/elements-not-in-document.js b/third_party/WebKit/LayoutTests/fast/dom/HTMLFormElement/script-tests/elements-not-in-document.js
deleted file mode 100644
index 9792fff3c178ab5eaeebbee0bba2263cc9beeba5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLFormElement/script-tests/elements-not-in-document.js
+++ /dev/null
@@ -1,35 +0,0 @@
-description('Test the elements collection when the form is not a descendant of the document. This test case failed in an early version of Acid3.');
-
-var f = document.createElement('form');
-var i = document.createElement('input');
-i.name = 'first';
-i.type = 'text';
-i.value = 'test';
-f.appendChild(i);
-
-shouldBe("i.getAttribute('name')", "'first'");
-shouldBe("i.name", "'first'");
-shouldBe("i.getAttribute('type')", "'text'");
-shouldBe("i.type", "'text'");
-shouldBe("i.value", "'test'");
-shouldBe("f.elements.length", "1");
-shouldBe("f.elements[0]", "i");
-shouldBe("f.elements.first", "i");
-
-f.elements.second;
-i.name = 'second';
-i.type = 'password';
-i.value = 'TEST';
-
-// This has to be the first expression tested, because reporting the result will fix the bug.
-shouldBe("f.elements.second", "i");
-
-shouldBe("i.getAttribute('name')", "'second'");
-shouldBe("i.name", "'second'");
-shouldBe("i.getAttribute('type')", "'password'");
-shouldBe("i.type", "'password'");
-shouldBe("i.value", "'TEST'");
-shouldBe("f.elements.length", "1");
-shouldBe("f.elements[0]", "i");
-shouldBe("f.elements.first", "undefined");
-shouldBe("f.elements.second", "i");

Powered by Google App Engine
This is Rietveld 408576698