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

Unified Diff: LayoutTests/fast/dom/HTMLInputElement/script-tests/size-attribute.js

Issue 796543003: Stricter parsing for size attribute on HTMLInputElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add some subtests that actually make a difference Created 6 years 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/dom/HTMLInputElement/size-attribute-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLInputElement/script-tests/size-attribute.js
diff --git a/LayoutTests/fast/dom/HTMLInputElement/script-tests/size-attribute.js b/LayoutTests/fast/dom/HTMLInputElement/script-tests/size-attribute.js
index 619f031de512f143f9e1d6aab287369757e8d1db..83bc5c0f0c022b35eb15d61716d9a04124c7bdab 100644
--- a/LayoutTests/fast/dom/HTMLInputElement/script-tests/size-attribute.js
+++ b/LayoutTests/fast/dom/HTMLInputElement/script-tests/size-attribute.js
@@ -27,7 +27,14 @@ shouldBe('sizeAttributeEffect("2.")', '2');
shouldBe('sizeAttributeEffect("2.9")', '2');
shouldBe('sizeAttributeEffect("a")', '20');
+shouldBe('sizeAttributeEffect("\v7")', '20');
+shouldBe('sizeAttributeEffect(" 7")', '7');
var arabicIndicDigitOne = String.fromCharCode(0x661);
shouldBe('sizeAttributeEffect(arabicIndicDigitOne)', '20');
shouldBe('sizeAttributeEffect("2" + arabicIndicDigitOne)', '2');
+
+shouldBe('sizeAttributeEffect("2147483647")', '2147483647');
+shouldBe('sizeAttributeEffect("2147483648")', '20');
+shouldBe('sizeAttributeEffect("4294967295")', '20');
+shouldBe('sizeAttributeEffect("4294967296")', '20');
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLInputElement/size-attribute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698