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(); |
+ } |
} |
} |