| Index: third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/time.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/time.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/time.html
|
| index eabb6cbd426e8bc6928316db1a4b6634871fe52f..ad4e38cbc74f50dc764fc958b8cf68f4dd790cbe 100644
|
| --- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/time.html
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/time.html
|
| @@ -51,53 +51,116 @@ test(function(){
|
| _StepTest.value = "12:00";
|
| _StepTest.step = "";
|
| _StepTest.stepUp();
|
| - assert_equals(_StepTest.value,"12:01");
|
| + assert_in_array(
|
| + _StepTest.value,
|
| + [
|
| + "12:01",
|
| + "12:01:00",
|
| + "12:01:00.0",
|
| + "12:01:00.00",
|
| + "12:01:00.000"],
|
| + "a valid time string representing 1 minute after noon");
|
| } , "stepUp step value empty on default step value ");
|
|
|
| test(function(){
|
| _StepTest.value = "12:00";
|
| _StepTest.step = "";
|
| _StepTest.stepDown();
|
| - assert_equals(_StepTest.value,"11:59");
|
| + assert_in_array(
|
| + _StepTest.value,
|
| + [
|
| + "11:59",
|
| + "11:59:00",
|
| + "11:59:00.0",
|
| + "11:59:00.00",
|
| + "11:59:00.000"],
|
| + "a valid time string representing 1 minute before noon");
|
| }, "stepDown step value empty default step value");
|
|
|
| test(function(){
|
| _StepTest.value = "12:00";
|
| _StepTest.step = "-600";
|
| _StepTest.stepUp();
|
| - assert_equals(_StepTest.value, "12:01");
|
| + assert_in_array(
|
| + _StepTest.value,
|
| + [
|
| + "12:01",
|
| + "12:01:00",
|
| + "12:01:00.0",
|
| + "12:01:00.00",
|
| + "12:01:00.000"],
|
| + "a valid time string representing 1 minute after noon");
|
| },"stepUp on step value minus");
|
| test(function(){
|
| _StepTest.value = "12:00";
|
| _StepTest.step = "-600";
|
| _StepTest.stepDown();
|
| - assert_equals(_StepTest.value, "11:59");
|
| + assert_in_array(
|
| + _StepTest.value,
|
| + [
|
| + "11:59",
|
| + "11:59:00",
|
| + "11:59:00.0",
|
| + "11:59:00.00",
|
| + "11:59:00.000"],
|
| + "a valid time string representing 1 minute before noon");
|
| },"stepDown on step value minus");
|
|
|
| test(function(){
|
| _StepTest.value = "12:00";
|
| _StepTest.step = "0";
|
| _StepTest.stepUp();
|
| - assert_equals(_StepTest.value, "12:01");
|
| + assert_in_array(
|
| + _StepTest.value,
|
| + [
|
| + "12:01",
|
| + "12:01:00",
|
| + "12:01:00.0",
|
| + "12:01:00.00",
|
| + "12:01:00.000"],
|
| + "a valid time string representing 1 minute after noon");
|
| } , "stepUp on step value zero ");
|
| test(function(){
|
| _StepTest.value = "12:00";
|
| _StepTest.step = "0";
|
| _StepTest.stepDown();
|
| - assert_equals(_StepTest.value, "11:59");
|
| + assert_in_array(
|
| + _StepTest.value,
|
| + [
|
| + "11:59",
|
| + "11:59:00",
|
| + "11:59:00.0",
|
| + "11:59:00.00",
|
| + "11:59:00.000"],
|
| + "a valid time string representing 1 minute before noon");
|
| } , "stepDown on step value zero ");
|
|
|
| test(function(){
|
| _StepTest.value = "00:00";
|
| _StepTest.step = "86399";
|
| _StepTest.stepUp();
|
| - assert_equals(_StepTest.value, "23:59:59");
|
| + assert_in_array(
|
| + _StepTest.value,
|
| + [
|
| + "23:59:59",
|
| + "23:59:59.0",
|
| + "23:59:59.00",
|
| + "23:59:59.000"],
|
| + "a valid time string representing 1 second before midnight");
|
| } , "stepUp on step value 24 hour");
|
| test(function(){
|
| _StepTest.value = "23:59:59";
|
| _StepTest.step = "86399";
|
| _StepTest.stepDown();
|
| - assert_equals(_StepTest.value, "00:00:00");
|
| + assert_in_array(
|
| + _StepTest.value,
|
| + [
|
| + "00:00",
|
| + "00:00:00",
|
| + "00:00:00.0",
|
| + "00:00:00.00",
|
| + "00:00:00.000"],
|
| + "a valid time string representing midnight");
|
| } , "stepDown on step value 24 hour ");
|
|
|
| test(function(){
|
|
|