Index: test/inspector/runtime/evaluate-with-generate-preview.js |
diff --git a/test/inspector/runtime/evaluate-with-generate-preview.js b/test/inspector/runtime/evaluate-with-generate-preview.js |
index b572189f6582fb805554a756ffe6942a470e2fb7..13874133447433b2afffd76deb2c06d20aa03fae 100644 |
--- a/test/inspector/runtime/evaluate-with-generate-preview.js |
+++ b/test/inspector/runtime/evaluate-with-generate-preview.js |
@@ -65,6 +65,8 @@ var objInheritsGetterProperty = {__proto__: parentObj}; |
allowAccessorFormatting(objInheritsGetterProperty); |
`); |
+InspectorTest.setupInjectedScriptEnvironment(); |
+ |
InspectorTest.runTestSuite([ |
function testObjectPropertiesPreview(next) |
{ |
@@ -134,5 +136,12 @@ InspectorTest.runTestSuite([ |
Protocol.Runtime.evaluate({ "expression": "objInheritsGetterProperty", "generatePreview": true }) |
.then(result => InspectorTest.logMessage(result.result.result.preview)) |
.then(next); |
+ }, |
+ |
+ function testObjWithArrayAsProto(next) |
+ { |
+ Protocol.Runtime.evaluate({ "expression": "Object.create([1,2])", "generatePreview": true }) |
+ .then(result => InspectorTest.logMessage(result.result.result.preview)) |
+ .then(next); |
} |
]); |