diff --git a/test/intl402/NumberFormat/prototype/toStringTag/initial-value.js b/test/intl402/NumberFormat/prototype/toStringTag/initial-value.js new file mode 100644 index 0000000000000000000000000000000000000000..71a99695a498426bbc6f7f435215b049fa5ecccd --- /dev/null +++ b/test/intl402/NumberFormat/prototype/toStringTag/initial-value.js @@ -0,0 +1,14 @@ +// Copyright (C) 2018 Ujjwal Sharma. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-intl.numberformat.prototype-@@tostringtag +description: > + Initial value of Intl.NumberFormat.prototype[@@toStringTag] is "Object". +---*/ + +assert.sameValue(Intl.NumberFormat.prototype[Symbol.toStringTag], 'Object'); +assert.sameValue( + Object.prototype.toString.call(new Intl.NumberFormat()), + '[object Object]' +); diff --git a/test/intl402/NumberFormat/prototype/toStringTag/prop-desc.js b/test/intl402/NumberFormat/prototype/toStringTag/prop-desc.js new file mode 100644 index 0000000000000000000000000000000000000000..fdba7a30eb7aca94db99ea7f80a1fcd4151474f9 --- /dev/null +++ b/test/intl402/NumberFormat/prototype/toStringTag/prop-desc.js @@ -0,0 +1,15 @@ +// Copyright (C) 2018 Ujjwal Sharma. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-intl.numberformat.prototype-@@tostringtag +description: > + Tests that Intl.NumberFormat.prototype[@@toStringTag] has the required attributes. +includes: [propertyHelper.js] +---*/ + +verifyProperty(Intl.NumberFormat, Symbol.toStringTag, { + writable: false, + enumerable: false, + configurable: true +});