Chromium Code Reviews| 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..3c2dcc79528257eb63bdb964bb40d17089fdffbb 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.makeContextDirty(); |
|
dgozman
2017/03/23 21:10:20
Let's rename this to setupInjectedScriptEnvironmen
kozy
2017/03/24 00:40:37
Done in previous CL.
|
| + |
| 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); |
| } |
| ]); |