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

Unified Diff: LayoutTests/fast/forms/number/number-large-padding.html

Issue 230193002: Spin button in input[type=number] should not ignore paddings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/forms/number/number-large-padding-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-large-padding.html
diff --git a/LayoutTests/fast/forms/number/number-large-padding.html b/LayoutTests/fast/forms/number/number-large-padding.html
deleted file mode 100644
index 671fdd766de362f4cc7d042f91dffa25c2f91099..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/forms/number/number-large-padding.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<input type=number id=number value=0 style="padding-right: 30px;">
-<script>
-description('Test for a bug that spin buttons did not work if a number input has large padding-right value.');
-
-var numberInput = document.getElementById('number');
-numberInput.focus();
-if (window.eventSender) {
- // Reset mouse position
- eventSender.mouseMoveTo(0, 0);
-
- // Move the cursor on the upper button.
- eventSender.mouseMoveTo(numberInput.offsetLeft + numberInput.offsetWidth - 10, numberInput.offsetTop + numberInput.offsetHeight / 4);
- eventSender.mouseDown();
- eventSender.mouseUp();
- shouldBe('numberInput.value', '"1"');
-} else {
- document.getElementById('console').innerHTML = 'No eventSender. Please click the up or down arrow button and check if the value increases or decreses.';
-}
-</script>
-</body>
-</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/forms/number/number-large-padding-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698