OLD | NEW |
1 Tests that Runtime.callFunctionOn works with awaitPromise flag. | 1 Tests that Runtime.callFunctionOn works with awaitPromise flag. |
2 | 2 |
3 Running test: testArguments | 3 Running test: testArguments |
4 { | 4 { |
| 5 id : <messageId> |
5 result : { | 6 result : { |
6 type : string | 7 result : { |
7 value : undefined|NaN|[object Object]|[object Object] | 8 type : string |
| 9 value : undefined|NaN|[object Object]|[object Object] |
| 10 } |
8 } | 11 } |
9 } | 12 } |
10 | 13 |
11 Running test: testSyntaxErrorInFunction | 14 Running test: testSyntaxErrorInFunction |
12 { | 15 { |
13 exceptionDetails : { | 16 id : <messageId> |
14 columnNumber : 2 | 17 result : { |
15 exception : { | 18 exceptionDetails : { |
| 19 columnNumber : 2 |
| 20 exception : { |
| 21 className : SyntaxError |
| 22 description : SyntaxError: Unexpected token } |
| 23 objectId : <objectId> |
| 24 subtype : error |
| 25 type : object |
| 26 } |
| 27 exceptionId : <exceptionId> |
| 28 lineNumber : 1 |
| 29 scriptId : <scriptId> |
| 30 text : Uncaught |
| 31 } |
| 32 result : { |
16 className : SyntaxError | 33 className : SyntaxError |
17 description : SyntaxError: Unexpected token } | 34 description : SyntaxError: Unexpected token } |
18 objectId : 0 | 35 objectId : <objectId> |
19 subtype : error | 36 subtype : error |
20 type : object | 37 type : object |
21 } | 38 } |
22 exceptionId : 0 | |
23 lineNumber : 1 | |
24 scriptId : 0 | |
25 text : Uncaught | |
26 } | |
27 result : { | |
28 className : SyntaxError | |
29 description : SyntaxError: Unexpected token } | |
30 objectId : [ObjectId] | |
31 subtype : error | |
32 type : object | |
33 } | 39 } |
34 } | 40 } |
35 | 41 |
36 Running test: testExceptionInFunctionExpression | 42 Running test: testExceptionInFunctionExpression |
37 { | 43 { |
38 exceptionDetails : { | 44 id : <messageId> |
39 columnNumber : 15 | 45 result : { |
40 exception : { | 46 exceptionDetails : { |
| 47 columnNumber : 15 |
| 48 exception : { |
| 49 className : Error |
| 50 description : Error at <anonymous>:1:22 at <anonymous>:1
:36 |
| 51 objectId : <objectId> |
| 52 subtype : error |
| 53 type : object |
| 54 } |
| 55 exceptionId : <exceptionId> |
| 56 lineNumber : 0 |
| 57 scriptId : <scriptId> |
| 58 text : Uncaught |
| 59 } |
| 60 result : { |
41 className : Error | 61 className : Error |
42 description : Error at <anonymous>:1:22 at <anonymous>:1:36 | 62 description : Error at <anonymous>:1:22 at <anonymous>:1:36 |
43 objectId : 0 | 63 objectId : <objectId> |
44 subtype : error | 64 subtype : error |
45 type : object | 65 type : object |
46 } | 66 } |
47 exceptionId : 0 | |
48 lineNumber : 0 | |
49 scriptId : 0 | |
50 text : Uncaught | |
51 } | |
52 result : { | |
53 className : Error | |
54 description : Error at <anonymous>:1:22 at <anonymous>:1:36 | |
55 objectId : [ObjectId] | |
56 subtype : error | |
57 type : object | |
58 } | 67 } |
59 } | 68 } |
60 | 69 |
61 Running test: testFunctionReturnNotPromise | 70 Running test: testFunctionReturnNotPromise |
62 { | 71 { |
63 code : -32000 | 72 code : -32000 |
64 message : Result of the function call is not a promise | 73 message : Result of the function call is not a promise |
65 } | 74 } |
66 | 75 |
67 Running test: testFunctionReturnResolvedPromiseReturnByValue | 76 Running test: testFunctionReturnResolvedPromiseReturnByValue |
68 { | 77 { |
| 78 id : <messageId> |
69 result : { | 79 result : { |
70 type : object | 80 result : { |
71 value : { | 81 type : object |
72 a : 3 | 82 value : { |
| 83 a : 3 |
| 84 } |
73 } | 85 } |
74 } | 86 } |
75 } | 87 } |
76 | 88 |
77 Running test: testFunctionReturnResolvedPromiseWithPreview | 89 Running test: testFunctionReturnResolvedPromiseWithPreview |
78 { | 90 { |
| 91 id : <messageId> |
79 result : { | 92 result : { |
80 className : Object | 93 result : { |
81 description : Object | 94 className : Object |
82 objectId : [ObjectId] | |
83 preview : { | |
84 description : Object | 95 description : Object |
85 overflow : false | 96 objectId : <objectId> |
86 properties : [ | 97 preview : { |
87 [0] : { | 98 description : Object |
88 name : a | 99 overflow : false |
89 type : number | 100 properties : [ |
90 value : 3 | 101 [0] : { |
91 } | 102 name : a |
92 ] | 103 type : number |
| 104 value : 3 |
| 105 } |
| 106 ] |
| 107 type : object |
| 108 } |
93 type : object | 109 type : object |
94 } | 110 } |
95 type : object | |
96 } | 111 } |
97 } | 112 } |
98 | 113 |
99 Running test: testFunctionReturnRejectedPromise | 114 Running test: testFunctionReturnRejectedPromise |
100 { | 115 { |
101 exceptionDetails : { | 116 id : <messageId> |
102 columnNumber : 0 | 117 result : { |
103 exception : { | 118 exceptionDetails : { |
104 objectId : 0 | 119 columnNumber : 0 |
| 120 exception : { |
| 121 type : object |
| 122 value : { |
| 123 a : 3 |
| 124 } |
| 125 } |
| 126 exceptionId : <exceptionId> |
| 127 lineNumber : 0 |
| 128 stackTrace : { |
| 129 callFrames : [ |
| 130 ] |
| 131 } |
| 132 text : Uncaught (in promise) |
| 133 } |
| 134 result : { |
105 type : object | 135 type : object |
106 value : { | 136 value : { |
107 a : 3 | 137 a : 3 |
108 } | 138 } |
109 } | 139 } |
110 exceptionId : 0 | |
111 lineNumber : 0 | |
112 stackTrace : { | |
113 callFrames : [ | |
114 ] | |
115 } | |
116 text : Uncaught (in promise) | |
117 } | 140 } |
118 result : { | 141 } |
119 type : object | |
120 value : { | |
121 a : 3 | |
122 } | |
123 } | |
124 } | |
125 | |
OLD | NEW |