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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/add-and-remove-option.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 for <a href="https://bugs.webkit.org/show_bug.cgi?id=13287">bug 13287</a >: 1 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=13287">bug 13287</a >:
2 Cannot change SELECT to a dynamically created option.</p> 2 Cannot change SELECT to a dynamically created option.</p>
3 <p>Test that DOM is updated before DOMNodeInserted is dispatched.</p> 3 <p>Test that DOM is updated before DOMNodeInserted is dispatched.</p>
4 <form> 4 <form>
5 <select ><option selected>1</option><option >2</option></select> 5 <select ><option selected>1</option><option >2</option></select>
6 <select multiple><option selected>1</option><option >2</option></select> 6 <select multiple><option selected>1</option><option >2</option></select>
7 <select size=5><option selected>1</option><option selected>2</option></select> 7 <select size=5><option selected>1</option><option selected>2</option></select>
8 </form> 8 </form>
9 <div id=res></div> 9 <div id=res></div>
10 <script> 10 <script>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 theSelect = document.forms[0].elements[2]; 63 theSelect = document.forms[0].elements[2];
64 theSelect.addEventListener("DOMNodeInserted", nodeInserted, true); 64 theSelect.addEventListener("DOMNodeInserted", nodeInserted, true);
65 theSelect.insertBefore(new Option("3", "3", false, true), theSelect.firs tChild); 65 theSelect.insertBefore(new Option("3", "3", false, true), theSelect.firs tChild);
66 testResults([false, false], theSelect); 66 testResults([false, false], theSelect);
67 67
68 } catch (ex) { 68 } catch (ex) {
69 alert(ex); 69 alert(ex);
70 } 70 }
71 </script> 71 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698