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

Side by Side Diff: LayoutTests/fast/forms/checkbox-onchange.html

Issue 255163002: Dispatch change event for input type=checkbox when checked but value is null (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moved shouldDispatchFormControlChangeEvent as private/protected function and moved shouldDispatch t… Created 6 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/checkbox-onchange-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <input type="checkbox" id="ch" onchange="handleChange()"> 7 <input type="checkbox" id="ch" onchange="handleChange()">
8 <input type="checkbox" id="ch1" value="" onchange="handleChange()">
8 <script> 9 <script>
9 description("This is to test onchange of checkboxes"); 10 description("This is to test onchange of checkboxes");
10 11
11 function handleChange() { 12 function handleChange() {
12 testPassed('onChange event fired for the checkbox.'); 13 testPassed('onChange event fired for the checkbox.');
13 } 14 }
14 15
15 document.getElementById('ch').click(); 16 document.getElementById('ch').click();
17 document.getElementById('ch1').click();
16 </script> 18 </script>
17 </body> 19 </body>
18 </html> 20 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/checkbox-onchange-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698