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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-async-expected.txt

Issue 2196003002: [DevTools] Add awaitPromise flag to Runtime.evaluate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-promise-then
Patch Set: addressed comments Created 4 years, 5 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
Index: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-async-expected.txt
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-async-expected.txt b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-async-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d59b5ac2102ec5b9c58c4ba0f80609f143ce7cf9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-evaluate-async-expected.txt
@@ -0,0 +1,70 @@
+CONSOLE ERROR: Uncaught (in promise) 239
+Tests that Runtime.evaluate works with awaitPromise flag.
+
+Running test: testResolvedPromise
+{
+ result : {
+ description : 239
+ type : number
+ value : 239
+ }
+}
+
+Running test: testRejectedPromise
+{
+ exceptionDetails : {
+ columnNumber : 0
+ lineNumber : 0
+ scriptId :
+ stackTrace : {
+ callFrames : [
+ ]
+ }
+ text : Promise was rejected
+ }
+ result : {
+ description : 239
+ type : number
+ value : 239
+ }
+ wasThrown : true
+}
+
+Running test: testPrimitiveValueInsteadOfPromise
+{
+ code : -32000
+ message : Result of expression is not a promise.
+}
+
+Running test: testObjectInsteadOfPromise
+{
+ code : -32000
+ message : Result of expression is not a promise.
+}
+
+Running test: testPendingPromise
+{
+ result : {
+ type : object
+ value : {
+ a : 239
+ }
+ }
+}
+
+Running test: testExceptionInEvaluate
+{
+ exceptionDetails : {
+ columnNumber : 0
+ lineNumber : 0
+ scriptId :
+ text : Uncaught 239
+ }
+ result : {
+ description : 239
+ type : number
+ value : 239
+ }
+ wasThrown : true
+}
+

Powered by Google App Engine
This is Rietveld 408576698