Re: Using WPT as unit tests for polyfill libraries?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/19/2015 05:25 AM, Glen Huang wrote:
> @Ms2ger
> 
> Glad to hear they can be merged.
> 
> As for classList.force, since we are explicitly passing an
> ECMAScript value to it, according to WebIDL, it will first be
> converted to boolean by using ToBoolean(undefined), which returns
> false. So toggle("name", undefined) should actually remove the
> class and not toggling it. But I haven't go through WebIDL very
> throughly, so I'm not absolutely sure that's correct, will go
> through it more carefully when I'm writing the tests.

Off-list, since not really relevant: the overload resolution algorithm
<https://heycam.github.io/webidl/#dfn-overload-resolution-algorithm>
treats undefined as triggering the default.

HTH
Ms2ger
-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJU5ZaIAAoJEOXgvIL+s8n28VkH/1m56y1ZrZEBM2KWPVVyl1HF
lWjNCS7D1XN0eUnucir380n+8QrI5s2vv4tcr0KxiLWhNaJENFHL2K4FaNM2QeMI
gr3BPdW82jwnLw534J3EfdxSIDcerwnu2A1GJjSst5KijLrGpXK/DAdKrmjuOGoW
P2W2TvqtcB1nlx8Th1b+nj4MVWXaQuwQHqh5MdOq/aADBg0O4ae9D1ZW0rZwD+0p
0tdA52iYVk6nCIJ5KmqBYuMWwHj2LmDLc66IDyIjgRuu5Vb5dDlpO0J6PqQlYSYw
TabUnD9rAzPTd0v0dsGFXZIMGeFHQ+OsO5uvHWlA1XyJErzcmIc6ChJ6sB0PCL0=
=jD9c
-----END PGP SIGNATURE-----

Received on Thursday, 19 February 2015 07:54:14 UTC