OLD | NEW |
1 Tests that Runtime.evaluate works with awaitPromise flag. | 1 Tests that Runtime.evaluate works with awaitPromise flag. |
2 | 2 |
3 Running test: testResolvedPromise | 3 Running test: testResolvedPromise |
4 { | 4 { |
| 5 id : <messageId> |
5 result : { | 6 result : { |
6 description : 239 | 7 result : { |
7 type : number | 8 description : 239 |
8 value : 239 | 9 type : number |
| 10 value : 239 |
| 11 } |
9 } | 12 } |
10 } | 13 } |
11 | 14 |
12 Running test: testRejectedPromise | 15 Running test: testRejectedPromise |
13 { | 16 { |
14 exceptionDetails : { | 17 id : <messageId> |
15 columnNumber : 0 | 18 result : { |
16 exception : { | 19 exceptionDetails : { |
| 20 columnNumber : 0 |
| 21 exception : { |
| 22 description : 239 |
| 23 type : number |
| 24 value : 239 |
| 25 } |
| 26 exceptionId : <exceptionId> |
| 27 lineNumber : 0 |
| 28 stackTrace : { |
| 29 callFrames : [ |
| 30 ] |
| 31 } |
| 32 text : Uncaught (in promise) |
| 33 } |
| 34 result : { |
17 description : 239 | 35 description : 239 |
18 objectId : 0 | |
19 type : number | 36 type : number |
20 value : 239 | 37 value : 239 |
21 } | 38 } |
22 exceptionId : 0 | |
23 lineNumber : 0 | |
24 scriptId : (scriptId) | |
25 stackTrace : { | |
26 callFrames : [ | |
27 ] | |
28 } | |
29 text : Uncaught (in promise) | |
30 } | |
31 result : { | |
32 description : 239 | |
33 type : number | |
34 value : 239 | |
35 } | 39 } |
36 } | 40 } |
37 | 41 |
38 Running test: testPrimitiveValueInsteadOfPromise | 42 Running test: testPrimitiveValueInsteadOfPromise |
39 { | 43 { |
40 code : -32000 | 44 error : { |
41 message : Result of the evaluation is not a promise | 45 code : -32000 |
| 46 message : Result of the evaluation is not a promise |
| 47 } |
| 48 id : <messageId> |
42 } | 49 } |
43 | 50 |
44 Running test: testObjectInsteadOfPromise | 51 Running test: testObjectInsteadOfPromise |
45 { | 52 { |
46 code : -32000 | 53 error : { |
47 message : Result of the evaluation is not a promise | 54 code : -32000 |
| 55 message : Result of the evaluation is not a promise |
| 56 } |
| 57 id : <messageId> |
48 } | 58 } |
49 | 59 |
50 Running test: testPendingPromise | 60 Running test: testPendingPromise |
51 { | 61 { |
| 62 id : <messageId> |
52 result : { | 63 result : { |
53 type : object | 64 result : { |
54 value : { | 65 type : object |
55 a : 239 | 66 value : { |
| 67 a : 239 |
| 68 } |
56 } | 69 } |
57 } | 70 } |
58 } | 71 } |
59 | 72 |
60 Running test: testExceptionInEvaluate | 73 Running test: testExceptionInEvaluate |
61 { | 74 { |
62 exceptionDetails : { | 75 id : <messageId> |
63 columnNumber : 0 | 76 result : { |
64 exception : { | 77 exceptionDetails : { |
| 78 columnNumber : 0 |
| 79 exception : { |
| 80 description : 239 |
| 81 type : number |
| 82 value : 239 |
| 83 } |
| 84 exceptionId : <exceptionId> |
| 85 lineNumber : 0 |
| 86 scriptId : <scriptId> |
| 87 text : Uncaught |
| 88 } |
| 89 result : { |
65 description : 239 | 90 description : 239 |
66 objectId : 0 | |
67 type : number | 91 type : number |
68 value : 239 | 92 value : 239 |
69 } | 93 } |
70 exceptionId : 0 | |
71 lineNumber : 0 | |
72 scriptId : (scriptId) | |
73 text : Uncaught | |
74 } | |
75 result : { | |
76 description : 239 | |
77 type : number | |
78 value : 239 | |
79 } | 94 } |
80 } | 95 } |
81 | |
OLD | NEW |