diff options
Diffstat (limited to 'test/suite')
-rw-r--r-- | test/suite/ch15/15.12/15.12.3/15.12.3-11-26.js | 2 | ||||
-rw-r--r-- | test/suite/ch15/15.2/15.2.2/S15.2.2.1_A2_T5.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/suite/ch15/15.12/15.12.3/15.12.3-11-26.js b/test/suite/ch15/15.12/15.12.3/15.12.3-11-26.js index 8581058c8..36c5c306b 100644 --- a/test/suite/ch15/15.12/15.12.3/15.12.3-11-26.js +++ b/test/suite/ch15/15.12/15.12.3/15.12.3-11-26.js @@ -16,6 +16,6 @@ function testcase() { arrObj[2] = "c";
var jsonText = JSON.stringify(arrObj, undefined, "").toString();
- return jsonText.substr(jsonText.length - 1, 1) === "]";
+ return jsonText.charAt(jsonText.length - 1) === "]";
}
runTestCase(testcase);
diff --git a/test/suite/ch15/15.2/15.2.2/S15.2.2.1_A2_T5.js b/test/suite/ch15/15.2/15.2.2/S15.2.2.1_A2_T5.js index a5d3ec350..08e181ca7 100644 --- a/test/suite/ch15/15.2/15.2.2/S15.2.2.1_A2_T5.js +++ b/test/suite/ch15/15.2/15.2.2/S15.2.2.1_A2_T5.js @@ -19,7 +19,7 @@ if (n_obj !== obj) { } //CHECK#2 -if ((n_obj.getYear() !== 78)||(n_obj.getMonth() !== 3)) { +if ((n_obj.getFullYear() !== 1978)||(n_obj.getMonth() !== 3)) { $ERROR('#2: When the Object constructor is called and if the value is an Object simply value returns.'); } |