Commit c72c90bc authored by kozyatinskiy's avatar kozyatinskiy Committed by Commit bot

[inspector] run more tests with InspectorTest.setupInjectedScriptEnvironment

+ bonus: new version of get-properties.js test - good illustration of out progress in tests.

BUG=none
R=dgozman@chromium.org

Review-Url: https://codereview.chromium.org/2774493002
Cr-Commit-Position: refs/heads/master@{#44121}
parent f633c5f3
Properties of Object(5)
Checks Runtime.getProperties method
Running test: testObject5
__proto__ own object undefined
foo own string cat
Internal properties
[[PrimitiveValue]] number 5
Properties of Not own properties
Running test: testNotOwn
__defineGetter__ inherited function undefined
__defineSetter__ inherited function undefined
__lookupGetter__ inherited function undefined
......@@ -20,16 +23,19 @@ Properties of Not own properties
toLocaleString inherited function undefined
toString inherited function undefined
valueOf inherited function undefined
Properties of Accessor only properties
Running test: testAccessorsOnly
b own no value, getter, setter
d own no value, setter
Properties of array
Running test: testArray
0 own string red
1 own string green
2 own string blue
__proto__ own object undefined
length own number 3
Properties of Bound function
Running test: testBound
__proto__ own function undefined
length own number 0
name own string bound Number
......@@ -37,8 +43,10 @@ Internal properties
[[BoundArgs]] object undefined
[[BoundThis]] object undefined
[[TargetFunction]] function undefined
Properties of Object that throws on length access
Running test: testObjectThrowsLength
__proto__ own object undefined
length own no value, getter
Properties of TypedArray without length
Running test: testTypedArrayWithoutLength
__proto__ own object undefined
......@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
InspectorTest.setupInjectedScriptEnvironment();
Protocol.Runtime.evaluate({ "expression": "({p1: {a:1}, p2: {b:'foo', bb:'bar'}})" }).then(callbackEvaluate);
function callbackEvaluate(result)
......
This diff is collapsed.
......@@ -4,6 +4,8 @@
InspectorTest.log("Test that descriptions for arrays, maps, and sets include the correct length or size.")
InspectorTest.setupInjectedScriptEnvironment();
Promise.all([
testExpression("new Set()"),
testExpression("new Set([1,2])"),
......
......@@ -22,6 +22,8 @@ InspectorTest.addScript(`
}
`);
InspectorTest.setupInjectedScriptEnvironment();
Protocol.Debugger.enable();
Protocol.Runtime.enable();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment