From 6d1624f9d061e025df616ead4a21b44b7c1b326b Mon Sep 17 00:00:00 2001 From: Sam Gibson Date: Fri, 2 Oct 2015 10:50:18 +1000 Subject: [PATCH] Add additional WPT tests for maxlength parser set --- components/script/dom/htmlinputelement.rs | 1 - .../forms/the-input-element/maxlength.html | 61 +++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 tests/wpt/web-platform-tests/html/semantics/forms/the-input-element/maxlength.html diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs index be02f62314b..19f5d53ef8b 100644 --- a/components/script/dom/htmlinputelement.rs +++ b/components/script/dom/htmlinputelement.rs @@ -32,7 +32,6 @@ use msg::constellation_msg::ScriptMsg as ConstellationMsg; use selectors::states::*; use std::borrow::ToOwned; use std::cell::Cell; -use std::i32; use string_cache::Atom; use textinput::KeyReaction::{DispatchInput, Nothing, RedrawSelection, TriggerDefaultAction}; use textinput::Lines::Single; diff --git a/tests/wpt/web-platform-tests/html/semantics/forms/the-input-element/maxlength.html b/tests/wpt/web-platform-tests/html/semantics/forms/the-input-element/maxlength.html new file mode 100644 index 00000000000..59c97198be5 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/forms/the-input-element/maxlength.html @@ -0,0 +1,61 @@ + + + + input max length + + + + + + + +

Text input element

+ +
+ + + + + +
+ +
+ + + + +