| OLD | NEW |
| 1 Tests that Runtime.compileScript and Runtime.runScript work with awaitPromise fl
ag. | 1 Tests that Runtime.compileScript and Runtime.runScript work with awaitPromise fl
ag. |
| 2 | 2 |
| 3 Running test: testRunAndCompileWithoutAgentEnable | 3 Running test: testRunAndCompileWithoutAgentEnable |
| 4 { | 4 { |
| 5 code : 0 | 5 error : { |
| 6 message : Runtime agent is not enabled | 6 code : -32000 |
| 7 message : Runtime agent is not enabled |
| 8 } |
| 9 id : <messageId> |
| 7 } | 10 } |
| 8 { | 11 { |
| 9 code : 0 | 12 error : { |
| 10 message : Runtime agent is not enabled | 13 code : -32000 |
| 14 message : Runtime agent is not enabled |
| 15 } |
| 16 id : <messageId> |
| 11 } | 17 } |
| 12 | 18 |
| 13 Running test: testSyntaxErrorInScript | 19 Running test: testSyntaxErrorInScript |
| 14 { | 20 { |
| 15 exceptionDetails : { | 21 id : <messageId> |
| 16 columnNumber : 1 | 22 result : { |
| 17 exception : { | 23 exceptionDetails : { |
| 18 className : SyntaxError | 24 columnNumber : 1 |
| 19 description : SyntaxError: Unexpected token } | 25 exception : { |
| 20 objectId : 0 | 26 className : SyntaxError |
| 21 subtype : error | 27 description : SyntaxError: Unexpected token } |
| 22 type : object | 28 objectId : <objectId> |
| 29 subtype : error |
| 30 type : object |
| 31 } |
| 32 exceptionId : <exceptionId> |
| 33 lineNumber : 1 |
| 34 scriptId : <scriptId> |
| 35 text : Uncaught |
| 23 } | 36 } |
| 24 exceptionId : 0 | |
| 25 lineNumber : 1 | |
| 26 scriptId : 0 | |
| 27 text : Uncaught | |
| 28 } | 37 } |
| 29 } | 38 } |
| 30 | 39 |
| 31 Running test: testSyntaxErrorInEvalInScript | 40 Running test: testSyntaxErrorInEvalInScript |
| 32 { | 41 { |
| 33 exceptionDetails : { | 42 id : <messageId> |
| 34 columnNumber : 0 | 43 result : { |
| 35 exception : { | 44 exceptionDetails : { |
| 45 columnNumber : 0 |
| 46 exception : { |
| 47 className : SyntaxError |
| 48 description : SyntaxError: Unexpected token } at boo.js:2:2 |
| 49 objectId : <objectId> |
| 50 subtype : error |
| 51 type : object |
| 52 } |
| 53 exceptionId : <exceptionId> |
| 54 lineNumber : 0 |
| 55 scriptId : <scriptId> |
| 56 stackTrace : { |
| 57 callFrames : [ |
| 58 [0] : { |
| 59 columnNumber : 1 |
| 60 functionName : |
| 61 lineNumber : 1 |
| 62 scriptId : <scriptId> |
| 63 url : boo.js |
| 64 } |
| 65 ] |
| 66 } |
| 67 text : Uncaught |
| 68 } |
| 69 result : { |
| 36 className : SyntaxError | 70 className : SyntaxError |
| 37 description : SyntaxError: Unexpected token } at boo.js:2:2 | 71 description : SyntaxError: Unexpected token } at boo.js:2:2 |
| 38 objectId : 0 | 72 objectId : <objectId> |
| 39 subtype : error | 73 subtype : error |
| 40 type : object | 74 type : object |
| 41 } | 75 } |
| 42 exceptionId : 0 | |
| 43 lineNumber : 0 | |
| 44 scriptId : 0 | |
| 45 stackTrace : { | |
| 46 callFrames : [ | |
| 47 [0] : { | |
| 48 columnNumber : 1 | |
| 49 functionName : | |
| 50 lineNumber : 1 | |
| 51 scriptId : 0 | |
| 52 url : boo.js | |
| 53 } | |
| 54 ] | |
| 55 } | |
| 56 text : Uncaught | |
| 57 } | |
| 58 result : { | |
| 59 className : SyntaxError | |
| 60 description : SyntaxError: Unexpected token } at boo.js:2:2 | |
| 61 objectId : [ObjectId] | |
| 62 subtype : error | |
| 63 type : object | |
| 64 } | 76 } |
| 65 } | 77 } |
| 66 | 78 |
| 67 Running test: testRunNotCompiledScript | 79 Running test: testRunNotCompiledScript |
| 68 { | 80 { |
| 69 code : 0 | 81 error : { |
| 70 message : No script with given id | 82 code : -32000 |
| 83 message : No script with given id |
| 84 } |
| 85 id : <messageId> |
| 71 } | 86 } |
| 72 | 87 |
| 73 Running test: testRunCompiledScriptAfterAgentWasReenabled | 88 Running test: testRunCompiledScriptAfterAgentWasReenabled |
| 74 { | 89 { |
| 75 code : 0 | 90 error : { |
| 76 message : Runtime agent is not enabled | 91 code : -32000 |
| 92 message : Runtime agent is not enabled |
| 93 } |
| 94 id : <messageId> |
| 77 } | 95 } |
| 78 { | 96 { |
| 79 code : 0 | 97 error : { |
| 80 message : No script with given id | 98 code : -32000 |
| 99 message : No script with given id |
| 100 } |
| 101 id : <messageId> |
| 81 } | 102 } |
| 82 | 103 |
| 83 Running test: testRunScriptWithPreview | 104 Running test: testRunScriptWithPreview |
| 84 { | 105 { |
| 106 id : <messageId> |
| 85 result : { | 107 result : { |
| 86 className : Object | 108 result : { |
| 87 description : Object | 109 className : Object |
| 88 objectId : [ObjectId] | |
| 89 preview : { | |
| 90 description : Object | 110 description : Object |
| 91 overflow : false | 111 objectId : <objectId> |
| 92 properties : [ | 112 preview : { |
| 93 [0] : { | 113 description : Object |
| 94 name : a | 114 overflow : false |
| 95 type : number | 115 properties : [ |
| 96 value : 1 | 116 [0] : { |
| 97 } | 117 name : a |
| 98 ] | 118 type : number |
| 119 value : 1 |
| 120 } |
| 121 ] |
| 122 type : object |
| 123 } |
| 99 type : object | 124 type : object |
| 100 } | 125 } |
| 101 type : object | |
| 102 } | 126 } |
| 103 } | 127 } |
| 104 | 128 |
| 105 Running test: testRunScriptReturnByValue | 129 Running test: testRunScriptReturnByValue |
| 106 { | 130 { |
| 131 id : <messageId> |
| 107 result : { | 132 result : { |
| 108 type : object | 133 result : { |
| 109 value : { | 134 type : object |
| 110 a : 1 | 135 value : { |
| 136 a : 1 |
| 137 } |
| 111 } | 138 } |
| 112 } | 139 } |
| 113 } | 140 } |
| 114 | 141 |
| 115 Running test: testAwaitNotPromise | 142 Running test: testAwaitNotPromise |
| 116 { | 143 { |
| 117 code : 0 | 144 error : { |
| 118 message : Result of the script execution is not a promise | 145 code : -32000 |
| 146 message : Result of the script execution is not a promise |
| 147 } |
| 148 id : <messageId> |
| 119 } | 149 } |
| 120 | 150 |
| 121 Running test: testAwaitResolvedPromise | 151 Running test: testAwaitResolvedPromise |
| 122 { | 152 { |
| 153 id : <messageId> |
| 123 result : { | 154 result : { |
| 124 type : object | 155 result : { |
| 125 value : { | 156 type : object |
| 126 a : 1 | 157 value : { |
| 158 a : 1 |
| 159 } |
| 127 } | 160 } |
| 128 } | 161 } |
| 129 } | 162 } |
| 130 | 163 |
| 131 Running test: testAwaitRejectedPromise | 164 Running test: testAwaitRejectedPromise |
| 132 { | 165 { |
| 133 exceptionDetails : { | 166 id : <messageId> |
| 134 columnNumber : 0 | 167 result : { |
| 135 exception : { | 168 exceptionDetails : { |
| 136 objectId : 0 | 169 columnNumber : 0 |
| 170 exception : { |
| 171 type : object |
| 172 value : { |
| 173 a : 1 |
| 174 } |
| 175 } |
| 176 exceptionId : <exceptionId> |
| 177 lineNumber : 0 |
| 178 stackTrace : { |
| 179 callFrames : [ |
| 180 ] |
| 181 } |
| 182 text : Uncaught (in promise) |
| 183 } |
| 184 result : { |
| 137 type : object | 185 type : object |
| 138 value : { | 186 value : { |
| 139 a : 1 | 187 a : 1 |
| 140 } | 188 } |
| 141 } | 189 } |
| 142 exceptionId : 0 | |
| 143 lineNumber : 0 | |
| 144 stackTrace : { | |
| 145 callFrames : [ | |
| 146 ] | |
| 147 } | |
| 148 text : Uncaught (in promise) | |
| 149 } | 190 } |
| 150 result : { | 191 } |
| 151 type : object | |
| 152 value : { | |
| 153 a : 1 | |
| 154 } | |
| 155 } | |
| 156 } | |
| 157 | |
| OLD | NEW |