75 lines
1.9 KiB
Plaintext
75 lines
1.9 KiB
Plaintext
Test for CommandLineAPI getEventListeners.
|
|
|
|
|
|
== Running test suite: Console.CommandLineAPI.getEventListeners
|
|
-- Running test case: Console.CommandLineAPI.getEventListeners.NoArguments
|
|
TypeError: Argument 1 ('target') to CommandLineAPIHost.getEventListeners must be an instance of EventTarget
|
|
|
|
-- Running test case: Console.CommandLineAPI.getEventListeners.Undefined
|
|
TypeError: Argument 1 ('target') to CommandLineAPIHost.getEventListeners must be an instance of EventTarget
|
|
|
|
-- Running test case: Console.CommandLineAPI.getEventListeners.Null
|
|
TypeError: Argument 1 ('target') to CommandLineAPIHost.getEventListeners must be an instance of EventTarget
|
|
|
|
-- Running test case: Console.CommandLineAPI.getEventListeners.String
|
|
TypeError: Argument 1 ('target') to CommandLineAPIHost.getEventListeners must be an instance of EventTarget
|
|
|
|
-- Running test case: Console.CommandLineAPI.getEventListeners.window
|
|
{
|
|
"error": [
|
|
{
|
|
"listener": "<function bound >",
|
|
"once": false,
|
|
"passive": false,
|
|
"useCapture": false
|
|
}
|
|
],
|
|
"load": [
|
|
{
|
|
"listener": "<function onload>",
|
|
"once": false,
|
|
"passive": false,
|
|
"useCapture": false
|
|
}
|
|
]
|
|
}
|
|
|
|
-- Running test case: Console.CommandLineAPI.getEventListeners.NodeNoListeners
|
|
{}
|
|
|
|
-- Running test case: Console.CommandLineAPI.getEventListeners.NodeWithListeners
|
|
{
|
|
"click": [
|
|
{
|
|
"listener": "<function onclickHandler>",
|
|
"once": false,
|
|
"passive": false,
|
|
"useCapture": false
|
|
},
|
|
{
|
|
"listener": "<function clickHandler>",
|
|
"once": false,
|
|
"passive": false,
|
|
"useCapture": true
|
|
}
|
|
],
|
|
"hover": [
|
|
{
|
|
"listener": "<function hoverHandler>",
|
|
"once": true,
|
|
"passive": true,
|
|
"useCapture": false
|
|
}
|
|
],
|
|
"fake": [
|
|
{
|
|
"listener": "<function fakeHandler>",
|
|
"once": false,
|
|
"passive": false,
|
|
"useCapture": false
|
|
}
|
|
]
|
|
}
|
|
|
|
|