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("Check internal properties reported in object preview."); | 5 InspectorTest.log("Check internal properties reported in object preview."); |
6 | 6 |
7 Protocol.Debugger.enable(); | 7 Protocol.Debugger.enable(); |
8 Protocol.Runtime.enable(); | 8 Protocol.Runtime.enable(); |
9 Protocol.Runtime.onConsoleAPICalled(dumpInternalPropertiesAndEntries); | 9 Protocol.Runtime.onConsoleAPICalled(dumpInternalPropertiesAndEntries); |
10 | 10 |
11 InspectorTest.runTestSuite([ | 11 InspectorTest.runTestSuite([ |
12 function boxedObjects(next) | 12 function boxedObjects(next) |
13 { | 13 { |
14 checkExpression("new Number(239)") | 14 checkExpression("new Number(239)") |
15 .then(() => checkExpression("new Boolean(false)")) | 15 .then(() => checkExpression("new Boolean(false)")) |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 for (var property of properties) { | 98 for (var property of properties) { |
99 if (property.name.startsWith("[[")) | 99 if (property.name.startsWith("[[")) |
100 InspectorTest.logMessage(property); | 100 InspectorTest.logMessage(property); |
101 } | 101 } |
102 if (entries) { | 102 if (entries) { |
103 InspectorTest.log("[[Entries]]:"); | 103 InspectorTest.log("[[Entries]]:"); |
104 InspectorTest.logMessage(entries); | 104 InspectorTest.logMessage(entries); |
105 } | 105 } |
106 InspectorTest.log(""); | 106 InspectorTest.log(""); |
107 } | 107 } |
OLD | NEW |