Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/intl402/DateTimeFormat/instance-class.js

raw
1 // Copyright 2012 Mozilla Corporation. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 es5id: 12.4_a
6 description: >
7 Tests that Intl.DateTimeFormat instances have the specified
8 properties.
9 author: Norbert Lindenberg
10 ---*/
11
12 var obj = new Intl.DateTimeFormat();
13
14 var toStringValue = Object.prototype.toString.call(obj);
15 assert.sameValue(toStringValue, "[object Object]", "Intl.DateTimeFormat instance produces wrong [[Class]] - toString returns " + toStringValue + ".");