summaryrefslogtreecommitdiff
path: root/deps/v8/test/inspector/runtime/run-script-async-expected.txt
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/inspector/runtime/run-script-async-expected.txt')
-rw-r--r--deps/v8/test/inspector/runtime/run-script-async-expected.txt191
1 files changed, 191 insertions, 0 deletions
diff --git a/deps/v8/test/inspector/runtime/run-script-async-expected.txt b/deps/v8/test/inspector/runtime/run-script-async-expected.txt
new file mode 100644
index 0000000000..c6a53caee6
--- /dev/null
+++ b/deps/v8/test/inspector/runtime/run-script-async-expected.txt
@@ -0,0 +1,191 @@
+Tests that Runtime.compileScript and Runtime.runScript work with awaitPromise flag.
+
+Running test: testRunAndCompileWithoutAgentEnable
+{
+ error : {
+ code : -32000
+ message : Runtime agent is not enabled
+ }
+ id : <messageId>
+}
+{
+ error : {
+ code : -32000
+ message : Runtime agent is not enabled
+ }
+ id : <messageId>
+}
+
+Running test: testSyntaxErrorInScript
+{
+ 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
+ }
+ }
+}
+
+Running test: testSyntaxErrorInEvalInScript
+{
+ 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 : <objectId>
+ subtype : error
+ type : object
+ }
+ }
+}
+
+Running test: testRunNotCompiledScript
+{
+ error : {
+ code : -32000
+ message : No script with given id
+ }
+ id : <messageId>
+}
+
+Running test: testRunCompiledScriptAfterAgentWasReenabled
+{
+ error : {
+ code : -32000
+ message : Runtime agent is not enabled
+ }
+ id : <messageId>
+}
+{
+ error : {
+ code : -32000
+ message : No script with given id
+ }
+ id : <messageId>
+}
+
+Running test: testRunScriptWithPreview
+{
+ id : <messageId>
+ result : {
+ result : {
+ className : Object
+ description : Object
+ objectId : <objectId>
+ preview : {
+ description : Object
+ overflow : false
+ properties : [
+ [0] : {
+ name : a
+ type : number
+ value : 1
+ }
+ ]
+ type : object
+ }
+ type : object
+ }
+ }
+}
+
+Running test: testRunScriptReturnByValue
+{
+ id : <messageId>
+ result : {
+ result : {
+ type : object
+ value : {
+ a : 1
+ }
+ }
+ }
+}
+
+Running test: testAwaitNotPromise
+{
+ error : {
+ code : -32000
+ message : Result of the script execution is not a promise
+ }
+ id : <messageId>
+}
+
+Running test: testAwaitResolvedPromise
+{
+ id : <messageId>
+ result : {
+ result : {
+ type : object
+ value : {
+ a : 1
+ }
+ }
+ }
+}
+
+Running test: testAwaitRejectedPromise
+{
+ 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
+ }
+ }
+ }
+} \ No newline at end of file