diff options
author | André Bargull <andre.bargull@gmail.com> | 2017-12-21 12:08:20 -0800 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2017-12-21 16:46:56 -0500 |
commit | ce3c3d7dbd7efe00f867c4363b7d006d6c9203d9 (patch) | |
tree | 4f1d986aa87fb2c60a872b1cf6aee090208e68e2 /test | |
parent | 20ea611db79495e244ccf9aa37cdb3b22d75a92f (diff) | |
download | qtdeclarative-testsuites-ce3c3d7dbd7efe00f867c4363b7d006d6c9203d9.tar.gz |
Replace mustNotHaveProperty with verifyProperty
Diffstat (limited to 'test')
3 files changed, 18 insertions, 18 deletions
diff --git a/test/intl402/DateTimeFormat/prototype/resolvedOptions/12.3.3.js b/test/intl402/DateTimeFormat/prototype/resolvedOptions/12.3.3.js index caebc9904..9f574ae44 100644 --- a/test/intl402/DateTimeFormat/prototype/resolvedOptions/12.3.3.js +++ b/test/intl402/DateTimeFormat/prototype/resolvedOptions/12.3.3.js @@ -8,7 +8,7 @@ description: > Intl.DateTimeFormat.prototype.resolvedOptions has the right properties. author: Norbert Lindenberg -includes: [testIntl.js] +includes: [testIntl.js, propertyHelper.js] ---*/ var actual = new Intl.DateTimeFormat().resolvedOptions(); @@ -39,13 +39,13 @@ mustHaveProperty(actual, "locale", isCanonicalizedStructurallyValidLanguageTag); mustHaveProperty(actual, "calendar", calendars); mustHaveProperty(actual, "numberingSystem", isValidNumberingSystem); mustHaveProperty(actual, "timeZone", isCanonicalizedStructurallyValidTimeZoneName); -mustNotHaveProperty(actual, "weekday"); -mustNotHaveProperty(actual, "era"); +verifyProperty(actual, "weekday", undefined); +verifyProperty(actual, "era", undefined); mustHaveProperty(actual, "year", ["2-digit", "numeric"]); mustHaveProperty(actual, "month", ["2-digit", "numeric", "narrow", "short", "long"]); mustHaveProperty(actual, "day", ["2-digit", "numeric"]); -mustNotHaveProperty(actual, "hour"); -mustNotHaveProperty(actual, "minute"); -mustNotHaveProperty(actual, "second"); -mustNotHaveProperty(actual, "timeZoneName"); -mustNotHaveProperty(actual, "hour12"); +verifyProperty(actual, "hour", undefined); +verifyProperty(actual, "minute", undefined); +verifyProperty(actual, "second", undefined); +verifyProperty(actual, "timeZoneName", undefined); +verifyProperty(actual, "hour12", undefined); diff --git a/test/intl402/NumberFormat/prototype/resolvedOptions/11.3.3.js b/test/intl402/NumberFormat/prototype/resolvedOptions/11.3.3.js index b454b4c2a..d9842584b 100644 --- a/test/intl402/NumberFormat/prototype/resolvedOptions/11.3.3.js +++ b/test/intl402/NumberFormat/prototype/resolvedOptions/11.3.3.js @@ -8,7 +8,7 @@ description: > Intl.NumberFormat.prototype.resolvedOptions has the right properties. author: Norbert Lindenberg -includes: [testIntl.js] +includes: [testIntl.js, propertyHelper.js] ---*/ var actual = new Intl.NumberFormat().resolvedOptions(); @@ -20,11 +20,11 @@ assert.notSameValue(actual2, actual, "resolvedOptions returned the same object t mustHaveProperty(actual, "locale", isCanonicalizedStructurallyValidLanguageTag); mustHaveProperty(actual, "numberingSystem", isValidNumberingSystem); mustHaveProperty(actual, "style", ["decimal"]); -mustNotHaveProperty(actual, "currency"); -mustNotHaveProperty(actual, "currencyDisplay"); +verifyProperty(actual, "currency", undefined); +verifyProperty(actual, "currencyDisplay", undefined); mustHaveProperty(actual, "minimumIntegerDigits", [1]); mustHaveProperty(actual, "minimumFractionDigits", [0]); mustHaveProperty(actual, "maximumFractionDigits", [3]); -mustNotHaveProperty(actual, "minimumSignificantDigits"); -mustNotHaveProperty(actual, "maximumSignificantDigits"); +verifyProperty(actual, "minimumSignificantDigits", undefined); +verifyProperty(actual, "maximumSignificantDigits", undefined); mustHaveProperty(actual, "useGrouping", [true]); diff --git a/test/intl402/PluralRules/prototype/resolvedOptions/properties.js b/test/intl402/PluralRules/prototype/resolvedOptions/properties.js index 355a5ab8c..52acc8a95 100644 --- a/test/intl402/PluralRules/prototype/resolvedOptions/properties.js +++ b/test/intl402/PluralRules/prototype/resolvedOptions/properties.js @@ -8,7 +8,7 @@ description: > Intl.PluralRules.prototype.resolvedOptions has the right properties. author: Zibi Braniecki -includes: [testIntl.js] +includes: [testIntl.js, propertyHelper.js] ---*/ var actual = new Intl.PluralRules().resolvedOptions(); @@ -19,10 +19,10 @@ assert.notSameValue(actual2, actual, "resolvedOptions returned the same object t // this assumes the default values where the specification provides them mustHaveProperty(actual, "locale", isCanonicalizedStructurallyValidLanguageTag); mustHaveProperty(actual, "type", ["cardinal"]); -mustNotHaveProperty(actual, "currency"); -mustNotHaveProperty(actual, "currencyDisplay"); +verifyProperty(actual, "currency", undefined); +verifyProperty(actual, "currencyDisplay", undefined); mustHaveProperty(actual, "minimumIntegerDigits", [1]); mustHaveProperty(actual, "minimumFractionDigits", [0]); mustHaveProperty(actual, "maximumFractionDigits", [3]); -mustNotHaveProperty(actual, "minimumSignificantDigits"); -mustNotHaveProperty(actual, "maximumSignificantDigits"); +verifyProperty(actual, "minimumSignificantDigits", undefined); +verifyProperty(actual, "maximumSignificantDigits", undefined); |