js/src/tests/js1_5/Regress/regress-463782.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/tests/js1_5/Regress/regress-463782.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,68 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +//-----------------------------------------------------------------------------
    1.10 +var BUGNUMBER = 463782;
    1.11 +var summary = 'Do not assert: "need a way to EOT now, since this is trace end": 0';
    1.12 +var actual = '';
    1.13 +var expect = '';
    1.14 +
    1.15 +printBugNumber(BUGNUMBER);
    1.16 +printStatus (summary);
    1.17 +
    1.18 +jit(true);
    1.19 +
    1.20 +function dateCheck() {
    1.21 +  return true;
    1.22 +}
    1.23 +function dateToString()
    1.24 +{
    1.25 +  if (!this.dtsReturnValue)
    1.26 +    this.dtsReturnValue = "200811080616";
    1.27 +  return this.dtsReturnValue
    1.28 +    }
    1.29 +      
    1.30 +function placeAd2() {
    1.31 +  var adClasses = {
    1.32 +    "": {
    1.33 +    templateCheck: function () {
    1.34 +        var foo = ({
    1.35 +          allianz:{
    1.36 +            where:["intl/turningpoints"],
    1.37 +                when:["200805010000/200901010000"],
    1.38 +                what:["!234x60", "!bigbox_2", "!leaderboard_2", "!88x31"]
    1.39 +                },
    1.40 +              trendMicro:{
    1.41 +            where:["techbiz/tech/threatmeter"],
    1.42 +                when:["200806110000/200812310000"],
    1.43 +                what:["leaderboard"]
    1.44 +                },
    1.45 +              rolex_bb:{
    1.46 +            where:["politics/transitions"],
    1.47 +                when:["200811050000/200901312359"],
    1.48 +                what:["!bigbox"]
    1.49 +                }
    1.50 +          });
    1.51 +        
    1.52 +        for (a in foo) {
    1.53 +          if (dateCheck("", dateToString())) {
    1.54 +            for (var c = 0; c < 1; c++) {
    1.55 +            }
    1.56 +          }
    1.57 +        }
    1.58 +        return true;
    1.59 +      }
    1.60 +    }
    1.61 +  };
    1.62 +      
    1.63 +  adClasses[""].templateCheck();
    1.64 +}
    1.65 +
    1.66 +placeAd2();
    1.67 +
    1.68 +jit(false);
    1.69 +
    1.70 +reportCompare(expect, actual, summary);
    1.71 +

mercurial