Transform compareArray -> assert.compareArray: test/built-ins/Object/**/*.js (#3236)

This commit is contained in:
Rick Waldron 2021-10-08 16:13:08 -04:00 committed by GitHub
parent 619afdeab7
commit 4ce285da7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 12 deletions

View File

@ -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"]);

View File

@ -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"]);

View File

@ -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"]);