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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-callFunctionOn-async.html

Issue 2214193002: [DevTools] Introduce unserializableValue in RemoteObject. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hidden Created 4 years, 4 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-callFunctionOn-async.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-callFunctionOn-async.html b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-callFunctionOn-async.html
index aec636c6e2cce8c9ce98eb3322e68ddcb84a7731..c23ec113def0d0d233f50d4a801fb911f42ae982 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-callFunctionOn-async.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-callFunctionOn-async.html
@@ -113,12 +113,19 @@ function test()
function addArgument(result)
{
- if (result.objectId)
- callArguments.push({ objectId: result.objectId, type: result.type });
- else if (result.value)
- callArguments.push({ value: result.value, type: result.type })
- else
- callArguments.push({ type: result.type });
+ if (result.objectId) {
+ callArguments.push({ objectId: result.objectId });
+ } else if (result.value) {
+ callArguments.push({ value: result.value })
+ } else if (result.unserializableValue) {
+ callArguments.push({ unserializableValue: result.unserializableValue });
+ } else if (result.type === "undefined") {
+ callArguments.push({});
+ } else {
+ InspectorTest.log("Unexpected argument object:");
+ InspectorTest.logObject(result);
+ InspectorTest.completeTest();
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698