diff options
Diffstat (limited to 'test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js')
-rw-r--r-- | test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js index 3d6e58a3b..53b4143d0 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js @@ -14,8 +14,8 @@ var __re = /sh/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$`" + 'sch')!=='She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.\'. Actual: '+__str.replace(__re, "$`" + 'sch')); +if (__str.replace(__re, "$`" + 'sch') !== 'She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.\'. Actual: ' + __str.replace(__re, "$`" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// |