Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 function testMap() {
2 // Test map elemental fun args
3 var p = [1,2,3,4];
4 var m = p.mapPar(function(e) {
5 assertEq(e >= 1 && e <= 4, true);
6 });
7 var m = p.mapPar(function(e,i) {
8 assertEq(e >= 1 && e <= 4, true);
9 assertEq(i >= 0 && i < 4, true);
10 });
11 var m = p.mapPar(function(e,i,c) {
12 assertEq(e >= 1 && e <= 4, true);
13 assertEq(i >= 0 && i < 4, true);
14 assertEq(c, p);
15 });
16 }
18 if (getBuildConfiguration().parallelJS)
19 testMap();