| OLD | NEW |
| (Empty) | |
| 1 CONSOLE ERROR: Uncaught (in promise) #<Object> |
| 2 Tests that Runtime.compileScript and Runtime.runScript work with awaitPromise fl
ag. |
| 3 |
| 4 Running test: testRunAndCompileWithoutAgentEnable |
| 5 { |
| 6 code : 0 |
| 7 message : Runtime agent is not enabled |
| 8 } |
| 9 { |
| 10 code : 0 |
| 11 message : Runtime agent is not enabled |
| 12 } |
| 13 |
| 14 Running test: testSyntaxErrorInScript |
| 15 { |
| 16 exceptionDetails : { |
| 17 columnNumber : 1 |
| 18 lineNumber : 1 |
| 19 scriptId : 0 |
| 20 text : Uncaught SyntaxError: Unexpected token } |
| 21 } |
| 22 } |
| 23 |
| 24 Running test: testSyntaxErrorInEvalInScript |
| 25 { |
| 26 exceptionDetails : { |
| 27 columnNumber : 0 |
| 28 lineNumber : 0 |
| 29 scriptId : 0 |
| 30 stackTrace : { |
| 31 callFrames : [ |
| 32 [0] : { |
| 33 columnNumber : 1 |
| 34 functionName : |
| 35 lineNumber : 1 |
| 36 scriptId : 0 |
| 37 url : boo.js |
| 38 } |
| 39 ] |
| 40 } |
| 41 text : Uncaught SyntaxError: Unexpected token } |
| 42 } |
| 43 result : { |
| 44 className : SyntaxError |
| 45 description : SyntaxError: Unexpected token } at boo.js:2:2 |
| 46 objectId : [ObjectId] |
| 47 subtype : error |
| 48 type : object |
| 49 } |
| 50 wasThrown : true |
| 51 } |
| 52 |
| 53 Running test: testRunNotCompiledScript |
| 54 { |
| 55 code : 0 |
| 56 message : No script with given id |
| 57 } |
| 58 |
| 59 Running test: testRunCompiledScriptAfterAgentWasReenabled |
| 60 { |
| 61 code : 0 |
| 62 message : Runtime agent is not enabled |
| 63 } |
| 64 { |
| 65 code : 0 |
| 66 message : No script with given id |
| 67 } |
| 68 |
| 69 Running test: testRunScriptWithPreview |
| 70 { |
| 71 result : { |
| 72 className : Object |
| 73 description : Object |
| 74 objectId : [ObjectId] |
| 75 preview : { |
| 76 description : Object |
| 77 overflow : false |
| 78 properties : [ |
| 79 [0] : { |
| 80 name : a |
| 81 type : number |
| 82 value : 1 |
| 83 } |
| 84 ] |
| 85 type : object |
| 86 } |
| 87 type : object |
| 88 } |
| 89 wasThrown : false |
| 90 } |
| 91 |
| 92 Running test: testRunScriptReturnByValue |
| 93 { |
| 94 result : { |
| 95 type : object |
| 96 value : { |
| 97 a : 1 |
| 98 } |
| 99 } |
| 100 wasThrown : false |
| 101 } |
| 102 |
| 103 Running test: testAwaitNotPromise |
| 104 { |
| 105 code : 0 |
| 106 message : Result of the script execution is not a promise |
| 107 } |
| 108 |
| 109 Running test: testAwaitResolvedPromise |
| 110 { |
| 111 result : { |
| 112 type : object |
| 113 value : { |
| 114 a : 1 |
| 115 } |
| 116 } |
| 117 } |
| 118 |
| 119 Running test: testAwaitRejectedPromise |
| 120 { |
| 121 exceptionDetails : { |
| 122 columnNumber : 0 |
| 123 lineNumber : 0 |
| 124 scriptId : |
| 125 stackTrace : { |
| 126 callFrames : [ |
| 127 ] |
| 128 } |
| 129 text : Promise was rejected |
| 130 } |
| 131 result : { |
| 132 type : object |
| 133 value : { |
| 134 a : 1 |
| 135 } |
| 136 } |
| 137 wasThrown : true |
| 138 } |
| 139 |
| OLD | NEW |