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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/menulist-submit-without-selection.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
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10 description('A unselected option was submitted as fallback. This behavior was re moved by the change of webkit.org/b/35056.');
11
12 var parent = document.createElement('div');
13 document.body.appendChild(parent);
14 parent.innerHTML = '<form action="">'
15 + '<input type=hidden name="submitted" value="true">'
16 + '<select name="select">'
17 + '<option disabled>Disabled</option>'
18 + '</select>'
19 + '</form>';
20
21 if (window.testRunner)
22 testRunner.waitUntilDone();
23 var query = window.location.search;
24 if (query.indexOf('submitted=true') == -1) {
25 var select = document.getElementsByTagName('select')[0];
26 select.selectedIndex = 0;
27 document.forms[0].submit();
28 } else {
29 shouldBe('query.indexOf("select=Disabled")', '-1');
30 if (window.testRunner)
31 testRunner.notifyDone();
32 }
33 </script>
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698