2016-10-05 15:07:57 +00:00
|
|
|
Check that exceptionThrown is supported by test runner.
|
|
|
|
{
|
|
|
|
method : Runtime.exceptionThrown
|
|
|
|
params : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 2
|
|
|
|
exception : {
|
|
|
|
className : Error
|
2019-01-07 10:45:04 +00:00
|
|
|
description : Error at <anonymous>:2:9
|
2016-10-05 15:07:57 +00:00
|
|
|
objectId : <objectId>
|
|
|
|
preview : {
|
2019-01-07 10:45:04 +00:00
|
|
|
description : Error at <anonymous>:2:9
|
2016-10-05 15:07:57 +00:00
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
[0] : {
|
|
|
|
name : stack
|
|
|
|
type : string
|
2019-01-07 10:45:04 +00:00
|
|
|
value : Error at <anonymous>:2:9
|
2016-10-05 15:07:57 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
lineNumber : 1
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 8
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2016-10-05 15:07:57 +00:00
|
|
|
lineNumber : 1
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
text : Uncaught Error
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
method : Runtime.exceptionThrown
|
|
|
|
params : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 1
|
|
|
|
exception : {
|
|
|
|
className : SyntaxError
|
|
|
|
description : SyntaxError: Unexpected token }
|
|
|
|
objectId : <objectId>
|
|
|
|
preview : {
|
|
|
|
description : SyntaxError: Unexpected token }
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
[0] : {
|
|
|
|
name : stack
|
|
|
|
type : string
|
|
|
|
value : SyntaxError: Unexpected token }
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
name : message
|
|
|
|
type : string
|
|
|
|
value : Unexpected token }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
text : Uncaught SyntaxError: Unexpected token }
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
method : Runtime.exceptionThrown
|
|
|
|
params : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 2
|
|
|
|
exception : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 239
|
2016-10-05 15:07:57 +00:00
|
|
|
type : number
|
|
|
|
value : 239
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
lineNumber : 1
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 2
|
2019-01-07 10:45:04 +00:00
|
|
|
functionName :
|
2016-10-05 15:07:57 +00:00
|
|
|
lineNumber : 1
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url :
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
text : Uncaught 239
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
}
|
|
|
|
}
|