michael@0: // |reftest| skip-if(!xulRuntime.shell) -- uses shell load() function michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 430133; michael@0: var summary = 'ES5 Object.defineProperty(O, P, Attributes): Function.length'; michael@0: michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: load("ecma_5/Object/defineProperty-setup.js"); michael@0: michael@0: /************** michael@0: * BEGIN TEST * michael@0: **************/ michael@0: michael@0: try michael@0: { michael@0: new TestRunner().runFunctionLengthTests(); michael@0: } michael@0: catch (e) michael@0: { michael@0: throw "Error thrown during testing: " + e + michael@0: " at line " + e.lineNumber + "\n" + michael@0: (e.stack michael@0: ? "Stack: " + e.stack.split("\n").slice(2).join("\n") + "\n" michael@0: : ""); michael@0: } michael@0: michael@0: /******************************************************************************/ michael@0: michael@0: if (typeof reportCompare === "function") michael@0: reportCompare(true, true); michael@0: michael@0: print("Tests complete!");