OLD | NEW |
| (Empty) |
1 Tests that Runtime.awaitPromise works. | |
2 | |
3 Running test: testResolvedPromise | |
4 { | |
5 result : { | |
6 description : 239 | |
7 type : number | |
8 value : 239 | |
9 } | |
10 } | |
11 | |
12 Running test: testRejectedPromise | |
13 { | |
14 exceptionDetails : { | |
15 columnNumber : 0 | |
16 exception : { | |
17 objectId : 0 | |
18 type : object | |
19 value : { | |
20 a : 1 | |
21 } | |
22 } | |
23 exceptionId : 0 | |
24 lineNumber : 0 | |
25 stackTrace : { | |
26 callFrames : [ | |
27 ] | |
28 } | |
29 text : Uncaught (in promise) | |
30 } | |
31 result : { | |
32 type : object | |
33 value : { | |
34 a : 1 | |
35 } | |
36 } | |
37 } | |
38 | |
39 Running test: testRejectedPromiseWithStack | |
40 { | |
41 exceptionDetails : { | |
42 columnNumber : 0 | |
43 exception : { | |
44 description : 239 | |
45 objectId : 0 | |
46 type : number | |
47 value : 239 | |
48 } | |
49 exceptionId : 0 | |
50 lineNumber : 0 | |
51 stackTrace : { | |
52 callFrames : [ | |
53 ] | |
54 parent : { | |
55 callFrames : [ | |
56 [0] : { | |
57 columnNumber : 4 | |
58 functionName : rejectPromise | |
59 lineNumber : 17 | |
60 scriptId : 0 | |
61 url : test.js | |
62 } | |
63 [1] : { | |
64 columnNumber : 0 | |
65 functionName : (anonymous) | |
66 lineNumber : 0 | |
67 scriptId : 0 | |
68 url : (empty) | |
69 } | |
70 ] | |
71 description : Promise.reject | |
72 } | |
73 } | |
74 text : Uncaught (in promise) | |
75 } | |
76 result : { | |
77 description : 239 | |
78 type : number | |
79 value : 239 | |
80 } | |
81 } | |
82 | |
83 Running test: testPendingPromise | |
84 { | |
85 result : { | |
86 description : 239 | |
87 type : number | |
88 value : 239 | |
89 } | |
90 } | |
91 | |
92 Running test: testResolvedWithoutArgsPromise | |
93 { | |
94 result : { | |
95 type : undefined | |
96 } | |
97 } | |
98 | |
99 Running test: testGarbageCollectedPromise | |
100 { | |
101 code : -32000 | |
102 message : Promise was collected | |
103 } | |
104 | |
OLD | NEW |