chromium/third_party/blink/web_tests/fast/forms/input-maxlength-unsupported.html

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description('A test for maxlength attribute of an input element with non-text type');

var input = document.createElement('input');
input.maxLength = 2;
input.type = 'number';
document.body.appendChild(input);
input.focus();
document.execCommand('insertText', false, '1234');
shouldBe('input.value', '"1234"');

input.parentNode.removeChild(input);
</script>
</body>
</html>