[html-tests] Update Audio constructor test to match specs (#528)

Neither HTML nor WebIDL seem to say anything that would make Audio()
without new work. Even the very first revision of Web Apps 1.0 from
2006 says "The Audio() *constructor* takes a single argument" and
nothing about calling it as a function. Ad-hoc testing found that
presently Gecko, Presto, and Trident support calling Audio() without
new, while Blink and WebKit do not.

Also test null and undefined as the arguments, since an undefined
optional argument should be treated as a missing argument per WebIDL,
but isn't in all implementations.

View on GitHub: https://github.com/w3c/web-platform-tests/pull/528

Received on Sunday, 19 January 2014 16:09:01 UTC