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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/color/color-type-change-on-input-crash.html

Issue 1523633002: Fix a crash when 'input' event handler for input[type=color] change the input type. (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>
2 <body>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 <div id="log"></div>
6 <script>
7 test(function() {
8 var input = document.createElement('input');
9 input.type = 'color';
10 input.oninput = function() {
11 this.type = 'text';
12 };
13 internals.selectColorInColorChooser(input, '#ff0000');
14 }, 'Changing the input type from "color" to another in "input" event handler sho uld not crash.');
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698