Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / tests / ecma_5 / Object / 15.2.3.6-redefinition-3-of-4.js
1 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/licenses/publicdomain/
3
4 var PART = 3, PARTS = 4;
5
6 //-----------------------------------------------------------------------------
7 var BUGNUMBER = 430133;
8 var summary =
9   'ES5 Object.defineProperty(O, P, Attributes): redefinition ' +
10   PART + ' of ' + PARTS;
11
12 print(BUGNUMBER + ": " + summary);
13
14 load("ecma_5/Object/defineProperty-setup.js");
15
16 /**************
17  * BEGIN TEST *
18  **************/
19
20 try
21 {
22   new TestRunner().runPropertyPresentTestsFraction(PART, PARTS);
23 }
24 catch (e)
25 {
26   throw "Error thrown during testing: " + e +
27           " at line " + e.lineNumber + "\n" +
28         (e.stack
29           ? "Stack: " + e.stack.split("\n").slice(2).join("\n") + "\n"
30           : "");
31 }
32
33 /******************************************************************************/
34
35 if (typeof reportCompare === "function")
36   reportCompare(true, true);
37
38 print("Tests complete!");