mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 21:14:45 +02:00
Add a test for Object.prototype.toString with Intl.RelativeTimeFormat objects.
This commit is contained in:
parent
6092c08ade
commit
aa7b3a5d02
16
test/intl402/RelativeTimeFormat/prototype/toStringTag/toString.js
vendored
Normal file
16
test/intl402/RelativeTimeFormat/prototype/toStringTag/toString.js
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// Copyright 2018 Igalia, S.L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-intl.RelativeTimeFormat.prototype-@@tostringtag
|
||||||
|
description: >
|
||||||
|
Checks Object.prototype.toString with Intl.RelativeTimeFormat objects.
|
||||||
|
info: |
|
||||||
|
Intl.RelativeTimeFormat.prototype[ @@toStringTag ]
|
||||||
|
|
||||||
|
The initial value of the @@toStringTag property is the string value "Intl.RelativeTimeFormat".
|
||||||
|
features: [Intl.RelativeTimeFormat]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
assert.sameValue(Object.prototype.toString.call(Intl.RelativeTimeFormat.prototype), "[object Intl.RelativeTimeFormat]");
|
||||||
|
assert.sameValue(Object.prototype.toString.call(new Intl.RelativeTimeFormat("en")), "[object Intl.RelativeTimeFormat]");
|
Loading…
x
Reference in New Issue
Block a user