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

Side by Side Diff: LayoutTests/fast/forms/number/number-validity-badinput.html

Issue 11884049: Merge 139151 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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/number/number-validity-badinput-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="../../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 <style> 5 <style>
6 :invalid { 6 :invalid {
7 background-color: #ff0000; 7 background-color: #ff0000;
8 } 8 }
9 </style> 9 </style>
10 </head> 10 </head>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 shouldBeTrue('number.validity.badInput'); 52 shouldBeTrue('number.validity.badInput');
53 // Visible value is '-1a'. 53 // Visible value is '-1a'.
54 number.focus(); 54 number.focus();
55 document.execCommand('SelectAll'); 55 document.execCommand('SelectAll');
56 shouldBeEqualToString('document.getSelection().toString()', '-1a'); 56 shouldBeEqualToString('document.getSelection().toString()', '-1a');
57 shouldBeEqualToString('number.value', ''); 57 shouldBeEqualToString('number.value', '');
58 58
59 debug("The element losts a renderer. The element state should not be changed."); 59 debug("The element losts a renderer. The element state should not be changed.");
60 shouldBeTrue('number.style.display = "none"; number.validity.badInput'); 60 shouldBeTrue('number.style.display = "none"; number.validity.badInput');
61 61
62 number.style.display = 'inline-block';
63 number.focus();
64 debug('A bad input should be cleared by value="".');
65 shouldBeEqualToString('number.value = ""; document.execCommand("SelectAll"); doc ument.getSelection().toString()', '');
66
62 document.getElementById('parent').innerHTML = ''; 67 document.getElementById('parent').innerHTML = '';
63 </script> 68 </script>
64 <script src="../../../fast/js/resources/js-test-post.js"></script> 69 <script src="../../../fast/js/resources/js-test-post.js"></script>
65 </body> 70 </body>
66 </html> 71 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/number/number-validity-badinput-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698