| Index: chrome/test/chromedriver/chrome/devtools_client_impl_unittest.cc
|
| diff --git a/chrome/test/chromedriver/chrome/devtools_client_impl_unittest.cc b/chrome/test/chromedriver/chrome/devtools_client_impl_unittest.cc
|
| index 08482d8c74eaf0140a5a766e3067223c52f73568..75efe88fedb1766b91a9993e8b4f78dd363b0863 100644
|
| --- a/chrome/test/chromedriver/chrome/devtools_client_impl_unittest.cc
|
| +++ b/chrome/test/chromedriver/chrome/devtools_client_impl_unittest.cc
|
| @@ -569,8 +569,12 @@ TEST(ParseInspectorMessage, CommandNoErrorOrResult) {
|
| internal::InspectorMessageType type;
|
| internal::InspectorEvent event;
|
| internal::InspectorCommandResponse response;
|
| - ASSERT_FALSE(internal::ParseInspectorMessage(
|
| + // As per Chromium issue 392577, DevTools does not necessarily return a
|
| + // "result" dictionary for every valid response. If neither "error" nor
|
| + // "result" keys are present, a blank result dictionary should be inferred.
|
| + ASSERT_TRUE(internal::ParseInspectorMessage(
|
| "{\"id\":1}", 0, &type, &event, &response));
|
| + ASSERT_TRUE(response.result->empty());
|
| }
|
|
|
| TEST(ParseInspectorMessage, CommandError) {
|
|
|