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

Unified Diff: LayoutTests/fast/forms/ValidityState-valueMissing-001.html

Issue 943303002: Simplify form validation handling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add a test Created 5 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/ValidityState-valueMissing-001-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/ValidityState-valueMissing-001.html
diff --git a/LayoutTests/fast/forms/ValidityState-valueMissing-001.html b/LayoutTests/fast/forms/ValidityState-valueMissing-001.html
index 6eedaa345446925863a00bac75abb6e4d33a695a..a372347e1fe3c996abeec08845045e0f3256ad86 100644
--- a/LayoutTests/fast/forms/ValidityState-valueMissing-001.html
+++ b/LayoutTests/fast/forms/ValidityState-valueMissing-001.html
@@ -61,6 +61,10 @@
<option value="" disabled selected />
<option value="X">X</option>
</select>
+<select id="select-disabled-option-2" name="victim" required>
+ <option value="" disabled />
+ <option value="X">X</option>
+</select>
<script language="JavaScript" type="text/javascript">
function valueMissingFor(id) {
return document.getElementById(id).validity.valueMissing;
@@ -85,6 +89,8 @@
shouldBeFalse('valueMissingFor("select-without-fake-placeholder-size2-multiple")');
shouldBeFalse('valueMissingFor("select-optgroup")');
shouldBeTrue('valueMissingFor("select-disabled-option")');
+ shouldBeFalse('valueMissingFor("select-disabled-option-2")');
+ shouldBe('document.getElementById("select-disabled-option-2").selectedIndex', '1');
</script>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/ValidityState-valueMissing-001-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698