Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / String / prototype / toLocaleUpperCase / S15.5.4.19_A1_T7.js
blob87420328a659c9b22f589b6ee2a9284ab1cff2f5
1 // Copyright 2009 the Sputnik authors.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 info: String.prototype.toLocaleUpperCase()
6 es5id: 15.5.4.19_A1_T7
7 description: Call toLocaleUpperCase() function of NaN
8 ---*/
10 Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
12 //////////////////////////////////////////////////////////////////////////////
13 //CHECK#1
14 if (NaN.toLocaleUpperCase() !== "NAN") {
15   throw new Test262Error('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; NaN.toLocaleUpperCase()=== "NAN". Actual: ' + NaN.toLocaleUpperCase());
18 //////////////////////////////////////////////////////////////////////////////
20 reportCompare(0, 0);