2016-10-02 21:22:49 +00:00
|
|
|
Tests that Runtime.callFunctionOn works with awaitPromise flag.
|
|
|
|
|
|
|
|
Running test: testArguments
|
|
|
|
{
|
2016-10-03 23:32:52 +00:00
|
|
|
id : <messageId>
|
2016-10-02 21:22:49 +00:00
|
|
|
result : {
|
2016-10-03 23:32:52 +00:00
|
|
|
result : {
|
|
|
|
type : string
|
|
|
|
value : undefined|NaN|[object Object]|[object Object]
|
|
|
|
}
|
2016-10-02 21:22:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testSyntaxErrorInFunction
|
|
|
|
{
|
2016-10-03 23:32:52 +00:00
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 2
|
|
|
|
exception : {
|
|
|
|
className : SyntaxError
|
|
|
|
description : SyntaxError: Unexpected token }
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
lineNumber : 1
|
|
|
|
scriptId : <scriptId>
|
|
|
|
text : Uncaught
|
|
|
|
}
|
|
|
|
result : {
|
2016-10-02 21:22:49 +00:00
|
|
|
className : SyntaxError
|
|
|
|
description : SyntaxError: Unexpected token }
|
2016-10-03 23:32:52 +00:00
|
|
|
objectId : <objectId>
|
2016-10-02 21:22:49 +00:00
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testExceptionInFunctionExpression
|
|
|
|
{
|
2016-10-03 23:32:52 +00:00
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 15
|
|
|
|
exception : {
|
|
|
|
className : Error
|
|
|
|
description : Error at <anonymous>:1:22 at <anonymous>:1:36
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
text : Uncaught
|
|
|
|
}
|
|
|
|
result : {
|
2016-10-02 21:22:49 +00:00
|
|
|
className : Error
|
|
|
|
description : Error at <anonymous>:1:22 at <anonymous>:1:36
|
2016-10-03 23:32:52 +00:00
|
|
|
objectId : <objectId>
|
2016-10-02 21:22:49 +00:00
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testFunctionReturnNotPromise
|
|
|
|
{
|
2017-08-14 22:21:45 +00:00
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
result : {
|
|
|
|
description : 239
|
|
|
|
type : number
|
|
|
|
value : 239
|
|
|
|
}
|
|
|
|
}
|
2016-10-02 21:22:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testFunctionReturnResolvedPromiseReturnByValue
|
|
|
|
{
|
2016-10-03 23:32:52 +00:00
|
|
|
id : <messageId>
|
2016-10-02 21:22:49 +00:00
|
|
|
result : {
|
2016-10-03 23:32:52 +00:00
|
|
|
result : {
|
|
|
|
type : object
|
|
|
|
value : {
|
|
|
|
a : 3
|
|
|
|
}
|
2016-10-02 21:22:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testFunctionReturnResolvedPromiseWithPreview
|
|
|
|
{
|
2016-10-03 23:32:52 +00:00
|
|
|
id : <messageId>
|
2016-10-02 21:22:49 +00:00
|
|
|
result : {
|
2016-10-03 23:32:52 +00:00
|
|
|
result : {
|
|
|
|
className : Object
|
2016-10-02 21:22:49 +00:00
|
|
|
description : Object
|
2016-10-03 23:32:52 +00:00
|
|
|
objectId : <objectId>
|
|
|
|
preview : {
|
|
|
|
description : Object
|
|
|
|
overflow : false
|
|
|
|
properties : [
|
|
|
|
[0] : {
|
|
|
|
name : a
|
|
|
|
type : number
|
|
|
|
value : 3
|
|
|
|
}
|
|
|
|
]
|
|
|
|
type : object
|
|
|
|
}
|
2016-10-02 21:22:49 +00:00
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testFunctionReturnRejectedPromise
|
|
|
|
{
|
2016-10-03 23:32:52 +00:00
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 0
|
|
|
|
exception : {
|
|
|
|
type : object
|
|
|
|
value : {
|
|
|
|
a : 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
lineNumber : 0
|
|
|
|
text : Uncaught (in promise)
|
|
|
|
}
|
|
|
|
result : {
|
2016-10-02 21:22:49 +00:00
|
|
|
type : object
|
|
|
|
value : {
|
|
|
|
a : 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-04-12 19:02:58 +00:00
|
|
|
}
|