tor-browser

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

15.2.3.6-function-length.js (939B)


      1 // |reftest| skip-if(!xulRuntime.shell) -- uses shell load() function
      2 // Any copyright is dedicated to the Public Domain.
      3 // http://creativecommons.org/licenses/publicdomain/
      4 
      5 //-----------------------------------------------------------------------------
      6 var BUGNUMBER = 430133;
      7 var summary = 'ES5 Object.defineProperty(O, P, Attributes): Function.length';
      8 
      9 print(BUGNUMBER + ": " + summary);
     10 
     11 loadRelativeToScript("defineProperty-setup.js");
     12 
     13 /**************
     14 * BEGIN TEST *
     15 **************/
     16 
     17 try
     18 {
     19  new TestRunner().runFunctionLengthTests();
     20 }
     21 catch (e)
     22 {
     23  throw "Error thrown during testing: " + e +
     24          " at line " + e.lineNumber + "\n" +
     25        (e.stack
     26          ? "Stack: " + e.stack.split("\n").slice(2).join("\n") + "\n"
     27          : "");
     28 }
     29 
     30 /******************************************************************************/
     31 
     32 if (typeof reportCompare === "function")
     33  reportCompare(true, true);
     34 
     35 print("Tests complete!");