diff --git a/test/intl402/Intl/getCanonicalLocales/duplicates.js b/test/intl402/Intl/getCanonicalLocales/duplicates.js index cff587ca3c..b9e786b240 100644 --- a/test/intl402/Intl/getCanonicalLocales/duplicates.js +++ b/test/intl402/Intl/getCanonicalLocales/duplicates.js @@ -11,9 +11,8 @@ info: | includes: [compareArray.js] ---*/ -assert(compareArray( - Intl.getCanonicalLocales( - ['ab-cd', 'ff', 'de-rt', 'ab-Cd']), ['ab-CD', 'ff', 'de-RT'])); +assert.compareArray(Intl.getCanonicalLocales( + ['ab-cd', 'ff', 'de-rt', 'ab-Cd']), ['ab-CD', 'ff', 'de-RT']); var locales = Intl.getCanonicalLocales(['en-US', 'en-US']); -assert(compareArray(locales, ['en-US']), 'en-US'); +assert.compareArray(locales, ['en-US'], 'en-US'); diff --git a/test/intl402/Intl/getCanonicalLocales/locales-is-not-a-string.js b/test/intl402/Intl/getCanonicalLocales/locales-is-not-a-string.js index ee96616d7f..43f6087b04 100644 --- a/test/intl402/Intl/getCanonicalLocales/locales-is-not-a-string.js +++ b/test/intl402/Intl/getCanonicalLocales/locales-is-not-a-string.js @@ -15,7 +15,7 @@ features: [Symbol] var gCL = Intl.getCanonicalLocales; function assertArray(l, r) { - assert(compareArray(l, r), r); + assert.compareArray(l, r, r); } assertArray(gCL(), []); diff --git a/test/intl402/Intl/getCanonicalLocales/main.js b/test/intl402/Intl/getCanonicalLocales/main.js index ae088b38a2..c6617fc20b 100644 --- a/test/intl402/Intl/getCanonicalLocales/main.js +++ b/test/intl402/Intl/getCanonicalLocales/main.js @@ -14,7 +14,7 @@ includes: [compareArray.js] var gCL = Intl.getCanonicalLocales; function assertArray(l, r) { - assert(compareArray(l, r), r); + assert.compareArray(l, r, r); } assertArray(gCL(), []); diff --git a/test/intl402/Intl/getCanonicalLocales/overriden-arg-length.js b/test/intl402/Intl/getCanonicalLocales/overriden-arg-length.js index 49321736a0..fe0fcc28de 100644 --- a/test/intl402/Intl/getCanonicalLocales/overriden-arg-length.js +++ b/test/intl402/Intl/getCanonicalLocales/overriden-arg-length.js @@ -32,8 +32,11 @@ Object.defineProperty(locales, "length", { get: function() { return "1" } }); -assert(compareArray(Intl.getCanonicalLocales(locales), ['en-US']), - "should return one element if locales.length is '1'"); +assert.compareArray( + Intl.getCanonicalLocales(locales), + ['en-US'], + "should return one element if locales.length is '1'" +); var locales = { '0': 'en-US', @@ -44,8 +47,11 @@ Object.defineProperty(locales, "length", { get: function() { return 1.3 } }); -assert(compareArray(Intl.getCanonicalLocales(locales), ['en-US']), - "should return one element if locales.length is 1.3"); +assert.compareArray( + Intl.getCanonicalLocales(locales), + ['en-US'], + "should return one element if locales.length is 1.3" +); var locales = { '0': 'en-US', @@ -69,8 +75,11 @@ Object.defineProperty(locales, "length", { get: function() { return -Infinity } }); -assert(compareArray(Intl.getCanonicalLocales(locales), []), - "should return empty array if locales.length is -Infinity"); +assert.compareArray( + Intl.getCanonicalLocales(locales), + [], + "should return empty array if locales.length is -Infinity" +); var locales = { length: -Math.pow(2, 32) + 1 @@ -80,8 +89,11 @@ Object.defineProperty(locales, "0", { get: function() { throw new Error("must not be gotten!"); } }) -assert(compareArray(Intl.getCanonicalLocales(locales), []), - "should return empty array if locales.length is a negative value"); +assert.compareArray( + Intl.getCanonicalLocales(locales), + [], + "should return empty array if locales.length is a negative value" +); var count = 0; var locs = { get length() { if (count++ > 0) throw 42; return 0; } }; diff --git a/test/intl402/Intl/getCanonicalLocales/overriden-push.js b/test/intl402/Intl/getCanonicalLocales/overriden-push.js index 142f123c53..926ab1724c 100644 --- a/test/intl402/Intl/getCanonicalLocales/overriden-push.js +++ b/test/intl402/Intl/getCanonicalLocales/overriden-push.js @@ -16,4 +16,4 @@ Array.prototype.push = function() { throw 42; }; // must not throw 42, might if push is used var arr = Intl.getCanonicalLocales(["en-US"]); -assert(compareArray(arr, ["en-US"])); +assert.compareArray(arr, ["en-US"]); diff --git a/test/intl402/Intl/getCanonicalLocales/to-string.js b/test/intl402/Intl/getCanonicalLocales/to-string.js index 3d18a6dff0..f3c0949a26 100644 --- a/test/intl402/Intl/getCanonicalLocales/to-string.js +++ b/test/intl402/Intl/getCanonicalLocales/to-string.js @@ -17,4 +17,4 @@ var locales = { length: 2 }; -assert(compareArray(Intl.getCanonicalLocales(locales), [ "en-US", "pt-BR" ])); +assert.compareArray(Intl.getCanonicalLocales(locales), [ "en-US", "pt-BR" ]); diff --git a/test/intl402/Intl/getCanonicalLocales/weird-cases.js b/test/intl402/Intl/getCanonicalLocales/weird-cases.js index 32fa44f679..72b47b4eb7 100644 --- a/test/intl402/Intl/getCanonicalLocales/weird-cases.js +++ b/test/intl402/Intl/getCanonicalLocales/weird-cases.js @@ -20,5 +20,5 @@ var weirdCases = ]; weirdCases.forEach(function (weird) { - assert(compareArray(Intl.getCanonicalLocales(weird), [weird])); + assert.compareArray(Intl.getCanonicalLocales(weird), [weird]); }); diff --git a/test/intl402/ListFormat/prototype/formatToParts/iterable-undefined.js b/test/intl402/ListFormat/prototype/formatToParts/iterable-undefined.js index c1d6ac91c0..3578939a2c 100644 --- a/test/intl402/ListFormat/prototype/formatToParts/iterable-undefined.js +++ b/test/intl402/ListFormat/prototype/formatToParts/iterable-undefined.js @@ -16,4 +16,4 @@ includes: [compareArray.js] let lf = new Intl.ListFormat(); -assert(compareArray([], lf.formatToParts(undefined))); +assert.compareArray([], lf.formatToParts(undefined));