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_T2.js
blob3fe8267677e6933996c52e47c9e4df24ef8c27fb
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_T2
7 description: Instance is Boolean object
8 ---*/
10 var __instance = new Boolean;
12 __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase;
14 //////////////////////////////////////////////////////////////////////////////
15 //CHECK#1
16 if (__instance.toLocaleUpperCase() !== "FALSE") {
17   throw new Test262Error('#1: __instance = new Boolean; __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase;  __instance.toLocaleUpperCase() === "FALSE". Actual: ' + __instance.toLocaleUpperCase());
20 //////////////////////////////////////////////////////////////////////////////
22 reportCompare(0, 0);