Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: test/inspector/runtime/run-script-async-expected.txt

Issue 2390733002: [inspector] Make InspectorTest.sendCommand* private (Closed)
Patch Set: addressed comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/inspector/runtime/run-script-async.js ('k') | test/inspector/runtime/set-or-map-entries.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/runtime/run-script-async-expected.txt
diff --git a/test/inspector/runtime/run-script-async-expected.txt b/test/inspector/runtime/run-script-async-expected.txt
index 962f5183b6098e09861aca570ac62701bd402913..c6a53caee63f1f534fdb25392b41d9ff43c81e66 100644
--- a/test/inspector/runtime/run-script-async-expected.txt
+++ b/test/inspector/runtime/run-script-async-expected.txt
@@ -2,156 +2,190 @@ Tests that Runtime.compileScript and Runtime.runScript work with awaitPromise fl
Running test: testRunAndCompileWithoutAgentEnable
{
- code : 0
- message : Runtime agent is not enabled
+ error : {
+ code : -32000
+ message : Runtime agent is not enabled
+ }
+ id : <messageId>
}
{
- code : 0
- message : Runtime agent is not enabled
+ error : {
+ code : -32000
+ message : Runtime agent is not enabled
+ }
+ id : <messageId>
}
Running test: testSyntaxErrorInScript
{
- exceptionDetails : {
- columnNumber : 1
- exception : {
- className : SyntaxError
- description : SyntaxError: Unexpected token }
- objectId : 0
- subtype : error
- type : object
+ id : <messageId>
+ result : {
+ exceptionDetails : {
+ columnNumber : 1
+ exception : {
+ className : SyntaxError
+ description : SyntaxError: Unexpected token }
+ objectId : <objectId>
+ subtype : error
+ type : object
+ }
+ exceptionId : <exceptionId>
+ lineNumber : 1
+ scriptId : <scriptId>
+ text : Uncaught
}
- exceptionId : 0
- lineNumber : 1
- scriptId : 0
- text : Uncaught
}
}
Running test: testSyntaxErrorInEvalInScript
{
- exceptionDetails : {
- columnNumber : 0
- exception : {
+ id : <messageId>
+ result : {
+ exceptionDetails : {
+ columnNumber : 0
+ exception : {
+ className : SyntaxError
+ description : SyntaxError: Unexpected token } at boo.js:2:2
+ objectId : <objectId>
+ subtype : error
+ type : object
+ }
+ exceptionId : <exceptionId>
+ lineNumber : 0
+ scriptId : <scriptId>
+ stackTrace : {
+ callFrames : [
+ [0] : {
+ columnNumber : 1
+ functionName :
+ lineNumber : 1
+ scriptId : <scriptId>
+ url : boo.js
+ }
+ ]
+ }
+ text : Uncaught
+ }
+ result : {
className : SyntaxError
description : SyntaxError: Unexpected token } at boo.js:2:2
- objectId : 0
+ objectId : <objectId>
subtype : error
type : object
}
- exceptionId : 0
- lineNumber : 0
- scriptId : 0
- stackTrace : {
- callFrames : [
- [0] : {
- columnNumber : 1
- functionName :
- lineNumber : 1
- scriptId : 0
- url : boo.js
- }
- ]
- }
- text : Uncaught
- }
- result : {
- className : SyntaxError
- description : SyntaxError: Unexpected token } at boo.js:2:2
- objectId : [ObjectId]
- subtype : error
- type : object
}
}
Running test: testRunNotCompiledScript
{
- code : 0
- message : No script with given id
+ error : {
+ code : -32000
+ message : No script with given id
+ }
+ id : <messageId>
}
Running test: testRunCompiledScriptAfterAgentWasReenabled
{
- code : 0
- message : Runtime agent is not enabled
+ error : {
+ code : -32000
+ message : Runtime agent is not enabled
+ }
+ id : <messageId>
}
{
- code : 0
- message : No script with given id
+ error : {
+ code : -32000
+ message : No script with given id
+ }
+ id : <messageId>
}
Running test: testRunScriptWithPreview
{
+ id : <messageId>
result : {
- className : Object
- description : Object
- objectId : [ObjectId]
- preview : {
+ result : {
+ className : Object
description : Object
- overflow : false
- properties : [
- [0] : {
- name : a
- type : number
- value : 1
- }
- ]
+ objectId : <objectId>
+ preview : {
+ description : Object
+ overflow : false
+ properties : [
+ [0] : {
+ name : a
+ type : number
+ value : 1
+ }
+ ]
+ type : object
+ }
type : object
}
- type : object
}
}
Running test: testRunScriptReturnByValue
{
+ id : <messageId>
result : {
- type : object
- value : {
- a : 1
+ result : {
+ type : object
+ value : {
+ a : 1
+ }
}
}
}
Running test: testAwaitNotPromise
{
- code : 0
- message : Result of the script execution is not a promise
+ error : {
+ code : -32000
+ message : Result of the script execution is not a promise
+ }
+ id : <messageId>
}
Running test: testAwaitResolvedPromise
{
+ id : <messageId>
result : {
- type : object
- value : {
- a : 1
+ result : {
+ type : object
+ value : {
+ a : 1
+ }
}
}
}
Running test: testAwaitRejectedPromise
{
- exceptionDetails : {
- columnNumber : 0
- exception : {
- objectId : 0
+ id : <messageId>
+ result : {
+ exceptionDetails : {
+ columnNumber : 0
+ exception : {
+ type : object
+ value : {
+ a : 1
+ }
+ }
+ exceptionId : <exceptionId>
+ lineNumber : 0
+ stackTrace : {
+ callFrames : [
+ ]
+ }
+ text : Uncaught (in promise)
+ }
+ result : {
type : object
value : {
a : 1
}
}
- exceptionId : 0
- lineNumber : 0
- stackTrace : {
- callFrames : [
- ]
- }
- text : Uncaught (in promise)
}
- result : {
- type : object
- value : {
- a : 1
- }
- }
-}
-
+}
« no previous file with comments | « test/inspector/runtime/run-script-async.js ('k') | test/inspector/runtime/set-or-map-entries.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698