OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 function test() | 6 function test() |
7 { | 7 { |
8 InspectorTest.runTestSuite([ | 8 InspectorTest.runTestSuite([ |
9 function testRunAndCompileWithoutAgentEnable(next) | 9 function testRunAndCompileWithoutAgentEnable(next) |
10 { | 10 { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 ]); | 111 ]); |
112 | 112 |
113 function dumpResult(result) | 113 function dumpResult(result) |
114 { | 114 { |
115 if (result.error) { | 115 if (result.error) { |
116 result.error.code = 0; | 116 result.error.code = 0; |
117 InspectorTest.logObject(result.error); | 117 InspectorTest.logObject(result.error); |
118 return; | 118 return; |
119 } | 119 } |
120 result = result.result; | 120 result = result.result; |
| 121 if (result.exceptionDetails) { |
| 122 result.exceptionDetails.exceptionId = 0; |
| 123 result.exceptionDetails.exception.objectId = 0; |
| 124 } |
121 if (result.exceptionDetails && result.exceptionDetails.scriptId) | 125 if (result.exceptionDetails && result.exceptionDetails.scriptId) |
122 result.exceptionDetails.scriptId = 0; | 126 result.exceptionDetails.scriptId = 0; |
123 if (result.exceptionDetails && result.exceptionDetails.stackTrace) { | 127 if (result.exceptionDetails && result.exceptionDetails.stackTrace) { |
124 for (var frame of result.exceptionDetails.stackTrace.callFrames) | 128 for (var frame of result.exceptionDetails.stackTrace.callFrames) |
125 frame.scriptId = 0; | 129 frame.scriptId = 0; |
126 } | 130 } |
127 if (result.result && result.result.objectId) | 131 if (result.result && result.result.objectId) |
128 result.result.objectId = "[ObjectId]"; | 132 result.result.objectId = "[ObjectId]"; |
129 InspectorTest.logObject(result); | 133 InspectorTest.logObject(result); |
130 } | 134 } |
131 } | 135 } |
132 </script> | 136 </script> |
133 </head> | 137 </head> |
134 <body onLoad="runTest();"> | 138 <body onLoad="runTest();"> |
135 Tests that Runtime.compileScript and Runtime.runScript work with awaitPromise fl
ag. | 139 Tests that Runtime.compileScript and Runtime.runScript work with awaitPromise fl
ag. |
136 </body> | 140 </body> |
137 </html> | 141 </html> |
138 | 142 |
OLD | NEW |