| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 print("Tests that Runtime.evaluate will generate correct previews."); | 5 InspectorTest.log("Tests that Runtime.evaluate will generate correct previews.")
; |
| 6 | 6 |
| 7 InspectorTest.addScript( | 7 InspectorTest.addScript( |
| 8 ` | 8 ` |
| 9 var f1 = function(){}; | 9 var f1 = function(){}; |
| 10 | 10 |
| 11 Object.prototype[0] = 'default-first'; | 11 Object.prototype[0] = 'default-first'; |
| 12 var obj = {p1: {a:1}, p2: {b:'foo'}, p3: f1}; | 12 var obj = {p1: {a:1}, p2: {b:'foo'}, p3: f1}; |
| 13 Object.defineProperties(obj, { | 13 Object.defineProperties(obj, { |
| 14 p4: { | 14 p4: { |
| 15 get() { return 2 } | 15 get() { return 2 } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 .then(next); | 67 .then(next); |
| 68 }, | 68 }, |
| 69 | 69 |
| 70 function testInheritingArrayPropertiesPreview(next) | 70 function testInheritingArrayPropertiesPreview(next) |
| 71 { | 71 { |
| 72 Protocol.Runtime.evaluate({ "expression": "inheritingArr", "generatePreview"
: true }) | 72 Protocol.Runtime.evaluate({ "expression": "inheritingArr", "generatePreview"
: true }) |
| 73 .then(result => InspectorTest.logMessage(result.result.result.preview)) | 73 .then(result => InspectorTest.logMessage(result.result.result.preview)) |
| 74 .then(next); | 74 .then(next); |
| 75 } | 75 } |
| 76 ]); | 76 ]); |
| OLD | NEW |