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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/number/number-validity-badinput.html
===================================================================
--- LayoutTests/fast/forms/number/number-validity-badinput.html (revision 139719)
+++ LayoutTests/fast/forms/number/number-validity-badinput.html (working copy)
@@ -59,6 +59,11 @@
debug("The element losts a renderer. The element state should not be changed.");
shouldBeTrue('number.style.display = "none"; number.validity.badInput');
+number.style.display = 'inline-block';
+number.focus();
+debug('A bad input should be cleared by value="".');
+shouldBeEqualToString('number.value = ""; document.execCommand("SelectAll"); document.getSelection().toString()', '');
+
document.getElementById('parent').innerHTML = '';
</script>
<script src="../../../fast/js/resources/js-test-post.js"></script>
« 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