|
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/. */ |
|
5 |
|
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 = ''; |
|
11 |
|
12 printBugNumber(BUGNUMBER); |
|
13 printStatus (summary); |
|
14 |
|
15 jit(true); |
|
16 |
|
17 function dateCheck() { |
|
18 return true; |
|
19 } |
|
20 function dateToString() |
|
21 { |
|
22 if (!this.dtsReturnValue) |
|
23 this.dtsReturnValue = "200811080616"; |
|
24 return this.dtsReturnValue |
|
25 } |
|
26 |
|
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 }); |
|
48 |
|
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 }; |
|
59 |
|
60 adClasses[""].templateCheck(); |
|
61 } |
|
62 |
|
63 placeAd2(); |
|
64 |
|
65 jit(false); |
|
66 |
|
67 reportCompare(expect, actual, summary); |
|
68 |