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.
michael@0 | 1 | function equalInt() |
michael@0 | 2 | { |
michael@0 | 3 | var i1 = 55, one = 1, zero = 0, undef; |
michael@0 | 4 | var o1 = { }, o2 = { }; |
michael@0 | 5 | var s = "5"; |
michael@0 | 6 | var hits = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; |
michael@0 | 7 | for (var i = 0; i < 5000; i++) { |
michael@0 | 8 | if (i1 == 55) hits[0]++; |
michael@0 | 9 | if (i1 != 56) hits[1]++; |
michael@0 | 10 | if (i1 < 56) hits[2]++; |
michael@0 | 11 | if (i1 > 50) hits[3]++; |
michael@0 | 12 | if (i1 <= 60) hits[4]++; |
michael@0 | 13 | if (i1 >= 30) hits[5]++; |
michael@0 | 14 | if (i1 == 7) hits[6]++; |
michael@0 | 15 | if (i1 != 55) hits[7]++; |
michael@0 | 16 | if (i1 < 30) hits[8]++; |
michael@0 | 17 | if (i1 > 90) hits[9]++; |
michael@0 | 18 | if (i1 <= 40) hits[10]++; |
michael@0 | 19 | if (i1 >= 70) hits[11]++; |
michael@0 | 20 | if (o1 == o2) hits[12]++; |
michael@0 | 21 | if (o2 != null) hits[13]++; |
michael@0 | 22 | if (s < 10) hits[14]++; |
michael@0 | 23 | if (true < zero) hits[15]++; |
michael@0 | 24 | if (undef > one) hits[16]++; |
michael@0 | 25 | if (undef < zero) hits[17]++; |
michael@0 | 26 | } |
michael@0 | 27 | return hits.toString(); |
michael@0 | 28 | } |
michael@0 | 29 | assertEq(equalInt(), "5000,5000,5000,5000,5000,5000,0,0,0,0,0,0,0,5000,5000,0,0,0"); |