mirror of https://github.com/tc39/test262.git
2199 lines
196 KiB
JSON
2199 lines
196 KiB
JSON
{
|
||
"testCollection": {
|
||
"name": "15.2.3.3",
|
||
"numTests": 313,
|
||
"tests": [
|
||
{
|
||
"id": "15.2.3.3-0-1",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-1.js",
|
||
"description": "Object.getOwnPropertyDescriptor must exist as a function",
|
||
"test": "assertTrue((typeof(Object.getOwnPropertyDescriptor) === \"function\"));\n"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-0-2",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-0-2.js",
|
||
"description": "Object.getOwnPropertyDescriptor must exist as a function taking 2 parameters",
|
||
"test": "assertTrue((Object.getOwnPropertyDescriptor.length === 2));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-1-1",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-1.js",
|
||
"description": "Object.getOwnPropertyDescriptor - TypeError is thrown when first param is undefined",
|
||
"test": "assertTrue((function testcase() {\n try {\n Object.getOwnPropertyDescriptor(undefined, \"foo\");\n } catch (e) {\n return (e instanceof TypeError);\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-1-2",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-2.js",
|
||
"description": "Object.getOwnPropertyDescriptor - TypeError is thrown when first param is null",
|
||
"test": "assertTrue((function testcase() {\n try {\n Object.getOwnPropertyDescriptor(null, \"foo\");\n } catch (e) {\n return (e instanceof TypeError);\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-1-3",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-3.js",
|
||
"description": "Object.getOwnPropertyDescriptor - TypeError is thrown when first param is a boolean",
|
||
"test": "assertTrue((function testcase() {\n try {\n Object.getOwnPropertyDescriptor(true, \"foo\");\n } catch (e) {\n return (e instanceof TypeError);\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-1-4",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1-4.js",
|
||
"description": "Object.getOwnPropertyDescriptor - TypeError is thrown when first param is a number",
|
||
"test": "assertTrue((function testcase() {\n try {\n Object.getOwnPropertyDescriptor(-2, \"foo\");\n } catch (e) {\n return (e instanceof TypeError);\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-1",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-1.js",
|
||
"description": "Object.getOwnPropertyDescriptor throws TypeError if type of first param is not Object",
|
||
"test": "assertTrue((function testcase() {\n try {\n Object.getOwnPropertyDescriptor(0, \"foo\");\n }\n catch (e) {\n if (e instanceof TypeError) {\n return true;\n }\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-1",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-1.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns undefined for undefined property name",
|
||
"test": "assertTrue((function testcase() {\n var o = {};\n var desc = Object.getOwnPropertyDescriptor(o, undefined);\n if (desc === undefined) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-10",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-10.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is -0)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"0\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, -0);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-11",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-11.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is positive number)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"30\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 30);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-12",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-12.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is negative number)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"-20\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, -20);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-13",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-13.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is Infinity)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"Infinity\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, Infinity);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-14",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-14.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is +Infinity)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"Infinity\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, +Infinity);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-15",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-15.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is -Infinity)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"-Infinity\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, -Infinity);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-16",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-16.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1(following 20 zeros))",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"100000000000000000000\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-17",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-17.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1(following 21 zeros))",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"1e+21\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 1000000000000000000000);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-18",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-18.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1(following 22 zeros))",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"1e+22\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 10000000000000000000000);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-19",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-19.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e+20)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"100000000000000000000\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 1e+20);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-2",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-2.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns undefined for null property name",
|
||
"test": "assertTrue((function testcase() {\n var o = {};\n var desc = Object.getOwnPropertyDescriptor(o, null);\n if (desc === undefined) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-20",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-20.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to string (value is 1e+21)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"1e+21\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 1e+21);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-21",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-21.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e+22)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"1e+22\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 1e+22);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-22",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-22.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 0.000001)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"0.000001\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 0.000001);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-23",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-23.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 0.0000001)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"1e-7\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 0.0000001);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-24",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-24.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 0.00000001)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"1e-8\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 0.00000001);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-25",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-25.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e-7)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"1e-7\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 1e-7);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-26",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-26.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e-6)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"0.000001\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 1e-6);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-27",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-27.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e-5)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"0.00001\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 1e-5);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-28",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-28.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is an integer that converts to a string (value is 123)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"123\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 123);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-29",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-29.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a decimal that converts to a string (value is 123.456)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"123.456\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 123.456);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-3",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-3.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is undefined",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"undefined\": 1 };\n\n var desc1 = Object.getOwnPropertyDescriptor(obj, undefined);\n var desc2 = Object.getOwnPropertyDescriptor(obj, \"undefined\");\n\n return desc1.value === 1 && desc2.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-30",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-30.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 100000000000000000000.123)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"100000000000000000000\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000.123);\n\n return typeof desc !== \"undefined\" && desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-31",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-31.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 123.1234567)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"123.1234567\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 123.1234567);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-32",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-32.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is applied to an empty string ",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"\");\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-33",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-33.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is applied to string 'AB\n\\cd' ",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"AB\\n\\\\cd\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"AB\\n\\\\cd\");\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-34",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-34.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is applied to string 'undefined' ",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"undefined\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"undefined\");\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-35",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-35.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is applied to string 'null' ",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"null\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"null\");\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-36",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-36.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is applied to string '123<32><33><EFBFBD>¦<EFBFBD>cd' ",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"123<32><33><EFBFBD>¦<EFBFBD>cd\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"123<32><33><EFBFBD>¦<EFBFBD>cd\");\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-37",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-37.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is applied to string '1' ",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"1\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 1);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-38",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-38.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is an array that converts to a string",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"1\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, [1]);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-39",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-39.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a String Object that converts to a string",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"Hello\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, new String(\"Hello\"));\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-4",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-4.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is null that converts to string 'null'",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"null\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, null);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-40",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-40.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a Boolean Object that converts to a string",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"true\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, new Boolean(true));\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-41",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-41.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a Number Object that converts to a string",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"123\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, new Number(123));\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-42",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-42.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is an object which has an own toString method",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"abc\": 1 };\n\n var ownProp = {\n toString: function () {\n return \"abc\";\n }\n };\n\n var desc = Object.getOwnPropertyDescriptor(obj, ownProp);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-43",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-43.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is an object which has an own valueOf method",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"[object Object]\": 1, \"abc\" : 2 };\n\n var ownProp = {\n valueOf: function () {\n return \"abc\";\n }\n };\n\n var desc = Object.getOwnPropertyDescriptor(obj, ownProp);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-44",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-44.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is an object that has an own toString method that returns an object and toValue method that returns a primitive value",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"abc\": 1 };\n var valueOfAccessed = false;\n var toStringAccessed = false;\n\n var ownProp = {\n toString: function () {\n toStringAccessed = true;\n return {};\n },\n valueOf: function () {\n valueOfAccessed = true;\n return \"abc\";\n }\n };\n\n var desc = Object.getOwnPropertyDescriptor(obj, ownProp);\n\n return desc.value === 1 && valueOfAccessed && toStringAccessed;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-45",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-45.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is an object which has an own toString and valueOf method",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"bbq\": 1, \"abc\": 2 };\n var valueOfAccessed = false;\n\n var ownProp = {\n toString: function () {\n return \"bbq\";\n },\n valueOf: function () {\n valueOfAccessed = true;\n return \"abc\";\n }\n };\n\n var desc = Object.getOwnPropertyDescriptor(obj, ownProp);\n\n return desc.value === 1 && !valueOfAccessed;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-46",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-46.js",
|
||
"description": "Object.getOwnPropertyDescriptor - TypeError exception was thrown when 'P' is an object that both toString and valueOf wouldn't return primitive value",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"1\": 1 };\n var toStringAccessed = false;\n var valueOfAccessed = false;\n\n var ownProp = {\n toString: function () {\n toStringAccessed = true;\n return [1];\n },\n valueOf: function () {\n valueOfAccessed = true;\n return [1];\n }\n };\n\n try {\n Object.getOwnPropertyDescriptor(obj, ownProp);\n return false;\n } catch (e) {\n return toStringAccessed && valueOfAccessed && e instanceof TypeError;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-47",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-47.js",
|
||
"description": "Object.getOwnPropertyDescriptor - uses inherited toString method when 'P' is an object with an own valueOf and inherited toString methods",
|
||
"test": "assertTrue((function testcase() {\n var proto = {};\n var valueOfAccessed = false;\n var toStringAccessed = false;\n\n proto.toString = function () {\n toStringAccessed = true;\n return \"test\";\n };\n\n var Con = function () { };\n Con.prototype = proto;\n\n var child = new Con();\n child.valueOf = function () {\n valueOfAccessed = true;\n return \"10\";\n };\n var obj = { \"10\": \"length1\", \"test\": \"length2\" };\n var desc = Object.getOwnPropertyDescriptor(obj, child);\n\n return desc.value === \"length2\" && toStringAccessed && !valueOfAccessed;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-5",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-5.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a boolean whose value is false",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"false\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, false);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-6",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-6.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a boolean whose value is true",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"true\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, true);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-7",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-7.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is NaN)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"NaN\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, NaN);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-8",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-8.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 0)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"0\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, 0);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-2-9",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-2-9.js",
|
||
"description": "Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is +0)",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"0\": 1 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, +0);\n\n return desc.value === 1;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-1",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-1.js",
|
||
"description": "Object.getOwnPropertyDescriptor - 'P' is own data property",
|
||
"test": "assertTrue((function testcase() {\n\n var obj = {\n property: \"ownDataProperty\"\n };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return desc.value === \"ownDataProperty\";\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-10",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-10.js",
|
||
"description": "Object.getOwnPropertyDescriptor - 'P' is not an existing property",
|
||
"test": "assertTrue((function testcase() {\n\n var obj = {\n property: \"ownDataProperty\"\n };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"propertyNonExist\");\n\n return typeof desc === \"undefined\";\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-13",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-13.js",
|
||
"description": "Object.getOwnPropertyDescriptor applied to the Arguments object which implements its own property get method",
|
||
"test": "assertTrue((function testcase() {\n\n var arg = (function () {\n return arguments;\n }(\"ownProperty\", true));\n\n var desc = Object.getOwnPropertyDescriptor(arg, \"0\");\n\n return desc.value === \"ownProperty\" && desc.writable === true && desc.enumerable === true && desc.configurable === true;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-14",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-14.js",
|
||
"description": "Object.getOwnPropertyDescriptor applied to a String object which implements its own property get method",
|
||
"test": "assertTrue((function testcase() {\n\n var str = new String(\"123\");\n\n var desc = Object.getOwnPropertyDescriptor(str, \"2\");\n\n return desc.value === \"3\";\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-15",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-15.js",
|
||
"description": "Object.getOwnPropertyDescriptor applied to a Function object which implements its own property get method",
|
||
"test": "assertTrue((function testcase() {\n\n var obj = function (a, b) {\n return a + b;\n };\n obj[1] = \"ownProperty\";\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"1\");\n\n return desc.value === \"ownProperty\";\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-2",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-2.js",
|
||
"description": "Object.getOwnPropertyDescriptor - 'P' is inherited data property",
|
||
"test": "assertTrue((function testcase() {\n\n var proto = {\n property: \"inheritedDataProperty\"\n };\n\n var Con = function () { };\n Con.ptototype = proto;\n\n var child = new Con();\n\n var desc = Object.getOwnPropertyDescriptor(child, \"property\");\n\n return typeof desc === \"undefined\";\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-3",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-3.js",
|
||
"description": "Object.getOwnPropertyDescriptor - 'P' is own data property that overrides an inherited data property",
|
||
"test": "assertTrue((function testcase() {\n\n var proto = {\n property: \"inheritedDataProperty\"\n };\n\n var Con = function () { };\n Con.ptototype = proto;\n\n var child = new Con();\n child.property = \"ownDataProperty\";\n\n var desc = Object.getOwnPropertyDescriptor(child, \"property\");\n\n return desc.value === \"ownDataProperty\";\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-4",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-4.js",
|
||
"description": "Object.getOwnPropertyDescriptor - 'P' is own data property that overrides an inherited accessor property",
|
||
"test": "assertTrue((function testcase() {\n\n var proto = {};\n Object.defineProperty(proto, \"property\", {\n get: function () {\n return \"inheritedDataProperty\";\n },\n configurable: true\n });\n\n var Con = function () { };\n Con.ptototype = proto;\n\n var child = new Con();\n Object.defineProperty(child, \"property\", {\n value: \"ownDataProperty\",\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(child, \"property\");\n\n return desc.value === \"ownDataProperty\";\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-5",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-5.js",
|
||
"description": "Object.getOwnPropertyDescriptor - 'P' is own accessor property",
|
||
"test": "assertTrue((function testcase() {\n\n var obj = {};\n var fun = function () {\n return \"ownAccessorProperty\";\n };\n Object.defineProperty(obj, \"property\", {\n get: fun,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return desc.get === fun;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-6",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-6.js",
|
||
"description": "Object.getOwnPropertyDescriptor - 'P' is inherited accessor property",
|
||
"test": "assertTrue((function testcase() {\n\n var proto = {};\n var fun = function () {\n return \"ownAccessorProperty\";\n };\n Object.defineProperty(proto, \"property\", {\n get: fun,\n configurable: true\n });\n\n var Con = function () { };\n Con.prototype = proto;\n\n var child = new Con();\n\n var desc = Object.getOwnPropertyDescriptor(child, \"property\");\n\n return typeof desc === \"undefined\";\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-7",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-7.js",
|
||
"description": "Object.getOwnPropertyDescriptor - 'P' is own accessor property that overrides an inherited data property",
|
||
"test": "assertTrue((function testcase() {\n\n var proto = {\n property: \"inheritedDataProperty\"\n };\n\n var Con = function () { };\n Con.ptototype = proto;\n\n var child = new Con();\n var fun = function () {\n return \"ownAccessorProperty\";\n };\n Object.defineProperty(child, \"property\", {\n get: fun,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(child, \"property\");\n\n return desc.get === fun;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-8",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-8.js",
|
||
"description": "Object.getOwnPropertyDescriptor - 'P' is own accessor property that overrides an inherited accessor property",
|
||
"test": "assertTrue((function testcase() {\n\n var proto = {};\n Object.defineProperty(proto, \"property\", {\n get: function () {\n return \"inheritedAccessorProperty\";\n },\n configurable: true\n });\n\n var Con = function () { };\n Con.ptototype = proto;\n\n var child = new Con();\n var fun = function () {\n return \"ownAccessorProperty\";\n };\n Object.defineProperty(child, \"property\", {\n get: fun,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(child, \"property\");\n\n return desc.get === fun;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-3-9",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-3-9.js",
|
||
"description": "Object.getOwnPropertyDescriptor - 'P' is own accessor property without a get function",
|
||
"test": "assertTrue((function testcase() {\n\n var obj = {};\n var fun = function () { };\n Object.defineProperty(obj, \"property\", {\n set: fun,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return desc.set === fun;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-1",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-1.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns an object representing a data desc for valid data valued properties",
|
||
"test": "assertTrue((function testcase() {\n var o = {};\n o[\"foo\"] = 101;\n\n var desc = Object.getOwnPropertyDescriptor(o, \"foo\");\n if (desc.value === 101 &&\n desc.enumerable === true &&\n desc.writable === true &&\n desc.configurable === true &&\n !desc.hasOwnProperty(\"get\") &&\n !desc.hasOwnProperty(\"set\")) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-10",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-10.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.decodeURIComponent)",
|
||
"test": "assertTrue((function testcase() {\n var global = fnGlobalObject();\n var desc = Object.getOwnPropertyDescriptor(global, \"decodeURIComponent\");\n if (desc.value === global.decodeURIComponent &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-100",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-100.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.atan2)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"atan2\");\n if (desc.value === Math.atan2 &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-101",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-101.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.ceil)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"ceil\");\n if (desc.value === Math.ceil &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-102",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-102.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.cos)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"cos\");\n if (desc.value === Math.cos &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-103",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-103.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.exp)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"exp\");\n if (desc.value === Math.exp &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-104",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-104.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.floor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"floor\");\n if (desc.value === Math.floor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-105",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-105.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.log)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"log\");\n if (desc.value === Math.log &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-106",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-106.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.max)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"max\");\n if (desc.value === Math.max &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-107",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-107.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.min)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"min\");\n if (desc.value === Math.min &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-108",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-108.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.pow)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"pow\");\n if (desc.value === Math.pow &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-109",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-109.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.random)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"random\");\n if (desc.value === Math.random &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-11",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-11.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.encodeURIComponent)",
|
||
"test": "assertTrue((function testcase() {\n var global = fnGlobalObject();\n var desc = Object.getOwnPropertyDescriptor(global, \"encodeURIComponent\");\n if (desc.value === global.encodeURIComponent &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-110",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-110.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.round)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"round\");\n if (desc.value === Math.round &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-111",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-111.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.sin)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"sin\");\n if (desc.value === Math.sin &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-112",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-112.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.sqrt)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"sqrt\");\n if (desc.value === Math.sqrt &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-113",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-113.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.tan)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"tan\");\n if (desc.value === Math.tan &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-114",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-114.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.parse)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date, \"parse\");\n if (desc.value === Date.parse &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-115",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-115.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.UTC)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date, \"UTC\");\n if (desc.value === Date.UTC &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-116",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-116.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"constructor\");\n if (desc.value === Date.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-117",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-117.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getTime)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getTime\");\n if (desc.value === Date.prototype.getTime &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-118",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-118.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getTimezoneOffset)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getTimezoneOffset\");\n if (desc.value === Date.prototype.getTimezoneOffset &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-119",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-119.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getYear)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getYear\");\n if (desc.value === Date.prototype.getYear &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-12",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.escape)",
|
||
"test": "assertTrue((function testcase() {\n var global = fnGlobalObject();\n var desc = Object.getOwnPropertyDescriptor(global, \"escape\");\n if (desc.value === global.escape &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-120",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-120.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getFullYear)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getFullYear\");\n if (desc.value === Date.prototype.getFullYear &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-121",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-121.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getMonth)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getMonth\");\n if (desc.value === Date.prototype.getMonth &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-122",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-122.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getDate)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getDate\");\n if (desc.value === Date.prototype.getDate &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-123",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-123.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getDay)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getDay\");\n if (desc.value === Date.prototype.getDay &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-124",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-124.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getHours)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getHours\");\n if (desc.value === Date.prototype.getHours &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-125",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-125.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getMinutes)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getMinutes\");\n if (desc.value === Date.prototype.getMinutes &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-126",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-126.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getSeconds)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getSeconds\");\n if (desc.value === Date.prototype.getSeconds &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-127",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-127.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getMilliseconds)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getMilliseconds\");\n if (desc.value === Date.prototype.getMilliseconds &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-128",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-128.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCFullYear)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getUTCFullYear\");\n if (desc.value === Date.prototype.getUTCFullYear &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-129",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-129.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCMonth)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getUTCMonth\");\n if (desc.value === Date.prototype.getUTCMonth &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-13",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.unescape)",
|
||
"test": "assertTrue((function testcase() {\n var global = fnGlobalObject();\n var desc = Object.getOwnPropertyDescriptor(global, \"unescape\");\n if (desc.value === global.unescape &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-130",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-130.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCDate)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getUTCDate\");\n if (desc.value === Date.prototype.getUTCDate &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-131",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-131.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCDay)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getUTCDay\");\n if (desc.value === Date.prototype.getUTCDay &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-132",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-132.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCHours)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getUTCHours\");\n if (desc.value === Date.prototype.getUTCHours &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-133",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-133.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCMinutes)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getUTCMinutes\");\n if (desc.value === Date.prototype.getUTCMinutes &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-134",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-134.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCSeconds)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getUTCSeconds\");\n if (desc.value === Date.prototype.getUTCSeconds &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-135",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-135.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getUTCMilliseconds)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"getUTCMilliseconds\");\n if (desc.value === Date.prototype.getUTCMilliseconds &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-136",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-136.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setTime)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setTime\");\n if (desc.value === Date.prototype.setTime &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-137",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-137.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setYear)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setYear\");\n if (desc.value === Date.prototype.setYear &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-138",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-138.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setFullYear)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setFullYear\");\n if (desc.value === Date.prototype.setFullYear &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-139",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-139.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setMonth)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setMonth\");\n if (desc.value === Date.prototype.setMonth &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-14",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-14.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.getPrototypeOf)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"getPrototypeOf\");\n if (desc.value === Object.getPrototypeOf &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-140",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-140.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setDate)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setDate\");\n if (desc.value === Date.prototype.setDate &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-141",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-141.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setHours)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setHours\");\n if (desc.value === Date.prototype.setHours &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-142",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-142.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setMinutes)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setMinutes\");\n if (desc.value === Date.prototype.setMinutes &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-143",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-143.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setSeconds)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setSeconds\");\n if (desc.value === Date.prototype.setSeconds &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-144",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-144.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setMilliseconds)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setMilliseconds\");\n if (desc.value === Date.prototype.setMilliseconds &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-145",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-145.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCFullYear)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setUTCFullYear\");\n if (desc.value === Date.prototype.setUTCFullYear &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-146",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-146.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCMonth)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setUTCMonth\");\n if (desc.value === Date.prototype.setUTCMonth &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-147",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-147.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCDate)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setUTCDate\");\n if (desc.value === Date.prototype.setUTCDate &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-148",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-148.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCHours)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setUTCHours\");\n if (desc.value === Date.prototype.setUTCHours &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-149",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-149.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCMinutes)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setUTCMinutes\");\n if (desc.value === Date.prototype.setUTCMinutes &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-15",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-15.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.getOwnPropertyDescriptor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"getOwnPropertyDescriptor\");\n if (desc.value === Object.getOwnPropertyDescriptor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-150",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-150.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCSeconds)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setUTCSeconds\");\n if (desc.value === Date.prototype.setUTCSeconds &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-151",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-151.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setUTCMilliseconds)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"setUTCMilliseconds\");\n if (desc.value === Date.prototype.setUTCMilliseconds &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-152",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-152.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toLocaleString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"toLocaleString\");\n if (desc.value === Date.prototype.toLocaleString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-153",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-153.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"toString\");\n if (desc.value === Date.prototype.toString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-154",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-154.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toUTCString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"toUTCString\");\n if (desc.value === Date.prototype.toUTCString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-155",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-155.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toGMTString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"toGMTString\");\n if (desc.value === Date.prototype.toGMTString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-156",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-156.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toTimeString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"toTimeString\");\n if (desc.value === Date.prototype.toTimeString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-157",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-157.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toDateString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"toDateString\");\n if (desc.value === Date.prototype.toDateString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-158",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-158.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toLocaleDateString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"toLocaleDateString\");\n if (desc.value === Date.prototype.toLocaleDateString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-159",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-159.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toLocaleTimeString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"toLocaleTimeString\");\n if (desc.value === Date.prototype.toLocaleTimeString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-16",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-16.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.getOwnPropertyNames)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"getOwnPropertyNames\");\n if (desc.value === Object.getOwnPropertyNames &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-160",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-160.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.valueOf)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"valueOf\");\n if (desc.value === Date.prototype.valueOf &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-161",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-161.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toISOString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"toISOString\");\n if (desc.value === Date.prototype.toISOString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-162",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-162.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toJSON)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date.prototype, \"toJSON\");\n if (desc.value === Date.prototype.toJSON &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-163",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-163.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, \"constructor\");\n if (desc.value === RegExp.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-164",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-164.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.compile)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, \"compile\");\n if (desc.value === RegExp.prototype.compile &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-165",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-165.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.exec)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, \"exec\");\n if (desc.value === RegExp.prototype.exec &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-166",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-166.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.test)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, \"test\");\n if (desc.value === RegExp.prototype.test &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-167",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-167.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.toString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, \"toString\");\n if (desc.value === RegExp.prototype.toString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-168",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-168.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Error.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Error.prototype, \"constructor\");\n if (desc.value === Error.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-169",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-169.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Error.prototype.toString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Error.prototype, \"toString\");\n if (desc.value === Error.prototype.toString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-17",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-17.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.create)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"create\");\n if (desc.value === Object.create &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-170",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-170.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (EvalError.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(EvalError.prototype, \"constructor\");\n if (desc.value === EvalError.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-171",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-171.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RangeError.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(RangeError.prototype, \"constructor\");\n if (desc.value === RangeError.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-172",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-172.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (ReferenceError.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(ReferenceError.prototype, \"constructor\");\n if (desc.value === ReferenceError.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-173",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-173.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (SyntaxError.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(SyntaxError.prototype, \"constructor\");\n if (desc.value === SyntaxError.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-174",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-174.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (TypeError.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(TypeError.prototype, \"constructor\");\n if (desc.value === TypeError.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-175",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-175.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (URIError.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(URIError.prototype, \"constructor\");\n if (desc.value === URIError.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-176",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-176.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (JSON.stringify)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(JSON, \"stringify\");\n if (desc.value === JSON.stringify &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-177",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-177.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (JSON.parse)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(JSON, \"parse\");\n if (desc.value === JSON.parse &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-178",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Global.NaN)",
|
||
"test": "assertTrue((function testcase() {\n // in non-strict mode, 'this' is bound to the global object.\n var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), \"NaN\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n return false;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-179",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Global.Infinity)",
|
||
"test": "assertTrue((function testcase() {\n // in non-strict mode, 'this' is bound to the global object.\n var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), \"Infinity\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n return false;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-18",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-18.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.defineProperty)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"defineProperty\");\n if (desc.value === Object.defineProperty &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-180",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Global.undefined)",
|
||
"test": "assertTrue((function testcase() {\n // in non-strict mode, 'this' is bound to the global object.\n var desc = Object.getOwnPropertyDescriptor(fnGlobalObject(), \"undefined\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n return false;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-182",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-182.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Object.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-183",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-183.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns undefined for non-existent property (arguments_1) on built-in object (Function)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Function, \"arguments_1\");\n\n if (desc === undefined)\n return true;\n else\n return false; \n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-184",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-184.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns undefined for non-existent property (caller) on built-in object (Math)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"caller\");\n\n if (desc === undefined)\n return true; \n else\n return false;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-185",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-185.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Function.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Function, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-186",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-186.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Function.length)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Function, \"length\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-187",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-187.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Function (instance).length)",
|
||
"test": "assertTrue((function testcase() {\n var f = Function('return 42;');\n\n var desc = Object.getOwnPropertyDescriptor(f, \"length\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-188",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-188.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns undefined for non-existent properties on built-ins (Function (instance).name)",
|
||
"test": "assertTrue((function testcase() {\n var f = Function('return 42;');\n var desc = Object.getOwnPropertyDescriptor(f, \"functionNameHopefullyDoesNotExist\");\n return desc === undefined;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-189",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-189.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Array.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-19",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-19.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.defineProperties)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"defineProperties\");\n if (desc.value === Object.defineProperties &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-190",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-190.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (String.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-191",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-191.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (String.length)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String, \"length\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-192",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-192.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (String (instance).length)",
|
||
"test": "assertTrue((function testcase() {\n var s = new String(\"abc\");\n var desc = Object.getOwnPropertyDescriptor(s, \"length\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-193",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-193.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Boolean.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Boolean, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-194",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-194.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Boolean.length)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Boolean, \"length\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-195",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-195.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-196",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-196.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.MAX_VALUE)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number, \"MAX_VALUE\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-197",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-197.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.MIN_VALUE)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number, \"MIN_VALUE\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-198",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-198.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.NaN)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number, \"NaN\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-199",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-199.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.NEGATIVE_INFINITY)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number, \"NEGATIVE_INFINITY\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-2",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-2.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns undefined for non-existent properties",
|
||
"test": "assertTrue((function testcase() {\n var o = {};\n\n var desc = Object.getOwnPropertyDescriptor(o, \"foo\");\n if (desc === undefined) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-20",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-20.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.seal)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"seal\");\n if (desc.value === Object.seal &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-200",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-200.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.POSITIVE_INFINITY)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number, \"POSITIVE_INFINITY\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-201",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-201.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Number.length)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number, \"length\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-202",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-202.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.E)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"E\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-203",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-203.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.LN10)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"LN10\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-204",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-204.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.LN2)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"LN2\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-205",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-205.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.LOG2E)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"LOG2E\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-206",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-206.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.LOG10E)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"LOG10E\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-207",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-207.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.PI)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"PI\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-208",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-208.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.SQRT1_2)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"SQRT1_2\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-209",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-209.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Math.SQRT2)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"SQRT2\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-21",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-21.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.freeze)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"freeze\");\n if (desc.value === Object.freeze &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-210",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-210.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Date.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Date, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-211",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-211.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(RegExp, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-212",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-212.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype.source)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, \"source\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-213",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-213.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype.global)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, \"global\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-214",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-214.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype.ignoreCase)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, \"ignoreCase\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-215",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-215.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RegExp.prototype.multiline)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, \"multiline\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-216",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-216.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (Error.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Error, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-217",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-217.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (EvalError.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(EvalError, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-218",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-218.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (RangeError.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(RangeError, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-219",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-219.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (ReferenceError.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(ReferenceError, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-22",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-22.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.preventExtensions)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"preventExtensions\");\n if (desc.value === Object.preventExtensions &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-220",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-220.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (SyntaxError.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(SyntaxError, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-221",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-221.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (TypeError.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(TypeError, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-222",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-222.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc (all false) for properties on built-ins (URIError.prototype)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(URIError, \"prototype\");\n\n if (desc.writable === false &&\n desc.enumerable === false &&\n desc.configurable === false &&\n desc.hasOwnProperty('get') === false &&\n desc.hasOwnProperty('set') === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-223",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-223.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'value' property of returned object is data property with correct 'value' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return desc.value === \"ownDataProperty\";\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-224",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-224.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'value' property of returned object is data property with correct 'writable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n try {\n desc.value = \"overwriteDataProperty\";\n return desc.value === \"overwriteDataProperty\";\n } catch (e) {\n return false;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-225",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-225.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'value' property of returned object is data property with correct 'enumerable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n var accessed = false;\n\n for (var prop in desc) {\n if (prop === \"value\") {\n accessed = true;\n }\n }\n\n return accessed;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-226",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-226.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'value' property of returned object is data property with correct 'configurable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n var propDefined = \"value\" in desc;\n\n try {\n delete desc.value;\n var propDeleted = \"value\" in desc;\n\n return propDefined && !propDeleted;\n } catch (e) {\n return false;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-227",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-227.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'writable' property of returned object is data property with correct 'value' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return desc.writable === true;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-228",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-228.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'writable' property of returned object is data property with correct 'writable' attribute",
|
||
"test": "/// Copyright (c) 2009 Microsoft Corporation \n/// \n/// Redistribution and use in source and binary forms, with or without modification, are permitted provided\n/// that the following conditions are met: \n/// * Redistributions of source code must retain the above copyright notice, this list of conditions and\n/// the following disclaimer. \n/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and \n/// the following disclaimer in the documentation and/or other materials provided with the distribution. \n/// * Neither the name of Microsoft nor the names of its contributors may be used to\n/// endorse or promote products derived from this software without specific prior written permission.\n/// \n/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR\n/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\n/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\n/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n try {\n desc.writable = \"overwriteDataProperty\";\n return desc.writable === \"overwriteDataProperty\";\n } catch (e) {\n return false;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-229",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-229.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'writable' property of returned object is data property with correct 'enumerable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n var accessed = false;\n\n for (var props in desc) {\n if (props === \"writable\") {\n accessed = true;\n }\n }\n\n return accessed;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-23",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-23.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.isSealed)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"isSealed\");\n if (desc.value === Object.isSealed &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-230",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-230.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'writable' property of returned object is data property with correct 'configurable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n var propDefined = (\"writable\" in desc);\n\n try {\n delete desc.writable;\n var propDeleted = \"writable\" in desc;\n\n return propDefined && !propDeleted;\n } catch (e) {\n return false;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-231",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-231.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'enumerable' property of returned object is data property with correct 'value' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return desc.enumerable === true;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-232",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-232.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'enumerable' property of returned object is data property with correct 'writable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n try {\n desc.enumerable = \"overwriteDataProperty\";\n return desc.enumerable === \"overwriteDataProperty\";\n } catch (e) {\n return false;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-233",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-233.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'enumerable' property of returned object is data property with correct 'enumerable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n var accessed = false;\n\n for (var props in desc) {\n if (props === \"enumerable\") {\n accessed = true;\n }\n }\n\n return accessed;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-234",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-234.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'enumerable' property of returned object is data property with correct 'configurable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n var propDefined = \"enumerable\" in desc;\n\n try {\n delete desc.enumerable;\n var propDeleted = \"enumerable\" in desc;\n\n return propDefined && !propDeleted;\n } catch (e) {\n return false;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-235",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-235.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'configurable' property of returned object is data property with correct 'value' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return desc.configurable === true;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-236",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-236.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'configurable' property of returned object is data property with correct 'writable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n try {\n desc.writable = \"overwriteDataProperty\";\n return desc.writable === \"overwriteDataProperty\";\n } catch (e) {\n return false;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-237",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-237.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'configurable' property of returned object is data property with correct 'enumerable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n var accessed = false;\n\n for (var prop in desc) {\n if (prop === \"configurable\") {\n accessed = true;\n }\n }\n\n return accessed;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-238",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-238.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'configurable' property of returned object is data property with correct 'configurable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": \"ownDataProperty\" };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n var propDefined = \"configurable\" in desc;\n \n try {\n delete desc.configurable;\n var propDeleted = \"configurable\" in desc;\n\n return propDefined && !propDeleted;\n } catch (e) {\n return false;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-239",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-239.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'get' property of returned object is data property with correct 'value' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = {};\n var fun = function () {\n return \"ownDataProperty\";\n };\n Object.defineProperty(obj, \"property\", {\n get: fun,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return desc.get === fun;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-24",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-24.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.isFrozen)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"isFrozen\");\n if (desc.value === Object.isFrozen &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-240",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-240.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'get' property of returned object is data property with correct 'writable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = {};\n var fun = function () {\n return \"ownGetProperty\";\n };\n Object.defineProperty(obj, \"property\", {\n get: fun,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n try {\n desc.get = \"overwriteGetProperty\";\n return desc.get === \"overwriteGetProperty\";\n } catch (e) {\n return false;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-241",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-241.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'get' property of returned object is data property with correct 'enumerable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = {};\n var fun = function () {\n return \"ownDataProperty\";\n };\n Object.defineProperty(obj, \"property\", {\n get: fun,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n var accessed = false;\n\n for (var prop in desc) {\n if (prop === \"get\") {\n accessed = true;\n }\n }\n\n return accessed;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-242",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-242.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'get' property of returned object is data property with correct 'configurable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = {};\n var fun = function () {\n return \"ownDataProperty\";\n };\n Object.defineProperty(obj, \"property\", {\n get: fun,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n var propDefined = \"get\" in desc;\n\n try {\n delete desc.get;\n var propDeleted = \"get\" in desc;\n\n return propDefined && !propDeleted;\n } catch (e) {\n return false;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-243",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-243.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'set' property of returned object is data property with correct 'value' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = {};\n var fun = function () {\n return \"ownSetProperty\";\n };\n Object.defineProperty(obj, \"property\", {\n set: fun,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return desc.set === fun;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-244",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-244.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'set' property of returned object is data property with correct 'writable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = {};\n var fun = function () {\n return \"ownSetProperty\";\n };\n Object.defineProperty(obj, \"property\", {\n set: fun,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n try {\n desc.set = \"overwriteSetProperty\";\n return desc.set === \"overwriteSetProperty\";\n } catch (e) {\n return false;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-245",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-245.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'set' property of returned object is data property with correct 'enumerable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = {};\n var fun = function () {\n return \"ownSetProperty\";\n };\n Object.defineProperty(obj, \"property\", {\n set: fun,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n var accessed = false;\n\n for (var prop in desc) {\n if (prop === \"set\") {\n accessed = true;\n }\n }\n\n return accessed;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-246",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-246.js",
|
||
"description": "Object.getOwnPropertyDescriptor - ensure that 'set' property of returned object is data property with correct 'configurable' attribute",
|
||
"test": "assertTrue((function testcase() {\n var obj = {};\n var fun = function () {\n return \"ownSetProperty\";\n };\n Object.defineProperty(obj, \"property\", {\n set: fun,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n var propDefined = \"set\" in desc;\n\n try {\n delete desc.set;\n var propDeleted = \"set\" in desc;\n\n return propDefined && !propDeleted;\n } catch (e) {\n return false;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-247",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-247.js",
|
||
"description": "Object.getOwnPropertyDescriptor - returned value is an instance of object",
|
||
"test": "assertTrue((function testcase() {\n var obj = { \"property\": 100 };\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return desc instanceof Object;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-248",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-248.js",
|
||
"description": "Object.getOwnPropertyDescriptor - returned object contains the property 'value' if the value of property 'value' is not explicitly specified when defined by Object.defineProperty",
|
||
"test": "assertTrue((function testcase() {\n var obj = {};\n Object.defineProperty(obj, \"property\", {\n writable: true,\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return \"value\" in desc;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-249",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-249.js",
|
||
"description": "Object.getOwnPropertyDescriptor - returned object contains the property 'set' if the value of property 'set' is not explicitly specified when defined by Object.defineProperty.",
|
||
"test": "assertTrue((function testcase() {\n var obj = {};\n Object.defineProperty(obj, \"property\", {\n get: function () { },\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return \"set\" in desc;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-25",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-25.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.isExtensible)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"isExtensible\");\n if (desc.value === Object.isExtensible &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-250",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-250.js",
|
||
"description": "Object.getOwnPropertyDescriptor - returned object contains the property 'get' if the value of property 'get' is not explicitly specified when defined by Object.defineProperty.",
|
||
"test": "assertTrue((function testcase() {\n var obj = {};\n Object.defineProperty(obj, \"property\", {\n set: function () {},\n configurable: true\n });\n\n var desc = Object.getOwnPropertyDescriptor(obj, \"property\");\n\n return \"get\" in desc;\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor) && fnExists(Object.defineProperty))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-26",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-26.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.keys)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object, \"keys\");\n if (desc.value === Object.keys &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-27",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-27.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object.prototype, \"constructor\");\n if (desc.value === Object.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-28",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-28.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.toString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object.prototype, \"toString\");\n if (desc.value === Object.prototype.toString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-29",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-29.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.valueOf)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object.prototype, \"valueOf\");\n if (desc.value === Object.prototype.valueOf &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-3",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-3.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns an object representing an accessor desc for valid accessor properties",
|
||
"test": "assertTrue((function testcase() {\n var o = {};\n\n // dummy getter\n var getter = function () { return 1; }\n var d = { get: getter };\n\n Object.defineProperty(o, \"foo\", d);\n\n var desc = Object.getOwnPropertyDescriptor(o, \"foo\");\n if (desc.get === getter &&\n desc.set === undefined &&\n desc.enumerable === false &&\n desc.configurable === false) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-30",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-30.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.isPrototypeOf)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object.prototype, \"isPrototypeOf\");\n if (desc.value === Object.prototype.isPrototypeOf &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-31",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-31.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.hasOwnProperty)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object.prototype, \"hasOwnProperty\");\n if (desc.value === Object.prototype.hasOwnProperty &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-32",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-32.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.propertyIsEnumerable)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object.prototype, \"propertyIsEnumerable\");\n if (desc.value === Object.prototype.propertyIsEnumerable &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-33",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-33.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Object.prototype.toLocaleString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Object.prototype, \"toLocaleString\");\n if (desc.value === Object.prototype.toLocaleString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-34",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-34.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Function.prototype, \"constructor\");\n if (desc.value === Function.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-35",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-35.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.toString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Function.prototype, \"toString\");\n if (desc.value === Function.prototype.toString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-36",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-36.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.apply)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Function.prototype, \"apply\");\n if (desc.value === Function.prototype.apply &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-37",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-37.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.call)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Function.prototype, \"call\");\n if (desc.value === Function.prototype.call &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-38",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-38.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Function.prototype.bind)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Function.prototype, \"bind\");\n if (desc.value === Function.prototype.bind &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-39",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-39.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"constructor\");\n if (desc.value === Array.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-4",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-4.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.eval)",
|
||
"test": "assertTrue((function testcase() {\n var global = fnGlobalObject();\n var desc = Object.getOwnPropertyDescriptor(global, \"eval\");\n if (desc.value === global.eval &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-40",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-40.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.concat)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"concat\");\n if (desc.value === Array.prototype.concat &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-41",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-41.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.join)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"join\");\n if (desc.value === Array.prototype.join &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-42",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-42.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.reverse)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"reverse\");\n if (desc.value === Array.prototype.reverse &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-43",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-43.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.slice)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"slice\");\n if (desc.value === Array.prototype.slice &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-44",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-44.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.sort)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"sort\");\n if (desc.value === Array.prototype.sort &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-45",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-45.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.toString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"toString\");\n if (desc.value === Array.prototype.toString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-46",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-46.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.push)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"push\");\n if (desc.value === Array.prototype.push &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-47",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-47.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.pop)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"pop\");\n if (desc.value === Array.prototype.pop &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-48",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-48.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.shift)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"shift\");\n if (desc.value === Array.prototype.shift &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-49",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-49.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.unshift)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"unshift\");\n if (desc.value === Array.prototype.unshift &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-5",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-5.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.parseInt)",
|
||
"test": "assertTrue((function testcase() {\n var global = fnGlobalObject();\n var desc = Object.getOwnPropertyDescriptor(global, \"parseInt\");\n if (desc.value === global.parseInt &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-50",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-50.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.splice)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"splice\");\n if (desc.value === Array.prototype.splice &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-51",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-51.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.toLocaleString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"toLocaleString\");\n if (desc.value === Array.prototype.toLocaleString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-52",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-52.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.indexOf)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"indexOf\");\n if (desc.value === Array.prototype.indexOf &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-53",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-53.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.lastIndexOf)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"lastIndexOf\");\n if (desc.value === Array.prototype.lastIndexOf &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-54",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-54.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.every)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"every\");\n if (desc.value === Array.prototype.every &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-55",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-55.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.some)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"some\");\n if (desc.value === Array.prototype.some &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-56",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-56.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.forEach)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"forEach\");\n if (desc.value === Array.prototype.forEach &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-57",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-57.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.map)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"map\");\n if (desc.value === Array.prototype.map &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-58",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-58.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.filter)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"filter\");\n if (desc.value === Array.prototype.filter &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-59",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-59.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.reduce)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"reduce\");\n if (desc.value === Array.prototype.reduce &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-6",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-6.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.parseFloat)",
|
||
"test": "assertTrue((function testcase() {\n var global = fnGlobalObject();\n var desc = Object.getOwnPropertyDescriptor(global, \"parseFloat\");\n if (desc.value === global.parseFloat &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-60",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-60.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Array.prototype.reduceRight)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Array.prototype, \"reduceRight\");\n if (desc.value === Array.prototype.reduceRight &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-61",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-61.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.fromCharCode)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String, \"fromCharCode\");\n if (desc.value === String.fromCharCode &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-62",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-62.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"constructor\");\n if (desc.value === String.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-63",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-63.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.charAt)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"charAt\");\n if (desc.value === String.prototype.charAt &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-64",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-64.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.charCodeAt)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"charCodeAt\");\n if (desc.value === String.prototype.charCodeAt &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-65",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-65.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.concat)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"concat\");\n if (desc.value === String.prototype.concat &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-66",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-66.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.indexOf)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"indexOf\");\n if (desc.value === String.prototype.indexOf &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-67",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-67.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.lastIndexOf)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"lastIndexOf\");\n if (desc.value === String.prototype.lastIndexOf &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-68",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-68.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.match)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"match\");\n if (desc.value === String.prototype.match &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-69",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-69.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.replace)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"replace\");\n if (desc.value === String.prototype.replace &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-7",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-7.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.isNaN)",
|
||
"test": "assertTrue((function testcase() {\n var global = fnGlobalObject();\n var desc = Object.getOwnPropertyDescriptor(global, \"isNaN\");\n if (desc.value === global.isNaN &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-70",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-70.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.search)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"search\");\n if (desc.value === String.prototype.search &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-71",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-71.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.slice)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"slice\");\n if (desc.value === String.prototype.slice &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-72",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-72.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.split)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"split\");\n if (desc.value === String.prototype.split &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-73",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-73.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.substring)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"substring\");\n if (desc.value === String.prototype.substring &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-74",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-74.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.substr)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"substr\");\n if (desc.value === String.prototype.substr &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-75",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-75.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toLowerCase)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"toLowerCase\");\n if (desc.value === String.prototype.toLowerCase &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-76",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-76.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"toString\");\n if (desc.value === String.prototype.toString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-77",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-77.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toUpperCase)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"toUpperCase\");\n if (desc.value === String.prototype.toUpperCase &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-78",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-78.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.valueOf)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"valueOf\");\n if (desc.value === String.prototype.valueOf &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-79",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-79.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toLocaleLowerCase)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"toLocaleLowerCase\");\n if (desc.value === String.prototype.toLocaleLowerCase &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-8",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-8.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.isFinite)",
|
||
"test": "assertTrue((function testcase() {\n var global = fnGlobalObject();\n var desc = Object.getOwnPropertyDescriptor(global, \"isFinite\");\n if (desc.value === global.isFinite &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-80",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-80.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.toLocaleUpperCase)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"toLocaleUpperCase\");\n if (desc.value === String.prototype.toLocaleUpperCase &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-81",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-81.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.localeCompare)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"localeCompare\");\n if (desc.value === String.prototype.localeCompare &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-82",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-82.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.trim)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(String.prototype, \"trim\");\n if (desc.value === String.prototype.trim &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-84",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-84.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Boolean.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, \"constructor\");\n if (desc.value === Boolean.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-85",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-85.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Boolean.prototype.toString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, \"toString\");\n if (desc.value === Boolean.prototype.toString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-86",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-86.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Boolean.prototype.valueOf)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, \"valueOf\");\n if (desc.value === Boolean.prototype.valueOf &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-88",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-88.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.constructor)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number.prototype, \"constructor\");\n if (desc.value === Number.prototype.constructor &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-89",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-89.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number.prototype, \"toString\");\n if (desc.value === Number.prototype.toString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-9",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-9.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.decodeURI)",
|
||
"test": "assertTrue((function testcase() {\n var global = fnGlobalObject();\n var desc = Object.getOwnPropertyDescriptor(global, \"decodeURI\");\n if (desc.value === global.decodeURI &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-90",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-90.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toLocaleString)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number.prototype, \"toLocaleString\");\n if (desc.value === Number.prototype.toLocaleString &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-91",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-91.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toFixed)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number.prototype, \"toFixed\");\n if (desc.value === Number.prototype.toFixed &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-92",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-92.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toExponential)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number.prototype, \"toExponential\");\n if (desc.value === Number.prototype.toExponential &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-93",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-93.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.toPrecision)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number.prototype, \"toPrecision\");\n if (desc.value === Number.prototype.toPrecision &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-94",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-94.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Number.prototype.valueOf)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Number.prototype, \"valueOf\");\n if (desc.value === Number.prototype.valueOf &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-96",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-96.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.abs)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"abs\");\n if (desc.value === Math.abs &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-97",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-97.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.acos)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"acos\");\n if (desc.value === Math.acos &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-98",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-98.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.asin)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"asin\");\n if (desc.value === Math.asin &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
},
|
||
{
|
||
"id": "15.2.3.3-4-99",
|
||
"path": "TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-99.js",
|
||
"description": "Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Math.atan)",
|
||
"test": "assertTrue((function testcase() {\n var desc = Object.getOwnPropertyDescriptor(Math, \"atan\");\n if (desc.value === Math.atan &&\n desc.writable === true &&\n desc.enumerable === false &&\n desc.configurable === true) {\n return true;\n }\n }).call(this));\n",
|
||
"precondition": "(fnExists(Object.getOwnPropertyDescriptor))"
|
||
}
|
||
]
|
||
}
|
||
}
|