diff options
author | yosin@chromium.org <yosin@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2012-10-02 01:03:58 +0000 |
---|---|---|
committer | yosin@chromium.org <yosin@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2012-10-02 01:03:58 +0000 |
commit | 1c4a02d3047c96e196e9c009f010fe40b05b22df (patch) | |
tree | 398a52777f0845e3c78d93b8798e23a7b5dc8239 /third_party | |
parent | 4c1361bfa80aac2725ea0bb22149f91ae41f8b6b (diff) | |
download | chromium_src-1c4a02d3047c96e196e9c009f010fe40b05b22df.zip chromium_src-1c4a02d3047c96e196e9c009f010fe40b05b22df.tar.gz chromium_src-1c4a02d3047c96e196e9c009f010fe40b05b22df.tar.bz2 |
Adding appearance tests for multiple fields week input UI
https://bugs.webkit.org/show_bug.cgi?id=98006
Reviewed by Kent Tamura.
This patch adds tests for multiple fields week input UI and disables
these tests on ports which don't enable both ENABLE_INPUT_TYPE_WEEK
and ENABLE_INPUT_MULTIPLE_FIELDS_UI.
Note: We need to do rebaseline tests to update images for Chromium-Mac
and Chromium-Win.
Note: This patch affects ports which enable both ENABLE_INPUT_TYPE_WEEK
and ENABLE_INPUT_MULTIPLE_FIELDS_UI.
* fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic-expected.txt: Added.
* fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic.html: Added for checking basic appearance.
* fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes-expected.txt: Added.
* fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes.html: Added for checking appearance of applying CSS pseudo classes, e.g. :enabled, :invalid, and so on.
* fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements-expected.txt: Added.
* fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements.html: Added for checking appearance of applying CSS pseudo elements, e.g. :after, :before, and so on.
* fast/forms/week-multiple-fields/week-multiple-fields-appearance-style-expected.txt: Added.
* fast/forms/week-multiple-fields/week-multiple-fields-appearance-style.html: Added for checking appearance of applying CSS styles
* platform/chromium-android/TestExpectations: Changed to disable tests for multiple fields week input UI.
* platform/chromium-linux/fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic-expected.png: Added.
* platform/chromium-linux/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes-expected.png: Added.
* platform/chromium-linux/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements-expected.png: Added.
* platform/chromium-linux/fast/forms/week-multiple-fields/week-multiple-fields-appearance-style-expected.png: Added.
* platform/chromium/TestExpectations: Changed to disable tests for multiple fields week input UI of Mac and Win for rebaseline.
* platform/efl/TestExpectations: Changed to disable tests for multiple fields week input UI.
* platform/gtk/TestExpectations: ditto
* platform/mac/TestExpectations: ditto
* platform/qt/TestExpectations: ditto
* platform/win/TestExpectations: ditto
git-svn-id: svn://svn.chromium.org/blink/trunk@130107 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party')
16 files changed, 150 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/ChangeLog b/third_party/WebKit/LayoutTests/ChangeLog index 3539221..6617959 100644 --- a/third_party/WebKit/LayoutTests/ChangeLog +++ b/third_party/WebKit/LayoutTests/ChangeLog @@ -1,3 +1,40 @@ +2012-10-01 Yoshifumi Inoue <yosin@chromium.org> + + Adding appearance tests for multiple fields week input UI + https://bugs.webkit.org/show_bug.cgi?id=98006 + + Reviewed by Kent Tamura. + + This patch adds tests for multiple fields week input UI and disables + these tests on ports which don't enable both ENABLE_INPUT_TYPE_WEEK + and ENABLE_INPUT_MULTIPLE_FIELDS_UI. + + Note: We need to do rebaseline tests to update images for Chromium-Mac + and Chromium-Win. + + Note: This patch affects ports which enable both ENABLE_INPUT_TYPE_WEEK + and ENABLE_INPUT_MULTIPLE_FIELDS_UI. + + * fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic-expected.txt: Added. + * fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic.html: Added for checking basic appearance. + * fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes-expected.txt: Added. + * fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes.html: Added for checking appearance of applying CSS pseudo classes, e.g. :enabled, :invalid, and so on. + * fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements-expected.txt: Added. + * fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements.html: Added for checking appearance of applying CSS pseudo elements, e.g. :after, :before, and so on. + * fast/forms/week-multiple-fields/week-multiple-fields-appearance-style-expected.txt: Added. + * fast/forms/week-multiple-fields/week-multiple-fields-appearance-style.html: Added for checking appearance of applying CSS styles + * platform/chromium-android/TestExpectations: Changed to disable tests for multiple fields week input UI. + * platform/chromium-linux/fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic-expected.png: Added. + * platform/chromium-linux/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes-expected.png: Added. + * platform/chromium-linux/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements-expected.png: Added. + * platform/chromium-linux/fast/forms/week-multiple-fields/week-multiple-fields-appearance-style-expected.png: Added. + * platform/chromium/TestExpectations: Changed to disable tests for multiple fields week input UI of Mac and Win for rebaseline. + * platform/efl/TestExpectations: Changed to disable tests for multiple fields week input UI. + * platform/gtk/TestExpectations: ditto + * platform/mac/TestExpectations: ditto + * platform/qt/TestExpectations: ditto + * platform/win/TestExpectations: ditto + 2012-10-01 Filip Pizlo <fpizlo@apple.com> Address a FIXME in JSArray::sort diff --git a/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic-expected.txt new file mode 100644 index 0000000..6589c92 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic-expected.txt @@ -0,0 +1,5 @@ +basic +focus +disabled +readonly +RTL diff --git a/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic.html b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic.html new file mode 100644 index 0000000..f5fef67 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic.html @@ -0,0 +1,15 @@ +<html> +<body> +<ul> + <li>basic <input type="week"> <input type="week" value="1982-W25"></li> + <li>focus <input autofocus type="week"> <input type="week" value="1982-W25"></li> + <li>disabled <input type="week" disabled> <input type="week" value="1982-W25" disabled></li> + <li>readonly <input type="week" readonly> <input type="week" value="1982-W25" readonly></li> + <li>RTL <input type="week" dir="rtl"> <input type="week" value="1982-W25" dir="rtl"></li> +</ul> +</body> +<script> +if (window.testRunner) + testRunner.dumpAsText(true); +</script> +</html> diff --git a/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes-expected.txt new file mode 100644 index 0000000..2d68c3e --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes-expected.txt @@ -0,0 +1,10 @@ +Input Type "week" + +Pseudo Classes + +:enabled, :valid +:disabled +:invalid +:in-range +:out-of-range +:read-only diff --git a/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes.html b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes.html new file mode 100644 index 0000000..b2c5e76 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes.html @@ -0,0 +1,29 @@ +<html> +<head> +<style type="text/css"> +:disabled { color: gray; } +:enabled { color: blue; } +:invalid { color: pink; } +:in-range { font-weight: bold; } +:out-of-range { color: red; } +:read-only { color: yellow; } +:valid { color: green; } +</style> +</head> +<body> +<h1>Input Type "week"</h1> +<h2>Pseudo Classes</h2> +<table> +<tr><th>:enabled, :valid</th><td><input type="week" value="1982-W25"></td></tr> +<tr><th>:disabled</th><td><input type="week" value="1982-W25" disabled></td></tr> +<tr><th>:invalid</th><td><input type="week" value="1982-W25" min="1982-W10" step="2"></td></tr> +<tr><th>:in-range</th><td><input type="week" value="1982-W25" min="1982-W01" max="1982-W30"></td></tr> +<tr><th>:out-of-range</th><td><input type="week" value="1982-W25" min="1981-W01" max="1981-W12"></td></tr> +<tr><th>:read-only</th><td><input type="week" value="1982-W25" readonly></td></tr> +</table> +</body> +<script> +if (window.testRunner) + testRunner.dumpAsText(true); +</script> +</html> diff --git a/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements-expected.txt new file mode 100644 index 0000000..b28b04f --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements-expected.txt @@ -0,0 +1,3 @@ + + + diff --git a/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements.html b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements.html new file mode 100644 index 0000000..1a553d2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements.html @@ -0,0 +1,20 @@ +<html> +<head> +<style type="text/css"> +.after:after { content: "[after]"; } +.before:before { content: "[before]"; } +.first-letter:first-letter { color: green; font-size: 200%; } +</style> +</head> +<body> +<ul> + <li><input type="week" value="1982-W25" class="after"></li> + <li><input type="week" value="1982-W25" class="before"></li> + <li><input type="week" value="1982-W25" class="first-letter"></li> +</ul> +</body> +<script> +if (window.testRunner) + testRunner.dumpAsText(true); +</script> +</html> diff --git a/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-style-expected.txt b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-style-expected.txt new file mode 100644 index 0000000..9de61ed --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-style-expected.txt @@ -0,0 +1,5 @@ +text-align: +text-transform: +background, color: +font-size: +font-size with fixed input width: diff --git a/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-style.html b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-style.html new file mode 100644 index 0000000..b21e441 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/forms/week-multiple-fields/week-multiple-fields-appearance-style.html @@ -0,0 +1,15 @@ +<html> +<body> +<ul> + <li>text-align: <input type="week" value="1982-W25" style="text-align: left"></li> + <li>text-transform: <input type="week" value="1982-W25" style="text-transform: lowercase"></li> + <li>background, color: <input type="week" value="1982-W25" style="border: 0px; background: green; color: yellow"></li> + <li>font-size: <input type="week" value="1982-W25" style="font-size: 20pt"></li> + <li>font-size with fixed input width: <input type="week" value="1982-W25" style="font-size: 20pt; width: 10em;"></li> +</ul> +</body> +<script> +if (window.testRunner) + testRunner.dumpAsText(true); +</script> +</html> diff --git a/third_party/WebKit/LayoutTests/platform/chromium-android/TestExpectations b/third_party/WebKit/LayoutTests/platform/chromium-android/TestExpectations index 9926054..c989a37 100644 --- a/third_party/WebKit/LayoutTests/platform/chromium-android/TestExpectations +++ b/third_party/WebKit/LayoutTests/platform/chromium-android/TestExpectations @@ -49,6 +49,7 @@ crbug.com/145338 platform/chromium/accessibility crbug.com/145338 fast/forms/month-multiple-fields crbug.com/145338 fast/forms/time-multiple-fields +crbug.com/145338 fast/forms/week-multiple-fields crbug.com/145338 fast/forms/color crbug.com/145338 fast/forms/datalist crbug.com/145338 fast/forms/date diff --git a/third_party/WebKit/LayoutTests/platform/chromium/TestExpectations b/third_party/WebKit/LayoutTests/platform/chromium/TestExpectations index bf9d1a0..96e4cdf 100644 --- a/third_party/WebKit/LayoutTests/platform/chromium/TestExpectations +++ b/third_party/WebKit/LayoutTests/platform/chromium/TestExpectations @@ -3584,6 +3584,11 @@ webkit.org/b/98087 [ Linux ] fast/css/lang-mapped-to-webkit-locale-dynamic.xhtml webkit.org/b/96833 svg/carto.net/selectionlist.svg [ ImageOnlyFailure Pass ] webkit.org/b/96833 svg/carto.net/combobox.svg [ ImageOnlyFailure Pass ] +webkit.org/b/97877 [ Mac Win ] fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic.html [ ImageOnlyFailure Pass ] +webkit.org/b/97877 [ Mac Win ] fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes.html [ ImageOnlyFailure Pass ] +webkit.org/b/97877 [ Mac Win ] fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements.html [ ImageOnlyFailure Pass ] +webkit.org/b/97877 [ Mac Win ] fast/forms/week-multiple-fields/week-multiple-fields-appearance-style.html [ ImageOnlyFailure Pass ] + webkit.org/b/96720 [ Mac Win ] fast/forms/time-multiple-fields/time-multiple-fields-preserve-value-after-history-back.html [ Pass Timeout ] webkit.org/b/96549 [ Mac ] platform/chromium/virtual/gpu/fast/hidpi/focus-rings.html [ ImageOnlyFailure ] webkit.org/b/96549 [ Mac ] platform/chromium/virtual/gpu/fast/hidpi/video-controls-in-hidpi.html [ ImageOnlyFailure ] diff --git a/third_party/WebKit/LayoutTests/platform/efl/TestExpectations b/third_party/WebKit/LayoutTests/platform/efl/TestExpectations index 12879b9..1d7ce4f 100644 --- a/third_party/WebKit/LayoutTests/platform/efl/TestExpectations +++ b/third_party/WebKit/LayoutTests/platform/efl/TestExpectations @@ -1410,6 +1410,7 @@ webkit.org/b/50485 inspector/profiler/heap-snapshot-summary-sorting-instances.ht # ENABLE(INPUT_MULTIPLE_FIELDS_UI) is disabled webkit.org/b/97299 fast/forms/month-multiple-fields webkit.org/b/94186 fast/forms/time-multiple-fields +webkit.org/b/97877 fast/forms/week-multiple-fields webkit.org/b/93976 fast/css-generated-content/quotes-lang.html [ ImageOnlyFailure ] diff --git a/third_party/WebKit/LayoutTests/platform/gtk/TestExpectations b/third_party/WebKit/LayoutTests/platform/gtk/TestExpectations index 2ca5ddb..290a49a 100644 --- a/third_party/WebKit/LayoutTests/platform/gtk/TestExpectations +++ b/third_party/WebKit/LayoutTests/platform/gtk/TestExpectations @@ -1323,6 +1323,7 @@ webkit.org/b/94083 media/video-controls-fullscreen-volume.html [ Skip ] webkit.org/b/97299 fast/forms/month-multiple-fields webkit.org/b/94186 fast/forms/time-multiple-fields +webkit.org/b/97877 fast/forms/week-multiple-fields webkit.org/b/70485 fast/events/drag-selects-image.html [ Failure ] diff --git a/third_party/WebKit/LayoutTests/platform/mac/TestExpectations b/third_party/WebKit/LayoutTests/platform/mac/TestExpectations index 8f4ecb2..afc9a26 100644 --- a/third_party/WebKit/LayoutTests/platform/mac/TestExpectations +++ b/third_party/WebKit/LayoutTests/platform/mac/TestExpectations @@ -811,6 +811,7 @@ css3/flexbox/flex-rounding.html # ENABLE(INPUT_MULTIPLE_FIELDS_UI) is disabled fast/forms/month-multiple-fields fast/forms/time-multiple-fields +fast/forms/week-multiple-fields # <rdar://problem/11224160> Focus not transferring properly in DumpRenderTree in Mountain Lion fast/events/show-modal-dialog-onblur-onfocus.html diff --git a/third_party/WebKit/LayoutTests/platform/qt/TestExpectations b/third_party/WebKit/LayoutTests/platform/qt/TestExpectations index 3a28b32..46ff7fa 100644 --- a/third_party/WebKit/LayoutTests/platform/qt/TestExpectations +++ b/third_party/WebKit/LayoutTests/platform/qt/TestExpectations @@ -2722,6 +2722,7 @@ fast/events/autoscroll-in-textarea.html # ENABLE(INPUT_MULTIPLE_FIELDS_UI) is disabled fast/forms/month-multiple-fields fast/forms/time-multiple-fields +fast/forms/week-multiple-fields # [Qt] New inspector/timeline/timeline-decode-resize.html introduced in r125790 fails # https://bugs.webkit.org/show_bug.cgi?id=94341 diff --git a/third_party/WebKit/LayoutTests/platform/win/TestExpectations b/third_party/WebKit/LayoutTests/platform/win/TestExpectations index 5170afb..9bfc811 100644 --- a/third_party/WebKit/LayoutTests/platform/win/TestExpectations +++ b/third_party/WebKit/LayoutTests/platform/win/TestExpectations @@ -1986,6 +1986,7 @@ fast/css/word-space-extra.html # ENABLE(INPUT_MULTIPLE_FIELDS_UI) is disabled fast/forms/month-multiple-fields fast/forms/time-multiple-fields +fast/forms/week-multiple-fields # Require rebaseline after https://bugs.webkit.org/show_bug.cgi?id=84286 fast/block/float/avoidance-rtl.html |