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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-change-event-free.html

Issue 1381373002: Merge 3 CLs required to fix bug 536917: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2490
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-change-event-free-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-change-event-free.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-change-event-free.html b/third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-change-event-free.html
new file mode 100644
index 0000000000000000000000000000000000000000..d54801aa76e82a412e648133074a20288b2a5d88
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-change-event-free.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<body>
+<script src="../../../resources/js-test.js"></script>
+<label><input type=checkbox></label>
+<script>
+var label = document.querySelector('label');
+var checkbox = document.querySelector('input');
+checkbox.addEventListener('change', function() {
+ this.removeAttribute('type');
+});
+label.click();
+testPassed("No crash after changing type on change event.");
+</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-change-event-free-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698