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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/select-cache-desynchronization.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 unified diff | Download patch
OLDNEW
1 <body><form> 1 <body><form>
2 <select multiple size=5 onchange="change()"><option>1</option><option>2</option> </select> 2 <select multiple size=5 onchange="change()"><option>1</option><option>2</option> </select>
3 </form> 3 </form>
4 <div id=res></div> 4 <div id=res></div>
5 <script> 5 <script>
6 6
7 var select = document.forms[0].elements[0]; 7 var select = document.forms[0].elements[0];
8 var res = document.getElementById("res"); 8 var res = document.getElementById("res");
9 select.focus(); 9 select.focus();
10 if (window.testRunner) { 10 if (window.testRunner) {
11 testRunner.dumpAsText(); 11 testRunner.dumpAsText();
12 eventSender.keyDown("downArrow", []); 12 eventSender.keyDown("downArrow", []);
13 eventSender.keyDown("downArrow", ["shiftKey"]); 13 eventSender.keyDown("downArrow", ["shiftKey"]);
14 } else { 14 } else {
15 res.textContent = "Press down arrow."; 15 res.textContent = "Press down arrow.";
16 } 16 }
17 17
18 function change() { 18 function change() {
19 if (select.firstChild.selected && !select.firstChild.nextSibling.selected) { 19 if (select.firstChild.selected && !select.firstChild.nextSibling.selected) {
20 select.appendChild(new Option("3", "3", false, false)); 20 select.appendChild(new Option("3", "3", false, false));
21 res.textContent = "Press shift + down arrow."; 21 res.textContent = "Press shift + down arrow.";
22 } else if (select.firstChild.selected && select.firstChild.nextSibling.selec ted && !select.lastChild.selected) 22 } else if (select.firstChild.selected && select.firstChild.nextSibling.selec ted && !select.lastChild.selected)
23 res.textContent = "Success."; 23 res.textContent = "Success.";
24 else 24 else
25 res.textContent = "Failed."; 25 res.textContent = "Failed.";
26 } 26 }
27 </script> 27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698