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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/select-out-of-bounds-index.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 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 function test() { 4 function test() {
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 var sl = document.getElementById('sl'); 7 var sl = document.getElementById('sl');
8 sl.selectedIndex = 1; 8 sl.selectedIndex = 1;
9 sl.selectedIndex = 2; 9 sl.selectedIndex = 2;
10 sl.selectedIndex = 0; 10 sl.selectedIndex = 0;
11 sl.selectedIndex = -1; 11 sl.selectedIndex = -1;
12 sl.selectedIndex = 0; 12 sl.selectedIndex = 0;
13 sl.selectedIndex = 5; 13 sl.selectedIndex = 5;
14 } 14 }
15 </script> 15 </script>
16 </head> 16 </head>
17 <body onload="test()"> 17 <body onload="test()">
18 This tests that we don't crash when setting the selectedIndex out of bou nds<br> 18 This tests that we don't crash when setting the selectedIndex out of bou nds<br>
19 <select id="sl"> 19 <select id="sl">
20 <optgroup label="group"> 20 <optgroup label="group">
21 <option id="op1">1 21 <option id="op1">1
22 <option id="op2">2 22 <option id="op2">2
23 </optgroup> 23 </optgroup>
24 </select> 24 </select>
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698