summaryrefslogtreecommitdiff
path: root/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js')
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js17
1 files changed, 13 insertions, 4 deletions
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js
index 1d92ea6d1..39beb28b8 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js
@@ -9,13 +9,22 @@ es5id: 15.5.4.8_A4_T3
description: Override toString and valueOf functions
---*/
-var __obj = {toString:function(){return "\u0041B";}}
-var __obj2 = {valueOf:function(){return {};},toString:function(){}}
+var __obj = {
+ toString: function() {
+ return "\u0041B";
+ }
+}
+var __obj2 = {
+ valueOf: function() {
+ return {};
+ },
+ toString: function() {}
+}
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
-if ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2)!==7) {
- $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){}}; "ABB\\u0041BABAB".lastIndexOf(__obj, __obj2)===7. Actual: '+("ABB\u0041BABAB".lastIndexOf(__obj, __obj2)));
+if ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2) !== 7) {
+ $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){}}; "ABB\\u0041BABAB".lastIndexOf(__obj, __obj2)===7. Actual: ' + ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2)));
}
//
//////////////////////////////////////////////////////////////////////////////