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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/add-remove-option-modification-event.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 <p>Test that SELECT is in correct state when handling a DOM modification event f or option removing.</p> 1 <p>Test that SELECT is in correct state when handling a DOM modification event f or option removing.</p>
2 <form> 2 <form>
3 <select ><option selected>1</option><option>2</option></select> 3 <select ><option selected>1</option><option>2</option></select>
4 <select multiple><option selected>1</option><option selected>2</option></select> 4 <select multiple><option selected>1</option><option selected>2</option></select>
5 <select multiple></select> 5 <select multiple></select>
6 </form> 6 </form>
7 <div id=res></div> 7 <div id=res></div>
8 <script> 8 <script>
9 if (window.testRunner) 9 if (window.testRunner)
10 testRunner.dumpAsText(); 10 testRunner.dumpAsText();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 theSelect.remove(theSelect.options[0]); 58 theSelect.remove(theSelect.options[0]);
59 59
60 theSelect = document.forms[0].elements[2]; 60 theSelect = document.forms[0].elements[2];
61 theSelect.addEventListener("DOMNodeInserted", nodeInserted, true); 61 theSelect.addEventListener("DOMNodeInserted", nodeInserted, true);
62 theSelect.options.add(new Option("2", "2", false, false), 0); 62 theSelect.options.add(new Option("2", "2", false, false), 0);
63 63
64 } catch (ex) { 64 } catch (ex) {
65 alert(ex); 65 alert(ex);
66 } 66 }
67 </script> 67 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698