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