haikuwebkit/LayoutTests/fast/dom/call-a-constructor-as-a-fun...

24 lines
1.3 KiB
Plaintext

This tests if TypeError is thrown or not when we call a constructor as a normal function.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS AudioContext() threw exception TypeError: Constructor requires 'new' operator.
PASS FormData() threw exception TypeError: Constructor requires 'new' operator.
PASS EventSource() threw exception TypeError: Constructor requires 'new' operator.
PASS FileReader() threw exception TypeError: Constructor requires 'new' operator.
PASS Audio() threw exception TypeError: Constructor requires 'new' operator.
PASS Image() threw exception TypeError: Constructor requires 'new' operator.
PASS Option() threw exception TypeError: Constructor requires 'new' operator.
PASS MessageChannel() threw exception TypeError: Constructor requires 'new' operator.
PASS WebKitCSSMatrix() threw exception TypeError: Constructor requires 'new' operator.
PASS WebKitPoint() threw exception TypeError: Constructor requires 'new' operator.
PASS WebSocket() threw exception TypeError: Constructor requires 'new' operator.
PASS Worker() threw exception TypeError: Constructor requires 'new' operator.
PASS XMLHttpRequest() threw exception TypeError: Constructor requires 'new' operator.
PASS XSLTProcessor() threw exception TypeError: Constructor requires 'new' operator.
PASS successfullyParsed is true
TEST COMPLETE