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

Side by Side Diff: webkit/data/layout_tests/chrome/fast/dom/dom-add-optionelement.html

Issue 55025: Remove tests that have been upstreamed. Update test_expectations list... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <body >
3 Purpose: To test if the add() method adds an option to a dropdown list. Bug# 806 258.
4 <br>
5 <form name="my_form">
6 <select name="my_select">
7 <option value="a">a</option>
8 </select>
9 </form>
10
11 <script>
12 if (window.layoutTestController)
13 layoutTestController.dumpAsText();
14
15 document.my_form.my_select.add(new Option("b", "b"),null);
16 if (document.my_form.my_select.options[1].value == 'b')
17 {
18 document.write("TEST PASSED");
19 }
20 else{
21 document.write("TEST FAILED");
22 }
23 </script>
24
25 </body>
26 </html>
27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698