Index: LayoutTests/fast/forms/number/number-skip-spaces-in-user-input.html |
diff --git a/LayoutTests/fast/forms/number/number-skip-spaces-in-user-input.html b/LayoutTests/fast/forms/number/number-skip-spaces-in-user-input.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..232f0b6d2fd4cbffe441072e847ce34a139e7c91 |
--- /dev/null |
+++ b/LayoutTests/fast/forms/number/number-skip-spaces-in-user-input.html |
@@ -0,0 +1,22 @@ |
+<html> |
+<body> |
+<script src="../../../resources/js-test.js"></script> |
+<input type="number" id="input"></input> |
+<script> |
+description('should skip spaces from user input number'); |
+var input = document.getElementById('input'); |
+input.onblur = function() |
+{ |
+ shouldBe('input.valueAsNumber', '123456'); |
+ shouldBeEqualToString('input.value', '123456'); |
+} |
+window.onload = function() |
+{ |
+ input.focus(); |
+ document.execCommand('InsertText', false, ' 123 456 ') |
+ input.blur(); |
+} |
+</script> |
+</body> |
+</html> |
+ |