2016-10-02 21:22:49 +00:00
|
|
|
Tests that Runtime.evaluate works with awaitPromise flag.
|
|
|
|
|
|
|
|
Running test: testResolvedPromise
|
|
|
|
{
|
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 : {
|
|
|
|
description : 239
|
|
|
|
type : number
|
|
|
|
value : 239
|
|
|
|
}
|
2016-10-02 21:22:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testRejectedPromise
|
|
|
|
{
|
2016-10-03 23:32:52 +00:00
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 0
|
|
|
|
exception : {
|
|
|
|
description : 239
|
|
|
|
type : number
|
|
|
|
value : 239
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
lineNumber : 0
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
text : Uncaught (in promise)
|
|
|
|
}
|
|
|
|
result : {
|
2016-10-02 21:22:49 +00:00
|
|
|
description : 239
|
|
|
|
type : number
|
|
|
|
value : 239
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testPrimitiveValueInsteadOfPromise
|
|
|
|
{
|
2016-10-03 23:32:52 +00:00
|
|
|
error : {
|
|
|
|
code : -32000
|
|
|
|
message : Result of the evaluation is not a promise
|
|
|
|
}
|
|
|
|
id : <messageId>
|
2016-10-02 21:22:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testObjectInsteadOfPromise
|
|
|
|
{
|
2016-10-03 23:32:52 +00:00
|
|
|
error : {
|
|
|
|
code : -32000
|
|
|
|
message : Result of the evaluation is not a promise
|
|
|
|
}
|
|
|
|
id : <messageId>
|
2016-10-02 21:22:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testPendingPromise
|
|
|
|
{
|
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 : 239
|
|
|
|
}
|
2016-10-02 21:22:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testExceptionInEvaluate
|
|
|
|
{
|
2016-10-03 23:32:52 +00:00
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 0
|
|
|
|
exception : {
|
|
|
|
description : 239
|
|
|
|
type : number
|
|
|
|
value : 239
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
text : Uncaught
|
|
|
|
}
|
|
|
|
result : {
|
2016-10-02 21:22:49 +00:00
|
|
|
description : 239
|
|
|
|
type : number
|
|
|
|
value : 239
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|