| 1 |
/* -*- indent-tabs-mode: nil; js-indent-level: 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 |
|
| 16 |
function dateCheck() { |
| 17 |
return true; |
| 18 |
} |
| 19 |
function dateToString() |
| 20 |
{ |
| 21 |
if (!this.dtsReturnValue) |
| 22 |
this.dtsReturnValue = "200811080616"; |
| 23 |
return this.dtsReturnValue |
| 24 |
} |
| 25 |
|
| 26 |
function placeAd2() { |
| 27 |
var adClasses = { |
| 28 |
"": { |
| 29 |
templateCheck: function () { |
| 30 |
var foo = ({ |
| 31 |
allianz:{ |
| 32 |
where:["intl/turningpoints"], |
| 33 |
when:["200805010000/200901010000"], |
| 34 |
what:["!234x60", "!bigbox_2", "!leaderboard_2", "!88x31"] |
| 35 |
}, |
| 36 |
trendMicro:{ |
| 37 |
where:["techbiz/tech/threatmeter"], |
| 38 |
when:["200806110000/200812310000"], |
| 39 |
what:["leaderboard"] |
| 40 |
}, |
| 41 |
rolex_bb:{ |
| 42 |
where:["politics/transitions"], |
| 43 |
when:["200811050000/200901312359"], |
| 44 |
what:["!bigbox"] |
| 45 |
} |
| 46 |
}); |
| 47 |
|
| 48 |
for (a in foo) { |
| 49 |
if (dateCheck("", dateToString())) { |
| 50 |
for (var c = 0; c < 1; c++) { |
| 51 |
} |
| 52 |
} |
| 53 |
} |
| 54 |
return true; |
| 55 |
} |
| 56 |
} |
| 57 |
}; |
| 58 |
|
| 59 |
adClasses[""].templateCheck(); |
| 60 |
} |
| 61 |
|
| 62 |
placeAd2(); |
| 63 |
|
| 64 |
|
| 65 |
reportCompare(expect, actual, summary); |
| 66 |
|