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 monthNames () { |
michael@0 | 2 | return [ |
michael@0 | 3 | /jan(uar(y)?)?/, 0, |
michael@0 | 4 | /feb(ruar(y)?)?/, 1, |
michael@0 | 5 | /m\u00e4r|mar|m\u00e4rz|maerz|march/, 2, |
michael@0 | 6 | /apr(il)?/, 3, |
michael@0 | 7 | /ma(i|y)/, 4, |
michael@0 | 8 | /jun(i|o|e)?/, 5, |
michael@0 | 9 | /jul(i|y)?/, 6, |
michael@0 | 10 | /aug(ust)?/, 7, |
michael@0 | 11 | /sep((t)?(ember))?/, 8, |
michael@0 | 12 | /o(c|k)t(ober)?/, 9, |
michael@0 | 13 | /nov(ember)?/, 10, |
michael@0 | 14 | /de(c|z)(ember)?/, 11 |
michael@0 | 15 | ]; |
michael@0 | 16 | }; |
michael@0 | 17 | |
michael@0 | 18 | var actual = ''; |
michael@0 | 19 | var expected = '(jan(uar(y)?)?)|(feb(ruar(y)?)?)|(m\\u00e4r|mar|m\\u00e4rz|maerz|march)|(apr(il)?)|(ma(i|y))|(jun(i|o|e)?)|(jul(i|y)?)|(aug(ust)?)|(sep((t)?(ember))?)|(o(c|k)t(ober)?)|(nov(ember)?)|(de(c|z)(ember)?)'; |
michael@0 | 20 | var mn = monthNames(); |
michael@0 | 21 | for (var i = 0; i < mn.length; ++i) { |
michael@0 | 22 | if (actual) |
michael@0 | 23 | actual += '|'; |
michael@0 | 24 | actual += '(' + mn[i++].source + ')'; |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | assertEq(actual, expected); |
michael@0 | 28 | |
michael@0 | 29 | if (typeof reportCompare === "function") |
michael@0 | 30 | reportCompare(true, true); |