| OLD | NEW |
| 1 CONSOLE ERROR: Uncaught (in promise) #<Object> | 1 CONSOLE ERROR: Uncaught (in promise) #<Object> |
| 2 Tests that Runtime.compileScript and Runtime.runScript work with awaitPromise fl
ag. | 2 Tests that Runtime.compileScript and Runtime.runScript work with awaitPromise fl
ag. |
| 3 | 3 |
| 4 Running test: testRunAndCompileWithoutAgentEnable | 4 Running test: testRunAndCompileWithoutAgentEnable |
| 5 { | 5 { |
| 6 code : 0 | 6 code : 0 |
| 7 message : Runtime agent is not enabled | 7 message : Runtime agent is not enabled |
| 8 } | 8 } |
| 9 { | 9 { |
| 10 code : 0 | 10 code : 0 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 } | 40 } |
| 41 text : Uncaught SyntaxError: Unexpected token } | 41 text : Uncaught SyntaxError: Unexpected token } |
| 42 } | 42 } |
| 43 result : { | 43 result : { |
| 44 className : SyntaxError | 44 className : SyntaxError |
| 45 description : SyntaxError: Unexpected token } at boo.js:2:2 | 45 description : SyntaxError: Unexpected token } at boo.js:2:2 |
| 46 objectId : [ObjectId] | 46 objectId : [ObjectId] |
| 47 subtype : error | 47 subtype : error |
| 48 type : object | 48 type : object |
| 49 } | 49 } |
| 50 wasThrown : true | |
| 51 } | 50 } |
| 52 | 51 |
| 53 Running test: testRunNotCompiledScript | 52 Running test: testRunNotCompiledScript |
| 54 { | 53 { |
| 55 code : 0 | 54 code : 0 |
| 56 message : No script with given id | 55 message : No script with given id |
| 57 } | 56 } |
| 58 | 57 |
| 59 Running test: testRunCompiledScriptAfterAgentWasReenabled | 58 Running test: testRunCompiledScriptAfterAgentWasReenabled |
| 60 { | 59 { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 79 [0] : { | 78 [0] : { |
| 80 name : a | 79 name : a |
| 81 type : number | 80 type : number |
| 82 value : 1 | 81 value : 1 |
| 83 } | 82 } |
| 84 ] | 83 ] |
| 85 type : object | 84 type : object |
| 86 } | 85 } |
| 87 type : object | 86 type : object |
| 88 } | 87 } |
| 89 wasThrown : false | |
| 90 } | 88 } |
| 91 | 89 |
| 92 Running test: testRunScriptReturnByValue | 90 Running test: testRunScriptReturnByValue |
| 93 { | 91 { |
| 94 result : { | 92 result : { |
| 95 type : object | 93 type : object |
| 96 value : { | 94 value : { |
| 97 a : 1 | 95 a : 1 |
| 98 } | 96 } |
| 99 } | 97 } |
| 100 wasThrown : false | |
| 101 } | 98 } |
| 102 | 99 |
| 103 Running test: testAwaitNotPromise | 100 Running test: testAwaitNotPromise |
| 104 { | 101 { |
| 105 code : 0 | 102 code : 0 |
| 106 message : Result of the script execution is not a promise | 103 message : Result of the script execution is not a promise |
| 107 } | 104 } |
| 108 | 105 |
| 109 Running test: testAwaitResolvedPromise | 106 Running test: testAwaitResolvedPromise |
| 110 { | 107 { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 127 ] | 124 ] |
| 128 } | 125 } |
| 129 text : Promise was rejected | 126 text : Promise was rejected |
| 130 } | 127 } |
| 131 result : { | 128 result : { |
| 132 type : object | 129 type : object |
| 133 value : { | 130 value : { |
| 134 a : 1 | 131 a : 1 |
| 135 } | 132 } |
| 136 } | 133 } |
| 137 wasThrown : true | |
| 138 } | 134 } |
| 139 | 135 |
| OLD | NEW |