tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

regress-453024.js (1050B)


      1 // |reftest| skip-if(xulRuntime.shell)
      2 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 //-----------------------------------------------------------------------------
      8 var BUGNUMBER = 453024;
      9 var summary = 'Do not assert: vp + 2 + argc <= (jsval *) cx->stackPool.current->avail';
     10 var actual = 'No Crash';
     11 var expect = 'No Crash';
     12 
     13 gDelayTestDriverEnd = true;
     14 var j = 0;
     15 
     16 function test()
     17 {
     18    printBugNumber(BUGNUMBER);
     19    printStatus (summary);
     20 
     21    for (var i = 0; i < 2000; ++i) {
     22      var ns = document.createElementNS("http://www.w3.org/1999/xhtml", "script");
     23      var nt = document.createTextNode("++j");
     24      ns.appendChild(nt);
     25      document.body.appendChild(ns);
     26    }
     27 
     28    gDelayTestDriverEnd = false;
     29 
     30    reportCompare(expect, actual, summary);
     31 
     32    jsTestDriverEnd();
     33 }
     34 
     35 window.addEventListener('load', test, false);