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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/select-max-length.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-max-length.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/select-max-length.html b/third_party/WebKit/LayoutTests/fast/forms/select-max-length.html
deleted file mode 100644
index b03c85fdcf163b1163df0d14726fade75d41c878..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/select-max-length.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<p>This test that setting HTMLSelectElement.length is capped to 2,147,483,647, and you can't add additional Option elements too.</p>
-<div id="console"></div>
-<select id="theSelect"></select>
-<script src="../../resources/js-test.js"></script>
-<script>
- var sel = document.getElementById('theSelect');
- shouldBe('sel.length', '0');
-
- debug('Trying: - sel.length = 2147483648;');
- sel.length = 2147483648;
- shouldBe('sel.length', '0');
-
- debug('Trying: - sel.add(new Option, 0);');
- sel.add(new Option, 0);
- shouldBe('sel.length', '1');
-
- debug('Trying: - sel.length = 0;');
- sel.length = 0;
- shouldBe('sel.length', '0');
-
- debug('Index setter:');
- shouldBe('sel[2147483648] = new Option(); sel.length', '0');
- shouldBe('sel.options[2147483648] = new Option(); sel.length', '0');
-</script>

Powered by Google App Engine
This is Rietveld 408576698