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

Side by Side Diff: LayoutTests/fast/forms/radio/radio-group-name-case.html

Issue 149173007: Handling radio group name as case insensitive (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to latest master Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/forms/radio/radio-group-name-case-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="../../../resources/js-test.js"></script>
4
5 <form>
6 <input type=radio>
7 <input type=radio>
8 <input type=radio>
9 </form>
10
11 <script>
12 description("Case shouldn't matter when it comes to radio group names");
13
14 function checkAllRadioButtonsInOrder() {
15 for (var i = 0; i < form.elements.length; i++)
16 form.elements[i].checked = false;
17 for (var i = 0; i < form.elements.length; i++)
18 form.elements[i].checked = true;
19 }
20
21 function testCheckedCorrectness() {
22 var i;
23 for (i = 0; i < (form.elements.length - 1); i++) {
24 shouldBeFalse("form.elements[" + i + "].checked");
25 }
26 shouldBeTrue("form.elements[" + i + "].checked");
27 }
28
29 form = document.forms[0];
30
31 debug("Test 1");
32 evalAndLog("form.elements[0].name = 'r';");
33 evalAndLog("form.elements[1].name = 'r';");
34 evalAndLog("form.elements[2].name = 'R';");
35 checkAllRadioButtonsInOrder();
36 testCheckedCorrectness();
37
38 debug("\nTest 2");
39 evalAndLog("form.elements[0].name = 'radio';");
40 evalAndLog("form.elements[1].name = 'rAdIO';");
41 evalAndLog("form.elements[2].name = 'RADIO';");
42 checkAllRadioButtonsInOrder();
43 testCheckedCorrectness();
44
45 debug("\nTest 3 (LATIN SMALL LETTER N WITH TILDE / LATIN CAPITAL LETTER N WITH TILDE)");
46 evalAndLog("form.elements[0].name = '\\u00F1';");
47 evalAndLog("form.elements[1].name = '\\u00F1';");
48 evalAndLog("form.elements[2].name = '\\u00D1';");
49 checkAllRadioButtonsInOrder();
50 testCheckedCorrectness();
51
52 debug("\nTest 4 (LATIN SMALL LETTER SHARP S / SS)");
53 evalAndLog("form.elements[0].name = '\\u00DF';");
54 evalAndLog("form.elements[1].name = '\\u00DF';");
55 evalAndLog("form.elements[2].name = 'SS';")
56 checkAllRadioButtonsInOrder();
57 testCheckedCorrectness();
58
59 debug("\nTest 5 (DESERET SMALL LETTER LONG I / DESERET CAPITAL LETTER LONG I)") ;
60 evalAndLog("form.elements[0].name = '\\uD801\\uDC28';");
61 evalAndLog("form.elements[1].name = '\\uD801\\uDC28';");
62 evalAndLog("form.elements[2].name = '\\uD801\\uDC00';");
63 checkAllRadioButtonsInOrder();
64 testCheckedCorrectness();
65
66 debug("\nTest 6 (GREEK SMALL LETTER FINAL SIGMA / GREEK SMALL LETTER SIGMA / GR EEK CAPITAL LETTER SIGMA)");
67 evalAndLog("form.elements[0].name = '\\u03C2';");
68 evalAndLog("form.elements[1].name = '\\u03C3';");
69 evalAndLog("form.elements[2].name = '\\u03A3';");
70 checkAllRadioButtonsInOrder();
71 testCheckedCorrectness();
72
73 debug("\nTest 7 (LATIN CAPITAL LETTER I WITH DOT ABOVE)");
74 evalAndLog("form.elements[0].name = '\\u0130';");
75 evalAndLog("form.elements[1].name = '\\u0069';");
76 evalAndLog("form.elements[2].name = '\\u0130';");
77 checkAllRadioButtonsInOrder();
78 testCheckedCorrectness();
79
80 debug("\nTest 8 (LATIN SMALL LETTER DOTLESS I)");
81 evalAndLog("form.elements[0].name = '\\u0131';");
82 evalAndLog("form.elements[1].name = '\\u0049';");
83 evalAndLog("form.elements[2].name = '\\u0131';");
84 checkAllRadioButtonsInOrder();
85 testCheckedCorrectness();
86 </script>
87 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/radio/radio-group-name-case-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698