mirror of https://github.com/tc39/test262.git
Transform compareArray -> assert.compareArray: test/built-ins/Object/**/*.js (#3236)
This commit is contained in:
parent
619afdeab7
commit
4ce285da7a
|
@ -12,7 +12,4 @@ includes: [compareArray.js]
|
|||
var str = new String("abc");
|
||||
str[5] = "de";
|
||||
|
||||
var expected = ["0", "1", "2", "5", "length"];
|
||||
var actual = Object.getOwnPropertyNames(str);
|
||||
|
||||
assert(compareArray(actual, expected), 'compareArray(actual, expected) !== true');
|
||||
assert.compareArray(Object.getOwnPropertyNames(str), ["0", "1", "2", "5", "length"]);
|
||||
|
|
|
@ -10,7 +10,4 @@ includes: [compareArray.js]
|
|||
---*/
|
||||
|
||||
var arr = [0, 1, 2];
|
||||
var expected = ["0", "1", "2", "length"];
|
||||
var actual = Object.getOwnPropertyNames(arr);
|
||||
|
||||
assert(compareArray(actual, expected), 'compareArray(actual, expected) !== true');
|
||||
assert.compareArray(Object.getOwnPropertyNames(arr), ["0", "1", "2", "length"]);
|
||||
|
|
|
@ -35,7 +35,4 @@ Object.defineProperty(obj, "d", {
|
|||
configurable: true
|
||||
});
|
||||
|
||||
var actual = Object.getOwnPropertyNames(obj);
|
||||
var expected = ["a", "b", "c", "d"];
|
||||
|
||||
assert(compareArray(actual, expected), 'compareArray(actual, expected) !== true');
|
||||
assert.compareArray(Object.getOwnPropertyNames(obj), ["a", "b", "c", "d"]);
|
||||
|
|
Loading…
Reference in New Issue