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_A11.js
blob24681ed604a1cc3b53a9657277118a2f588f63aa
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: The length property of the toLocaleUpperCase method is 0
6 es5id: 15.5.4.19_A11
7 description: Checking String.prototype.toLocaleUpperCase.length
8 ---*/
10 //////////////////////////////////////////////////////////////////////////////
11 //CHECK#1
12 if (!(String.prototype.toLocaleUpperCase.hasOwnProperty("length"))) {
13   throw new Test262Error('#1: String.prototype.toLocaleUpperCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty("length"));
16 //////////////////////////////////////////////////////////////////////////////
18 //////////////////////////////////////////////////////////////////////////////
19 //CHECK#2
20 if (String.prototype.toLocaleUpperCase.length !== 0) {
21   throw new Test262Error('#2: String.prototype.toLocaleUpperCase.length === 0. Actual: ' + String.prototype.toLocaleUpperCase.length);
24 //////////////////////////////////////////////////////////////////////////////
26 reportCompare(0, 0);