OLD | NEW |
| (Empty) |
1 Tests that Runtime.callFunctionOn works with awaitPromise flag. | |
2 | |
3 Running test: testArguments | |
4 { | |
5 result : { | |
6 type : string | |
7 value : undefined|NaN|[object Object]|[object Object] | |
8 } | |
9 } | |
10 | |
11 Running test: testSyntaxErrorInFunction | |
12 { | |
13 exceptionDetails : { | |
14 columnNumber : 2 | |
15 exception : { | |
16 className : SyntaxError | |
17 description : SyntaxError: Unexpected token } | |
18 objectId : 0 | |
19 subtype : error | |
20 type : object | |
21 } | |
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 } | |
34 } | |
35 | |
36 Running test: testExceptionInFunctionExpression | |
37 { | |
38 exceptionDetails : { | |
39 columnNumber : 15 | |
40 exception : { | |
41 className : Error | |
42 description : Error at <anonymous>:1:22 at <anonymous>:1:36 | |
43 objectId : 0 | |
44 subtype : error | |
45 type : object | |
46 } | |
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 } | |
59 } | |
60 | |
61 Running test: testFunctionReturnNotPromise | |
62 { | |
63 code : -32000 | |
64 message : Result of the function call is not a promise | |
65 } | |
66 | |
67 Running test: testFunctionReturnResolvedPromiseReturnByValue | |
68 { | |
69 result : { | |
70 type : object | |
71 value : { | |
72 a : 3 | |
73 } | |
74 } | |
75 } | |
76 | |
77 Running test: testFunctionReturnResolvedPromiseWithPreview | |
78 { | |
79 result : { | |
80 className : Object | |
81 description : Object | |
82 objectId : [ObjectId] | |
83 preview : { | |
84 description : Object | |
85 overflow : false | |
86 properties : [ | |
87 [0] : { | |
88 name : a | |
89 type : number | |
90 value : 3 | |
91 } | |
92 ] | |
93 type : object | |
94 } | |
95 type : object | |
96 } | |
97 } | |
98 | |
99 Running test: testFunctionReturnRejectedPromise | |
100 { | |
101 exceptionDetails : { | |
102 columnNumber : 0 | |
103 exception : { | |
104 objectId : 0 | |
105 type : object | |
106 value : { | |
107 a : 3 | |
108 } | |
109 } | |
110 exceptionId : 0 | |
111 lineNumber : 0 | |
112 stackTrace : { | |
113 callFrames : [ | |
114 ] | |
115 } | |
116 text : Uncaught (in promise) | |
117 } | |
118 result : { | |
119 type : object | |
120 value : { | |
121 a : 3 | |
122 } | |
123 } | |
124 } | |
125 | |
OLD | NEW |