Remove isStrict guards from tests.

This commit is contained in:
John-David Dalton
2015-09-04 08:36:05 -07:00
parent 1be4adf365
commit 1422f50ee9

View File

@@ -8851,27 +8851,17 @@
});
test('`_.' + methodName + '` should return keys for custom properties on `arguments` objects', 1, function() {
if (!isStrict) {
args.a = 1;
deepEqual(func(args).sort(), ['0', '1', '2', 'a']);
delete args.a;
}
else {
skipTest();
}
args.a = 1;
deepEqual(func(args).sort(), ['0', '1', '2', 'a']);
delete args.a;
});
test('`_.' + methodName + '` should ' + (isKeys ? 'not' : '') + ' include inherited properties of `arguments` objects', 1, function() {
if (!isStrict) {
var expected = isKeys ? ['0', '1', '2'] : ['0', '1', '2', 'a'];
var expected = isKeys ? ['0', '1', '2'] : ['0', '1', '2', 'a'];
objectProto.a = 1;
deepEqual(func(args).sort(), expected);
delete objectProto.a;
}
else {
skipTest();
}
objectProto.a = 1;
deepEqual(func(args).sort(), expected);
delete objectProto.a;
});
test('`_.' + methodName + '` should work with string objects', 1, function() {