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

Side by Side Diff: LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved.html

Issue 191293011: Value set in onblur should not keep element in focus (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review updates Created 6 years, 8 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/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved-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
(Empty)
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 <style>
5 input:focus {
6 background: blue;
7 }
8 </style>
9 <body>
10 <input id="test" type="date">
11 <a></a>
12 <script>
13 description('Setting value onBlur, should not keep element in focus.');
14 var testInput = document.getElementById('test');
15 testInput.addEventListener('blur', function() {
16 testInput.value = '';
17 });
18
19 testInput.value = '2012-02-01';
20 testInput.focus();
21 var style = window.getComputedStyle(testInput);
22 shouldBeEqualToString('style.getPropertyValue("background-color")', 'rgb(0, 0, 2 55)');
23 testInput.blur();
24 style = window.getComputedStyle(testInput);
25 shouldBeEqualToString('style.getPropertyValue("background-color")', 'rgb(255, 25 5, 255)');
26 </script>
27 </body>
28 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-onblur-setvalue-onfocusremoved-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698