+2016-12-05 Matt Baker <mattbaker@apple.com>
+
+ Web Inspector: Object.shallowEqual([{}], [{}]) should return true
+ https://bugs.webkit.org/show_bug.cgi?id=165397
+
+ Reviewed by Brian Burg.
+
+ Added passing and failing inputs for TestHarness.prototype.expectShallowEqual.
+
+ * inspector/unit-tests/test-harness-expect-functions-expected.txt:
+ * inspector/unit-tests/test-harness-expect-functions.html:
+
2016-12-05 Dean Jackson <dino@apple.com>
pointer lock needs to be feature detectable
Expected to PASS
PASS: expectShallowEqual({"a":1,"b":2}, {"a":1,"b":2})
PASS: expectShallowEqual({}, {})
+PASS: expectShallowEqual([1,2], [1,2])
+PASS: expectShallowEqual([{"a":1},{"a":2}], [{"a":1},{"a":2}])
+PASS: expectShallowEqual([{}], [{}])
PASS: expectShallowEqual([], [])
Expected to FAIL
FAIL: expectShallowEqual({"a":1,"b":2}, {"a":3,"b":4})
FAIL: expectShallowEqual({}, [])
Expected: []
Actual: {}
+FAIL: expectShallowEqual([1,2], [3,4])
+ Expected: [3,4]
+ Actual: [1,2]
+FAIL: expectShallowEqual([{"a":1},{"a":2}], [{"a":3},{"a":4}])
+ Expected: [{"a":3},{"a":4}]
+ Actual: [{"a":1},{"a":2}]
+FAIL: expectShallowEqual([{"a":1},{"a":2}], [{"b":1},{"b":2}])
+ Expected: [{"b":1},{"b":2}]
+ Actual: [{"a":1},{"a":2}]
-- Running test case: InspectorTest.expectNotShallowEqual
Expected to PASS
PASS: expectNotShallowEqual({"a":1,"b":2}, {"a":3,"b":4})
PASS: expectNotShallowEqual({}, [])
+PASS: expectNotShallowEqual([1,2], [3,4])
+PASS: expectNotShallowEqual([{"a":1},{"a":2}], [{"a":3},{"a":4}])
+PASS: expectNotShallowEqual([{"a":1},{"a":2}], [{"b":1},{"b":2}])
Expected to FAIL
FAIL: expectNotShallowEqual({"a":1,"b":2}, {"a":1,"b":2})
Expected: not {"a":1,"b":2}
FAIL: expectNotShallowEqual({}, {})
Expected: not {}
Actual: {}
+FAIL: expectNotShallowEqual([1,2], [1,2])
+ Expected: not [1,2]
+ Actual: [1,2]
+FAIL: expectNotShallowEqual([{"a":1},{"a":2}], [{"a":1},{"a":2}])
+ Expected: not [{"a":1},{"a":2}]
+ Actual: [{"a":1},{"a":2}]
+FAIL: expectNotShallowEqual([{}], [{}])
+ Expected: not [{}]
+ Actual: [{}]
FAIL: expectNotShallowEqual([], [])
Expected: not []
Actual: []
passingInputs: [
[{a: 1, b: 2}, {a: 1, b: 2}],
[{}, {}],
+ [[1, 2], [1, 2]],
+ [[{a: 1}, {a: 2}], [{a: 1}, {a: 2}]],
+ [[{}], [{}]],
[[], []],
],
failingInputs: [
[{a: 1, b: 2}, {a: 3, b: 4}],
[{}, []],
+ [[1, 2], [3, 4]],
+ [[{a: 1}, {a: 2}], [{a: 3}, {a: 4}]],
+ [[{a: 1}, {a: 2}], [{b: 1}, {b: 2}]],
]
};
addTestCase(expectShallowEqualTestCase);
+2016-12-05 Matt Baker <mattbaker@apple.com>
+
+ Web Inspector: Object.shallowEqual([{}], [{}]) should return true
+ https://bugs.webkit.org/show_bug.cgi?id=165397
+
+ Reviewed by Brian Burg.
+
+ * UserInterface/Base/Utilities.js:
+ (value):
+ Array.shallowEqual should compare array items using strict equivalence,
+ and on failure defer to Object.shallowEqual.
+
2016-12-05 Joseph Pecoraro <pecoraro@apple.com>
Web Inspector: Remove legacy styles