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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/select-clientheight-with-multiple-attr.html

Issue 1509853008: Move select/option/optgroup-related tests in fast/forms to fast/forms/select. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/forms/select-clientheight-with-multiple-attr.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/select-clientheight-with-multiple-attr.html b/third_party/WebKit/LayoutTests/fast/forms/select-clientheight-with-multiple-attr.html
deleted file mode 100644
index 6b432e235085fa84a81df4298ff482e4df47e228..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/select-clientheight-with-multiple-attr.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<p>HTMLSelectElement multiple attribute test when no size is specified</p>
-<div id="console"></div>
-
-<select multiple id="sel1" >
- <option value="1">One</option>
-</select>
-
-<select multiple id="sel2" >
- <option value="1">One</option>
- <option value="2">Two</option>
- <option value="3">Three</option>
- <option value="4">Four</option>
- <option value="5">Five</option>
- <option value="6">Six</option>
- <option value="7">Seven</option>
- <option value="8">Eight</option>
- <option value="9">Nine</option>
- <option value="10">Ten</option>
- <option value="11">Eleven</option>
- <option value="12">Twelve</option>
- <option value="13">Thirteen</option>
- <option value="14">Fourteen</option>
-</select>
-
-<select multiple id="sel3" >
- <option value="1">One</option>
- <option value="2">Two</option>
- <option value="3">Three</option>
-</select>
-
-<script>
-
- function getElemById(elemId) {
- return document.getElementById(elemId);
- }
-
- function clientHeight(elemId) {
- var element = getElemById(elemId);
- return element.clientHeight;
- }
-
- shouldBe("clientHeight('sel2')", "clientHeight('sel1')");
- shouldBeTrue("getElemById('sel2').setAttribute('size', '5'); clientHeight('sel2') > clientHeight('sel1')");
- shouldBe("clientHeight('sel3')", "clientHeight('sel1')");
- shouldBeTrue("getElemById('sel3').setAttribute('size', '2'); clientHeight('sel3') < clientHeight('sel1')");
- shouldBe("getElemById('sel3').setAttribute('size', '0'); clientHeight('sel3')", "clientHeight('sel1')");
- shouldBe("getElemById('sel3').setAttribute('size', ''); clientHeight('sel3')", "clientHeight('sel1')");
- // '1+ef' is recognized as 1. This is compatible with IE and Firefox.
- shouldBeTrue("getElemById('sel3').setAttribute('size', '1+ef'); clientHeight('sel3') < clientHeight('sel1')");
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698