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 5e8f34a283406fa9ae9ec3d3a46a24ab6b594466..3e90eeb1572a31344997a3d73aa2ab0c4e197af4 100644 |
--- a/test/inspector/runtime/evaluate-with-generate-preview.js |
+++ b/test/inspector/runtime/evaluate-with-generate-preview.js |
@@ -43,6 +43,17 @@ var inheritingObj = {}; |
var inheritingArr = []; |
inheritingObj.prototype = obj; |
inheritingArr.prototype = arr; |
+ |
+var shortTypedArray = new Uint8Array(3); |
+var longTypedArray = new Uint8Array(50001); |
+var set = new Set([1, 2, 3]); |
+var bigSet = new Set(); |
+var mixedSet = new Set(); |
+for (var i = 0; i < 10; i++) { |
+ bigSet.add(i); |
+ mixedSet["_prop_" + i] = 1; |
+ mixedSet.add(i); |
+} |
`); |
InspectorTest.runTestSuite([ |
@@ -72,5 +83,40 @@ InspectorTest.runTestSuite([ |
Protocol.Runtime.evaluate({ "expression": "inheritingArr", "generatePreview": true }) |
.then(result => InspectorTest.logMessage(result.result.result.preview)) |
.then(next); |
+ }, |
+ |
+ function testShortTypedArrayPropertiesPreview(next) |
+ { |
+ Protocol.Runtime.evaluate({ "expression": "shortTypedArray", "generatePreview": true }) |
+ .then(result => InspectorTest.logMessage(result.result.result.preview)) |
+ .then(next); |
+ }, |
+ |
+ function testLongTypedArrayPropertiesPreview(next) |
+ { |
+ Protocol.Runtime.evaluate({ "expression": "longTypedArray", "generatePreview": true }) |
+ .then(result => InspectorTest.logMessage(result.result.result.preview)) |
+ .then(next); |
+ }, |
+ |
+ function testSetPropertiesPreview(next) |
+ { |
+ Protocol.Runtime.evaluate({ "expression": "set", "generatePreview": true }) |
+ .then(result => InspectorTest.logMessage(result.result.result.preview)) |
+ .then(next); |
+ }, |
+ |
+ function testBigSetPropertiesPreview(next) |
+ { |
+ Protocol.Runtime.evaluate({ "expression": "bigSet", "generatePreview": true }) |
+ .then(result => InspectorTest.logMessage(result.result.result.preview)) |
+ .then(next); |
+ }, |
+ |
+ function testMixedSetPropertiesPreview(next) |
+ { |
+ Protocol.Runtime.evaluate({ "expression": "mixedSet", "generatePreview": true }) |
+ .then(result => InspectorTest.logMessage(result.result.result.preview)) |
+ .then(next); |
} |
]); |