 assert_equals(element.valueAsNumber, expectedValueAsNumber);
         },
         `valueAsNumber getter on type ${type} (actual value: ${value}, ` +
         `expected valueAsNumber: ${expectedValueAsNumber})`
       );
     }
   }

   function testValueAsNumberSetter(type, element, cases) {
     for (const [valueAsNumber, expectedValue] of cases) {
       test(
         () => {
           element.valueAsNumber = valueAsNumber;
           assert_equals(element.value, expectedValue);
         },
         `v