IDL tests test that the surface of the API behaves according to the rules set by WebIDL, such as optional/required arguments, argument types, numeric ranges, and so on.
Note: Default value tests (for arguments and dictionary members) usually shouldn't be IDL tests. This is because it's quite difficult to check whether the default value was set or not. Instead, these can be incorporated into operation tests, which already do the hard work - all you have to do is make sure the behavior with undefined
has the same expected result that you have for [default value]
.
IDL errors should throw exceptions. WebGPU errors should be checked not to occur by the fixture (TODO!).
Helper rules for writing IDL test plans. Many of these will have helper code that implements these rules.
null
, or undefined
null
or undefined
, may not be false
Set
)NaN
, MAX_VALUE
, -MAX_VALUE
, POSITIVE_INFINITY
, NEGATIVE_INFINITY
undefined
, or null
, but not false