js/src/tests/ecma_5/Object/15.2.3.6-redefinition-3-of-4.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:5c1d23b31986
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 var PART = 3, PARTS = 4;
6
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 430133;
9 var summary =
10 'ES5 Object.defineProperty(O, P, Attributes): redefinition ' +
11 PART + ' of ' + PARTS;
12
13 print(BUGNUMBER + ": " + summary);
14
15 load("ecma_5/Object/defineProperty-setup.js");
16
17 /**************
18 * BEGIN TEST *
19 **************/
20
21 try
22 {
23 new TestRunner().runPropertyPresentTestsFraction(PART, PARTS);
24 }
25 catch (e)
26 {
27 throw "Error thrown during testing: " + e +
28 " at line " + e.lineNumber + "\n" +
29 (e.stack
30 ? "Stack: " + e.stack.split("\n").slice(2).join("\n") + "\n"
31 : "");
32 }
33
34 /******************************************************************************/
35
36 if (typeof reportCompare === "function")
37 reportCompare(true, true);
38
39 print("Tests complete!");

mercurial