Bug 1904839 - [devtools] Support color picker in High Contrast Mode. r=accessibility...
[gecko.git] / js / src / tests / test262 / built-ins / String / prototype / concat / S15.5.4.6_A2.js
blob08f96a9b8c7e14ae0dd9fe08ed5beb1db80a12e3
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.concat([,[...]]) can accept at least 128
6 es5id: 15.5.4.6_A2
7 description: Call concat([,[...]]) function with 128 arguments
8 ---*/
10 var __instance = new Number();
12 __instance.concat = String.prototype.concat;
14 //////////////////////////////////////////////////////////////////////////////
15 //CHECK#1
16 if (__instance.concat(
17     0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
18     0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
19     0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
20     0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
21     0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
22     0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
23     0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
24     0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF
25   ) !== "001234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415") {
26   throw new Test262Error('#1: Call concat([,[...]]) function with 128 arguments does not lead to throwing any errors');
29 //////////////////////////////////////////////////////////////////////////////
31 reportCompare(0, 0);