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

Side by Side Diff: LayoutTests/fast/forms/listbox-clear-restore-expected.html

Issue 14096013: Implement select element list box with shadow DOM. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@shadowselect
Patch Set: Created 7 years, 8 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
OLDNEW
1 <!DOCTYPE> 1 <!DOCTYPE>
2 <html> 2 <html>
3 <body onload="test()"> 3 <body onload="test()">
4 <select id="myList" size="10" multiple></select> 4 <select id="myList" size="10" multiple></select>
5 <script> 5 <script>
6 function populateList() 6 function populateList()
7 { 7 {
8 var myList = document.getElementById("myList"); 8 var myList = document.getElementById("myList");
9 var item; 9 var item;
10 10
11 for (var ii = 0; ii < 20; ii++) { 11 for (var ii = 0; ii < 20; ii++) {
12 item = document.createElement("option"); 12 item = document.createElement("option");
13 item.value = ii; 13 item.value = ii;
14 item.appendChild(document.createTextNode("Item #" + ii)); 14 item.appendChild(document.createTextNode("Item #" + ii));
15 myList.appendChild(item); 15 myList.appendChild(item);
16 } 16 }
17 item.selected = true;
18 item.selected = false;
17 } 19 }
18 20
19 function test() 21 function test()
20 { 22 {
21 populateList(); 23 populateList();
22 } 24 }
23 </script> 25 </script>
24 </body> 26 </body>
25 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698