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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/select-set-length-optgroup.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-set-length-optgroup.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/select-set-length-optgroup.html b/third_party/WebKit/LayoutTests/fast/forms/select-set-length-optgroup.html
deleted file mode 100644
index 93636c0e519e0d1df28ed91bc7441ac1decfd064..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/select-set-length-optgroup.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<script>
-description('This test that setting HTMLSelectElement.length respects optgroups.');
-
-var wrapper = document.createElement('div');
-document.body.appendChild(wrapper);
-wrapper.innerHTML = '<select id="theSelect">'+
- '<optgroup label="foo" id="theOptGroup">'+
- '<option id="optionInGroup"></option>'+
- '</optgroup>'+
- '</select>';
-
-var sel = document.getElementById('theSelect');
-shouldBe('sel.length', '1');
-
-var og = document.getElementById('theOptGroup');
-
-sel.length = 2;
-shouldBe('sel.length', '2');
-shouldBe('og.childElementCount', '1');
-
-sel.length = 1;
-shouldBe('sel.length', '1');
-shouldBe('og.childElementCount', '1');
-
-sel.insertBefore(document.createElement('option'), og);
-
-sel.length = 1;
-shouldBe('sel.length', '1');
-shouldBe('og.childElementCount', '0');
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698