blob: 696b46532e91a2a931b83537f6bc28be3031b931 [file] [log] [blame]
Checks that the Window's EventListener API can be called without an explicit 'this' value.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS addEventListenerFunction.call(undefined, 'myevent', function() { wasWindowEventListenerCalled = true; }); did not throw exception.
PASS dispatchEventFunction.call(undefined, new Event('myevent')) is true
PASS wasWindowEventListenerCalled is true
PASS bodyDispatchEventFunction.call(undefined, new Event('myevent')) is true
PASS wasWindowEventListenerCalled is true
PASS xhrDispatchEventFunction.call(undefined, new Event('myevent')) is true
PASS wasWindowEventListenerCalled is true
PASS addEventListenerFunction('myevent2', function() { wasWindowEventListenerCalled = true; }); did not throw exception.
PASS window.dispatchEvent(new Event('myevent2')) is true
PASS wasWindowEventListenerCalled is true
PASS successfullyParsed is true
TEST COMPLETE