alueAsNumber setter on type ${type} (actual valueAsNumber: ${valueAsNumber}, ` +
         `expected value: ${expectedValue})`
       );
     }
   }

   const dateInput = document.getElementById("input_date");
   testValueAsNumberGetter("date", dateInput, [
     ["", NaN],
     ["0000-12-10", NaN],
     ["2019-00-12", NaN],
     ["2019-12-00", NaN],
     ["2019-13-10", NaN],
     ["2019-02-29", NaN],
     ["2019-12-10", 1575936000000],
     ["2016-02-29", 1456704000000] // Leap year
   ]);
   testValueAsNumb