[ARM,MIPS] Skip slow tests
[WebKit-https.git] / JSTests / stress / array-setLength-on-ArrayClass-with-large-length.js
1 //@ runDefault
2 // This test should not crash
3
4 function assertEqual(actual, expected) {
5     function toString(x) {
6         return '' + x;
7     }
8     if (typeof actual != typeof expected)
9         throw Error("Failed: typeof expected: '" + typeof(expected) + "', typeof actual: '" + typeof(actual) + "'");;
10     
11     if (toString(actual) != toString(expected))
12         throw Error("Failed: expected: '" + toString(expected) + "', actual: '" + toString(actual) + "'");;
13 }
14
15 assertEqual(Array.prototype.length, 0);
16
17 Array.prototype.length = 0x40000000;
18
19 assertEqual(Array.prototype.length, 0x40000000);