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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/option-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 Crash() { 4 function Crash() {
5 var x = new Option('t','v'); 5 var x = new Option('t','v');
6 document.getElementById('result').innerHTML = "Test Passed. <BR/> Index for option element with no corresponding select is: " + x.index; 6 document.getElementById('result').innerHTML = "Test Passed. <BR/> Index for option element with no corresponding select is: " + x.index;
7 } 7 }
8 </script> 8 </script>
9 </head> 9 </head>
10 <body onload="Crash()"> 10 <body onload="Crash()">
11 This test makes sure we don't crash when trying to get the index of an option el ement that has no corresponding select element. 11 This test makes sure we don't crash when trying to get the index of an option el ement that has no corresponding select element.
12 <div id="result">Test Failed</div> 12 <div id="result">Test Failed</div>
13 </body> 13 </body>
14 </html> 14 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698