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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/text/input-maxlength.html

Issue 1867243002: Remove fast/forms/text/input-maxlength.html. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | third_party/WebKit/LayoutTests/fast/forms/text/input-maxlength-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/text/input-maxlength.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/text/input-maxlength.html b/third_party/WebKit/LayoutTests/fast/forms/text/input-maxlength.html
deleted file mode 100644
index 98038ab6bb98b8b91a2d9a797de6465851525457..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/text/input-maxlength.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<p>This page tests that the <tt>maxlength</tt> attribute of the <tt>&lt;input&gt;</tt> element works correctly. <a href="http://bugs.webkit.org/show_bug.cgi?id=14388">http://bugs.webkit.org/show_bug.cgi?id=14388</a></p>
-<div id="console"></div>
-
-<input id="input">
-
-<script>
- var implicitMaxLength = 524288;
- var testString = "";
- var input = document.getElementById("input");
-
- function attempt(length, expected)
- {
- debug("Attempting to insert " + length + " characters with maxLength = " + input.getAttribute("maxlength") + ".");
-
- if (testString.length > length)
- testString = "";
-
- for (var i = testString.length; i < length; ++i)
- testString += i % 10;
-
- input.value = testString;
- if (input.value.length == expected)
- testPassed("");
- else
- testFailed("Expected " + domExpected + " characters to be inserted, but " + input.value.length + " characters were actually inserted.");
- }
-
- var stringLengthsToTest = [0, 5, 100, 101, 200, 524287, 524288, 524289, 530000];
- var maxLengthsToTest = ["-1", "100", "524288", "600000"];
-
- for (var i = 0; i < stringLengthsToTest.length; ++i) {
- var stringLength = stringLengthsToTest[i];
- for (var j = 0; j < maxLengthsToTest.length; ++j) {
- var maxLength = maxLengthsToTest[j];
- input.setAttribute("maxlength", maxLength);
- var expected = Math.min(stringLength, implicitMaxLength);
- attempt(stringLength, expected);
- }
- }
-
- debug('Some tests for .maxLength property.');
- input = document.createElement("input");
- input.maxLength = 100;
- shouldBe("input.getAttribute('maxlength')", "'100'");
-</script>
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/text/input-maxlength-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698