summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug851064.js
blob: e7af13aa2111a392f6507c1963ad13fb2ce49fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var base = "azertyuiopqsdfghjklmwxcvbn";
function createRopedString() {
  var test = "";
  for (var i=0; i<2; i++) {
    test += base;
  }
  return test;
}

assertEq(createRopedString().substr(0,10), base.substr(0,10));
assertEq(createRopedString().substr(0,26), base.substr(0,26));
assertEq(createRopedString().substr(26,10), base.substr(0,10));
assertEq(createRopedString().substr(24,10), base.substr(24,2) + base.substr(0,8));