Title: [116499] trunk/Source
Revision
116499
Author
[email protected]
Date
2012-05-09 00:19:50 -0700 (Wed, 09 May 2012)

Log Message

Source/WebCore: Add identifying methods for date/time input types.

This patch adds methods isDateField(), isDateTimeField(), isDateTimeLocalField(),
isMonthField(), isTimeField() and isWeekField() to InputType and the appropriate
HTMLInputElement classes, to allow date/time input types to be identified.

The new methods match the existing methods for types such as email, search and number.

https://bugs.webkit.org/show_bug.cgi?id=78746

Patch by Oli Lan <[email protected]> on 2012-05-09
Reviewed by Kent Tamura.

A new test WebViewTest.TextInputType has been added in WebKit/chromium/tests that calls
through to these methods via WebViewImpl.textInputType().

* html/DateInputType.cpp:
(WebCore::DateInputType::isDateField):
(WebCore):
* html/DateInputType.h:
(DateInputType):
* html/DateTimeInputType.cpp:
(WebCore::DateTimeInputType::isDateTimeField):
(WebCore):
* html/DateTimeInputType.h:
(DateTimeInputType):
* html/DateTimeLocalInputType.cpp:
(WebCore::DateTimeLocalInputType::isDateTimeLocalField):
(WebCore):
* html/DateTimeLocalInputType.h:
(DateTimeLocalInputType):
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::isDateField):
(WebCore):
(WebCore::HTMLInputElement::isDateTimeField):
(WebCore::HTMLInputElement::isDateTimeLocalField):
(WebCore::HTMLInputElement::isMonthField):
(WebCore::HTMLInputElement::isTimeField):
(WebCore::HTMLInputElement::isWeekField):
* html/HTMLInputElement.h:
(HTMLInputElement):
* html/InputType.cpp:
(WebCore::InputType::isDateField):
(WebCore):
(WebCore::InputType::isDateTimeField):
(WebCore::InputType::isDateTimeLocalField):
(WebCore::InputType::isMonthField):
(WebCore::InputType::isTimeField):
(WebCore::InputType::isWeekField):
* html/InputType.h:
(InputType):
* html/MonthInputType.cpp:
(WebCore::MonthInputType::isMonthField):
(WebCore):
* html/MonthInputType.h:
(MonthInputType):
* html/TimeInputType.cpp:
(WebCore::TimeInputType::isTimeField):
(WebCore):
* html/TimeInputType.h:
(TimeInputType):
* html/WeekInputType.cpp:
(WebCore::WeekInputType::isWeekField):
(WebCore):
* html/WeekInputType.h:
(WeekInputType):

Source/WebKit/chromium: Adds date/time input types to WebTextInputType, and adds support for these
to WebViewImpl.textInputType().

Adds a new test WebViewTest.TextInputType to test WebViewImpl.textInputType(),
including the new types.

https://bugs.webkit.org/show_bug.cgi?id=78746

Patch by Oli Lan <[email protected]> on 2012-05-09
Reviewed by Kent Tamura.

* public/WebTextInputType.h:
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::textInputType):
* tests/WebViewTest.cpp:
(WebViewTest):
(WebKit::WebViewTest::testTextInputType):
(WebKit):
(WebKit::TEST_F):
* tests/data/input_field_date.html: Added.
* tests/data/input_field_datetime.html: Added.
* tests/data/input_field_default.html: Added.
* tests/data/input_field_email.html: Added.
* tests/data/input_field_number.html: Added.
* tests/data/input_field_search.html: Added.
* tests/data/input_field_time.html: Added.
* tests/data/input_field_week.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (116498 => 116499)


--- trunk/Source/WebCore/ChangeLog	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/ChangeLog	2012-05-09 07:19:50 UTC (rev 116499)
@@ -1,3 +1,71 @@
+2012-05-09  Oli Lan  <[email protected]>
+
+        Add identifying methods for date/time input types.
+
+        This patch adds methods isDateField(), isDateTimeField(), isDateTimeLocalField(),
+        isMonthField(), isTimeField() and isWeekField() to InputType and the appropriate
+        HTMLInputElement classes, to allow date/time input types to be identified.
+
+        The new methods match the existing methods for types such as email, search and number.
+
+        https://bugs.webkit.org/show_bug.cgi?id=78746
+
+        Reviewed by Kent Tamura.
+
+        A new test WebViewTest.TextInputType has been added in WebKit/chromium/tests that calls
+        through to these methods via WebViewImpl.textInputType().
+
+        * html/DateInputType.cpp:
+        (WebCore::DateInputType::isDateField):
+        (WebCore):
+        * html/DateInputType.h:
+        (DateInputType):
+        * html/DateTimeInputType.cpp:
+        (WebCore::DateTimeInputType::isDateTimeField):
+        (WebCore):
+        * html/DateTimeInputType.h:
+        (DateTimeInputType):
+        * html/DateTimeLocalInputType.cpp:
+        (WebCore::DateTimeLocalInputType::isDateTimeLocalField):
+        (WebCore):
+        * html/DateTimeLocalInputType.h:
+        (DateTimeLocalInputType):
+        * html/HTMLInputElement.cpp:
+        (WebCore::HTMLInputElement::isDateField):
+        (WebCore):
+        (WebCore::HTMLInputElement::isDateTimeField):
+        (WebCore::HTMLInputElement::isDateTimeLocalField):
+        (WebCore::HTMLInputElement::isMonthField):
+        (WebCore::HTMLInputElement::isTimeField):
+        (WebCore::HTMLInputElement::isWeekField):
+        * html/HTMLInputElement.h:
+        (HTMLInputElement):
+        * html/InputType.cpp:
+        (WebCore::InputType::isDateField):
+        (WebCore):
+        (WebCore::InputType::isDateTimeField):
+        (WebCore::InputType::isDateTimeLocalField):
+        (WebCore::InputType::isMonthField):
+        (WebCore::InputType::isTimeField):
+        (WebCore::InputType::isWeekField):
+        * html/InputType.h:
+        (InputType):
+        * html/MonthInputType.cpp:
+        (WebCore::MonthInputType::isMonthField):
+        (WebCore):
+        * html/MonthInputType.h:
+        (MonthInputType):
+        * html/TimeInputType.cpp:
+        (WebCore::TimeInputType::isTimeField):
+        (WebCore):
+        * html/TimeInputType.h:
+        (TimeInputType):
+        * html/WeekInputType.cpp:
+        (WebCore::WeekInputType::isWeekField):
+        (WebCore):
+        * html/WeekInputType.h:
+        (WeekInputType):
+
 2012-05-09  Nikolas Zimmermann  <[email protected]>
 
         REGRESSION(r105057): Infinite loop inside SVGTextLayoutEngine::currentLogicalCharacterMetrics

Modified: trunk/Source/WebCore/html/DateInputType.cpp (116498 => 116499)


--- trunk/Source/WebCore/html/DateInputType.cpp	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/DateInputType.cpp	2012-05-09 07:19:50 UTC (rev 116499)
@@ -106,6 +106,11 @@
     return date->setMillisecondsSinceEpochForDate(value);
 }
 
+bool DateInputType::isDateField() const
+{
+    return true;
+}
+
 #if ENABLE(CALENDAR_PICKER)
 void DateInputType::createShadowSubtree()
 {

Modified: trunk/Source/WebCore/html/DateInputType.h (116498 => 116499)


--- trunk/Source/WebCore/html/DateInputType.h	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/DateInputType.h	2012-05-09 07:19:50 UTC (rev 116499)
@@ -55,6 +55,7 @@
     virtual bool parsedStepValueShouldBeInteger() const OVERRIDE;
     virtual bool parseToDateComponentsInternal(const UChar*, unsigned length, DateComponents*) const OVERRIDE;
     virtual bool setMillisecondToDateComponents(double, DateComponents*) const OVERRIDE;
+    virtual bool isDateField() const OVERRIDE;
 #if ENABLE(CALENDAR_PICKER)
     virtual void createShadowSubtree() OVERRIDE;
     virtual void destroyShadowSubtree() OVERRIDE;

Modified: trunk/Source/WebCore/html/DateTimeInputType.cpp (116498 => 116499)


--- trunk/Source/WebCore/html/DateTimeInputType.cpp	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/DateTimeInputType.cpp	2012-05-09 07:19:50 UTC (rev 116499)
@@ -104,6 +104,11 @@
     return date->setMillisecondsSinceEpochForDateTime(value);
 }
 
+bool DateTimeInputType::isDateTimeField() const
+{
+    return true;
+}
+
 } // namespace WebCore
 
 #endif

Modified: trunk/Source/WebCore/html/DateTimeInputType.h (116498 => 116499)


--- trunk/Source/WebCore/html/DateTimeInputType.h	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/DateTimeInputType.h	2012-05-09 07:19:50 UTC (rev 116499)
@@ -53,6 +53,7 @@
     virtual bool scaledStepValueShouldBeInteger() const OVERRIDE;
     virtual bool parseToDateComponentsInternal(const UChar*, unsigned length, DateComponents*) const OVERRIDE;
     virtual bool setMillisecondToDateComponents(double, DateComponents*) const OVERRIDE;
+    virtual bool isDateTimeField() const OVERRIDE;
 };
 
 } // namespace WebCore

Modified: trunk/Source/WebCore/html/DateTimeLocalInputType.cpp (116498 => 116499)


--- trunk/Source/WebCore/html/DateTimeLocalInputType.cpp	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/DateTimeLocalInputType.cpp	2012-05-09 07:19:50 UTC (rev 116499)
@@ -110,6 +110,11 @@
     return date->setMillisecondsSinceEpochForDateTimeLocal(value);
 }
 
+bool DateTimeLocalInputType::isDateTimeLocalField() const
+{
+    return true;
+}
+
 } // namespace WebCore
 
 #endif

Modified: trunk/Source/WebCore/html/DateTimeLocalInputType.h (116498 => 116499)


--- trunk/Source/WebCore/html/DateTimeLocalInputType.h	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/DateTimeLocalInputType.h	2012-05-09 07:19:50 UTC (rev 116499)
@@ -54,6 +54,7 @@
     virtual bool scaledStepValueShouldBeInteger() const OVERRIDE;
     virtual bool parseToDateComponentsInternal(const UChar*, unsigned length, DateComponents*) const OVERRIDE;
     virtual bool setMillisecondToDateComponents(double, DateComponents*) const OVERRIDE;
+    virtual bool isDateTimeLocalField() const OVERRIDE;
 };
 
 } // namespace WebCore

Modified: trunk/Source/WebCore/html/HTMLInputElement.cpp (116498 => 116499)


--- trunk/Source/WebCore/html/HTMLInputElement.cpp	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/HTMLInputElement.cpp	2012-05-09 07:19:50 UTC (rev 116499)
@@ -1742,6 +1742,36 @@
     return m_inputType->isURLField();
 }
 
+bool HTMLInputElement::isDateField() const
+{
+    return m_inputType->isDateField();
+}
+
+bool HTMLInputElement::isDateTimeField() const
+{
+    return m_inputType->isDateTimeField();
+}
+
+bool HTMLInputElement::isDateTimeLocalField() const
+{
+    return m_inputType->isDateTimeLocalField();
+}
+
+bool HTMLInputElement::isMonthField() const
+{
+    return m_inputType->isMonthField();
+}
+
+bool HTMLInputElement::isTimeField() const
+{
+    return m_inputType->isTimeField();
+}
+
+bool HTMLInputElement::isWeekField() const
+{
+    return m_inputType->isWeekField();
+}
+
 bool HTMLInputElement::isEnumeratable() const
 {
     return m_inputType->isEnumeratable();

Modified: trunk/Source/WebCore/html/HTMLInputElement.h (116498 => 116499)


--- trunk/Source/WebCore/html/HTMLInputElement.h	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/HTMLInputElement.h	2012-05-09 07:19:50 UTC (rev 116499)
@@ -105,6 +105,12 @@
     bool isSubmitButton() const;
     bool isTelephoneField() const;
     bool isURLField() const;
+    bool isDateField() const;
+    bool isDateTimeField() const;
+    bool isDateTimeLocalField() const;
+    bool isMonthField() const;
+    bool isTimeField() const;
+    bool isWeekField() const;
 
 #if ENABLE(INPUT_SPEECH)
     bool isSpeechEnabled() const;

Modified: trunk/Source/WebCore/html/InputType.cpp (116498 => 116499)


--- trunk/Source/WebCore/html/InputType.cpp	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/InputType.cpp	2012-05-09 07:19:50 UTC (rev 116499)
@@ -707,6 +707,36 @@
     return false;
 }
 
+bool InputType::isDateField() const
+{
+    return false;
+}
+
+bool InputType::isDateTimeField() const
+{
+    return false;
+}
+
+bool InputType::isDateTimeLocalField() const
+{
+    return false;
+}
+
+bool InputType::isMonthField() const
+{
+    return false;
+}
+
+bool InputType::isTimeField() const
+{
+    return false;
+}
+
+bool InputType::isWeekField() const
+{
+    return false;
+}
+
 bool InputType::isEnumeratable()
 {
     return true;

Modified: trunk/Source/WebCore/html/InputType.h (116498 => 116499)


--- trunk/Source/WebCore/html/InputType.h	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/InputType.h	2012-05-09 07:19:50 UTC (rev 116499)
@@ -99,11 +99,15 @@
     virtual bool isColorControl() const;
 #endif
     virtual bool isCheckbox() const;
+    virtual bool isDateField() const;
+    virtual bool isDateTimeField() const;
+    virtual bool isDateTimeLocalField() const;
     virtual bool isEmailField() const;
     virtual bool isFileUpload() const;
     virtual bool isHiddenType() const;
     virtual bool isImageButton() const;
     virtual bool supportLabels() const;
+    virtual bool isMonthField() const;
     virtual bool isNumberField() const;
     virtual bool isPasswordField() const;
     virtual bool isRadioButton() const;
@@ -114,7 +118,9 @@
     virtual bool isTextButton() const;
     virtual bool isTextField() const;
     virtual bool isTextType() const;
+    virtual bool isTimeField() const;
     virtual bool isURLField() const;
+    virtual bool isWeekField() const;
 
     // Form value functions
 

Modified: trunk/Source/WebCore/html/MonthInputType.cpp (116498 => 116499)


--- trunk/Source/WebCore/html/MonthInputType.cpp	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/MonthInputType.cpp	2012-05-09 07:19:50 UTC (rev 116499)
@@ -144,6 +144,11 @@
     return date->setMonthsSinceEpoch(value);
 }
 
+bool MonthInputType::isMonthField() const
+{
+    return true;
+}
+
 } // namespace WebCore
 
 #endif

Modified: trunk/Source/WebCore/html/MonthInputType.h (116498 => 116499)


--- trunk/Source/WebCore/html/MonthInputType.h	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/MonthInputType.h	2012-05-09 07:19:50 UTC (rev 116499)
@@ -56,6 +56,7 @@
     virtual bool parsedStepValueShouldBeInteger() const OVERRIDE;
     virtual bool parseToDateComponentsInternal(const UChar*, unsigned length, DateComponents*) const OVERRIDE;
     virtual bool setMillisecondToDateComponents(double, DateComponents*) const OVERRIDE;
+    virtual bool isMonthField() const OVERRIDE;
 };
 
 } // namespace WebCore

Modified: trunk/Source/WebCore/html/TimeInputType.cpp (116498 => 116499)


--- trunk/Source/WebCore/html/TimeInputType.cpp	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/TimeInputType.cpp	2012-05-09 07:19:50 UTC (rev 116499)
@@ -116,6 +116,11 @@
     return date->setMillisecondsSinceMidnight(value);
 }
 
+bool TimeInputType::isTimeField() const
+{
+    return true;
+}
+
 } // namespace WebCore
 
 #endif

Modified: trunk/Source/WebCore/html/TimeInputType.h (116498 => 116499)


--- trunk/Source/WebCore/html/TimeInputType.h	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/TimeInputType.h	2012-05-09 07:19:50 UTC (rev 116499)
@@ -53,6 +53,7 @@
     virtual bool scaledStepValueShouldBeInteger() const OVERRIDE;
     virtual bool parseToDateComponentsInternal(const UChar*, unsigned length, DateComponents*) const OVERRIDE;
     virtual bool setMillisecondToDateComponents(double, DateComponents*) const OVERRIDE;
+    virtual bool isTimeField() const OVERRIDE;
 };
 
 } // namespace WebCore

Modified: trunk/Source/WebCore/html/WeekInputType.cpp (116498 => 116499)


--- trunk/Source/WebCore/html/WeekInputType.cpp	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/WeekInputType.cpp	2012-05-09 07:19:50 UTC (rev 116499)
@@ -104,6 +104,11 @@
     return date->setMillisecondsSinceEpochForWeek(value);
 }
 
+bool WeekInputType::isWeekField() const
+{
+    return true;
+}
+
 } // namespace WebCore
 
 #endif

Modified: trunk/Source/WebCore/html/WeekInputType.h (116498 => 116499)


--- trunk/Source/WebCore/html/WeekInputType.h	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebCore/html/WeekInputType.h	2012-05-09 07:19:50 UTC (rev 116499)
@@ -53,6 +53,7 @@
     virtual bool parsedStepValueShouldBeInteger() const OVERRIDE;
     virtual bool parseToDateComponentsInternal(const UChar*, unsigned length, DateComponents*) const OVERRIDE;
     virtual bool setMillisecondToDateComponents(double, DateComponents*) const OVERRIDE;
+    virtual bool isWeekField() const OVERRIDE;
 };
 
 } // namespace WebCore

Modified: trunk/Source/WebKit/chromium/ChangeLog (116498 => 116499)


--- trunk/Source/WebKit/chromium/ChangeLog	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-05-09 07:19:50 UTC (rev 116499)
@@ -1,3 +1,32 @@
+2012-05-09  Oli Lan  <[email protected]>
+
+        Adds date/time input types to WebTextInputType, and adds support for these
+        to WebViewImpl.textInputType().
+
+        Adds a new test WebViewTest.TextInputType to test WebViewImpl.textInputType(),
+        including the new types.
+
+        https://bugs.webkit.org/show_bug.cgi?id=78746
+
+        Reviewed by Kent Tamura.
+
+        * public/WebTextInputType.h:
+        * src/WebViewImpl.cpp:
+        (WebKit::WebViewImpl::textInputType):
+        * tests/WebViewTest.cpp:
+        (WebViewTest):
+        (WebKit::WebViewTest::testTextInputType):
+        (WebKit):
+        (WebKit::TEST_F):
+        * tests/data/input_field_date.html: Added.
+        * tests/data/input_field_datetime.html: Added.
+        * tests/data/input_field_default.html: Added.
+        * tests/data/input_field_email.html: Added.
+        * tests/data/input_field_number.html: Added.
+        * tests/data/input_field_search.html: Added.
+        * tests/data/input_field_time.html: Added.
+        * tests/data/input_field_week.html: Added.
+
 2012-05-08  Jochen Eisinger  <[email protected]>
 
         Unreviewed.  Rolled DEPS.

Modified: trunk/Source/WebKit/chromium/public/WebTextInputType.h (116498 => 116499)


--- trunk/Source/WebKit/chromium/public/WebTextInputType.h	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebKit/chromium/public/WebTextInputType.h	2012-05-09 07:19:50 UTC (rev 116499)
@@ -48,6 +48,12 @@
     WebTextInputTypeNumber,
     WebTextInputTypeTelephone,
     WebTextInputTypeURL,
+    WebTextInputTypeDate,
+    WebTextInputTypeDateTime,
+    WebTextInputTypeDateTimeLocal,
+    WebTextInputTypeMonth,
+    WebTextInputTypeTime,
+    WebTextInputTypeWeek,
 };
 
 } // namespace WebKit

Modified: trunk/Source/WebKit/chromium/src/WebViewImpl.cpp (116498 => 116499)


--- trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2012-05-09 07:19:50 UTC (rev 116499)
@@ -1876,8 +1876,21 @@
                 return WebTextInputTypeTelephone;
             if (input->isURLField())
                 return WebTextInputTypeURL;
+            if (input->isDateField())
+                return WebTextInputTypeDate;
+            if (input->isDateTimeField())
+                return WebTextInputTypeDateTime;
+            if (input->isDateTimeLocalField())
+                return WebTextInputTypeDateTimeLocal;
+            if (input->isMonthField())
+                return WebTextInputTypeMonth;
+            if (input->isTimeField())
+                return WebTextInputTypeTime;
+            if (input->isWeekField())
+                return WebTextInputTypeWeek;
             if (input->isTextField())
                 return WebTextInputTypeText;
+
             return WebTextInputTypeNone;
         }
 

Modified: trunk/Source/WebKit/chromium/tests/WebViewTest.cpp (116498 => 116499)


--- trunk/Source/WebKit/chromium/tests/WebViewTest.cpp	2012-05-09 07:17:09 UTC (rev 116498)
+++ trunk/Source/WebKit/chromium/tests/WebViewTest.cpp	2012-05-09 07:19:50 UTC (rev 116499)
@@ -110,6 +110,8 @@
                         int expectedWidth, int expectedHeight,
                         HorizontalScrollbarState expectedHorizontalState, VerticalScrollbarState expectedVerticalState);
 
+    void testTextInputType(WebTextInputType expectedType, const std::string& htmlFile);
+
     std::string m_baseURL;
 };
 
@@ -245,4 +247,43 @@
                    expectedWidth, expectedHeight, NoHorizontalScrollbar, NoVerticalScrollbar);
 }
 
+void WebViewTest::testTextInputType(WebTextInputType expectedType, const std::string& htmlFile)
+{
+    FrameTestHelpers::registerMockedURLLoad(m_baseURL, htmlFile);
+    WebView* webView = FrameTestHelpers::createWebViewAndLoad(m_baseURL + htmlFile);
+    webView->setInitialFocus(false);
+    EXPECT_EQ(expectedType, webView->textInputType());
+    webView->close();
 }
+
+TEST_F(WebViewTest, TextInputType)
+{
+    testTextInputType(WebTextInputTypeText, "input_field_default.html");
+    testTextInputType(WebTextInputTypePassword, "input_field_password.html");
+    testTextInputType(WebTextInputTypeEmail, "input_field_email.html");
+    testTextInputType(WebTextInputTypeSearch, "input_field_search.html");
+    testTextInputType(WebTextInputTypeNumber, "input_field_number.html");
+    testTextInputType(WebTextInputTypeTelephone, "input_field_tel.html");
+    testTextInputType(WebTextInputTypeURL, "input_field_url.html");
+#if ENABLE(INPUT_TYPE_DATE)
+    testTextInputType(WebTextInputTypeDate, "input_field_date.html");
+#endif
+#if ENABLE(INPUT_TYPE_DATETIME)
+    testTextInputType(WebTextInputTypeDateTime, "input_field_datetime.html");
+#endif
+#if ENABLE(INPUT_TYPE_DATETIMELOCAL)
+    testTextInputType(WebTextInputTypeDateTimeLocal, "input_field_datetimelocal.html");
+#endif
+#if ENABLE(INPUT_TYPE_MONTH)
+    testTextInputType(WebTextInputTypeMonth, "input_field_month.html");
+#endif
+#if ENABLE(INPUT_TYPE_TIME)
+    testTextInputType(WebTextInputTypeTime, "input_field_time.html");
+#endif
+#if ENABLE(INPUT_TYPE_WEEK)
+    testTextInputType(WebTextInputTypeWeek, "input_field_week.html");
+#endif
+
+}
+
+}

Added: trunk/Source/WebKit/chromium/tests/data/input_field_date.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_date.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_date.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input type="date" />

Added: trunk/Source/WebKit/chromium/tests/data/input_field_datetime.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_datetime.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_datetime.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input type="datetime" />

Added: trunk/Source/WebKit/chromium/tests/data/input_field_datetimelocal.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_datetimelocal.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_datetimelocal.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input type="datetime-local" />

Added: trunk/Source/WebKit/chromium/tests/data/input_field_default.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_default.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_default.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input />

Added: trunk/Source/WebKit/chromium/tests/data/input_field_email.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_email.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_email.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input type="email" />

Added: trunk/Source/WebKit/chromium/tests/data/input_field_month.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_month.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_month.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input type="month" />

Added: trunk/Source/WebKit/chromium/tests/data/input_field_number.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_number.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_number.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input type="number" />

Added: trunk/Source/WebKit/chromium/tests/data/input_field_password.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_password.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_password.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input type="password" />

Added: trunk/Source/WebKit/chromium/tests/data/input_field_search.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_search.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_search.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input type="search" />

Added: trunk/Source/WebKit/chromium/tests/data/input_field_tel.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_tel.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_tel.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input type="tel" />

Added: trunk/Source/WebKit/chromium/tests/data/input_field_time.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_time.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_time.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input type="time" />

Added: trunk/Source/WebKit/chromium/tests/data/input_field_url.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_url.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_url.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input type="url" />

Added: trunk/Source/WebKit/chromium/tests/data/input_field_week.html (0 => 116499)


--- trunk/Source/WebKit/chromium/tests/data/input_field_week.html	                        (rev 0)
+++ trunk/Source/WebKit/chromium/tests/data/input_field_week.html	2012-05-09 07:19:50 UTC (rev 116499)
@@ -0,0 +1 @@
+<input type="week" />
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to