michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 463782; michael@0: var summary = 'Do not assert: "need a way to EOT now, since this is trace end": 0'; michael@0: var actual = ''; michael@0: var expect = ''; michael@0: michael@0: printBugNumber(BUGNUMBER); michael@0: printStatus (summary); michael@0: michael@0: jit(true); michael@0: michael@0: function dateCheck() { michael@0: return true; michael@0: } michael@0: function dateToString() michael@0: { michael@0: if (!this.dtsReturnValue) michael@0: this.dtsReturnValue = "200811080616"; michael@0: return this.dtsReturnValue michael@0: } michael@0: michael@0: function placeAd2() { michael@0: var adClasses = { michael@0: "": { michael@0: templateCheck: function () { michael@0: var foo = ({ michael@0: allianz:{ michael@0: where:["intl/turningpoints"], michael@0: when:["200805010000/200901010000"], michael@0: what:["!234x60", "!bigbox_2", "!leaderboard_2", "!88x31"] michael@0: }, michael@0: trendMicro:{ michael@0: where:["techbiz/tech/threatmeter"], michael@0: when:["200806110000/200812310000"], michael@0: what:["leaderboard"] michael@0: }, michael@0: rolex_bb:{ michael@0: where:["politics/transitions"], michael@0: when:["200811050000/200901312359"], michael@0: what:["!bigbox"] michael@0: } michael@0: }); michael@0: michael@0: for (a in foo) { michael@0: if (dateCheck("", dateToString())) { michael@0: for (var c = 0; c < 1; c++) { michael@0: } michael@0: } michael@0: } michael@0: return true; michael@0: } michael@0: } michael@0: }; michael@0: michael@0: adClasses[""].templateCheck(); michael@0: } michael@0: michael@0: placeAd2(); michael@0: michael@0: jit(false); michael@0: michael@0: reportCompare(expect, actual, summary); michael@0: