Re: [html-tests] Properly test integer attributes with valueOf objects (#1806)

I am pretty sure this is still not correct, nor is 8c7d59055bd7f7a76aefaef75241b69d9c3a5149.

Don't these changes make "IDL set followed by IDL get" tests fail? The expected string ends up being "[object Object]" and thus the expected value 0, which is wrong because in the case of "IDL set" the valueOf() property is correctly being called before toString() because the hint is Number.

I think we need two tests: one with valueOf and the default toString where "IDL set" properly sets the value and setAttribute() sets it to 0; and one with just valueOf without the default toString where both "IDL set" and setAttribute() set the value.

View on GitHub: https://github.com/w3c/web-platform-tests/pull/1806#issuecomment-99028441

Received on Tuesday, 5 May 2015 10:35:55 UTC