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 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 //-----------------------------------------------------------------------------
7 var BUGNUMBER = 463782;
8 var summary = 'Do not assert: "need a way to EOT now, since this is trace end": 0';
9 var actual = '';
10 var expect = '';
12 printBugNumber(BUGNUMBER);
13 printStatus (summary);
15 jit(true);
17 function dateCheck() {
18 return true;
19 }
20 function dateToString()
21 {
22 if (!this.dtsReturnValue)
23 this.dtsReturnValue = "200811080616";
24 return this.dtsReturnValue
25 }
27 function placeAd2() {
28 var adClasses = {
29 "": {
30 templateCheck: function () {
31 var foo = ({
32 allianz:{
33 where:["intl/turningpoints"],
34 when:["200805010000/200901010000"],
35 what:["!234x60", "!bigbox_2", "!leaderboard_2", "!88x31"]
36 },
37 trendMicro:{
38 where:["techbiz/tech/threatmeter"],
39 when:["200806110000/200812310000"],
40 what:["leaderboard"]
41 },
42 rolex_bb:{
43 where:["politics/transitions"],
44 when:["200811050000/200901312359"],
45 what:["!bigbox"]
46 }
47 });
49 for (a in foo) {
50 if (dateCheck("", dateToString())) {
51 for (var c = 0; c < 1; c++) {
52 }
53 }
54 }
55 return true;
56 }
57 }
58 };
60 adClasses[""].templateCheck();
61 }
63 placeAd2();
65 jit(false);
67 reportCompare(expect, actual, summary);