aboutsummaryrefslogtreecommitdiffstats
path: root/website/resources/scripts/testcases2/15.9.4.4.json
blob: 42131d0a4fd2a112bf1b8231e49cc69337843b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
 "testCollection": {
  "name": "15.9.4.4",
  "numTests": 4,
  "tests": [
   {
    "id": "15.9.4.4-0-1",
    "path": "TestCases/chapter15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-1.js",
    "description": "Date.now must exist as a function",
    "test": "assertTrue((typeof Date.now === \"function\"));\n",
    "precondition": "(fnExists(Date.now))"
   },
   {
    "id": "15.9.4.4-0-2",
    "path": "TestCases/chapter15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-2.js",
    "description": "Date.now must exist as a function taking 0 parameters",
    "test": "assertTrue((Date.now.length === 0));\n",
    "precondition": "(fnExists(Date.now))"
   },
   {
    "id": "15.9.4.4-0-3",
    "path": "TestCases/chapter15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-3.js",
    "description": "Date.now must exist as a function",
    "test": "assertTrue((function testcase() {\n\n        var fun = Date.now;\n        return (typeof (fun) === \"function\");\n    }).call(this));\n",
    "precondition": "(fnExists(Date.now))"
   },
   {
    "id": "15.9.4.4-0-4",
    "path": "TestCases/chapter15/15.9/15.9.4/15.9.4.4/15.9.4.4-0-4.js",
    "description": "Date.now - returns number",
    "test": "assertTrue((typeof Date.now() === \"number\"));\n",
    "precondition": "(fnExists(Date.now))"
   }
  ]
 }
}