From 19ca734beaea75fc61e296f78450354ff0dff7e9 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Thu, 15 Feb 2018 15:39:13 -0500 Subject: built-ins/String/*: make all indentation consistent (depth & character) (#1430) --- test/built-ins/String/15.5.5.5.2-1-1.js | 6 +- test/built-ins/String/15.5.5.5.2-1-2.js | 4 +- test/built-ins/String/15.5.5.5.2-3-1.js | 4 +- test/built-ins/String/15.5.5.5.2-3-2.js | 4 +- test/built-ins/String/15.5.5.5.2-3-3.js | 2 +- test/built-ins/String/15.5.5.5.2-3-4.js | 2 +- test/built-ins/String/15.5.5.5.2-3-5.js | 4 +- test/built-ins/String/15.5.5.5.2-3-6.js | 2 +- test/built-ins/String/15.5.5.5.2-3-7.js | 2 +- test/built-ins/String/15.5.5.5.2-3-8.js | 4 +- test/built-ins/String/15.5.5.5.2-7-1.js | 2 +- test/built-ins/String/15.5.5.5.2-7-2.js | 2 +- test/built-ins/String/15.5.5.5.2-7-3.js | 2 +- test/built-ins/String/15.5.5.5.2-7-4.js | 2 +- test/built-ins/String/S15.5.1.1_A1_T1.js | 6 +- test/built-ins/String/S15.5.1.1_A1_T10.js | 8 +- test/built-ins/String/S15.5.1.1_A1_T11.js | 28 ++--- test/built-ins/String/S15.5.1.1_A1_T12.js | 16 +-- test/built-ins/String/S15.5.1.1_A1_T13.js | 16 +-- test/built-ins/String/S15.5.1.1_A1_T14.js | 8 +- test/built-ins/String/S15.5.1.1_A1_T15.js | 2 +- test/built-ins/String/S15.5.1.1_A1_T16.js | 16 +-- test/built-ins/String/S15.5.1.1_A1_T17.js | 12 +-- test/built-ins/String/S15.5.1.1_A1_T18.js | 10 +- test/built-ins/String/S15.5.1.1_A1_T19.js | 6 +- test/built-ins/String/S15.5.1.1_A1_T2.js | 4 +- test/built-ins/String/S15.5.1.1_A1_T3.js | 4 +- test/built-ins/String/S15.5.1.1_A1_T4.js | 4 +- test/built-ins/String/S15.5.1.1_A1_T5.js | 4 +- test/built-ins/String/S15.5.1.1_A1_T6.js | 4 +- test/built-ins/String/S15.5.1.1_A1_T7.js | 6 +- test/built-ins/String/S15.5.1.1_A1_T8.js | 10 +- test/built-ins/String/S15.5.1.1_A1_T9.js | 8 +- test/built-ins/String/S15.5.1.1_A2_T1.js | 4 +- test/built-ins/String/S15.5.2.1_A1_T1.js | 8 +- test/built-ins/String/S15.5.2.1_A1_T10.js | 12 ++- test/built-ins/String/S15.5.2.1_A1_T11.js | 18 ++-- test/built-ins/String/S15.5.2.1_A1_T12.js | 14 ++- test/built-ins/String/S15.5.2.1_A1_T13.js | 16 ++- test/built-ins/String/S15.5.2.1_A1_T16.js | 40 +++---- test/built-ins/String/S15.5.2.1_A1_T17.js | 24 ++--- test/built-ins/String/S15.5.2.1_A1_T18.js | 16 +-- test/built-ins/String/S15.5.2.1_A1_T19.js | 10 +- test/built-ins/String/S15.5.2.1_A1_T2.js | 12 +-- test/built-ins/String/S15.5.2.1_A1_T3.js | 12 +-- test/built-ins/String/S15.5.2.1_A1_T4.js | 8 +- test/built-ins/String/S15.5.2.1_A1_T5.js | 8 +- test/built-ins/String/S15.5.2.1_A1_T6.js | 8 +- test/built-ins/String/S15.5.2.1_A1_T7.js | 12 ++- test/built-ins/String/S15.5.2.1_A1_T8.js | 14 +-- test/built-ins/String/S15.5.2.1_A1_T9.js | 12 ++- test/built-ins/String/S15.5.2.1_A2_T2.js | 8 +- test/built-ins/String/S15.5.2.1_A3.js | 4 +- test/built-ins/String/S15.5.3_A1.js | 2 +- test/built-ins/String/S15.5.3_A2_T1.js | 2 +- test/built-ins/String/S15.5.3_A2_T2.js | 2 +- test/built-ins/String/S15.5.5.1_A1.js | 4 +- test/built-ins/String/S15.5.5.1_A2.js | 10 +- test/built-ins/String/S15.5.5.1_A3.js | 4 +- test/built-ins/String/S15.5.5.1_A4_T1.js | 14 +-- test/built-ins/String/S15.5.5.1_A4_T2.js | 6 +- test/built-ins/String/S15.5.5.1_A5.js | 16 +-- test/built-ins/String/S15.5.5_A1_T1.js | 2 +- test/built-ins/String/S15.5.5_A1_T2.js | 2 +- test/built-ins/String/S15.5.5_A2_T1.js | 2 +- test/built-ins/String/S15.5.5_A2_T2.js | 2 +- test/built-ins/String/S8.12.8_A1.js | 18 ++-- test/built-ins/String/S8.12.8_A2.js | 17 ++- test/built-ins/String/S9.1_A1_T2.js | 18 +++- test/built-ins/String/S9.8.1_A3.js | 4 +- test/built-ins/String/S9.8_A2_T1.js | 2 +- test/built-ins/String/S9.8_A3_T1.js | 2 +- test/built-ins/String/S9.8_A4_T1.js | 2 +- test/built-ins/String/S9.8_A5_T1.js | 56 ++++++---- test/built-ins/String/fromCharCode/S15.5.3.2_A1.js | 6 +- test/built-ins/String/fromCharCode/S15.5.3.2_A2.js | 2 +- .../String/fromCharCode/S15.5.3.2_A3_T1.js | 4 +- .../String/fromCharCode/S15.5.3.2_A3_T2.js | 4 +- test/built-ins/String/fromCharCode/S15.5.3.2_A4.js | 4 +- test/built-ins/String/fromCharCode/S9.7_A1.js | 12 +-- test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js | 76 +++++++++++--- .../String/fromCodePoint/to-number-conversions.js | 6 +- test/built-ins/String/length.js | 2 +- test/built-ins/String/prototype/S15.5.3.1_A1.js | 2 +- test/built-ins/String/prototype/S15.5.3.1_A2.js | 12 +-- test/built-ins/String/prototype/S15.5.3.1_A3.js | 4 +- test/built-ins/String/prototype/S15.5.3.1_A4.js | 8 +- test/built-ins/String/prototype/S15.5.4_A1.js | 4 +- test/built-ins/String/prototype/S15.5.4_A2.js | 4 +- test/built-ins/String/prototype/S15.5.4_A3.js | 6 +- .../String/prototype/charAt/S15.5.4.4_A1.1.js | 12 ++- .../String/prototype/charAt/S15.5.4.4_A10.js | 8 +- .../String/prototype/charAt/S15.5.4.4_A11.js | 4 +- .../String/prototype/charAt/S15.5.4.4_A1_T1.js | 4 +- .../String/prototype/charAt/S15.5.4.4_A1_T10.js | 12 ++- .../String/prototype/charAt/S15.5.4.4_A1_T2.js | 4 +- .../String/prototype/charAt/S15.5.4.4_A1_T4.js | 2 +- .../String/prototype/charAt/S15.5.4.4_A1_T5.js | 8 +- .../String/prototype/charAt/S15.5.4.4_A1_T6.js | 2 +- .../String/prototype/charAt/S15.5.4.4_A1_T7.js | 2 +- .../String/prototype/charAt/S15.5.4.4_A1_T8.js | 2 +- .../String/prototype/charAt/S15.5.4.4_A1_T9.js | 4 +- .../String/prototype/charAt/S15.5.4.4_A2.js | 4 +- .../String/prototype/charAt/S15.5.4.4_A3.js | 2 +- .../String/prototype/charAt/S15.5.4.4_A4_T1.js | 10 +- .../String/prototype/charAt/S15.5.4.4_A4_T2.js | 10 +- .../String/prototype/charAt/S15.5.4.4_A4_T3.js | 10 +- .../String/prototype/charAt/S15.5.4.4_A5.js | 12 ++- .../String/prototype/charAt/S15.5.4.4_A6.js | 2 +- .../String/prototype/charAt/S15.5.4.4_A7.js | 2 +- .../String/prototype/charAt/S15.5.4.4_A8.js | 12 +-- .../String/prototype/charAt/S15.5.4.4_A9.js | 4 +- .../String/prototype/charCodeAt/S15.5.4.5_A1.1.js | 12 ++- .../String/prototype/charCodeAt/S15.5.4.5_A10.js | 8 +- .../String/prototype/charCodeAt/S15.5.4.5_A11.js | 4 +- .../String/prototype/charCodeAt/S15.5.4.5_A1_T1.js | 4 +- .../prototype/charCodeAt/S15.5.4.5_A1_T10.js | 12 ++- .../String/prototype/charCodeAt/S15.5.4.5_A1_T2.js | 12 +-- .../String/prototype/charCodeAt/S15.5.4.5_A1_T4.js | 2 +- .../String/prototype/charCodeAt/S15.5.4.5_A1_T5.js | 8 +- .../String/prototype/charCodeAt/S15.5.4.5_A1_T6.js | 2 +- .../String/prototype/charCodeAt/S15.5.4.5_A1_T7.js | 2 +- .../String/prototype/charCodeAt/S15.5.4.5_A1_T8.js | 2 +- .../String/prototype/charCodeAt/S15.5.4.5_A1_T9.js | 4 +- .../String/prototype/charCodeAt/S15.5.4.5_A2.js | 2 +- .../String/prototype/charCodeAt/S15.5.4.5_A4.js | 12 ++- .../String/prototype/charCodeAt/S15.5.4.5_A6.js | 2 +- .../String/prototype/charCodeAt/S15.5.4.5_A7.js | 2 +- .../String/prototype/charCodeAt/S15.5.4.5_A8.js | 12 +-- .../String/prototype/charCodeAt/S15.5.4.5_A9.js | 4 +- .../String/prototype/concat/S15.5.4.6_A10.js | 8 +- .../String/prototype/concat/S15.5.4.6_A11.js | 4 +- .../String/prototype/concat/S15.5.4.6_A1_T1.js | 4 +- .../String/prototype/concat/S15.5.4.6_A1_T10.js | 33 ++++-- .../String/prototype/concat/S15.5.4.6_A1_T2.js | 4 +- .../String/prototype/concat/S15.5.4.6_A1_T4.js | 2 +- .../String/prototype/concat/S15.5.4.6_A1_T5.js | 8 +- .../String/prototype/concat/S15.5.4.6_A1_T6.js | 2 +- .../String/prototype/concat/S15.5.4.6_A1_T7.js | 2 +- .../String/prototype/concat/S15.5.4.6_A1_T8.js | 2 +- .../String/prototype/concat/S15.5.4.6_A1_T9.js | 4 +- .../String/prototype/concat/S15.5.4.6_A2.js | 18 ++-- .../String/prototype/concat/S15.5.4.6_A3.js | 2 +- .../String/prototype/concat/S15.5.4.6_A4_T1.js | 10 +- .../String/prototype/concat/S15.5.4.6_A4_T2.js | 18 +++- .../String/prototype/concat/S15.5.4.6_A6.js | 2 +- .../String/prototype/concat/S15.5.4.6_A7.js | 2 +- .../String/prototype/concat/S15.5.4.6_A8.js | 10 +- .../String/prototype/concat/S15.5.4.6_A9.js | 4 +- .../prototype/constructor/S15.5.4.1_A1_T1.js | 2 +- .../prototype/constructor/S15.5.4.1_A1_T2.js | 12 +-- .../String/prototype/indexOf/S15.5.4.7_A10.js | 8 +- .../String/prototype/indexOf/S15.5.4.7_A11.js | 4 +- .../String/prototype/indexOf/S15.5.4.7_A1_T1.js | 2 +- .../String/prototype/indexOf/S15.5.4.7_A1_T10.js | 18 +++- .../String/prototype/indexOf/S15.5.4.7_A1_T12.js | 6 +- .../String/prototype/indexOf/S15.5.4.7_A1_T2.js | 8 +- .../String/prototype/indexOf/S15.5.4.7_A1_T4.js | 2 +- .../String/prototype/indexOf/S15.5.4.7_A1_T5.js | 8 +- .../String/prototype/indexOf/S15.5.4.7_A1_T6.js | 2 +- .../String/prototype/indexOf/S15.5.4.7_A1_T7.js | 2 +- .../String/prototype/indexOf/S15.5.4.7_A1_T8.js | 6 +- .../String/prototype/indexOf/S15.5.4.7_A1_T9.js | 8 +- .../String/prototype/indexOf/S15.5.4.7_A2_T1.js | 4 +- .../String/prototype/indexOf/S15.5.4.7_A2_T2.js | 4 +- .../String/prototype/indexOf/S15.5.4.7_A2_T3.js | 4 +- .../String/prototype/indexOf/S15.5.4.7_A2_T4.js | 4 +- .../String/prototype/indexOf/S15.5.4.7_A3_T1.js | 4 +- .../String/prototype/indexOf/S15.5.4.7_A3_T2.js | 4 +- .../String/prototype/indexOf/S15.5.4.7_A3_T3.js | 8 +- .../String/prototype/indexOf/S15.5.4.7_A4_T1.js | 28 +++-- .../String/prototype/indexOf/S15.5.4.7_A4_T2.js | 31 ++++-- .../String/prototype/indexOf/S15.5.4.7_A4_T3.js | 19 +++- .../String/prototype/indexOf/S15.5.4.7_A4_T4.js | 30 ++++-- .../String/prototype/indexOf/S15.5.4.7_A4_T5.js | 31 ++++-- .../String/prototype/indexOf/S15.5.4.7_A5_T1.js | 10 +- .../String/prototype/indexOf/S15.5.4.7_A5_T2.js | 10 +- .../String/prototype/indexOf/S15.5.4.7_A5_T3.js | 10 +- .../String/prototype/indexOf/S15.5.4.7_A5_T4.js | 10 +- .../String/prototype/indexOf/S15.5.4.7_A5_T5.js | 10 +- .../String/prototype/indexOf/S15.5.4.7_A5_T6.js | 10 +- .../String/prototype/indexOf/S15.5.4.7_A6.js | 2 +- .../String/prototype/indexOf/S15.5.4.7_A7.js | 2 +- .../String/prototype/indexOf/S15.5.4.7_A8.js | 10 +- .../String/prototype/indexOf/S15.5.4.7_A9.js | 4 +- .../String/prototype/lastIndexOf/S15.5.4.8_A10.js | 8 +- .../String/prototype/lastIndexOf/S15.5.4.8_A11.js | 4 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T1.js | 2 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T10.js | 18 +++- .../prototype/lastIndexOf/S15.5.4.8_A1_T12.js | 6 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T2.js | 8 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T4.js | 2 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T5.js | 8 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T6.js | 2 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T7.js | 2 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T8.js | 6 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T9.js | 8 +- .../prototype/lastIndexOf/S15.5.4.8_A4_T1.js | 28 +++-- .../prototype/lastIndexOf/S15.5.4.8_A4_T2.js | 31 ++++-- .../prototype/lastIndexOf/S15.5.4.8_A4_T3.js | 17 ++- .../prototype/lastIndexOf/S15.5.4.8_A4_T4.js | 30 ++++-- .../prototype/lastIndexOf/S15.5.4.8_A4_T5.js | 31 ++++-- .../String/prototype/lastIndexOf/S15.5.4.8_A6.js | 2 +- .../String/prototype/lastIndexOf/S15.5.4.8_A8.js | 12 +-- .../String/prototype/lastIndexOf/S15.5.4.8_A9.js | 4 +- .../String/prototype/localeCompare/15.5.4.9_3.js | 14 +-- .../String/prototype/localeCompare/15.5.4.9_CE.js | 116 ++++++++++----------- .../prototype/localeCompare/S15.5.4.9_A10.js | 8 +- .../prototype/localeCompare/S15.5.4.9_A11.js | 4 +- .../prototype/localeCompare/S15.5.4.9_A1_T1.js | 20 ++-- .../prototype/localeCompare/S15.5.4.9_A1_T2.js | 4 +- .../String/prototype/localeCompare/S15.5.4.9_A6.js | 2 +- .../String/prototype/localeCompare/S15.5.4.9_A7.js | 2 +- .../String/prototype/localeCompare/S15.5.4.9_A8.js | 10 +- .../String/prototype/localeCompare/S15.5.4.9_A9.js | 4 +- .../String/prototype/match/S15.5.4.10_A1_T10.js | 12 ++- .../String/prototype/match/S15.5.4.10_A1_T11.js | 22 ++-- .../String/prototype/match/S15.5.4.10_A1_T12.js | 25 +++-- .../String/prototype/match/S15.5.4.10_A1_T13.js | 15 ++- .../String/prototype/match/S15.5.4.10_A1_T14.js | 2 +- .../String/prototype/match/S15.5.4.10_A1_T3.js | 11 +- .../String/prototype/match/S15.5.4.10_A1_T4.js | 14 +-- .../String/prototype/match/S15.5.4.10_A1_T5.js | 8 +- .../String/prototype/match/S15.5.4.10_A1_T6.js | 14 +-- .../String/prototype/match/S15.5.4.10_A1_T7.js | 14 +-- .../String/prototype/match/S15.5.4.10_A1_T8.js | 18 ++-- .../String/prototype/match/S15.5.4.10_A1_T9.js | 20 ++-- .../String/prototype/match/S15.5.4.10_A2_T1.js | 16 +-- .../String/prototype/match/S15.5.4.10_A2_T10.js | 16 +-- .../String/prototype/match/S15.5.4.10_A2_T11.js | 18 ++-- .../String/prototype/match/S15.5.4.10_A2_T12.js | 10 +- .../String/prototype/match/S15.5.4.10_A2_T13.js | 10 +- .../String/prototype/match/S15.5.4.10_A2_T14.js | 10 +- .../String/prototype/match/S15.5.4.10_A2_T15.js | 10 +- .../String/prototype/match/S15.5.4.10_A2_T16.js | 12 +-- .../String/prototype/match/S15.5.4.10_A2_T17.js | 16 +-- .../String/prototype/match/S15.5.4.10_A2_T18.js | 16 +-- .../String/prototype/match/S15.5.4.10_A2_T2.js | 12 +-- .../String/prototype/match/S15.5.4.10_A2_T3.js | 12 +-- .../String/prototype/match/S15.5.4.10_A2_T4.js | 12 +-- .../String/prototype/match/S15.5.4.10_A2_T5.js | 12 +-- .../String/prototype/match/S15.5.4.10_A2_T6.js | 24 ++--- .../String/prototype/match/S15.5.4.10_A2_T7.js | 10 +- .../String/prototype/match/S15.5.4.10_A2_T8.js | 16 +-- .../String/prototype/match/S15.5.4.10_A2_T9.js | 16 +-- .../String/prototype/match/S15.5.4.10_A6.js | 2 +- .../String/prototype/match/S15.5.4.10_A7.js | 2 +- .../String/prototype/match/S15.5.4.10_A8.js | 10 +- .../String/prototype/match/S15.5.4.10_A9.js | 4 +- test/built-ins/String/prototype/match/length.js | 4 +- .../String/prototype/match/this-val-bool.js | 8 +- .../String/prototype/match/this-val-obj.js | 2 +- .../return-normalized-string-from-coerced-form.js | 8 +- .../padEnd/exception-fill-string-symbol.js | 4 +- .../padEnd/exception-not-object-coercible.js | 18 ++-- .../String/prototype/padEnd/exception-symbol.js | 4 +- .../String/prototype/padEnd/function-name.js | 6 +- .../prototype/padEnd/observable-operations.js | 16 +-- .../padStart/exception-fill-string-symbol.js | 4 +- .../padStart/exception-not-object-coercible.js | 18 ++-- .../String/prototype/padStart/exception-symbol.js | 4 +- .../String/prototype/padStart/function-name.js | 6 +- .../prototype/padStart/observable-operations.js | 16 +-- .../String/prototype/replace/15.5.4.11-1.js | 16 +-- .../String/prototype/replace/S15.5.4.11_A10.js | 8 +- .../String/prototype/replace/S15.5.4.11_A11.js | 4 +- .../String/prototype/replace/S15.5.4.11_A12.js | 2 +- .../String/prototype/replace/S15.5.4.11_A1_T1.js | 2 +- .../String/prototype/replace/S15.5.4.11_A1_T10.js | 16 ++- .../String/prototype/replace/S15.5.4.11_A1_T11.js | 28 +++-- .../String/prototype/replace/S15.5.4.11_A1_T12.js | 31 ++++-- .../String/prototype/replace/S15.5.4.11_A1_T13.js | 25 +++-- .../String/prototype/replace/S15.5.4.11_A1_T14.js | 2 +- .../String/prototype/replace/S15.5.4.11_A1_T15.js | 10 +- .../String/prototype/replace/S15.5.4.11_A1_T16.js | 10 +- .../String/prototype/replace/S15.5.4.11_A1_T17.js | 4 +- .../String/prototype/replace/S15.5.4.11_A1_T2.js | 8 +- .../String/prototype/replace/S15.5.4.11_A1_T4.js | 12 ++- .../String/prototype/replace/S15.5.4.11_A1_T5.js | 8 +- .../String/prototype/replace/S15.5.4.11_A1_T6.js | 4 +- .../String/prototype/replace/S15.5.4.11_A1_T7.js | 4 +- .../String/prototype/replace/S15.5.4.11_A1_T8.js | 8 +- .../String/prototype/replace/S15.5.4.11_A1_T9.js | 12 ++- .../String/prototype/replace/S15.5.4.11_A2_T1.js | 4 +- .../String/prototype/replace/S15.5.4.11_A2_T10.js | 4 +- .../String/prototype/replace/S15.5.4.11_A2_T2.js | 4 +- .../String/prototype/replace/S15.5.4.11_A2_T3.js | 4 +- .../String/prototype/replace/S15.5.4.11_A2_T4.js | 4 +- .../String/prototype/replace/S15.5.4.11_A2_T5.js | 4 +- .../String/prototype/replace/S15.5.4.11_A2_T6.js | 4 +- .../String/prototype/replace/S15.5.4.11_A2_T7.js | 4 +- .../String/prototype/replace/S15.5.4.11_A2_T8.js | 4 +- .../String/prototype/replace/S15.5.4.11_A2_T9.js | 4 +- .../String/prototype/replace/S15.5.4.11_A3_T1.js | 4 +- .../String/prototype/replace/S15.5.4.11_A3_T2.js | 4 +- .../String/prototype/replace/S15.5.4.11_A3_T3.js | 4 +- .../String/prototype/replace/S15.5.4.11_A4_T1.js | 8 +- .../String/prototype/replace/S15.5.4.11_A4_T2.js | 8 +- .../String/prototype/replace/S15.5.4.11_A4_T3.js | 8 +- .../String/prototype/replace/S15.5.4.11_A4_T4.js | 8 +- .../String/prototype/replace/S15.5.4.11_A5_T1.js | 4 +- .../String/prototype/replace/S15.5.4.11_A6.js | 2 +- .../String/prototype/replace/S15.5.4.11_A7.js | 2 +- .../String/prototype/replace/S15.5.4.11_A8.js | 10 +- .../String/prototype/replace/S15.5.4.11_A9.js | 4 +- .../String/prototype/search/S15.5.4.12_A10.js | 8 +- .../String/prototype/search/S15.5.4.12_A11.js | 4 +- .../String/prototype/search/S15.5.4.12_A1_T1.js | 2 +- .../String/prototype/search/S15.5.4.12_A1_T10.js | 12 ++- .../String/prototype/search/S15.5.4.12_A1_T11.js | 22 ++-- .../String/prototype/search/S15.5.4.12_A1_T12.js | 25 +++-- .../String/prototype/search/S15.5.4.12_A1_T13.js | 13 ++- .../String/prototype/search/S15.5.4.12_A1_T14.js | 2 +- .../String/prototype/search/S15.5.4.12_A1_T2.js | 8 +- .../String/prototype/search/S15.5.4.12_A1_T4.js | 4 +- .../String/prototype/search/S15.5.4.12_A1_T5.js | 8 +- .../String/prototype/search/S15.5.4.12_A1_T6.js | 2 +- .../String/prototype/search/S15.5.4.12_A1_T7.js | 2 +- .../String/prototype/search/S15.5.4.12_A1_T8.js | 6 +- .../String/prototype/search/S15.5.4.12_A1_T9.js | 8 +- .../String/prototype/search/S15.5.4.12_A2_T1.js | 4 +- .../String/prototype/search/S15.5.4.12_A2_T2.js | 4 +- .../String/prototype/search/S15.5.4.12_A2_T3.js | 4 +- .../String/prototype/search/S15.5.4.12_A2_T4.js | 4 +- .../String/prototype/search/S15.5.4.12_A2_T5.js | 4 +- .../String/prototype/search/S15.5.4.12_A2_T6.js | 4 +- .../String/prototype/search/S15.5.4.12_A2_T7.js | 4 +- .../String/prototype/search/S15.5.4.12_A3_T1.js | 4 +- .../String/prototype/search/S15.5.4.12_A3_T2.js | 4 +- .../String/prototype/search/S15.5.4.12_A6.js | 2 +- .../String/prototype/search/S15.5.4.12_A7.js | 2 +- .../String/prototype/search/S15.5.4.12_A8.js | 10 +- .../String/prototype/search/S15.5.4.12_A9.js | 4 +- .../String/prototype/slice/S15.5.4.13_A10.js | 8 +- .../String/prototype/slice/S15.5.4.13_A11.js | 4 +- .../String/prototype/slice/S15.5.4.13_A1_T1.js | 2 +- .../String/prototype/slice/S15.5.4.13_A1_T10.js | 16 ++- .../String/prototype/slice/S15.5.4.13_A1_T11.js | 28 +++-- .../String/prototype/slice/S15.5.4.13_A1_T12.js | 31 ++++-- .../String/prototype/slice/S15.5.4.13_A1_T13.js | 25 +++-- .../String/prototype/slice/S15.5.4.13_A1_T14.js | 4 +- .../String/prototype/slice/S15.5.4.13_A1_T15.js | 4 +- .../String/prototype/slice/S15.5.4.13_A1_T2.js | 8 +- .../String/prototype/slice/S15.5.4.13_A1_T4.js | 8 +- .../String/prototype/slice/S15.5.4.13_A1_T5.js | 16 +-- .../String/prototype/slice/S15.5.4.13_A1_T6.js | 4 +- .../String/prototype/slice/S15.5.4.13_A1_T7.js | 4 +- .../String/prototype/slice/S15.5.4.13_A1_T8.js | 8 +- .../String/prototype/slice/S15.5.4.13_A1_T9.js | 8 +- .../String/prototype/slice/S15.5.4.13_A2_T1.js | 2 +- .../String/prototype/slice/S15.5.4.13_A2_T2.js | 2 +- .../String/prototype/slice/S15.5.4.13_A2_T3.js | 4 +- .../String/prototype/slice/S15.5.4.13_A2_T4.js | 2 +- .../String/prototype/slice/S15.5.4.13_A2_T5.js | 2 +- .../String/prototype/slice/S15.5.4.13_A2_T6.js | 4 +- .../String/prototype/slice/S15.5.4.13_A2_T7.js | 2 +- .../String/prototype/slice/S15.5.4.13_A2_T8.js | 4 +- .../String/prototype/slice/S15.5.4.13_A2_T9.js | 2 +- .../String/prototype/slice/S15.5.4.13_A3_T1.js | 4 +- .../String/prototype/slice/S15.5.4.13_A3_T2.js | 4 +- .../String/prototype/slice/S15.5.4.13_A3_T3.js | 10 +- .../String/prototype/slice/S15.5.4.13_A3_T4.js | 16 +-- .../String/prototype/slice/S15.5.4.13_A6.js | 2 +- .../String/prototype/slice/S15.5.4.13_A8.js | 10 +- .../String/prototype/slice/S15.5.4.13_A9.js | 4 +- .../String/prototype/split/S15.5.4.14_A10.js | 8 +- .../String/prototype/split/S15.5.4.14_A11.js | 4 +- .../String/prototype/split/S15.5.4.14_A1_T1.js | 6 +- .../String/prototype/split/S15.5.4.14_A1_T10.js | 20 ++-- .../String/prototype/split/S15.5.4.14_A1_T11.js | 28 +++-- .../String/prototype/split/S15.5.4.14_A1_T12.js | 31 ++++-- .../String/prototype/split/S15.5.4.14_A1_T13.js | 25 +++-- .../String/prototype/split/S15.5.4.14_A1_T14.js | 30 ++++-- .../String/prototype/split/S15.5.4.14_A1_T15.js | 31 ++++-- .../String/prototype/split/S15.5.4.14_A1_T16.js | 10 +- .../String/prototype/split/S15.5.4.14_A1_T17.js | 16 +-- .../String/prototype/split/S15.5.4.14_A1_T18.js | 12 +-- .../String/prototype/split/S15.5.4.14_A1_T2.js | 10 +- .../String/prototype/split/S15.5.4.14_A1_T3.js | 83 ++++++++------- .../String/prototype/split/S15.5.4.14_A1_T4.js | 8 +- .../String/prototype/split/S15.5.4.14_A1_T5.js | 14 +-- .../String/prototype/split/S15.5.4.14_A1_T6.js | 8 +- .../String/prototype/split/S15.5.4.14_A1_T7.js | 8 +- .../String/prototype/split/S15.5.4.14_A1_T8.js | 12 ++- .../String/prototype/split/S15.5.4.14_A1_T9.js | 14 +-- .../String/prototype/split/S15.5.4.14_A2_T1.js | 14 +-- .../String/prototype/split/S15.5.4.14_A2_T10.js | 12 +-- .../String/prototype/split/S15.5.4.14_A2_T11.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T12.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T13.js | 8 +- .../String/prototype/split/S15.5.4.14_A2_T14.js | 8 +- .../String/prototype/split/S15.5.4.14_A2_T15.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T16.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T17.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T18.js | 8 +- .../String/prototype/split/S15.5.4.14_A2_T19.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T2.js | 14 +-- .../String/prototype/split/S15.5.4.14_A2_T20.js | 12 +-- .../String/prototype/split/S15.5.4.14_A2_T21.js | 8 +- .../String/prototype/split/S15.5.4.14_A2_T22.js | 10 +- .../String/prototype/split/S15.5.4.14_A2_T23.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T24.js | 8 +- .../String/prototype/split/S15.5.4.14_A2_T25.js | 8 +- .../String/prototype/split/S15.5.4.14_A2_T26.js | 8 +- .../String/prototype/split/S15.5.4.14_A2_T27.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T28.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T29.js | 12 +-- .../String/prototype/split/S15.5.4.14_A2_T3.js | 10 +- .../String/prototype/split/S15.5.4.14_A2_T30.js | 8 +- .../String/prototype/split/S15.5.4.14_A2_T31.js | 14 +-- .../String/prototype/split/S15.5.4.14_A2_T32.js | 8 +- .../String/prototype/split/S15.5.4.14_A2_T33.js | 14 +-- .../String/prototype/split/S15.5.4.14_A2_T34.js | 14 +-- .../String/prototype/split/S15.5.4.14_A2_T35.js | 14 +-- .../String/prototype/split/S15.5.4.14_A2_T36.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T37.js | 8 +- .../String/prototype/split/S15.5.4.14_A2_T38.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T39.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T4.js | 12 +-- .../String/prototype/split/S15.5.4.14_A2_T40.js | 6 +- .../String/prototype/split/S15.5.4.14_A2_T41.js | 12 +-- .../String/prototype/split/S15.5.4.14_A2_T42.js | 12 +-- .../String/prototype/split/S15.5.4.14_A2_T43.js | 12 +-- .../String/prototype/split/S15.5.4.14_A2_T5.js | 10 +- .../String/prototype/split/S15.5.4.14_A2_T6.js | 12 +-- .../String/prototype/split/S15.5.4.14_A2_T7.js | 12 +-- .../String/prototype/split/S15.5.4.14_A2_T8.js | 12 +-- .../String/prototype/split/S15.5.4.14_A2_T9.js | 12 +-- .../String/prototype/split/S15.5.4.14_A3_T1.js | 6 +- .../String/prototype/split/S15.5.4.14_A3_T10.js | 6 +- .../String/prototype/split/S15.5.4.14_A3_T11.js | 6 +- .../String/prototype/split/S15.5.4.14_A3_T2.js | 6 +- .../String/prototype/split/S15.5.4.14_A3_T3.js | 14 ++- .../String/prototype/split/S15.5.4.14_A3_T4.js | 6 +- .../String/prototype/split/S15.5.4.14_A3_T5.js | 6 +- .../String/prototype/split/S15.5.4.14_A3_T6.js | 6 +- .../String/prototype/split/S15.5.4.14_A3_T7.js | 6 +- .../String/prototype/split/S15.5.4.14_A3_T8.js | 8 +- .../String/prototype/split/S15.5.4.14_A3_T9.js | 6 +- .../String/prototype/split/S15.5.4.14_A4_T1.js | 10 +- .../String/prototype/split/S15.5.4.14_A4_T10.js | 10 +- .../String/prototype/split/S15.5.4.14_A4_T11.js | 6 +- .../String/prototype/split/S15.5.4.14_A4_T12.js | 6 +- .../String/prototype/split/S15.5.4.14_A4_T13.js | 8 +- .../String/prototype/split/S15.5.4.14_A4_T14.js | 8 +- .../String/prototype/split/S15.5.4.14_A4_T15.js | 10 +- .../String/prototype/split/S15.5.4.14_A4_T16.js | 8 +- .../String/prototype/split/S15.5.4.14_A4_T17.js | 8 +- .../String/prototype/split/S15.5.4.14_A4_T18.js | 8 +- .../String/prototype/split/S15.5.4.14_A4_T19.js | 10 +- .../String/prototype/split/S15.5.4.14_A4_T2.js | 6 +- .../String/prototype/split/S15.5.4.14_A4_T20.js | 12 +-- .../String/prototype/split/S15.5.4.14_A4_T21.js | 6 +- .../String/prototype/split/S15.5.4.14_A4_T22.js | 10 +- .../String/prototype/split/S15.5.4.14_A4_T23.js | 10 +- .../String/prototype/split/S15.5.4.14_A4_T24.js | 10 +- .../String/prototype/split/S15.5.4.14_A4_T25.js | 10 +- .../String/prototype/split/S15.5.4.14_A4_T3.js | 8 +- .../String/prototype/split/S15.5.4.14_A4_T4.js | 10 +- .../String/prototype/split/S15.5.4.14_A4_T5.js | 12 +-- .../String/prototype/split/S15.5.4.14_A4_T6.js | 12 +-- .../String/prototype/split/S15.5.4.14_A4_T7.js | 10 +- .../String/prototype/split/S15.5.4.14_A4_T8.js | 4 +- .../String/prototype/split/S15.5.4.14_A4_T9.js | 10 +- .../String/prototype/split/S15.5.4.14_A6.js | 2 +- .../String/prototype/split/S15.5.4.14_A7.js | 2 +- .../String/prototype/split/S15.5.4.14_A8.js | 10 +- .../String/prototype/split/S15.5.4.14_A9.js | 4 +- .../return-true-if-searchstring-is-empty.js | 2 +- .../String/prototype/substring/S15.5.4.15_A10.js | 8 +- .../String/prototype/substring/S15.5.4.15_A11.js | 4 +- .../String/prototype/substring/S15.5.4.15_A1_T1.js | 2 +- .../prototype/substring/S15.5.4.15_A1_T10.js | 16 ++- .../prototype/substring/S15.5.4.15_A1_T11.js | 28 +++-- .../prototype/substring/S15.5.4.15_A1_T12.js | 31 ++++-- .../prototype/substring/S15.5.4.15_A1_T13.js | 25 +++-- .../prototype/substring/S15.5.4.15_A1_T14.js | 4 +- .../prototype/substring/S15.5.4.15_A1_T15.js | 4 +- .../String/prototype/substring/S15.5.4.15_A1_T2.js | 8 +- .../String/prototype/substring/S15.5.4.15_A1_T4.js | 8 +- .../String/prototype/substring/S15.5.4.15_A1_T5.js | 10 +- .../String/prototype/substring/S15.5.4.15_A1_T6.js | 4 +- .../String/prototype/substring/S15.5.4.15_A1_T7.js | 4 +- .../String/prototype/substring/S15.5.4.15_A1_T8.js | 8 +- .../String/prototype/substring/S15.5.4.15_A1_T9.js | 8 +- .../String/prototype/substring/S15.5.4.15_A2_T1.js | 2 +- .../prototype/substring/S15.5.4.15_A2_T10.js | 4 +- .../String/prototype/substring/S15.5.4.15_A2_T2.js | 2 +- .../String/prototype/substring/S15.5.4.15_A2_T3.js | 4 +- .../String/prototype/substring/S15.5.4.15_A2_T4.js | 2 +- .../String/prototype/substring/S15.5.4.15_A2_T5.js | 2 +- .../String/prototype/substring/S15.5.4.15_A2_T6.js | 4 +- .../String/prototype/substring/S15.5.4.15_A2_T7.js | 2 +- .../String/prototype/substring/S15.5.4.15_A2_T8.js | 4 +- .../String/prototype/substring/S15.5.4.15_A2_T9.js | 2 +- .../String/prototype/substring/S15.5.4.15_A3_T1.js | 6 +- .../prototype/substring/S15.5.4.15_A3_T10.js | 12 ++- .../prototype/substring/S15.5.4.15_A3_T11.js | 4 +- .../String/prototype/substring/S15.5.4.15_A3_T2.js | 6 +- .../String/prototype/substring/S15.5.4.15_A3_T3.js | 4 +- .../String/prototype/substring/S15.5.4.15_A3_T4.js | 4 +- .../String/prototype/substring/S15.5.4.15_A3_T5.js | 6 +- .../String/prototype/substring/S15.5.4.15_A3_T6.js | 4 +- .../String/prototype/substring/S15.5.4.15_A3_T7.js | 12 ++- .../String/prototype/substring/S15.5.4.15_A3_T8.js | 4 +- .../String/prototype/substring/S15.5.4.15_A3_T9.js | 4 +- .../String/prototype/substring/S15.5.4.15_A6.js | 2 +- .../String/prototype/substring/S15.5.4.15_A7.js | 2 +- .../String/prototype/substring/S15.5.4.15_A8.js | 10 +- .../String/prototype/substring/S15.5.4.15_A9.js | 4 +- .../prototype/toLocaleLowerCase/S15.5.4.17_A10.js | 8 +- .../prototype/toLocaleLowerCase/S15.5.4.17_A11.js | 4 +- .../toLocaleLowerCase/S15.5.4.17_A1_T1.js | 2 +- .../toLocaleLowerCase/S15.5.4.17_A1_T10.js | 10 +- .../toLocaleLowerCase/S15.5.4.17_A1_T11.js | 12 ++- .../toLocaleLowerCase/S15.5.4.17_A1_T12.js | 15 ++- .../toLocaleLowerCase/S15.5.4.17_A1_T13.js | 15 ++- .../toLocaleLowerCase/S15.5.4.17_A1_T14.js | 2 +- .../toLocaleLowerCase/S15.5.4.17_A1_T2.js | 2 +- .../toLocaleLowerCase/S15.5.4.17_A1_T3.js | 2 +- .../toLocaleLowerCase/S15.5.4.17_A1_T4.js | 12 +-- .../toLocaleLowerCase/S15.5.4.17_A1_T5.js | 8 +- .../toLocaleLowerCase/S15.5.4.17_A1_T6.js | 2 +- .../toLocaleLowerCase/S15.5.4.17_A1_T7.js | 4 +- .../toLocaleLowerCase/S15.5.4.17_A1_T8.js | 4 +- .../toLocaleLowerCase/S15.5.4.17_A1_T9.js | 18 ++-- .../toLocaleLowerCase/S15.5.4.17_A2_T1.js | 4 +- .../prototype/toLocaleLowerCase/S15.5.4.17_A6.js | 2 +- .../prototype/toLocaleLowerCase/S15.5.4.17_A7.js | 2 +- .../prototype/toLocaleLowerCase/S15.5.4.17_A8.js | 10 +- .../prototype/toLocaleLowerCase/S15.5.4.17_A9.js | 4 +- .../prototype/toLocaleUpperCase/S15.5.4.19_A10.js | 8 +- .../prototype/toLocaleUpperCase/S15.5.4.19_A11.js | 4 +- .../toLocaleUpperCase/S15.5.4.19_A1_T1.js | 2 +- .../toLocaleUpperCase/S15.5.4.19_A1_T10.js | 10 +- .../toLocaleUpperCase/S15.5.4.19_A1_T11.js | 10 +- .../toLocaleUpperCase/S15.5.4.19_A1_T12.js | 15 ++- .../toLocaleUpperCase/S15.5.4.19_A1_T13.js | 15 ++- .../toLocaleUpperCase/S15.5.4.19_A1_T14.js | 2 +- .../toLocaleUpperCase/S15.5.4.19_A1_T2.js | 2 +- .../toLocaleUpperCase/S15.5.4.19_A1_T3.js | 2 +- .../toLocaleUpperCase/S15.5.4.19_A1_T4.js | 12 +-- .../toLocaleUpperCase/S15.5.4.19_A1_T5.js | 8 +- .../toLocaleUpperCase/S15.5.4.19_A1_T6.js | 2 +- .../toLocaleUpperCase/S15.5.4.19_A1_T7.js | 4 +- .../toLocaleUpperCase/S15.5.4.19_A1_T8.js | 4 +- .../toLocaleUpperCase/S15.5.4.19_A1_T9.js | 18 ++-- .../toLocaleUpperCase/S15.5.4.19_A2_T1.js | 6 +- .../prototype/toLocaleUpperCase/S15.5.4.19_A6.js | 2 +- .../prototype/toLocaleUpperCase/S15.5.4.19_A7.js | 2 +- .../prototype/toLocaleUpperCase/S15.5.4.19_A8.js | 10 +- .../prototype/toLocaleUpperCase/S15.5.4.19_A9.js | 4 +- .../String/prototype/toLowerCase/S15.5.4.16_A10.js | 8 +- .../String/prototype/toLowerCase/S15.5.4.16_A11.js | 4 +- .../prototype/toLowerCase/S15.5.4.16_A1_T1.js | 2 +- .../prototype/toLowerCase/S15.5.4.16_A1_T10.js | 10 +- .../prototype/toLowerCase/S15.5.4.16_A1_T11.js | 12 ++- .../prototype/toLowerCase/S15.5.4.16_A1_T12.js | 15 ++- .../prototype/toLowerCase/S15.5.4.16_A1_T13.js | 15 ++- .../prototype/toLowerCase/S15.5.4.16_A1_T14.js | 2 +- .../prototype/toLowerCase/S15.5.4.16_A1_T2.js | 2 +- .../prototype/toLowerCase/S15.5.4.16_A1_T3.js | 2 +- .../prototype/toLowerCase/S15.5.4.16_A1_T4.js | 12 +-- .../prototype/toLowerCase/S15.5.4.16_A1_T5.js | 8 +- .../prototype/toLowerCase/S15.5.4.16_A1_T6.js | 2 +- .../prototype/toLowerCase/S15.5.4.16_A1_T7.js | 4 +- .../prototype/toLowerCase/S15.5.4.16_A1_T8.js | 4 +- .../prototype/toLowerCase/S15.5.4.16_A1_T9.js | 18 ++-- .../prototype/toLowerCase/S15.5.4.16_A2_T1.js | 6 +- .../String/prototype/toLowerCase/S15.5.4.16_A6.js | 2 +- .../String/prototype/toLowerCase/S15.5.4.16_A7.js | 2 +- .../String/prototype/toLowerCase/S15.5.4.16_A8.js | 10 +- .../String/prototype/toLowerCase/S15.5.4.16_A9.js | 4 +- .../String/prototype/toString/S15.5.4.2_A1_T1.js | 4 +- .../String/prototype/toString/S15.5.4.2_A1_T2.js | 4 +- .../String/prototype/toString/S15.5.4.2_A1_T3.js | 2 +- .../String/prototype/toString/S15.5.4.2_A1_T4.js | 4 +- .../String/prototype/toString/S15.5.4.2_A2_T1.js | 4 +- .../String/prototype/toString/S15.5.4.2_A2_T2.js | 8 +- .../String/prototype/toString/S15.5.4.2_A3_T1.js | 8 +- .../String/prototype/toString/S15.5.4.2_A4_T1.js | 12 +-- .../String/prototype/toUpperCase/S15.5.4.18_A10.js | 8 +- .../String/prototype/toUpperCase/S15.5.4.18_A11.js | 4 +- .../prototype/toUpperCase/S15.5.4.18_A1_T1.js | 2 +- .../prototype/toUpperCase/S15.5.4.18_A1_T10.js | 10 +- .../prototype/toUpperCase/S15.5.4.18_A1_T11.js | 12 ++- .../prototype/toUpperCase/S15.5.4.18_A1_T12.js | 15 ++- .../prototype/toUpperCase/S15.5.4.18_A1_T13.js | 15 ++- .../prototype/toUpperCase/S15.5.4.18_A1_T14.js | 2 +- .../prototype/toUpperCase/S15.5.4.18_A1_T2.js | 2 +- .../prototype/toUpperCase/S15.5.4.18_A1_T3.js | 2 +- .../prototype/toUpperCase/S15.5.4.18_A1_T4.js | 12 +-- .../prototype/toUpperCase/S15.5.4.18_A1_T5.js | 8 +- .../prototype/toUpperCase/S15.5.4.18_A1_T6.js | 2 +- .../prototype/toUpperCase/S15.5.4.18_A1_T7.js | 4 +- .../prototype/toUpperCase/S15.5.4.18_A1_T8.js | 4 +- .../prototype/toUpperCase/S15.5.4.18_A1_T9.js | 18 ++-- .../prototype/toUpperCase/S15.5.4.18_A2_T1.js | 6 +- .../String/prototype/toUpperCase/S15.5.4.18_A6.js | 2 +- .../String/prototype/toUpperCase/S15.5.4.18_A7.js | 2 +- .../String/prototype/toUpperCase/S15.5.4.18_A8.js | 10 +- .../String/prototype/toUpperCase/S15.5.4.18_A9.js | 4 +- .../String/prototype/trim/15.5.4.20-0-1.js | 2 +- .../String/prototype/trim/15.5.4.20-1-1.js | 2 +- .../String/prototype/trim/15.5.4.20-1-2.js | 2 +- .../String/prototype/trim/15.5.4.20-1-8.js | 2 +- .../String/prototype/trim/15.5.4.20-1-9.js | 2 +- .../String/prototype/trim/15.5.4.20-2-38.js | 10 +- .../String/prototype/trim/15.5.4.20-2-39.js | 10 +- .../String/prototype/trim/15.5.4.20-2-40.js | 24 ++--- .../String/prototype/trim/15.5.4.20-2-41.js | 24 ++--- .../String/prototype/trim/15.5.4.20-2-42.js | 26 ++--- .../String/prototype/trim/15.5.4.20-2-43.js | 30 +++--- .../String/prototype/trim/15.5.4.20-2-44.js | 2 +- .../String/prototype/trim/15.5.4.20-2-45.js | 4 +- .../String/prototype/trim/15.5.4.20-2-46.js | 4 +- .../String/prototype/trim/15.5.4.20-2-49.js | 2 +- .../String/prototype/trim/15.5.4.20-2-50.js | 2 +- .../String/prototype/trim/15.5.4.20-2-51.js | 4 +- .../String/prototype/trim/15.5.4.20-3-1.js | 2 +- .../String/prototype/trim/15.5.4.20-3-5.js | 2 +- .../String/prototype/trim/15.5.4.20-4-1.js | 2 +- .../String/prototype/trim/15.5.4.20-4-59.js | 2 +- .../String/prototype/trimEnd/this-value-number.js | 1 - ...value-object-cannot-convert-to-primitive-err.js | 4 +- .../this-value-object-toprimitive-meth-priority.js | 12 ++- .../this-value-object-tostring-meth-priority.js | 10 +- .../this-value-object-valueof-meth-priority.js | 4 +- .../trimEnd/this-value-symbol-typeerror.js | 4 +- .../prototype/trimStart/this-value-number.js | 1 - ...value-object-cannot-convert-to-primitive-err.js | 4 +- .../this-value-object-toprimitive-meth-priority.js | 12 ++- .../this-value-object-tostring-meth-priority.js | 10 +- .../this-value-object-valueof-meth-priority.js | 4 +- .../trimStart/this-value-symbol-typeerror.js | 4 +- .../String/prototype/valueOf/S15.5.4.3_A1_T1.js | 4 +- .../String/prototype/valueOf/S15.5.4.3_A1_T2.js | 4 +- .../String/prototype/valueOf/S15.5.4.3_A1_T3.js | 2 +- .../String/prototype/valueOf/S15.5.4.3_A1_T4.js | 4 +- .../String/prototype/valueOf/S15.5.4.3_A2_T1.js | 4 +- .../String/prototype/valueOf/S15.5.4.3_A2_T2.js | 8 +- 641 files changed, 3175 insertions(+), 2338 deletions(-) diff --git a/test/built-ins/String/15.5.5.5.2-1-1.js b/test/built-ins/String/15.5.5.5.2-1-1.js index acbb0c897..98c0f6eef 100644 --- a/test/built-ins/String/15.5.5.5.2-1-1.js +++ b/test/built-ins/String/15.5.5.5.2-1-1.js @@ -11,8 +11,8 @@ description: > properties ---*/ - var s = new String("hello world"); - s.foo = 1; - +var s = new String("hello world"); +s.foo = 1; + assert.sameValue(s["foo"], 1, 's["foo"]'); diff --git a/test/built-ins/String/15.5.5.5.2-1-2.js b/test/built-ins/String/15.5.5.5.2-1-2.js index 851636111..9efad2dcd 100644 --- a/test/built-ins/String/15.5.5.5.2-1-2.js +++ b/test/built-ins/String/15.5.5.5.2-1-2.js @@ -9,7 +9,7 @@ es5id: 15.5.5.5.2-1-2 description: String value supports bracket notation to lookup data properties ---*/ - var s = String("hello world"); - +var s = String("hello world"); + assert.sameValue(s["foo"], undefined, 's["foo"]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-1.js b/test/built-ins/String/15.5.5.5.2-3-1.js index 9b9f81b51..a493c5990 100644 --- a/test/built-ins/String/15.5.5.5.2-3-1.js +++ b/test/built-ins/String/15.5.5.5.2-3-1.js @@ -11,7 +11,7 @@ description: > properties ---*/ - var s = new String("hello world"); - +var s = new String("hello world"); + assert.sameValue(s["foo"], undefined, 's["foo"]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-2.js b/test/built-ins/String/15.5.5.5.2-3-2.js index 5f67b04a2..dc6f98679 100644 --- a/test/built-ins/String/15.5.5.5.2-3-2.js +++ b/test/built-ins/String/15.5.5.5.2-3-2.js @@ -9,7 +9,7 @@ es5id: 15.5.5.5.2-3-2 description: String value indexing returns undefined for missing data properties ---*/ - var s = String("hello world"); - +var s = String("hello world"); + assert.sameValue(s["foo"], undefined, 's["foo"]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-3.js b/test/built-ins/String/15.5.5.5.2-3-3.js index 555772630..25546a0c4 100644 --- a/test/built-ins/String/15.5.5.5.2-3-3.js +++ b/test/built-ins/String/15.5.5.5.2-3-3.js @@ -11,6 +11,6 @@ description: > (NaN) is not an array index ---*/ - var s = new String("hello world"); +var s = new String("hello world"); assert.sameValue(s[NaN], undefined, 's[NaN]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-4.js b/test/built-ins/String/15.5.5.5.2-3-4.js index e02a8931c..8ffbdbb7b 100644 --- a/test/built-ins/String/15.5.5.5.2-3-4.js +++ b/test/built-ins/String/15.5.5.5.2-3-4.js @@ -11,6 +11,6 @@ description: > (Infinity) is not an array index ---*/ - var s = new String("hello world"); +var s = new String("hello world"); assert.sameValue(s[Infinity], undefined, 's[Infinity]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-5.js b/test/built-ins/String/15.5.5.5.2-3-5.js index 04818478c..fc2e535d7 100644 --- a/test/built-ins/String/15.5.5.5.2-3-5.js +++ b/test/built-ins/String/15.5.5.5.2-3-5.js @@ -11,6 +11,6 @@ description: > 2^32-1) is not an array index ---*/ - var s = new String("hello world"); +var s = new String("hello world"); -assert.sameValue(s[Math.pow(2, 32)-1], undefined, 's[Math.pow(2, 32)-1]'); +assert.sameValue(s[Math.pow(2, 32) - 1], undefined, 's[Math.pow(2, 32)-1]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-6.js b/test/built-ins/String/15.5.5.5.2-3-6.js index 7f0787391..3054072d8 100644 --- a/test/built-ins/String/15.5.5.5.2-3-6.js +++ b/test/built-ins/String/15.5.5.5.2-3-6.js @@ -11,6 +11,6 @@ description: > is not an array index ---*/ - var s = String("hello world"); +var s = String("hello world"); assert.sameValue(s[NaN], undefined, 's[NaN]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-7.js b/test/built-ins/String/15.5.5.5.2-3-7.js index 6f974d61f..1b60af205 100644 --- a/test/built-ins/String/15.5.5.5.2-3-7.js +++ b/test/built-ins/String/15.5.5.5.2-3-7.js @@ -11,6 +11,6 @@ description: > (Infinity) is not an array index ---*/ - var s = String("hello world"); +var s = String("hello world"); assert.sameValue(s[Infinity], undefined, 's[Infinity]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-8.js b/test/built-ins/String/15.5.5.5.2-3-8.js index 9243d4049..92d91bf23 100644 --- a/test/built-ins/String/15.5.5.5.2-3-8.js +++ b/test/built-ins/String/15.5.5.5.2-3-8.js @@ -11,6 +11,6 @@ description: > 2^32-1) is not an array index ---*/ - var s = String("hello world"); +var s = String("hello world"); -assert.sameValue(s[Math.pow(2, 32)-1], undefined, 's[Math.pow(2, 32)-1]'); +assert.sameValue(s[Math.pow(2, 32) - 1], undefined, 's[Math.pow(2, 32)-1]'); diff --git a/test/built-ins/String/15.5.5.5.2-7-1.js b/test/built-ins/String/15.5.5.5.2-7-1.js index 6c19ec9e6..d9ecc4a7d 100644 --- a/test/built-ins/String/15.5.5.5.2-7-1.js +++ b/test/built-ins/String/15.5.5.5.2-7-1.js @@ -11,6 +11,6 @@ description: > less than 0 ---*/ - var s = new String("hello world"); +var s = new String("hello world"); assert.sameValue(s[-1], undefined, 's[-1]'); diff --git a/test/built-ins/String/15.5.5.5.2-7-2.js b/test/built-ins/String/15.5.5.5.2-7-2.js index c1f7e04c0..3bbe6005f 100644 --- a/test/built-ins/String/15.5.5.5.2-7-2.js +++ b/test/built-ins/String/15.5.5.5.2-7-2.js @@ -11,6 +11,6 @@ description: > less than 0 ---*/ - var s = String("hello world"); +var s = String("hello world"); assert.sameValue(s[-1], undefined, 's[-1]'); diff --git a/test/built-ins/String/15.5.5.5.2-7-3.js b/test/built-ins/String/15.5.5.5.2-7-3.js index 8d3cea0d6..f23c8f9fe 100644 --- a/test/built-ins/String/15.5.5.5.2-7-3.js +++ b/test/built-ins/String/15.5.5.5.2-7-3.js @@ -11,6 +11,6 @@ description: > greater than the string length ---*/ - var s = new String("hello world"); +var s = new String("hello world"); assert.sameValue(s[11], undefined, 's[11]'); diff --git a/test/built-ins/String/15.5.5.5.2-7-4.js b/test/built-ins/String/15.5.5.5.2-7-4.js index be718e79a..8cf1869b1 100644 --- a/test/built-ins/String/15.5.5.5.2-7-4.js +++ b/test/built-ins/String/15.5.5.5.2-7-4.js @@ -11,6 +11,6 @@ description: > greater than the string length ---*/ - var s = String("hello world"); +var s = String("hello world"); assert.sameValue(s[11], undefined, 's[11]'); diff --git a/test/built-ins/String/S15.5.1.1_A1_T1.js b/test/built-ins/String/S15.5.1.1_A1_T1.js index 65ae34d4c..85c920644 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T1.js +++ b/test/built-ins/String/S15.5.1.1_A1_T1.js @@ -9,12 +9,12 @@ es5id: 15.5.1.1_A1_T1 description: Call String(function(){}()) ---*/ -var __str = String(function(){}()); +var __str = String(function() {}()); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(function(){}()); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(function(){}()); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "undefined") { - $ERROR('#2: __str = String(function(){}()); __str === "undefined". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(function(){}()); __str === "undefined". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T10.js b/test/built-ins/String/S15.5.1.1_A1_T10.js index 794b4f033..55598c4bc 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T10.js +++ b/test/built-ins/String/S15.5.1.1_A1_T10.js @@ -14,7 +14,7 @@ var __str = String(1); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(1); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(1); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "1") { - $ERROR('#2: __str = String(1); __str === "1". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(1); __str === "1". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +32,7 @@ __str = String(-1); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#3: __str = String(-1); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(-1); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "-1") { - $ERROR('#4: __str = String(-1); __str === "-1". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(-1); __str === "-1". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T11.js b/test/built-ins/String/S15.5.1.1_A1_T11.js index 9543e370e..6ce2f8542 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T11.js +++ b/test/built-ins/String/S15.5.1.1_A1_T11.js @@ -9,12 +9,12 @@ es5id: 15.5.1.1_A1_T11 description: Call String(1/0) and String(-1/0), and call with +/-Infinity ---*/ -var __str = String(1/0); +var __str = String(1 / 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(1/0); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(1/0); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,17 +22,17 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "Infinity") { - $ERROR('#2: __str = String(1/0); __str === "Infinity". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(1/0); __str === "Infinity". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// -__str = String(-1/0); +__str = String(-1 / 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "string") { - $ERROR('#3: __str = String(-1/0); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(-1/0); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str !== "-Infinity") { - $ERROR('#4: __str = String(-1/0); __str === "-Infinity". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(-1/0); __str === "-Infinity". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ __str = String(Infinity); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "string") { - $ERROR('#5: __str = String(Infinity); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str = String(Infinity); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__str !== "Infinity") { - $ERROR('#6: __str = String(Infinity); __str === "Infinity". Actual: __str ==='+__str ); + $ERROR('#6: __str = String(Infinity); __str === "Infinity". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -68,7 +68,7 @@ __str = String(-Infinity); ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (typeof __str !== "string") { - $ERROR('#7: __str = String(-Infinity); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#7: __str = String(-Infinity); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -76,7 +76,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#8 if (__str !== "-Infinity") { - $ERROR('#8: __str = String(-Infinity); __str === "-Infinity". Actual: __str ==='+__str ); + $ERROR('#8: __str = String(-Infinity); __str === "-Infinity". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -86,7 +86,7 @@ __str = String(Number.POSITIVE_INFINITY); ////////////////////////////////////////////////////////////////////////////// //CHECK#9 if (typeof __str !== "string") { - $ERROR('#9: __str = String(Number.POSITIVE_INFINITY); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#9: __str = String(Number.POSITIVE_INFINITY); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -94,7 +94,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#10 if (__str !== "Infinity") { - $ERROR('#10: __str = String(Number.POSITIVE_INFINITY); __str === "Infinity". Actual: __str ==='+__str ); + $ERROR('#10: __str = String(Number.POSITIVE_INFINITY); __str === "Infinity". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -104,7 +104,7 @@ __str = String(Number.NEGATIVE_INFINITY); ////////////////////////////////////////////////////////////////////////////// //CHECK#11 if (typeof __str !== "string") { - $ERROR('#11: __str = String(Number.NEGATIVE_INFINITY); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#11: __str = String(Number.NEGATIVE_INFINITY); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -112,7 +112,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#12 if (__str !== "-Infinity") { - $ERROR('#12: __str = String(Number.NEGATIVE_INFINITY); __str === "-Infinity". Actual: __str ==='+__str ); + $ERROR('#12: __str = String(Number.NEGATIVE_INFINITY); __str === "-Infinity". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T12.js b/test/built-ins/String/S15.5.1.1_A1_T12.js index 2a199ca72..dfb9def71 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T12.js +++ b/test/built-ins/String/S15.5.1.1_A1_T12.js @@ -9,12 +9,12 @@ es5id: 15.5.1.1_A1_T12 description: Call String(1/"a"), String("b"* null) and String(Number.NaN) ---*/ -var __str = String(1/"a"); +var __str = String(1 / "a"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(1/"a"); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(1/"a"); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,17 +22,17 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "NaN") { - $ERROR('#2: __str = String(1/"a"); __str === "NaN". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(1/"a"); __str === "NaN". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// -__str = String("b"*null); +__str = String("b" * null); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "string") { - $ERROR('#3: __str = String("b"*null); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String("b"*null); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str !== "NaN") { - $ERROR('#4: __str = String("b"*null); __str === "NaN". Actual: __str ==='+__str ); + $ERROR('#4: __str = String("b"*null); __str === "NaN". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ __str = String(Number.NaN); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "string") { - $ERROR('#5: __str = String(Number.NaN); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str = String(Number.NaN); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__str !== "NaN") { - $ERROR('#6: __str = String(Number.NaN); __str === "NaN". Actual: __str ==='+__str ); + $ERROR('#6: __str = String(Number.NaN); __str === "NaN". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T13.js b/test/built-ins/String/S15.5.1.1_A1_T13.js index 02253bd81..2d92a9509 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T13.js +++ b/test/built-ins/String/S15.5.1.1_A1_T13.js @@ -14,7 +14,7 @@ var __str = String(true); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(true); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(true); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "true") { - $ERROR('#2: __str = String(true); __str === "true". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(true); __str === "true". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +32,7 @@ __str = String(false); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "string") { - $ERROR('#3: __str = String(false); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(false); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str !== "false") { - $ERROR('#4: __str = String(false); __str === "false". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(false); __str === "false". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ __str = String(Boolean(true)); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "string") { - $ERROR('#5: __str = String(Boolean(true)); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str = String(Boolean(true)); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__str !== "true") { - $ERROR('#6: __str = String(Boolean(true)); __str === "true". Actual: __str ==='+__str ); + $ERROR('#6: __str = String(Boolean(true)); __str === "true". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -68,7 +68,7 @@ __str = String(Boolean(false)); ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (typeof __str !== "string") { - $ERROR('#7: __str = String(Boolean(false)); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#7: __str = String(Boolean(false)); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -76,7 +76,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#8 if (__str !== "false") { - $ERROR('#8: __str = String(Boolean(false)); __str === "false". Actual: __str ==='+__str ); + $ERROR('#8: __str = String(Boolean(false)); __str === "false". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T14.js b/test/built-ins/String/S15.5.1.1_A1_T14.js index 415e69900..43d5585df 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T14.js +++ b/test/built-ins/String/S15.5.1.1_A1_T14.js @@ -14,7 +14,7 @@ var __str = String(0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(0); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(0); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "0") { - $ERROR('#2: __str = String(0); __str === "0". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(0); __str === "0". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +32,7 @@ __str = String(-0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#3: __str = String(-0); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(-0); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "0") { - $ERROR('#4: __str = String(-0); __str === "0". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(-0); __str === "0". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T15.js b/test/built-ins/String/S15.5.1.1_A1_T15.js index 80e4b332f..dff5f4d4c 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T15.js +++ b/test/built-ins/String/S15.5.1.1_A1_T15.js @@ -18,7 +18,7 @@ var __str = String(__obj__str); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__str !== __obj__str) { - $ERROR('#1: __obj__str = "caps"; __str = String(__obj__str); __str === __obj__str. Actual: __str ==='+__str ); + $ERROR('#1: __obj__str = "caps"; __str = String(__obj__str); __str === __obj__str. Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T16.js b/test/built-ins/String/S15.5.1.1_A1_T16.js index fa12b41b4..69947b9bc 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T16.js +++ b/test/built-ins/String/S15.5.1.1_A1_T16.js @@ -14,7 +14,7 @@ var __str = String(.12345); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(.12345); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(.12345); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "0.12345") { - $ERROR('#2: __str = String(.12345); __str === "0.12345". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(.12345); __str === "0.12345". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +32,7 @@ __str = String(.012345); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "string") { - $ERROR('#3: __str = String(.012345); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(.012345); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str !== "0.012345") { - $ERROR('#4: __str = String(.012345); __str === "0.012345". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(.012345); __str === "0.012345". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ __str = String(.0012345); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "string") { - $ERROR('#5: __str = String(.0012345); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str = String(.0012345); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__str !== "0.0012345") { - $ERROR('#6: __str = String(.0012345); __str === "0.0012345". Actual: __str ==='+__str ); + $ERROR('#6: __str = String(.0012345); __str === "0.0012345". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -68,7 +68,7 @@ __str = String(.00000012345); ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (typeof __str !== "string") { - $ERROR('#7: __str = String(.00000012345); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#7: __str = String(.00000012345); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -76,7 +76,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#8 if (__str !== "1.2345e-7") { - $ERROR('#8: __str = String(.00000012345); __str === "1.2345e-7". Actual: __str ==='+__str ); + $ERROR('#8: __str = String(.00000012345); __str === "1.2345e-7". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T17.js b/test/built-ins/String/S15.5.1.1_A1_T17.js index 408fb4bf6..85434eb86 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T17.js +++ b/test/built-ins/String/S15.5.1.1_A1_T17.js @@ -16,7 +16,7 @@ var __str = String(1.2345); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(1.2345); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(1.2345); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "1.2345") { - $ERROR('#2: __str = String(1.2345); __str === "1.2345". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(1.2345); __str === "1.2345". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ __str = String(1.234567890); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "string") { - $ERROR('#3: __str = String(1.234567890); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(1.234567890); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str !== "1.23456789") { - $ERROR('#4: __str = String(1.234567890); __str === "1.23456789". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(1.234567890); __str === "1.23456789". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -52,7 +52,7 @@ __str = String(1.234500000000000000000000000); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "string") { - $ERROR('#5: __str = String(1.234500000000000000000000000); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str = String(1.234500000000000000000000000); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -60,7 +60,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__str !== "1.2345") { - $ERROR('#6: __str = String(1.234500000000000000000000000); __str === "1.2345". Actual: __str ==='+__str ); + $ERROR('#6: __str = String(1.234500000000000000000000000); __str === "1.2345". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T18.js b/test/built-ins/String/S15.5.1.1_A1_T18.js index 0ef5d12d1..22a25a26a 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T18.js +++ b/test/built-ins/String/S15.5.1.1_A1_T18.js @@ -10,11 +10,11 @@ description: Call String() with numbers that have more than 1 significant digit ---*/ var __str = String(1000000000000000000000); - + ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(1000000000000000000000); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(1000000000000000000000); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "1e+21") { - $ERROR('#2: __str = String(1000000000000000000000); __str === "1e+21". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(1000000000000000000000); __str === "1e+21". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +32,7 @@ __str = String(10000000000000000000000); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "string") { - $ERROR('#3: __str = String(10000000000000000000000); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(10000000000000000000000); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str !== "1e+22") { - $ERROR('#4: __str = String(10000000000000000000000); __str === "1e+22". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(10000000000000000000000); __str === "1e+22". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T19.js b/test/built-ins/String/S15.5.1.1_A1_T19.js index 4fee548c6..5e58d64fd 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T19.js +++ b/test/built-ins/String/S15.5.1.1_A1_T19.js @@ -9,12 +9,12 @@ es5id: 15.5.1.1_A1_T19 description: Call String() with Array of numbers ---*/ -var __str = String(new Array(1,2,3)); +var __str = String(new Array(1, 2, 3)); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(new Array(1,2,3)); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(new Array(1,2,3)); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "1,2,3") { - $ERROR('#2: __str = String(new Array(1,2,3)); __str === "1,2,3". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(new Array(1,2,3)); __str === "1,2,3". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T2.js b/test/built-ins/String/S15.5.1.1_A1_T2.js index 288a13b3c..6fd826c4c 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T2.js +++ b/test/built-ins/String/S15.5.1.1_A1_T2.js @@ -14,7 +14,7 @@ var __str = String(null); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(null); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(null); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "null") { - $ERROR('#2: __str = String(null); __str === "null". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(null); __str === "null". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T3.js b/test/built-ins/String/S15.5.1.1_A1_T3.js index 204d8e37b..b09319278 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T3.js +++ b/test/built-ins/String/S15.5.1.1_A1_T3.js @@ -14,7 +14,7 @@ var __str = String(void 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(void 0); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(void 0); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "undefined") { - $ERROR('#2: __str = String(void 0); __str === "undefined". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(void 0); __str === "undefined". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T4.js b/test/built-ins/String/S15.5.1.1_A1_T4.js index 95d0ea131..b85534d51 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T4.js +++ b/test/built-ins/String/S15.5.1.1_A1_T4.js @@ -14,7 +14,7 @@ var __str = String(undefined); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(undefined); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(undefined); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "undefined") { - $ERROR('#2: __str = String(undefined); __str === "undefined". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(undefined); __str === "undefined". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T5.js b/test/built-ins/String/S15.5.1.1_A1_T5.js index 19f7db066..9ec1596f1 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T5.js +++ b/test/built-ins/String/S15.5.1.1_A1_T5.js @@ -14,7 +14,7 @@ var __str = String(x); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: var x; __str = String(x); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: var x; __str = String(x); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "undefined") { - $ERROR('#2: var x; __str = String(x); __str === "undefined". Actual: __str ==='+__str ); + $ERROR('#2: var x; __str = String(x); __str === "undefined". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T6.js b/test/built-ins/String/S15.5.1.1_A1_T6.js index 75f049b4e..29d6ea6f4 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T6.js +++ b/test/built-ins/String/S15.5.1.1_A1_T6.js @@ -14,7 +14,7 @@ var __str = String(eval()); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(eval()); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(eval()); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "undefined") { - $ERROR('#2: __str = String(eval()); __str === "undefined". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(eval()); __str === "undefined". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T7.js b/test/built-ins/String/S15.5.1.1_A1_T7.js index a275bd9f6..6b0596e2b 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T7.js +++ b/test/built-ins/String/S15.5.1.1_A1_T7.js @@ -14,15 +14,15 @@ var __str = String({}); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String({}); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String({}); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !== "[object "+"Object"+"]") { - $ERROR('#2: __str = String({}); __str === "[object Object]". Actual: __str ==='+__str ); +if (__str !== "[object " + "Object" + "]") { + $ERROR('#2: __str = String({}); __str === "[object Object]". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T8.js b/test/built-ins/String/S15.5.1.1_A1_T8.js index f6c6e8a60..3df6c62b5 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T8.js +++ b/test/built-ins/String/S15.5.1.1_A1_T8.js @@ -11,17 +11,19 @@ description: Call String(new Array) var __old__Array__prototype__toString = Array.prototype.toString; -Array.prototype.toString=function(){return "__ARRAY__";}; +Array.prototype.toString = function() { + return "__ARRAY__"; +}; var __str = String(new Array); // restore old toString method just in case -Array.prototype.toString=__old__Array__prototype__toString; +Array.prototype.toString = __old__Array__prototype__toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(new Array); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(new Array); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +31,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "__ARRAY__") { - $ERROR('#2: Array.prototype.toString=function(){return "__ARRAY__";}; __str = String(new Array); __str === "__ARRAY__". Actual: __str ==='+__str ); + $ERROR('#2: Array.prototype.toString=function(){return "__ARRAY__";}; __str = String(new Array); __str === "__ARRAY__". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T9.js b/test/built-ins/String/S15.5.1.1_A1_T9.js index c6b05e738..5a8e58cc1 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T9.js +++ b/test/built-ins/String/S15.5.1.1_A1_T9.js @@ -9,14 +9,16 @@ es5id: 15.5.1.1_A1_T9 description: Call String(this) ---*/ -var toString=function(){return "__THIS__";}; +var toString = function() { + return "__THIS__"; +}; var __str = String(this); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(this); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(this); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +26,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "__THIS__") { - $ERROR('#2: toString=function(){return "__THIS__";}; __str = String(this); __str === "__THIS__". Actual: __str ==='+__str ); + $ERROR('#2: toString=function(){return "__THIS__";}; __str = String(this); __str === "__THIS__". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A2_T1.js b/test/built-ins/String/S15.5.1.1_A2_T1.js index 2c395acf3..2a8956433 100644 --- a/test/built-ins/String/S15.5.1.1_A2_T1.js +++ b/test/built-ins/String/S15.5.1.1_A2_T1.js @@ -12,7 +12,7 @@ var __str = String(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -20,7 +20,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "") { - $ERROR('#2: __str = String(); __str === "". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(); __str === "". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T1.js b/test/built-ins/String/S15.5.2.1_A1_T1.js index cff64fd34..2b7c835f7 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T1.js +++ b/test/built-ins/String/S15.5.2.1_A1_T1.js @@ -14,7 +14,7 @@ var __str = new String; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String; typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String; typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String; __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String; __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,14 +30,14 @@ if (__str.constructor !== String) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str != "") { - $ERROR('#2: __str = new String; __str == "". Actual: __str =='+__str); + $ERROR('#2: __str = new String; __str == "". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if ( __str === "") { +if (__str === "") { $ERROR('#3: __str = new String; __str !== ""'); } // diff --git a/test/built-ins/String/S15.5.2.1_A1_T10.js b/test/built-ins/String/S15.5.2.1_A1_T10.js index 46c0474f1..1b7950e2f 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T10.js +++ b/test/built-ins/String/S15.5.2.1_A1_T10.js @@ -11,9 +11,11 @@ description: > function object's prototype.toString property was changed ---*/ -function __FACTORY(){}; +function __FACTORY() {}; -__FACTORY.prototype.toString=function(){return "tostr"}; +__FACTORY.prototype.toString = function() { + return "tostr" +}; var __obj = new __FACTORY; @@ -22,7 +24,7 @@ var __str = new String(__obj); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(__obj); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(__obj); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +32,7 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -38,7 +40,7 @@ if (__str.constructor !== String) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str != "tostr") { - $ERROR('#2: __str = new String(__obj); __str =="tostr". Actual: __str =='+__str ); + $ERROR('#2: __str = new String(__obj); __str =="tostr". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T11.js b/test/built-ins/String/S15.5.2.1_A1_T11.js index b3eaf733b..f44791a9b 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T11.js +++ b/test/built-ins/String/S15.5.2.1_A1_T11.js @@ -11,11 +11,15 @@ description: > changing function object's valueOf and toString properties ---*/ -function __obj(){}; +function __obj() {}; -__obj.valueOf=function(){return true;}; +__obj.valueOf = function() { + return true; +}; -__obj.toString=function(){return {};}; +__obj.toString = function() { + return {}; +}; var __str = new String(__obj); @@ -24,7 +28,7 @@ var __str = new String(__obj); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: function __obj(){}; __str = new String(__obj); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: function __obj(){}; __str = new String(__obj); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,15 +36,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="true") { - $ERROR('#2: function __obj(){}; __str = new String(__obj); __str =="true". Actual: __str =='+__str ); +if (__str != "true") { + $ERROR('#2: function __obj(){}; __str = new String(__obj); __str =="true". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T12.js b/test/built-ins/String/S15.5.2.1_A1_T12.js index 092aab239..76bb3c6eb 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T12.js +++ b/test/built-ins/String/S15.5.2.1_A1_T12.js @@ -12,9 +12,15 @@ description: > exception throw ---*/ -var __obj = {toString:function(){throw "intostr"}}; +var __obj = { + toString: function() { + throw "intostr" + } +}; -__obj.valueOf=function(){return true}; +__obj.valueOf = function() { + return true +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -22,8 +28,8 @@ try { var __str = new String(__obj); $ERROR('#1: var __obj = {toString:function(){throw "intostr"}}; __str = new String(__obj) lead throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: e==="intostr". Actual: e==='+e); + if (e !== "intostr") { + $ERROR('#1.1: e==="intostr". Actual: e===' + e); } } // diff --git a/test/built-ins/String/S15.5.2.1_A1_T13.js b/test/built-ins/String/S15.5.2.1_A1_T13.js index dbda18dcf..45f064f13 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T13.js +++ b/test/built-ins/String/S15.5.2.1_A1_T13.js @@ -12,9 +12,17 @@ description: > exception throw ---*/ -var __obj = {toString:function(){return f; function f(){}}}; +var __obj = { + toString: function() { + return f; -__obj.valueOf=function(){throw "invalueof"}; + function f() {} + } +}; + +__obj.valueOf = function() { + throw "invalueof" +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -22,8 +30,8 @@ try { var __str = new String(__obj); $ERROR('#1: __obj.valueOf=function(){throw "invalueof"}; __str = new String(__obj) lead throwing exception'); } catch (e) { - if (e!=="invalueof") { - $ERROR('#1.1: e==="invalueof". Actual: e==='+e); + if (e !== "invalueof") { + $ERROR('#1.1: e==="invalueof". Actual: e===' + e); } } // diff --git a/test/built-ins/String/S15.5.2.1_A1_T16.js b/test/built-ins/String/S15.5.2.1_A1_T16.js index 332769625..c5b6bc6d2 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T16.js +++ b/test/built-ins/String/S15.5.2.1_A1_T16.js @@ -11,11 +11,11 @@ description: > and other numbers ---*/ -var __str =new String(.12345); +var __str = new String(.12345); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str =new String(.12345); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str =new String(.12345); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,24 +23,24 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str =new String(.12345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str =new String(.12345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="0.12345") { - $ERROR('#2: __str =new String(.12345); __str =="0.12345". Actual: __str =='+__str ); +if (__str != "0.12345") { + $ERROR('#2: __str =new String(.12345); __str =="0.12345". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// -__str =new String(.012345); +__str = new String(.012345); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "object") { - $ERROR('#3: __str =new String(.012345); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str =new String(.012345); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -48,24 +48,24 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2.5 if (__str.constructor !== String) { - $ERROR('#3.5: __str =new String(.012345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#3.5: __str =new String(.012345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__str !="0.012345") { - $ERROR('#4: __str =new String(.012345); __str =="0.012345". Actual: __str =='+__str ); +if (__str != "0.012345") { + $ERROR('#4: __str =new String(.012345); __str =="0.012345". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// -__str =new String(.0012345); +__str = new String(.0012345); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "object") { - $ERROR('#5: __str =new String(.0012345); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str =new String(.0012345); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -73,24 +73,24 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5.5 if (__str.constructor !== String) { - $ERROR('#5.5: __str =new String(.0012345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#5.5: __str =new String(.0012345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#6 -if (__str !="0.0012345") { - $ERROR('#6: __str =new String(.0012345); __str =="0.0012345". Actual: __str =='+__str ); +if (__str != "0.0012345") { + $ERROR('#6: __str =new String(.0012345); __str =="0.0012345". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// -__str =new String(.00000012345); +__str = new String(.00000012345); ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (typeof __str !== "object") { - $ERROR('#7: __str =new String(.00000012345); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#7: __str =new String(.00000012345); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -98,15 +98,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#7.5 if (__str.constructor !== String) { - $ERROR('#7.5: __str =new String(.00000012345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#7.5: __str =new String(.00000012345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#8 -if (__str !="1.2345e-7") { - $ERROR('#8: __str =new String(.00000012345); __str =="1.2345e-7". Actual: __str =='+__str ); +if (__str != "1.2345e-7") { + $ERROR('#8: __str =new String(.00000012345); __str =="1.2345e-7". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T17.js b/test/built-ins/String/S15.5.2.1_A1_T17.js index 3e9248ebe..745ab818b 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T17.js +++ b/test/built-ins/String/S15.5.2.1_A1_T17.js @@ -15,7 +15,7 @@ var __str = new String(1.2345); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(1.2345); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(1.2345); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,15 +23,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(1.2345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(1.2345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="1.2345") { - $ERROR('#2: __str = new String(1.2345); __str =="1.2345". Actual: __str =='+__str ); +if (__str != "1.2345") { + $ERROR('#2: __str = new String(1.2345); __str =="1.2345". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ __str = new String(1.234567890); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "object") { - $ERROR('#3: __str = new String(1.234567890); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = new String(1.234567890); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -48,15 +48,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#3.5 if (__str.constructor !== String) { - $ERROR('#3.5: __str = new String(1.234567890); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#3.5: __str = new String(1.234567890); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__str !="1.23456789") { - $ERROR('#4: __str = new String(1.234567890); __str =="1.23456789". Actual: __str =='+__str ); +if (__str != "1.23456789") { + $ERROR('#4: __str = new String(1.234567890); __str =="1.23456789". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -65,7 +65,7 @@ __str = new String(1.234500000000000000000000000); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "object") { - $ERROR('#5: __str = new String(1.234500000000000000000000000); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str = new String(1.234500000000000000000000000); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -73,15 +73,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5.5 if (__str.constructor !== String) { - $ERROR('#5.5: __str = new String(1.234500000000000000000000000); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#5.5: __str = new String(1.234500000000000000000000000); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#6 -if (__str !="1.2345") { - $ERROR('#6: __str = new String(1.234500000000000000000000000); __str =="1.2345". Actual: __str =='+__str ); +if (__str != "1.2345") { + $ERROR('#6: __str = new String(1.234500000000000000000000000); __str =="1.2345". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T18.js b/test/built-ins/String/S15.5.2.1_A1_T18.js index 600c76266..e6d950545 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T18.js +++ b/test/built-ins/String/S15.5.2.1_A1_T18.js @@ -15,7 +15,7 @@ var __str = new String(1000000000000000000000); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(1000000000000000000000); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(1000000000000000000000); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,15 +23,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(1000000000000000000000); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(1000000000000000000000); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="1e+21") { - $ERROR('#2: __str = new String(1000000000000000000000); __str =="1e+21". Actual: __str =='+__str ); +if (__str != "1e+21") { + $ERROR('#2: __str = new String(1000000000000000000000); __str =="1e+21". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ __str = new String(10000000000000000000000); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "object") { - $ERROR('#3: __str = new String(10000000000000000000000); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = new String(10000000000000000000000); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -48,15 +48,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#3.5 if (__str.constructor !== String) { - $ERROR('#3.5: __str = new String(10000000000000000000000); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#3.5: __str = new String(10000000000000000000000); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__str !="1e+22") { - $ERROR('#4: __str = new String(10000000000000000000000); __str =="1e+22". Actual: __str =='+__str ); +if (__str != "1e+22") { + $ERROR('#4: __str = new String(10000000000000000000000); __str =="1e+22". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T19.js b/test/built-ins/String/S15.5.2.1_A1_T19.js index 8bef6916c..223aa2abf 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T19.js +++ b/test/built-ins/String/S15.5.2.1_A1_T19.js @@ -11,11 +11,11 @@ description: > of numbers ---*/ -var __str = new String(new Array(1,2,3)); +var __str = new String(new Array(1, 2, 3)); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(new Array(1,2,3)); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(new Array(1,2,3)); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,15 +23,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(new Array(1,2,3)); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(new Array(1,2,3)); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="1,2,3") { - $ERROR('#2: __str = new String(new Array(1,2,3)); __str =="1,2,3". Actual: __str =='+__str ); +if (__str != "1,2,3") { + $ERROR('#2: __str = new String(new Array(1,2,3)); __str =="1,2,3". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T2.js b/test/built-ins/String/S15.5.2.1_A1_T2.js index e9e3cd3ef..bb1bee390 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T2.js +++ b/test/built-ins/String/S15.5.2.1_A1_T2.js @@ -14,7 +14,7 @@ var __str = new String(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,23 +22,23 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="") { - $ERROR('#2: __str = new String(); __str =="". Actual: __str =='+__str ); +if (__str != "") { + $ERROR('#2: __str = new String(); __str =="". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if ( __str === "") { - $ERROR('#3: __str = new String(); __str !== ""'); +if (__str === "") { + $ERROR('#3: __str = new String(); __str !== ""'); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T3.js b/test/built-ins/String/S15.5.2.1_A1_T3.js index b46ea66cb..b9716333c 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T3.js +++ b/test/built-ins/String/S15.5.2.1_A1_T3.js @@ -14,7 +14,7 @@ var __str = new String(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(""); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(""); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,23 +22,23 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(""); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(""); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="") { - $ERROR('#2: __str = new String(""); __str =="". Actual: __str =='+__str ); +if (__str != "") { + $ERROR('#2: __str = new String(""); __str =="". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if ( __str === "") { - $ERROR('#3: __str = new String(""); __str !== ""'); +if (__str === "") { + $ERROR('#3: __str = new String(""); __str !== ""'); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T4.js b/test/built-ins/String/S15.5.2.1_A1_T4.js index cc4687d03..3d268119b 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T4.js +++ b/test/built-ins/String/S15.5.2.1_A1_T4.js @@ -14,7 +14,7 @@ var __str = new String(1.0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(1.0); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(1.0); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,15 +22,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(1.0); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(1.0); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !=1.0+"") { - $ERROR('#2: __str = new String(1.0); __str ==1.0+"". Actual: __str =='+__str ); +if (__str != 1.0 + "") { + $ERROR('#2: __str = new String(1.0); __str ==1.0+"". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T5.js b/test/built-ins/String/S15.5.2.1_A1_T5.js index 786ecadf7..34b722abd 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T5.js +++ b/test/built-ins/String/S15.5.2.1_A1_T5.js @@ -14,7 +14,7 @@ var __str = new String(NaN); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(NaN); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(NaN); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,15 +22,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(NaN); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(NaN); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !=(1/"s")+"") { - $ERROR('#2: __str = new String(NaN); __str ==(1/"s")+"". Actual: __str =='+__str ); +if (__str != (1 / "s") + "") { + $ERROR('#2: __str = new String(NaN); __str ==(1/"s")+"". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T6.js b/test/built-ins/String/S15.5.2.1_A1_T6.js index 50db9d851..c3b481fd6 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T6.js +++ b/test/built-ins/String/S15.5.2.1_A1_T6.js @@ -14,7 +14,7 @@ var __str = new String(false); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(false); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(false); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,15 +22,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(false); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(false); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !=false+"") { - $ERROR('#2: __str = new String(false); __str ==false+"". Actual: __str =='+__str ); +if (__str != false + "") { + $ERROR('#2: __str = new String(false); __str ==false+"". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T7.js b/test/built-ins/String/S15.5.2.1_A1_T7.js index 5ce2ae1ac..9ff917a50 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T7.js +++ b/test/built-ins/String/S15.5.2.1_A1_T7.js @@ -11,7 +11,9 @@ description: Creating string object with "new String({})" var __stored__Object__prototype__toString = Object.prototype.toString; -Object.prototype.toString=function(){return "SHIFTED"}; +Object.prototype.toString = function() { + return "SHIFTED" +}; var __str = new String({}); @@ -20,7 +22,7 @@ Object.prototype.toString = __stored__Object__prototype__toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String({}); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String({}); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,15 +30,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String({}); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String({}); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="SHIFTED") { - $ERROR('#2: Object.prototype.toString=function(){return "SHIFTED"}; __str = new String({}); __str =="SHIFTED". Actual: __str =='+__str ); +if (__str != "SHIFTED") { + $ERROR('#2: Object.prototype.toString=function(){return "SHIFTED"}; __str = new String({}); __str =="SHIFTED". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T8.js b/test/built-ins/String/S15.5.2.1_A1_T8.js index 35402bae1..c01b4bb1e 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T8.js +++ b/test/built-ins/String/S15.5.2.1_A1_T8.js @@ -11,16 +11,18 @@ description: Creating string object with "new String(function(){})" var __stored__Function__prototype__toString = Function.prototype.toString; -Function.prototype.toString=function(){return "SHIFTED"}; +Function.prototype.toString = function() { + return "SHIFTED" +}; -var __str = new String(function(){}); +var __str = new String(function() {}); Function.prototype.toString = __stored__Function__prototype__toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(function(){}); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(function(){}); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,15 +30,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(function(){}); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(function(){}); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="SHIFTED") { - $ERROR('#2: Function.prototype.toString=function(){return "SHIFTED"}; __str = new String(function(){}); __str =="SHIFTED". Actual: __str =='+__str ); +if (__str != "SHIFTED") { + $ERROR('#2: Function.prototype.toString=function(){return "SHIFTED"}; __str = new String(function(){}); __str =="SHIFTED". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T9.js b/test/built-ins/String/S15.5.2.1_A1_T9.js index 4a23ee97c..95b97e6b4 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T9.js +++ b/test/built-ins/String/S15.5.2.1_A1_T9.js @@ -11,12 +11,14 @@ description: > [1,2,3]}())" ---*/ -var __str = new String(function(){return [1,2,3]}()); +var __str = new String(function() { + return [1, 2, 3] +}()); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(function(){return [1,2,3]}()); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(function(){return [1,2,3]}()); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,15 +26,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(function(){return [1,2,3]}()); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(function(){return [1,2,3]}()); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="1,2,3") { - $ERROR('#2: __str = new String(function(){return [1,2,3]}()); __str =="1,2,3". Actual: __str =='+__str ); +if (__str != "1,2,3") { + $ERROR('#2: __str = new String(function(){return [1,2,3]}()); __str =="1,2,3". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A2_T2.js b/test/built-ins/String/S15.5.2.1_A2_T2.js index 63374d22e..35de60592 100644 --- a/test/built-ins/String/S15.5.2.1_A2_T2.js +++ b/test/built-ins/String/S15.5.2.1_A2_T2.js @@ -15,8 +15,8 @@ var __str__obj = new String("shocking blue"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str__obj["__custom__prop"]!==undefined) { - $ERROR('#1: var __str__obj = new String("shocking blue"); __str__obj["__custom__prop"]===undefined. Actual: __str__obj["__custom__prop"]==='+__str__obj["__custom__prop"]); +if (__str__obj["__custom__prop"] !== undefined) { + $ERROR('#1: var __str__obj = new String("shocking blue"); __str__obj["__custom__prop"]===undefined. Actual: __str__obj["__custom__prop"]===' + __str__obj["__custom__prop"]); } // ////////////////////////////////////////////////////////////////////////////// @@ -25,8 +25,8 @@ String.prototype.__custom__prop = "bor"; ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str__obj["__custom__prop"]!=="bor") { - $ERROR('#2: var __str__obj = new String("shocking blue"); String.prototype.__custom__prop = "bor"; __str__obj["__custom__prop"]==="bor". Actual: __str__obj["__custom__prop"]==='+__str__obj["__custom__prop"]); +if (__str__obj["__custom__prop"] !== "bor") { + $ERROR('#2: var __str__obj = new String("shocking blue"); String.prototype.__custom__prop = "bor"; __str__obj["__custom__prop"]==="bor". Actual: __str__obj["__custom__prop"]===' + __str__obj["__custom__prop"]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A3.js b/test/built-ins/String/S15.5.2.1_A3.js index fa3bdafb8..387bdf10a 100644 --- a/test/built-ins/String/S15.5.2.1_A3.js +++ b/test/built-ins/String/S15.5.2.1_A3.js @@ -15,8 +15,8 @@ __str__obj.toString = Object.prototype.toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str__obj.toString() !== "[object "+"String"+"]") { - $ERROR('#1: var __str__obj = new String("seamaid"); __str__obj.toString = Object.prototype.toString; __str__obj.toString() === "[object String]". Actual: __str__obj.toString() ==='+__str__obj.toString() ); +if (__str__obj.toString() !== "[object " + "String" + "]") { + $ERROR('#1: var __str__obj = new String("seamaid"); __str__obj.toString = Object.prototype.toString; __str__obj.toString() === "[object String]". Actual: __str__obj.toString() ===' + __str__obj.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.3_A1.js b/test/built-ins/String/S15.5.3_A1.js index 7360cf3f1..de6499d46 100644 --- a/test/built-ins/String/S15.5.3_A1.js +++ b/test/built-ins/String/S15.5.3_A1.js @@ -10,7 +10,7 @@ description: Checking String.length ////////////////////////////////////////////////////////////////////////////// // CHECK# if (String.length !== 1) { - $ERROR('String has length property whose value is 1. Actual: String.length==='+String.length); + $ERROR('String has length property whose value is 1. Actual: String.length===' + String.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.3_A2_T1.js b/test/built-ins/String/S15.5.3_A2_T1.js index 584b4e29f..eb019eaf6 100644 --- a/test/built-ins/String/S15.5.3_A2_T1.js +++ b/test/built-ins/String/S15.5.3_A2_T1.js @@ -12,7 +12,7 @@ description: Checking Function.prototype.isPrototypeOf(String) ////////////////////////////////////////////////////////////////////////////// // CHECK# if (!(Function.prototype.isPrototypeOf(String))) { - $ERROR('#1: Function.prototype.isPrototypeOf(String) return true. Actual: '+Function.prototype.isPrototypeOf(String)); + $ERROR('#1: Function.prototype.isPrototypeOf(String) return true. Actual: ' + Function.prototype.isPrototypeOf(String)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.3_A2_T2.js b/test/built-ins/String/S15.5.3_A2_T2.js index 42c6ad170..8fb4899cc 100644 --- a/test/built-ins/String/S15.5.3_A2_T2.js +++ b/test/built-ins/String/S15.5.3_A2_T2.js @@ -14,7 +14,7 @@ Function.prototype.indicator = 1; ////////////////////////////////////////////////////////////////////////////// // CHECK# if (String.indicator !== 1) { - $ERROR('#1: Function.prototype.indicator = 1; String.indicator === 1. Actual: String.indicator ==='+String.indicator ); + $ERROR('#1: Function.prototype.indicator = 1; String.indicator === 1. Actual: String.indicator ===' + String.indicator); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5.1_A1.js b/test/built-ins/String/S15.5.5.1_A1.js index 6537b2dd9..969b7c099 100644 --- a/test/built-ins/String/S15.5.5.1_A1.js +++ b/test/built-ins/String/S15.5.5.1_A1.js @@ -14,7 +14,7 @@ var __str__instance = new String("ABC\u0041\u0042\u0043"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__str__instance.length !== 6) { - $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6, where __str__instance is new String("ABC\\u0041\\u0042\\u0043"). Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6, where __str__instance is new String("ABC\\u0041\\u0042\\u0043"). Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ __str__instance = new String; ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str__instance.length !== 0) { - $ERROR('#2: __str__instance = new String; __str__instance.length === 0, where __str__instance is new String. Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#2: __str__instance = new String; __str__instance.length === 0, where __str__instance is new String. Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5.1_A2.js b/test/built-ins/String/S15.5.5.1_A2.js index 764e7bd01..9d039cba0 100644 --- a/test/built-ins/String/S15.5.5.1_A2.js +++ b/test/built-ins/String/S15.5.5.1_A2.js @@ -12,17 +12,17 @@ var __str__instance = new String("globglob"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(__str__instance.hasOwnProperty("length"))) { - $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length")); + $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -for(var prop in __str__instance){ - if (prop === "length") { - $ERROR('#2: length property has the attributes {DontEnum}'); - } +for (var prop in __str__instance) { + if (prop === "length") { + $ERROR('#2: length property has the attributes {DontEnum}'); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5.1_A3.js b/test/built-ins/String/S15.5.5.1_A3.js index 8cdd06221..8309818e3 100644 --- a/test/built-ins/String/S15.5.5.1_A3.js +++ b/test/built-ins/String/S15.5.5.1_A3.js @@ -13,7 +13,7 @@ var __str__instance = new String("globglob"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(__str__instance.hasOwnProperty("length"))) { - $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length")); + $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,7 +36,7 @@ try { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (!(__str__instance.hasOwnProperty("length"))) { - $ERROR('#3: var __str__instance = new String("globglob"); delete __str__instance.length; __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length")); + $ERROR('#3: var __str__instance = new String("globglob"); delete __str__instance.length; __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5.1_A4_T1.js b/test/built-ins/String/S15.5.5.1_A4_T1.js index 2df5f77c6..d41526fc8 100644 --- a/test/built-ins/String/S15.5.5.1_A4_T1.js +++ b/test/built-ins/String/S15.5.5.1_A4_T1.js @@ -13,7 +13,7 @@ var __str__instance = new String("globglob"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(__str__instance.hasOwnProperty("length"))) { - $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length")); + $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -21,28 +21,28 @@ if (!(__str__instance.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str__instance.length !== 8) { - $ERROR('#2: var __str__instance = new String("globglob"); __str__instance.length === 8. Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#2: var __str__instance = new String("globglob"); __str__instance.length === 8. Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// -__str__instance.length=-1; +__str__instance.length = -1; ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__str__instance.length !== 8) { - $ERROR('#3: var __str__instance = new String("globglob"); __str__instance.length=-1; __str__instance.length === 8(after redefine length property). Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#3: var __str__instance = new String("globglob"); __str__instance.length=-1; __str__instance.length === 8(after redefine length property). Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// with(__str__instance) - length = 0; +length = 0; ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str__instance.length !== 8) { - $ERROR('#4: var __str__instance = new String("globglob"); with(__str__instance) length = 0; __str__instance.length === 8(after redefine length property with using "with"). Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#4: var __str__instance = new String("globglob"); with(__str__instance) length = 0; __str__instance.length === 8(after redefine length property with using "with"). Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -52,7 +52,7 @@ __str__instance.length++; ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__str__instance.length !== 8) { - $ERROR('#5: var __str__instance = new String("globglob"); __str__instance.length++; __str__instance.length === 8(after redefine length property with using "++"). Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#5: var __str__instance = new String("globglob"); __str__instance.length++; __str__instance.length === 8(after redefine length property with using "++"). Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5.1_A4_T2.js b/test/built-ins/String/S15.5.5.1_A4_T2.js index 08fb07240..67510ea00 100644 --- a/test/built-ins/String/S15.5.5.1_A4_T2.js +++ b/test/built-ins/String/S15.5.5.1_A4_T2.js @@ -13,7 +13,7 @@ var __str__instance = new String("globglob"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(__str__instance.hasOwnProperty("length"))) { - $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length")); + $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -21,7 +21,7 @@ if (!(__str__instance.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str__instance.length !== 8) { - $ERROR('#2: var __str__instance = new String("globglob"); __str__instance.length === 8. Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#2: var __str__instance = new String("globglob"); __str__instance.length === 8. Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,7 +31,7 @@ verifyNotWritable(__str__instance, "length", null, -1); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__str__instance.length !== 8) { - $ERROR('#3: var __str__instance = new String("globglob"); __str__instance.length=-1; __str__instance.length === 8(after redefine length property). Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#3: var __str__instance = new String("globglob"); __str__instance.length=-1; __str__instance.length === 8(after redefine length property). Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5.1_A5.js b/test/built-ins/String/S15.5.5.1_A5.js index e169e1170..7aa4181a3 100644 --- a/test/built-ins/String/S15.5.5.1_A5.js +++ b/test/built-ins/String/S15.5.5.1_A5.js @@ -14,18 +14,22 @@ var __str__instance = new String("ABC\u0041\u0042\u0043"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__str__instance.length !== 6) { - $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6. Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6. Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// -__str__instance.valueOf = function(){return "ed"}; -__str__instance.toString = function(){return "ed"}; +__str__instance.valueOf = function() { + return "ed" +}; +__str__instance.toString = function() { + return "ed" +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str__instance !="ed") { - $ERROR('#2: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance =="ed". Actual: __str__instance =='+__str__instance ); +if (__str__instance != "ed") { + $ERROR('#2: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance =="ed". Actual: __str__instance ==' + __str__instance); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +37,7 @@ if (__str__instance !="ed") { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__str__instance.length !== 6) { - $ERROR('#3: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance.length === 6. Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#3: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance.length === 6. Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5_A1_T1.js b/test/built-ins/String/S15.5.5_A1_T1.js index b5d7bdde3..883b4106b 100644 --- a/test/built-ins/String/S15.5.5_A1_T1.js +++ b/test/built-ins/String/S15.5.5_A1_T1.js @@ -16,7 +16,7 @@ try { $ERROR('#1: __str = new String; __str() lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/S15.5.5_A1_T2.js b/test/built-ins/String/S15.5.5_A1_T2.js index f7c992b59..68ff2408c 100644 --- a/test/built-ins/String/S15.5.5_A1_T2.js +++ b/test/built-ins/String/S15.5.5_A1_T2.js @@ -14,7 +14,7 @@ try { $ERROR('#1: String("a|b")() lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/S15.5.5_A2_T1.js b/test/built-ins/String/S15.5.5_A2_T1.js index ed236183a..3bc78fd2b 100644 --- a/test/built-ins/String/S15.5.5_A2_T1.js +++ b/test/built-ins/String/S15.5.5_A2_T1.js @@ -16,7 +16,7 @@ try { $ERROR('#1: __str = new Object(""); "new __str" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/S15.5.5_A2_T2.js b/test/built-ins/String/S15.5.5_A2_T2.js index 6281a6daf..cc5df5159 100644 --- a/test/built-ins/String/S15.5.5_A2_T2.js +++ b/test/built-ins/String/S15.5.5_A2_T2.js @@ -14,7 +14,7 @@ try { $ERROR('#1: "new new String" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/S8.12.8_A1.js b/test/built-ins/String/S8.12.8_A1.js index d4f2dd5c0..04250ab47 100644 --- a/test/built-ins/String/S8.12.8_A1.js +++ b/test/built-ins/String/S8.12.8_A1.js @@ -12,13 +12,17 @@ description: Try to overload toString method try { - var __obj = {toString: function() {return new Object();}} - String(__obj); - $ERROR('#1.1: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (String(__obj))); + var __obj = { + toString: function() { + return new Object(); + } + } + String(__obj); + $ERROR('#1.1: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (String(__obj))); } -catch(e) +catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (e)); - } + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (e)); + } } diff --git a/test/built-ins/String/S8.12.8_A2.js b/test/built-ins/String/S8.12.8_A2.js index 4ffda0d94..6618d2cdd 100644 --- a/test/built-ins/String/S8.12.8_A2.js +++ b/test/built-ins/String/S8.12.8_A2.js @@ -15,12 +15,19 @@ description: > try { - var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}} - if (String(__obj) !== "1") { - $ERROR('#1.1: var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}; String(__obj) === "1". Actual: ' + (String(__obj))); - } + var __obj = { + toString: function() { + return new Object(); + }, + valueOf: function() { + return 1; + } + } + if (String(__obj) !== "1") { + $ERROR('#1.1: var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}; String(__obj) === "1". Actual: ' + (String(__obj))); + } } -catch(e) +catch (e) { $ERROR('#1.2: var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}; String(__obj) === "1". Actual: ' + (e)); } diff --git a/test/built-ins/String/S9.1_A1_T2.js b/test/built-ins/String/S9.1_A1_T2.js index 7090e3234..4d92be3f0 100644 --- a/test/built-ins/String/S9.1_A1_T2.js +++ b/test/built-ins/String/S9.1_A1_T2.js @@ -12,13 +12,27 @@ description: > ---*/ // CHECK#1 -var object = {valueOf: function() {return 0}, toString: function() {return 1}}; +var object = { + valueOf: function() { + return 0 + }, + toString: function() { + return 1 + } +}; if (String(object) !== "1") { $ERROR('#1: var object = {valueOf: function() {return 0}, toString: function() {return 1}}; String(object) === "1". Actual: ' + (String(object))); } // CHECK#2 -var object = {valueOf: function() {return 0}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 0 + }, + toString: function() { + return {} + } +}; if (String(object) !== "0") { $ERROR('#2: var object = {valueOf: function() {return 0}, toString: function() {return {}}}; String(object) === "0". Actual: ' + (String(object))); } diff --git a/test/built-ins/String/S9.8.1_A3.js b/test/built-ins/String/S9.8.1_A3.js index f93fb59f1..13f63f7cc 100644 --- a/test/built-ins/String/S9.8.1_A3.js +++ b/test/built-ins/String/S9.8.1_A3.js @@ -15,6 +15,6 @@ if (String(-1234567890) !== "-1234567890") { } // CHECK#2 -if ("-"+String(-(-1234567890)) !== "-1234567890") { - $ERROR('#2: "-"+String(-(-1234567890)) === "-1234567890". Actual: ' + ("-"+String(-(-1234567890)))); +if ("-" + String(-(-1234567890)) !== "-1234567890") { + $ERROR('#2: "-"+String(-(-1234567890)) === "-1234567890". Actual: ' + ("-" + String(-(-1234567890)))); } diff --git a/test/built-ins/String/S9.8_A2_T1.js b/test/built-ins/String/S9.8_A2_T1.js index 846d1ce46..147215751 100644 --- a/test/built-ins/String/S9.8_A2_T1.js +++ b/test/built-ins/String/S9.8_A2_T1.js @@ -9,5 +9,5 @@ description: null convert to String by explicit transformation // CHECK#1 if (String(null) !== "null") { - $ERROR('#1: String(null) === "null". Actual: ' + (String(null))); + $ERROR('#1: String(null) === "null". Actual: ' + (String(null))); } diff --git a/test/built-ins/String/S9.8_A3_T1.js b/test/built-ins/String/S9.8_A3_T1.js index a6b798a3d..e9df51408 100644 --- a/test/built-ins/String/S9.8_A3_T1.js +++ b/test/built-ins/String/S9.8_A3_T1.js @@ -16,5 +16,5 @@ if (String(false) !== "false") { // CHECK#2 if (String(true) !== "true") { - $ERROR('#2: String(true) === "true". Actual: ' + (String(true))); + $ERROR('#2: String(true) === "true". Actual: ' + (String(true))); } diff --git a/test/built-ins/String/S9.8_A4_T1.js b/test/built-ins/String/S9.8_A4_T1.js index 4f78283a6..4959ead61 100644 --- a/test/built-ins/String/S9.8_A4_T1.js +++ b/test/built-ins/String/S9.8_A4_T1.js @@ -17,6 +17,6 @@ if (String(x1) !== x1) { // CHECK#2 var x2 = "abc"; -if (typeof String(x2) !== typeof x2) { +if (typeof String(x2) !== typeof x2) { $ERROR('#2: typeof String("abc") === "string". Actual: ' + (typeof String("abc"))); } diff --git a/test/built-ins/String/S9.8_A5_T1.js b/test/built-ins/String/S9.8_A5_T1.js index e6f969054..fbac3d864 100644 --- a/test/built-ins/String/S9.8_A5_T1.js +++ b/test/built-ins/String/S9.8_A5_T1.js @@ -26,7 +26,7 @@ if (String(new Number(Number.NaN)) !== "NaN") { // CHECK#4 if (String(new Number(null)) !== "0") { - $ERROR('#4: String(new Number(null)) === "0". Actual: ' + (String(new Number(null)))); + $ERROR('#4: String(new Number(null)) === "0". Actual: ' + (String(new Number(null)))); } // CHECK#5 @@ -55,38 +55,54 @@ if (String(new Boolean(false)) !== "false") { } // CHECK#10 -if (String(new Array(2,4,8,16,32)) !== "2,4,8,16,32") { - $ERROR('#10: String(new Array(2,4,8,16,32)) === "2,4,8,16,32". Actual: ' + (String(new Array(2,4,8,16,32)))); +if (String(new Array(2, 4, 8, 16, 32)) !== "2,4,8,16,32") { + $ERROR('#10: String(new Array(2,4,8,16,32)) === "2,4,8,16,32". Actual: ' + (String(new Array(2, 4, 8, 16, 32)))); } // CHECK#11 var myobj1 = { - toNumber : function(){return 12345;}, - toString : function(){return 67890;}, - valueOf : function(){return "[object MyObj]";} - }; - -if (String(myobj1) !== "67890"){ + toNumber: function() { + return 12345; + }, + toString: function() { + return 67890; + }, + valueOf: function() { + return "[object MyObj]"; + } +}; + +if (String(myobj1) !== "67890") { $ERROR("#11: String(myobj) calls ToPrimitive with hint String"); } // CHECK#12 var myobj2 = { - toNumber : function(){return 12345;}, - toString : function(){return {}}, - valueOf : function(){return "[object MyObj]";} - }; - -if (String(myobj2) !== "[object MyObj]"){ + toNumber: function() { + return 12345; + }, + toString: function() { + return {} + }, + valueOf: function() { + return "[object MyObj]"; + } +}; + +if (String(myobj2) !== "[object MyObj]") { $ERROR("#12: String(myobj) calls ToPrimitive with hint String"); } // CHECK#13 var myobj3 = { - toNumber : function(){return 12345;}, - valueOf : function(){return "[object MyObj]";} - }; - -if (String(myobj3) !== "[object Object]"){ + toNumber: function() { + return 12345; + }, + valueOf: function() { + return "[object MyObj]"; + } +}; + +if (String(myobj3) !== "[object Object]") { $ERROR("#13: String(myobj) calls ToPrimitive with hint String"); } diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js index 0b9edd0cc..1a1050b81 100644 --- a/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js +++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js @@ -10,7 +10,7 @@ description: Checking String.fromCharCode.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof String.fromCharCode !== "function") { - $ERROR('#1: typeof String.fromCharCode === "function". Actual: typeof String.fromCharCode ==='+typeof String.fromCharCode ); + $ERROR('#1: typeof String.fromCharCode === "function". Actual: typeof String.fromCharCode ===' + typeof String.fromCharCode); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (typeof String.fromCharCode !== "function") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (!(String.hasOwnProperty("fromCharCode"))) { - $ERROR('#2: String.hasOwnProperty("fromCharCode") return true. Actual: '+String.hasOwnProperty("fromCharCode")); + $ERROR('#2: String.hasOwnProperty("fromCharCode") return true. Actual: ' + String.hasOwnProperty("fromCharCode")); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (!(String.hasOwnProperty("fromCharCode"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (String.fromCharCode.length !== 1) { - $ERROR('#3: String.fromCharCode.length === 1. Actual: String.fromCharCode.length ==='+String.fromCharCode.length ); + $ERROR('#3: String.fromCharCode.length === 1. Actual: String.fromCharCode.length ===' + String.fromCharCode.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A2.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A2.js index 9fbae6ddc..30ac54bc7 100644 --- a/test/built-ins/String/fromCharCode/S15.5.3.2_A2.js +++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A2.js @@ -10,7 +10,7 @@ description: Call String.fromCharCode() ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.fromCharCode() !== "") { - $ERROR('#1: String.fromCharCode () returns empty string. Actual: '+String.fromCharCode()); + $ERROR('#1: String.fromCharCode () returns empty string. Actual: ' + String.fromCharCode()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js index 8c394c851..57d7aaa11 100644 --- a/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js +++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js @@ -9,8 +9,8 @@ description: Call String.fromCharCode(65,66,66,65) ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String.fromCharCode(65,66,66,65) !== "ABBA") { - $ERROR('#1: String.fromCharCode(65,66,66,65) === "ABBA". Actual: String.fromCharCode(65,66,66,65) ==='+String.fromCharCode(65,66,66,65) ); +if (String.fromCharCode(65, 66, 66, 65) !== "ABBA") { + $ERROR('#1: String.fromCharCode(65,66,66,65) === "ABBA". Actual: String.fromCharCode(65,66,66,65) ===' + String.fromCharCode(65, 66, 66, 65)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js index f13e04fe7..1e7d423a5 100644 --- a/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js +++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js @@ -15,8 +15,8 @@ delete String.fromCharCode; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__fcc__func(65,66,66,65) !== "ABBA") { - $ERROR('#1: __fcc__func = String.fromCharCode; delete String.fromCharCode; __fcc__func(65,66,66,65) === "ABBA". Actual: __fcc__func(65,66,66,65) ==='+__fcc__func(65,66,66,65) ); +if (__fcc__func(65, 66, 66, 65) !== "ABBA") { + $ERROR('#1: __fcc__func = String.fromCharCode; delete String.fromCharCode; __fcc__func(65,66,66,65) === "ABBA". Actual: __fcc__func(65,66,66,65) ===' + __fcc__func(65, 66, 66, 65)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A4.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A4.js index b29a55043..b3489a479 100644 --- a/test/built-ins/String/fromCharCode/S15.5.3.2_A4.js +++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A4.js @@ -14,10 +14,10 @@ delete String.fromCharCode; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - var __obj = new __fcc__func(65,66,66,65); + var __obj = new __fcc__func(65, 66, 66, 65); $ERROR('#1: __fcc__func = String.fromCharCode; var __obj = new __fcc__func(65,66,66,65) lead to throwing exception'); } catch (e) { - if (e instanceof Test262Error) throw e; + if (e instanceof Test262Error) throw e; } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/fromCharCode/S9.7_A1.js b/test/built-ins/String/fromCharCode/S9.7_A1.js index 513c563a5..935d50a57 100644 --- a/test/built-ins/String/fromCharCode/S9.7_A1.js +++ b/test/built-ins/String/fromCharCode/S9.7_A1.js @@ -12,41 +12,41 @@ description: > // CHECK#1 if (String.fromCharCode(Number.NaN).charCodeAt(0) !== +0) { $ERROR('#1.1: String.fromCharCode(Number.NaN).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(Number.NaN).charCodeAt(0))); -} else if (1/String.fromCharCode(Number.NaN).charCodeAt(0) !== Number.POSITIVE_INFINITY) { +} else if (1 / String.fromCharCode(Number.NaN).charCodeAt(0) !== Number.POSITIVE_INFINITY) { $ERROR('#1.2: String.fromCharCode(Number.NaN).charCodeAt(0) === +0. Actual: -0'); } // CHECK#2 if (String.fromCharCode(Number("abc")).charCodeAt(0) !== +0) { $ERROR('#2.1: String.fromCharCode(Number("abc")).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(Number("abc")).charCodeAt(0))); -} else if (1/String.fromCharCode(0).charCodeAt(0) !== Number.POSITIVE_INFINITY) { +} else if (1 / String.fromCharCode(0).charCodeAt(0) !== Number.POSITIVE_INFINITY) { $ERROR('#2.2: String.fromCharCode(0).charCodeAt(0) === +0. Actual: -0'); } // CHECK#3 if (String.fromCharCode(0).charCodeAt(0) !== +0) { $ERROR('#3.1: String.fromCharCode(0).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(0).charCodeAt(0))); -} else if (1/String.fromCharCode(0).charCodeAt(0) !== Number.POSITIVE_INFINITY) { +} else if (1 / String.fromCharCode(0).charCodeAt(0) !== Number.POSITIVE_INFINITY) { $ERROR('#3.2: String.fromCharCode(0).charCodeAt(0) === +0. Actual: -0'); } // CHECK#4 if (String.fromCharCode(-0).charCodeAt(0) !== +0) { $ERROR("#4.1: String.fromCharCode(-0).charCodeAt(0) === +0"); -} else if (1/String.fromCharCode(-0).charCodeAt(0) !== Number.POSITIVE_INFINITY) { +} else if (1 / String.fromCharCode(-0).charCodeAt(0) !== Number.POSITIVE_INFINITY) { $ERROR("#4.2: String.fromCharCode(-0).charCodeAt(0) === +0. Actual: -0"); } // CHECK#5 if (String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) !== +0) { $ERROR('#5.1: String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0))); -} else if (1/String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) { +} else if (1 / String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) { $ERROR('#5.2: String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) === +0. Actual: -0'); } // CHECK#6 if (String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) !== +0) { $ERROR("#6.1: String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) === +0"); -} else if (1/String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) { +} else if (1 / String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) { $ERROR("#6.2: String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) === +0. Actual: -0"); } diff --git a/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js b/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js index fd601b409..3af06a059 100644 --- a/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js +++ b/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js @@ -8,26 +8,51 @@ description: Type(x) is Object ---*/ //CHECK#1 -var object = {valueOf: function() {return 1}}; +var object = { + valueOf: function() { + return 1 + } +}; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#1: var object = {valueOf: function() {return 1}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } //CHECK#2 -var object = {valueOf: function() {return 1}, toString: function() {return 0}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#2: var object = {valueOf: function() {return 1}, toString: function() {return 0}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); -} +} //CHECK#3 -var object = {valueOf: function() {return 1}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#3: var object = {valueOf: function() {return 1}, toString: function() {return {}}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } //CHECK#4 try { - var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#4.1: var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } @@ -41,37 +66,62 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return 1}}; +var object = { + toString: function() { + return 1 + } +}; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#5: var object = {toString: function() {return 1}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return 1}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 1}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } //CHECK#7 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; object >>> 0; $ERROR('#7.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; object throw "error". Actual: ' + (object >>> 0)); -} +} catch (e) { if (e !== "error") { $ERROR('#7.2: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; object throw "error". Actual: ' + (e)); - } + } } //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; object >>> 0; $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object throw TypeError. Actual: ' + (object >>> 0)); -} +} catch (e) { if ((e instanceof TypeError) !== true) { $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object throw TypeError. Actual: ' + (e)); - } + } } diff --git a/test/built-ins/String/fromCodePoint/to-number-conversions.js b/test/built-ins/String/fromCodePoint/to-number-conversions.js index da054bb2f..84dac44c2 100644 --- a/test/built-ins/String/fromCodePoint/to-number-conversions.js +++ b/test/built-ins/String/fromCodePoint/to-number-conversions.js @@ -25,6 +25,10 @@ assert.sameValue(String.fromCodePoint(true), '\x01'); assert.sameValue(String.fromCodePoint('42'), '\x2A'); assert.sameValue(String.fromCodePoint('042'), '\x2A'); assert.sameValue( - String.fromCodePoint({ valueOf: function() { return 31; } }), + String.fromCodePoint({ + valueOf: function() { + return 31; + } + }), '\x1F' ); diff --git a/test/built-ins/String/length.js b/test/built-ins/String/length.js index 839a7cdf8..7b19a381c 100644 --- a/test/built-ins/String/length.js +++ b/test/built-ins/String/length.js @@ -26,4 +26,4 @@ str = new String(' \b '); assert.sameValue(str.length, 3, 'character escape (U+008, "backspace")'); str = new String('\ud834\udf06'); -assert.sameValue(str.length, 2, 'Unicode escape (surrogate pair)'); +assert.sameValue(str.length, 2, 'Unicode escape (surrogate pair)'); diff --git a/test/built-ins/String/prototype/S15.5.3.1_A1.js b/test/built-ins/String/prototype/S15.5.3.1_A1.js index 0c621f1e3..ae4163e2f 100644 --- a/test/built-ins/String/prototype/S15.5.3.1_A1.js +++ b/test/built-ins/String/prototype/S15.5.3.1_A1.js @@ -10,7 +10,7 @@ description: Checking String.hasOwnProperty('prototype') ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.hasOwnProperty('prototype'))) { - $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype')); + $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.3.1_A2.js b/test/built-ins/String/prototype/S15.5.3.1_A2.js index fac9d45a5..160a7d3e0 100644 --- a/test/built-ins/String/prototype/S15.5.3.1_A2.js +++ b/test/built-ins/String/prototype/S15.5.3.1_A2.js @@ -10,7 +10,7 @@ description: Checking if enumerating the String.prototype property fails ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.hasOwnProperty('prototype'))) { - $ERROR('#0: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype')); + $ERROR('#0: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// @@ -19,7 +19,7 @@ if (!(String.hasOwnProperty('prototype'))) { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (String.propertyIsEnumerable('prototype')) { - $ERROR('#1: String.propertyIsEnumerable(\'prototype\') return false. Actual: '+String.propertyIsEnumerable('prototype')); + $ERROR('#1: String.propertyIsEnumerable(\'prototype\') return false. Actual: ' + String.propertyIsEnumerable('prototype')); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,14 +27,14 @@ if (String.propertyIsEnumerable('prototype')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String){ - if (p==="prototype") count++; +for (var p in String) { + if (p === "prototype") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String){ if (p==="prototype") count++;}; count === 0. Actual: count ==='+count ); + $ERROR('#2: count=0; for (p in String){ if (p==="prototype") count++;}; count === 0. Actual: count ===' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.3.1_A3.js b/test/built-ins/String/prototype/S15.5.3.1_A3.js index ae4759657..5fecfb2c2 100644 --- a/test/built-ins/String/prototype/S15.5.3.1_A3.js +++ b/test/built-ins/String/prototype/S15.5.3.1_A3.js @@ -11,7 +11,7 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.hasOwnProperty('prototype'))) { - $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype')); + $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ try { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (!(String.hasOwnProperty('prototype'))) { - $ERROR('#3: delete String.prototype; String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype')); + $ERROR('#3: delete String.prototype; String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.3.1_A4.js b/test/built-ins/String/prototype/S15.5.3.1_A4.js index e94cfe27e..6f7a145fb 100644 --- a/test/built-ins/String/prototype/S15.5.3.1_A4.js +++ b/test/built-ins/String/prototype/S15.5.3.1_A4.js @@ -11,19 +11,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.hasOwnProperty('prototype'))) { - $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype')); + $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype; -verifyNotWritable(String, "prototype", null, function(){return "shifted";}); +verifyNotWritable(String, "prototype", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype !== __obj) { - $ERROR('#2: __obj = String.prototype; String.prototype = function(){return "shifted";}; String.prototype === __obj. Actual: String.prototype ==='+String.prototype ); + $ERROR('#2: __obj = String.prototype; String.prototype = function(){return "shifted";}; String.prototype === __obj. Actual: String.prototype ===' + String.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.4_A1.js b/test/built-ins/String/prototype/S15.5.4_A1.js index 1b12c336f..44c686476 100644 --- a/test/built-ins/String/prototype/S15.5.4_A1.js +++ b/test/built-ins/String/prototype/S15.5.4_A1.js @@ -15,8 +15,8 @@ delete String.prototype.toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String.prototype.toString() !== "[object "+"String"+"]") { - $ERROR('#1: delete String.prototype.toString; String.prototype.toString() === "[object "+"String"+"]". Actual: String.prototype.toString() ==='+String.prototype.toString() ); +if (String.prototype.toString() !== "[object " + "String" + "]") { + $ERROR('#1: delete String.prototype.toString; String.prototype.toString() === "[object "+"String"+"]". Actual: String.prototype.toString() ===' + String.prototype.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.4_A2.js b/test/built-ins/String/prototype/S15.5.4_A2.js index 227ed079c..b36246e30 100644 --- a/test/built-ins/String/prototype/S15.5.4_A2.js +++ b/test/built-ins/String/prototype/S15.5.4_A2.js @@ -9,8 +9,8 @@ description: Checking String.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String.prototype !="") { - $ERROR('#1: String.prototype =="". Actual: String.prototype =='+String.prototype ); +if (String.prototype != "") { + $ERROR('#1: String.prototype =="". Actual: String.prototype ==' + String.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.4_A3.js b/test/built-ins/String/prototype/S15.5.4_A3.js index c63a61dcf..bc5edd1c3 100644 --- a/test/built-ins/String/prototype/S15.5.4_A3.js +++ b/test/built-ins/String/prototype/S15.5.4_A3.js @@ -12,7 +12,7 @@ description: Checking Object.prototype.isPrototypeOf(String.prototype) ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(Object.prototype.isPrototypeOf(String.prototype))) { - $ERROR('#1: Object.prototype.isPrototypeOf(String.prototype) return true. Actual: '+Object.prototype.isPrototypeOf(String.prototype)); + $ERROR('#1: Object.prototype.isPrototypeOf(String.prototype) return true. Actual: ' + Object.prototype.isPrototypeOf(String.prototype)); } // ////////////////////////////////////////////////////////////////////////////// @@ -21,8 +21,8 @@ delete String.prototype.toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (String.prototype.toString() != "[object "+"String"+"]") { - $ERROR('#2: delete String.prototype.toString; String.prototype.toString() == "[object "+"String"+"]". Actual: String.prototype.toString() =='+String.prototype.toString() ); +if (String.prototype.toString() != "[object " + "String" + "]") { + $ERROR('#2: delete String.prototype.toString; String.prototype.toString() == "[object "+"String"+"]". Actual: String.prototype.toString() ==' + String.prototype.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js index a89daec9b..79c9d0ec5 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js @@ -7,7 +7,11 @@ es5id: 15.5.4.4_A1.1 description: Checking by using eval ---*/ -function __FACTORY(){this.toString = function(){ return "wizard";};}; +function __FACTORY() { + this.toString = function() { + return "wizard"; + }; +}; __FACTORY.prototype.charAt = String.prototype.charAt; @@ -15,8 +19,8 @@ var __instance = new __FACTORY; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__instance.charAt(eval("1"),true,null,{})!== "i") { - $ERROR('#1: __instance.charAt(eval("1"),true,null,{})=== "i". Actual: '+__instance.charAt(eval("1"),true,null,{})); - } +if (__instance.charAt(eval("1"), true, null, {}) !== "i") { + $ERROR('#1: __instance.charAt(eval("1"),true,null,{})=== "i". Actual: ' + __instance.charAt(eval("1"), true, null, {})); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js index ad3379461..21de5fc4c 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.charAt.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charAt.hasOwnProperty('length')); + $ERROR('#1: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.charAt.length; -verifyNotWritable(String.prototype.charAt, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.charAt, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charAt.length !== __obj) { - $ERROR('#2: __obj = String.prototype.charAt.length; String.prototype.charAt.length = function(){return "shifted";}; String.prototype.charAt.length === __obj. Actual: '+String.prototype.charAt.length ); + $ERROR('#2: __obj = String.prototype.charAt.length; String.prototype.charAt.length = function(){return "shifted";}; String.prototype.charAt.length === __obj. Actual: ' + String.prototype.charAt.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js index bb5b5cb34..2d376a2dc 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.charAt.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.charAt.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.charAt.hasOwnProperty("length") return true. Actual: '+String.prototype.charAt.hasOwnProperty("length")); + $ERROR('#1: String.prototype.charAt.hasOwnProperty("length") return true. Actual: ' + String.prototype.charAt.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.charAt.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charAt.length !== 1) { - $ERROR('#2: String.prototype.charAt.length === 1. Actual: '+String.prototype.charAt.length ); + $ERROR('#2: String.prototype.charAt.length === 1. Actual: ' + String.prototype.charAt.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js index d88cec69a..c47d9c5c5 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js @@ -13,8 +13,8 @@ __instance.charAt = String.prototype.charAt; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.charAt(false)+__instance.charAt(true) !== "42") { - $ERROR('#1: __instance = new Object(42); __instance.charAt = String.prototype.charAt; __instance = new Object(42); __instance.charAt = String.prototype.charAt; __instance.charAt(false)+__instance.charAt(true) === "42". Actual: '+__instance.charAt(false)+__instance.charAt(true) ); +if (__instance.charAt(false) + __instance.charAt(true) !== "42") { + $ERROR('#1: __instance = new Object(42); __instance.charAt = String.prototype.charAt; __instance = new Object(42); __instance.charAt = String.prototype.charAt; __instance.charAt(false)+__instance.charAt(true) === "42". Actual: ' + __instance.charAt(false) + __instance.charAt(true)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js index b92349adc..10c5d32b2 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js @@ -7,13 +7,17 @@ es5id: 15.5.4.4_A1_T10 description: Call charAt() function with object argument ---*/ -var __obj = {toString:function(){return 1;}} +var __obj = { + toString: function() { + return 1; + } +} var __str = "lego"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.charAt(__obj) !== "e") { - $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charAt(__obj) === "e". Actual: '+__str.charAt(__obj) ); - } +if (__str.charAt(__obj) !== "e") { + $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charAt(__obj) === "e". Actual: ' + __str.charAt(__obj)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js index 42ad5f81b..39930f228 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js @@ -13,8 +13,8 @@ __instance.charAt = String.prototype.charAt; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) !== "fal") { - $ERROR('#1: __instance = new Boolean; __instance.charAt = String.prototype.charAt; __instance = new Boolean; __instance.charAt = String.prototype.charAt; __instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) === "fal". Actual: '+__instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) ); +if (__instance.charAt(false) + __instance.charAt(true) + __instance.charAt(true + 1) !== "fal") { + $ERROR('#1: __instance = new Boolean; __instance.charAt = String.prototype.charAt; __instance = new Boolean; __instance.charAt = String.prototype.charAt; __instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) === "fal". Actual: ' + __instance.charAt(false) + __instance.charAt(true) + __instance.charAt(true + 1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js index 6296bb163..c69163edf 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js @@ -11,7 +11,7 @@ description: Call charAt() function without argument of string object //CHECK#1 //since ToInteger() evaluates to 0 charAt() evaluates to charAt(0) if ("lego".charAt() !== "l") { - $ERROR('#1: "lego".charAt() === "l". Actual: "lego".charAt() ==='+("lego".charAt()) ); + $ERROR('#1: "lego".charAt() === "l". Actual: "lego".charAt() ===' + ("lego".charAt())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js index f3d40ae7a..dcf127bde 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js @@ -10,8 +10,12 @@ description: Call charAt() function with null argument of function object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToInteger(null) evaluates to 0 charAt() evaluates to charAt(0) -if (function(){return "lego"}().charAt(null) !== "l") { - $ERROR('#1: function(){return "lego"}().charAt(null) === "l". Actual: function(){return "lego"}().charAt(null) ==='+function(){return "lego"}().charAt(null) ); +if (function() { + return "lego" + }().charAt(null) !== "l") { + $ERROR('#1: function(){return "lego"}().charAt(null) === "l". Actual: function(){return "lego"}().charAt(null) ===' + function() { + return "lego" + }().charAt(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js index 73d3ab390..e611efe88 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToInteger(undefined) evaluates to 0 charAt() evaluates to charAt(0) if (new String("lego").charAt(x) !== "l") { - $ERROR('#1: var x; new String("lego").charAt(x) === "l". Actual: new String("lego").charAt(x) ==='+new String("lego").charAt(x) ); + $ERROR('#1: var x; new String("lego").charAt(x) === "l". Actual: new String("lego").charAt(x) ===' + new String("lego").charAt(x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js index 067418236..ed0b9c4e5 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js @@ -11,7 +11,7 @@ description: Call charAt() function with undefined argument of string object //CHECK#1 //since ToInteger(undefined) evaluates to 0 charAt() evaluates to charAt(0) if (String("lego").charAt(undefined) !== "l") { - $ERROR('#1: String("lego").charAt(undefined) === "l". Actual: String("lego").charAt(undefined) ==='+String("lego").charAt(undefined) ); + $ERROR('#1: String("lego").charAt(undefined) === "l". Actual: String("lego").charAt(undefined) ===' + String("lego").charAt(undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js index ef0d83882..cb5f85ffc 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js @@ -11,7 +11,7 @@ description: Call charAt() function with void 0 argument of string object //CHECK#1 //since ToInteger(void 0) evaluates to 0 charAt() evaluates to charAt(0) if (String(42).charAt(void 0) !== "4") { - $ERROR('#1: String(42).charAt(void 0) === "4". Actual: String(42).charAt(void 0) ==='+String(42).charAt(void 0) ); + $ERROR('#1: String(42).charAt(void 0) === "4". Actual: String(42).charAt(void 0) ===' + String(42).charAt(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js index 6137d3e04..46f5c6d60 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js @@ -12,8 +12,8 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToInteger(undefined) evaluates to 0 charAt() evaluates to charAt(0) -if (new String(42).charAt(function(){}()) !== "4") { - $ERROR('#1: new String(42).charAt(function(){}()) === "4". Actual: new String(42).charAt(function(){}()) ==='+new String(42).charAt(function(){}()) ); +if (new String(42).charAt(function() {}()) !== "4") { + $ERROR('#1: new String(42).charAt(function(){}()) === "4". Actual: new String(42).charAt(function(){}()) ===' + new String(42).charAt(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js index 9616be531..b83c11f8d 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js @@ -9,7 +9,7 @@ es5id: 15.5.4.4_A2 description: Call charAt(pos) with negative pos ---*/ -function __FACTORY(){}; +function __FACTORY() {}; __FACTORY.prototype.charAt = String.prototype.charAt; @@ -18,7 +18,7 @@ var __instance = new __FACTORY; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.charAt(-1) !== "") { - $ERROR('#1: __instance.charAt(-1) === "". Actual: __instance.charAt(-1) ==='+__instance.charAt(-1) ); + $ERROR('#1: __instance.charAt(-1) === "". Actual: __instance.charAt(-1) ===' + __instance.charAt(-1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js index 185d7950d..daf222d95 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js @@ -14,7 +14,7 @@ var __instance = new String("ABC"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.charAt(3) !== "") { - $ERROR('#1: __instance = new String("ABC"); __instance.charAt(3) === "". Actual: __instance.charAt(3) ==='+__instance.charAt(3) ); + $ERROR('#1: __instance = new String("ABC"); __instance.charAt(3) === "". Actual: __instance.charAt(3) ===' + __instance.charAt(3)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js index 5216b646e..bc71de8a5 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js @@ -11,11 +11,11 @@ description: Compare results of x.charAt(pos) and x.substring(pos, pos+1) ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for(var i=0; i<6; i++) { - if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i+1)) { - $ERROR('#'+i+': "ABC\\u0041\\u0042\\u0043".charAt('+i+') === "\\u0041\\u0042\\u0043ABC".substring('+i+', '+(i+1)+'). Actual: "ABC\\u0041\\u0042\\u0043".charAt('+i+') ==='+("ABC\u0041\u0042\u0043".charAt(i)) ); - } +for (var i = 0; i < 6; i++) { + if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i + 1)) { + $ERROR('#' + i + ': "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') === "\\u0041\\u0042\\u0043ABC".substring(' + i + ', ' + (i + 1) + '). Actual: "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') ===' + ("ABC\u0041\u0042\u0043".charAt(i))); + } } - + // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js index 0771bc7f5..79556c519 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js @@ -13,11 +13,11 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for(var i=-2; i<0; i++) { - if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i+1)) { - $ERROR('#'+(i+2)+': "ABC\\u0041\\u0042\\u0043".charAt('+i+') === "\\u0041\\u0042\\u0043ABC".substring('+i+', '+(i+1)+'). Actual: "ABC\\u0041\\u0042\\u0043".charAt('+i+') ==='+("ABC\u0041\u0042\u0043".charAt(i)) ); - } +for (var i = -2; i < 0; i++) { + if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i + 1)) { + $ERROR('#' + (i + 2) + ': "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') === "\\u0041\\u0042\\u0043ABC".substring(' + i + ', ' + (i + 1) + '). Actual: "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') ===' + ("ABC\u0041\u0042\u0043".charAt(i))); + } } - + // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js index ab0ddbffa..3f3665233 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js @@ -13,11 +13,11 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for(var i=6; i<8; i++) { - if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i+1)) { - $ERROR('#'+(i-5)+': "ABC\\u0041\\u0042\\u0043".charAt('+i+') === "\\u0041\\u0042\\u0043ABC".substring('+i+', '+(i+1)+'). Actual: "ABC\\u0041\\u0042\\u0043".charAt('+i+') ==='+("ABC\u0041\u0042\u0043".charAt(i))); - } +for (var i = 6; i < 8; i++) { + if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i + 1)) { + $ERROR('#' + (i - 5) + ': "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') === "\\u0041\\u0042\\u0043ABC".substring(' + i + ', ' + (i + 1) + '). Actual: "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') ===' + ("ABC\u0041\u0042\u0043".charAt(i))); + } } - + // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js index 266fc6ae1..fadadc996 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js @@ -9,10 +9,12 @@ es5id: 15.5.4.4_A5 description: Change toString function, it trow exception, and call charAt() ---*/ -var __obj={ - valueOf:1, - toString:function(){throw 'intostring'}, - charAt:String.prototype.charAt +var __obj = { + valueOf: 1, + toString: function() { + throw 'intostring' + }, + charAt: String.prototype.charAt } ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +24,7 @@ try { $ERROR('#1: __obj={valueOf:1,toString:function(){throw \'intostring\'},charAt:String.prototype.charAt}; "var x = __obj.charAt()" lead to throwing exception'); } catch (e) { if (e !== 'intostring') { - $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ==='+e ); + $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ===' + e); } } // diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js index 1e3114e6a..a5a00a328 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.charAt.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.charAt.prototype !== undefined) { - $ERROR('#1: String.prototype.charAt.prototype === undefined. Actual: '+String.prototype.charAt.prototype ); + $ERROR('#1: String.prototype.charAt.prototype === undefined. Actual: ' + String.prototype.charAt.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js index 5afab205b..a43cc85f4 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js @@ -14,6 +14,6 @@ try { $ERROR('#1: __FACTORY = String.prototype.charAt; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e)); + $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js index 51dc2ca11..d18cf8044 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.charAt.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charAt.hasOwnProperty('length')); + $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -21,21 +21,21 @@ if (!(String.prototype.charAt.hasOwnProperty('length'))) { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (String.prototype.charAt.propertyIsEnumerable('length')) { - $ERROR('#1: String.prototype.charAt.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.charAt.propertyIsEnumerable('length')); + $ERROR('#1: String.prototype.charAt.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.charAt.propertyIsEnumerable('length')); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.charAt){ - if (p==="length") count++; +for (var p in String.prototype.charAt) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.charAt){if (p==="length") count++;}; count === 0. Actual: count ==='+count ); + $ERROR('#2: count=0; for (p in String.prototype.charAt){if (p==="length") count++;}; count === 0. Actual: count ===' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js index 9e3d36bee..6414fbe44 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.charAt.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charAt.hasOwnProperty('length')); + $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.charAt.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charAt.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.charAt.length; String.prototype.charAt.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.charAt.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.charAt.length; String.prototype.charAt.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.charAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js index 24ac13274..ea9c7dac9 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js @@ -7,7 +7,11 @@ es5id: 15.5.4.5_A1.1 description: Checking by using eval ---*/ -function __FACTORY(){this.toString = function(){ return "wizard";};}; +function __FACTORY() { + this.toString = function() { + return "wizard"; + }; +}; __FACTORY.prototype.charCodeAt = String.prototype.charCodeAt; @@ -15,8 +19,8 @@ var __instance = new __FACTORY; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__instance.charCodeAt(eval("1"),true,null,{})!== 0x69) { - $ERROR('#1: __instance.charCodeAt(eval("1"),true,null,{})=== 0x69. Actual: __instance.charCodeAt(eval("1"),true,null,{})==='+__instance.charCodeAt(eval("1"),true,null,{})); - } +if (__instance.charCodeAt(eval("1"), true, null, {}) !== 0x69) { + $ERROR('#1: __instance.charCodeAt(eval("1"),true,null,{})=== 0x69. Actual: __instance.charCodeAt(eval("1"),true,null,{})===' + __instance.charCodeAt(eval("1"), true, null, {})); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js index a22bf9d0e..39c531e38 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length')); + $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.charCodeAt.length; -verifyNotWritable(String.prototype.charCodeAt, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.charCodeAt, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charCodeAt.length !== __obj) { - $ERROR('#2: __obj = String.prototype.charCodeAt.length; String.prototype.charCodeAt.length = function(){return "shifted";}; String.prototype.charCodeAt.length === __obj. Actual: '+String.prototype.charCodeAt.length ); + $ERROR('#2: __obj = String.prototype.charCodeAt.length; String.prototype.charCodeAt.length = function(){return "shifted";}; String.prototype.charCodeAt.length === __obj. Actual: ' + String.prototype.charCodeAt.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js index 1137dff67..f35538135 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.charCodeAt.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.charCodeAt.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty("length") return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty("length")); + $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty("length") return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.charCodeAt.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charCodeAt.length !== 1) { - $ERROR('#2: String.prototype.charCodeAt.length === 1. Actual: '+String.prototype.charCodeAt.length ); + $ERROR('#2: String.prototype.charCodeAt.length === 1. Actual: ' + String.prototype.charCodeAt.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js index 5cd5570ea..8c31caede 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T1.js @@ -13,8 +13,8 @@ __instance.charCodeAt = String.prototype.charCodeAt; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ((__instance.charCodeAt(false) !== 52)||(__instance.charCodeAt(true) !== 50)) { - $ERROR('#1: __instance = new Object(42); __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(false) === 52 and __instance.charCodeAt(true) === 50. Actual: __instance.charCodeAt(false) ==='+__instance.charCodeAt(false)+' and __instance.charCodeAt(true) ==='+__instance.charCodeAt(true) ); +if ((__instance.charCodeAt(false) !== 52) || (__instance.charCodeAt(true) !== 50)) { + $ERROR('#1: __instance = new Object(42); __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(false) === 52 and __instance.charCodeAt(true) === 50. Actual: __instance.charCodeAt(false) ===' + __instance.charCodeAt(false) + ' and __instance.charCodeAt(true) ===' + __instance.charCodeAt(true)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js index 74b3895c5..c1391358e 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js @@ -7,13 +7,17 @@ es5id: 15.5.4.5_A1_T10 description: Call charCodeAt() function with object argument ---*/ -var __obj = {toString:function(){return 1;}} +var __obj = { + toString: function() { + return 1; + } +} var __str = "lego"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.charCodeAt(__obj) !== 0x65) { - $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charCodeAt(__obj) === 0x65. Actual: '+__str.charCodeAt(__obj) ); - } +if (__str.charCodeAt(__obj) !== 0x65) { + $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charCodeAt(__obj) === 0x65. Actual: ' + __str.charCodeAt(__obj)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js index 547304029..1013fba88 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js @@ -13,24 +13,24 @@ __instance.charCodeAt = String.prototype.charCodeAt; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.charCodeAt(false)!==0x66) { - $ERROR('#1: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(false)===0x66. Actual: '+__instance.charCodeAt(false)); +if (__instance.charCodeAt(false) !== 0x66) { + $ERROR('#1: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(false)===0x66. Actual: ' + __instance.charCodeAt(false)); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__instance.charCodeAt(true)!==0x61) { - $ERROR('#2: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(true)===0x61. Actual: '+__instance.charCodeAt(true)); +if (__instance.charCodeAt(true) !== 0x61) { + $ERROR('#2: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(true)===0x61. Actual: ' + __instance.charCodeAt(true)); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__instance.charCodeAt(true+1) !== 0x6C) { - $ERROR('#3: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(true+1) === 0x6C. Actual: '+__instance.charCodeAt(true+1) ); +if (__instance.charCodeAt(true + 1) !== 0x6C) { + $ERROR('#3: __instance = new Boolean; __instance.charCodeAt = String.prototype.charCodeAt; __instance.charCodeAt(true+1) === 0x6C. Actual: ' + __instance.charCodeAt(true + 1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js index 8b0b253dc..05ee919d8 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T4.js @@ -11,7 +11,7 @@ description: Call charCodeAt() function without argument of string object //CHECK#1 //since Number() evaluates to 0 charCodeAt() evaluates to charCodeAt(0) if ("smart".charCodeAt() !== 0x73) { - $ERROR('#1: "smart".charCodeAt() === 0x73. Actual: "smart".charCodeAt() ==='+("smart".charCodeAt()) ); + $ERROR('#1: "smart".charCodeAt() === 0x73. Actual: "smart".charCodeAt() ===' + ("smart".charCodeAt())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js index a80b2b0ca..b3535ed20 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js @@ -10,8 +10,12 @@ description: Call charCodeAt() function with null argument of function object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToInteger(null) evaluates to 0 charCodeAt() evaluates to charCodeAt(0) -if (function(){return "lego"}().charCodeAt(null) !== 0x6C) { - $ERROR('#1: function(){return "lego"}().charCodeAt(null) === 0x6C. Actual: '+function(){return "lego"}().charCodeAt(null) ); +if (function() { + return "lego" + }().charCodeAt(null) !== 0x6C) { + $ERROR('#1: function(){return "lego"}().charCodeAt(null) === 0x6C. Actual: ' + function() { + return "lego" + }().charCodeAt(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js index 3ddf8b0e7..d09356f16 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToInteger(undefined) evaluates to 0 charCodeAt() evaluates to charCodeAt(0) if (new String("lego").charCodeAt(x) !== 0x6C) { - $ERROR('#1: var x; new String("lego").charCodeAt(x) === 0x6C. Actual: new String("lego").charCodeAt(x) ==='+new String("lego").charCodeAt(x) ); + $ERROR('#1: var x; new String("lego").charCodeAt(x) === 0x6C. Actual: new String("lego").charCodeAt(x) ===' + new String("lego").charCodeAt(x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js index a59910356..e8f6d6410 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T7.js @@ -11,7 +11,7 @@ description: Call charCodeAt() function with undefined argument of string object //CHECK#1 //since ToInteger(undefined) evaluates to 0 charCodeAt() evaluates to charCodeAt(0) if (String("lego").charCodeAt(undefined) !== 0x6C) { - $ERROR('#1: String("lego").charCodeAt(undefined) === 0x6C. Actual: String("lego").charCodeAt(undefined) ==='+String("lego").charCodeAt(undefined) ); + $ERROR('#1: String("lego").charCodeAt(undefined) === 0x6C. Actual: String("lego").charCodeAt(undefined) ===' + String("lego").charCodeAt(undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js index 8a6b06344..860c1d4ec 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T8.js @@ -11,7 +11,7 @@ description: Call charCodeAt() function with void 0 argument of string object //CHECK#1 //since ToInteger(void 0) evaluates to 0 charCodeAt() evaluates to charCodeAt(0) if (String(42).charCodeAt(void 0) !== 0x34) { - $ERROR('#1: String(42).charCodeAt(void 0) === 0x34. Actual: String(42).charCodeAt(void 0) ==='+String(42).charCodeAt(void 0) ); + $ERROR('#1: String(42).charCodeAt(void 0) === 0x34. Actual: String(42).charCodeAt(void 0) ===' + String(42).charCodeAt(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js index 9a336549c..e1f00f767 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T9.js @@ -12,8 +12,8 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToInteger(undefined) evaluates to 0 charCodeAt() evaluates to charCodeAt(0) -if (new String(42).charCodeAt(function(){}()) !== 0x34) { - $ERROR('#1: new String(42).charCodeAt(function(){}()) === 0x34. Actual: new String(42).charCodeAt(function(){}()) ==='+new String(42).charCodeAt(function(){}()) ); +if (new String(42).charCodeAt(function() {}()) !== 0x34) { + $ERROR('#1: new String(42).charCodeAt(function(){}()) === 0x34. Actual: new String(42).charCodeAt(function(){}()) ===' + new String(42).charCodeAt(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js index 290fad88b..3c06c1b08 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A2.js @@ -9,7 +9,7 @@ es5id: 15.5.4.5_A2 description: Call charCodeAt(pos) with negative pos ---*/ -function __FACTORY(){}; +function __FACTORY() {}; __FACTORY.prototype.charCodeAt = String.prototype.charCodeAt; diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js index 29301ca72..c46f0f2b8 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js @@ -9,10 +9,12 @@ es5id: 15.5.4.5_A4 description: Change toString function, it trow exception, and call charCodeAt() ---*/ -var __obj={ - valueOf:1, - toString:function(){throw 'intostring'}, - charCodeAt:String.prototype.charCodeAt +var __obj = { + valueOf: 1, + toString: function() { + throw 'intostring' + }, + charCodeAt: String.prototype.charCodeAt } ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +24,7 @@ try { $ERROR('#1: "var x = __obj.charCodeAt()" lead to throwing exception'); } catch (e) { if (e !== 'intostring') { - $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ==='+e ); + $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ===' + e); } } // diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js index 4098f04d2..97e0f9b83 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.charCodeAt.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.charCodeAt.prototype !== undefined) { - $ERROR('#1: String.prototype.charCodeAt.prototype === undefined. Actual: '+String.prototype.charCodeAt.prototype ); + $ERROR('#1: String.prototype.charCodeAt.prototype === undefined. Actual: ' + String.prototype.charCodeAt.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js index 23aa00ba8..d21d56d81 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A7.js @@ -13,5 +13,5 @@ try { var __instance = new __FACTORY; $ERROR('#1: __FACTORY = String.prototype.charCodeAt; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { - if (e instanceof Test262Error) throw e; + if (e instanceof Test262Error) throw e; } diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A8.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A8.js index e70cadbd2..6c3fe2a90 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A8.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length')); + $ERROR('#0: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -21,21 +21,21 @@ if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (String.prototype.charCodeAt.propertyIsEnumerable('length')) { - $ERROR('#1: String.prototype.charCodeAt.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.charCodeAt.propertyIsEnumerable('length')); + $ERROR('#1: String.prototype.charCodeAt.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.charCodeAt.propertyIsEnumerable('length')); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.charCodeAt){ - if (p==="length") count++; +for (var p in String.prototype.charCodeAt) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.charCodeAt){if (p==="length") count++;} count === 0. Actual: count ==='+count ); + $ERROR('#2: count=0; for (p in String.prototype.charCodeAt){if (p==="length") count++;} count === 0. Actual: count ===' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js index 6c39315e2..b09375f23 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length')); + $ERROR('#0: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.charCodeAt.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charCodeAt.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.charCodeAt.length; String.prototype.charCodeAt.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.charCodeAt.length; String.prototype.charCodeAt.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js index 00258a5e5..599b763ab 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.concat.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length')); + $ERROR('#1: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.concat.length; -verifyNotWritable(String.prototype.concat, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.concat, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.concat.length !== __obj) { - $ERROR('#2: __obj = String.prototype.concat.length; String.prototype.concat.length = function(){return "shifted";}; String.prototype.concat.length === __obj. Actual: '+String.prototype.concat.length ); + $ERROR('#2: __obj = String.prototype.concat.length; String.prototype.concat.length = function(){return "shifted";}; String.prototype.concat.length === __obj. Actual: ' + String.prototype.concat.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js index 69016d99a..1896234ed 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.concat.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.concat.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.concat.hasOwnProperty("length") return true. Actual: '+String.prototype.concat.hasOwnProperty("length")); + $ERROR('#1: String.prototype.concat.hasOwnProperty("length") return true. Actual: ' + String.prototype.concat.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.concat.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.concat.length !== 1) { - $ERROR('#2: String.prototype.concat.length === 1. Actual: '+String.prototype.concat.length ); + $ERROR('#2: String.prototype.concat.length === 1. Actual: ' + String.prototype.concat.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js index 647cb30b5..bec80ca92 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js @@ -13,8 +13,8 @@ __instance.concat = String.prototype.concat; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.concat(false,true) !== "42falsetrue") { - $ERROR('#1: __instance = new Object(42); __instance.concat = String.prototype.concat; __instance.concat(false,true) === "42falsetrue". Actual: '+__instance.concat(false,true) ); +if (__instance.concat(false, true) !== "42falsetrue") { + $ERROR('#1: __instance = new Object(42); __instance.concat = String.prototype.concat; __instance.concat(false,true) === "42falsetrue". Actual: ' + __instance.concat(false, true)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js index 006d0b65d..fa908ae16 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js @@ -7,19 +7,34 @@ es5id: 15.5.4.6_A1_T10 description: Call concat([,[...]]) function with object arguments ---*/ -var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}} -var __obj2 = {toString:function(){return true;}} -var __obj3 = {toString:function(){return 42;}} +var __obj = { + toString: function() { + return "\u0041"; + }, + valueOf: function() { + return "_\u0041_"; + } +} +var __obj2 = { + toString: function() { + return true; + } +} +var __obj3 = { + toString: function() { + return 42; + } +} var __str = "lego"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.concat(__obj) !== "legoA") { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __str = "lego"; __str.concat(__obj) === "legoA". Actual: '+__str.concat(__obj) ); - } - if (__str.concat(__obj, __obj2, __obj3, x) !== "legoAtrue42undefined") { - $ERROR('#2: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __obj2 = {toString:function(){return true;}}; var __obj3 = {toString:function(){return 42;}}; var __str = "lego"; __str.concat(__obj, __obj2, __obj3, x) === "legoAtrue42undefined". Actual: '+__str.concat(__obj, __obj2, __obj3, x) ); - } +if (__str.concat(__obj) !== "legoA") { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __str = "lego"; __str.concat(__obj) === "legoA". Actual: ' + __str.concat(__obj)); +} +if (__str.concat(__obj, __obj2, __obj3, x) !== "legoAtrue42undefined") { + $ERROR('#2: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __obj2 = {toString:function(){return true;}}; var __obj3 = {toString:function(){return 42;}}; var __str = "lego"; __str.concat(__obj, __obj2, __obj3, x) === "legoAtrue42undefined". Actual: ' + __str.concat(__obj, __obj2, __obj3, x)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js index 974b29823..1b2b1a799 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js @@ -15,8 +15,8 @@ __instance.concat = String.prototype.concat; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.concat("\u0041",true,true+1) !== "falseAtrue2") { - $ERROR('#1: __instance = new Boolean; __instance.concat = String.prototype.concat; __instance.concat("\\u0041",true,true+1) === "falseAtrue2". Actual: '+__instance.concat("\u0041",true,true+1) ); +if (__instance.concat("\u0041", true, true + 1) !== "falseAtrue2") { + $ERROR('#1: __instance = new Boolean; __instance.concat = String.prototype.concat; __instance.concat("\\u0041",true,true+1) === "falseAtrue2". Actual: ' + __instance.concat("\u0041", true, true + 1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js index f243a077d..13b2e3793 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js @@ -11,7 +11,7 @@ description: Call concat([,[...]]) function without argument of string object //CHECK#1 //since ToString() evaluates to "" concat() evaluates to concat("") if ("lego".concat() !== "lego") { - $ERROR('#1: "lego".concat() === "lego". Actual: '+("lego".concat()) ); + $ERROR('#1: "lego".concat() === "lego". Actual: ' + ("lego".concat())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js index 7bad9d2e0..a47b10436 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js @@ -12,8 +12,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" concat(null) evaluates to concat("null") -if (function(){return "lego"}().concat(null) !== "legonull") { - $ERROR('#1: function(){return "lego"}().concat(null) === "legonull". Actual: '+function(){return "lego"}().concat(null) ); +if (function() { + return "lego" + }().concat(null) !== "legonull") { + $ERROR('#1: function(){return "lego"}().concat(null) === "legonull". Actual: ' + function() { + return "lego" + }().concat(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js index e633a6afa..5d7824d60 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined") if (new String("lego").concat(x) !== "legoundefined") { - $ERROR('#1: var x; new String("lego").concat(x) === "legoundefined". Actual: '+new String("lego").concat(x) ); + $ERROR('#1: var x; new String("lego").concat(x) === "legoundefined". Actual: ' + new String("lego").concat(x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js index 10e915663..09f682933 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined") if (String("lego").concat(undefined) !== "legoundefined") { - $ERROR('#1: String("lego").concat(undefined) === "legoundefined". Actual: '+String("lego").concat(undefined) ); + $ERROR('#1: String("lego").concat(undefined) === "legoundefined". Actual: ' + String("lego").concat(undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js index 4ededc053..297fe08ae 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(void 0) evaluates to "undefined" concat(void 0) evaluates to concat("undefined") if (String(42).concat(void 0) !== "42undefined") { - $ERROR('#1: String(42).concat(void 0) === "42undefined". Actual: '+String(42).concat(void 0) ); + $ERROR('#1: String(42).concat(void 0) === "42undefined". Actual: ' + String(42).concat(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js index 08d70fd86..bfd2bac54 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js @@ -12,8 +12,8 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined") -if (new String(42).concat(function(){}()) !== "42undefined") { - $ERROR('#1: new String(42).concat(function(){}()) === "42undefined". Actual: '+new String(42).concat(function(){}()) ); +if (new String(42).concat(function() {}()) !== "42undefined") { + $ERROR('#1: new String(42).concat(function(){}()) === "42undefined". Actual: ' + new String(42).concat(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js index b16030c88..d9acfba8c 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js @@ -14,15 +14,15 @@ __instance.concat = String.prototype.concat; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.concat( -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF -) !== "001234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415") { + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF + ) !== "001234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415") { $ERROR('#1: Call concat([,[...]]) function with 128 arguments does not lead to throwing any errors'); } // diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js index 3b2301578..0c477fd9e 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js @@ -14,7 +14,7 @@ __instance.concat("two"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance != "one") { - $ERROR('#1: __instance = new String("one"); __instance.concat("two"); __instance = new String("one"); __instance.concat("two"); __instance == "one". Actual: '+__instance); + $ERROR('#1: __instance = new String("one"); __instance.concat("two"); __instance = new String("one"); __instance.concat("two"); __instance == "one". Actual: ' + __instance); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js index 8d2167924..4fb246b17 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js @@ -9,14 +9,18 @@ es5id: 15.5.4.6_A4_T1 description: Override toString function ---*/ -var __instance = {toString:function(){return "one"}}; +var __instance = { + toString: function() { + return "one" + } +}; __instance.concat = String.prototype.concat; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.concat("two",x) !== "onetwoundefined") { - $ERROR('#1: var x; __instance = {toString:function(){return "one"}}; __instance.concat = String.prototype.concat; __instance.concat("two",x) === "onetwoundefined". Actual: '+__instance.concat("two",x) ); +if (__instance.concat("two", x) !== "onetwoundefined") { + $ERROR('#1: var x; __instance = {toString:function(){return "one"}}; __instance.concat = String.prototype.concat; __instance.concat("two",x) === "onetwoundefined". Actual: ' + __instance.concat("two", x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js index 1e326035f..d743b9a45 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js @@ -9,21 +9,29 @@ es5id: 15.5.4.6_A4_T2 description: Override toString function onto function, that throw exception ---*/ -var __instance = {toString:function(){throw "intostring";}}; -var __obj = {toString:function(){throw "infirstarg";}}; +var __instance = { + toString: function() { + throw "intostring"; + } +}; +var __obj = { + toString: function() { + throw "infirstarg"; + } +}; __instance.concat = String.prototype.concat; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - String.prototype.concat.call(__instance,__obj, notexist); + String.prototype.concat.call(__instance, __obj, notexist); $ERROR('#1: "String.prototype.concat.call(__instance,__obj, notexist)" lead to throwing exception'); } catch (e) { if (e !== "intostring") { - $ERROR('#1: e === "intostring". Actual: '+e ); + $ERROR('#1: e === "intostring". Actual: ' + e); } -} +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js index 4da0d1454..f52f1a31e 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.concat.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.concat.prototype !== undefined) { - $ERROR('#1: String.prototype.concat.prototype === undefined. Actual: '+String.prototype.concat.prototype ); + $ERROR('#1: String.prototype.concat.prototype === undefined. Actual: ' + String.prototype.concat.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js index bfb422a43..9ff301ab0 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js @@ -13,5 +13,5 @@ try { var __instance = new __FACTORY; $ERROR('#1: __FACTORY = String.prototype.concat; "__instance = new __FACTORY" lead throwing exception'); } catch (e) { - if (e instanceof Test262Error) throw e; + if (e instanceof Test262Error) throw e; } diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js index 51e74575b..c8613d934 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.concat.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length')); + $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -21,7 +21,7 @@ if (!(String.prototype.concat.hasOwnProperty('length'))) { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (String.prototype.concat.propertyIsEnumerable('length')) { - $ERROR('#1: String.prototype.concat.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.concat.propertyIsEnumerable('length')); + $ERROR('#1: String.prototype.concat.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.concat.propertyIsEnumerable('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,12 +30,12 @@ if (String.prototype.concat.propertyIsEnumerable('length')) { // CHECK#2 var count = 0; -for (var p in String.prototype.concat){ - if (p==="length") count++; +for (var p in String.prototype.concat) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count = 0; for (p in String.prototype.concat){ if (p==="length") count++;}; count === 0. Actual: '+count); + $ERROR('#2: count = 0; for (p in String.prototype.concat){ if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js index dbb079290..6e92461a8 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.concat.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length')); + $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.concat.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.concat.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.concat.length; String.prototype.concat.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.concat.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.concat.length; String.prototype.concat.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.concat.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js b/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js index 3650972ed..1081b4e59 100644 --- a/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js +++ b/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js @@ -12,7 +12,7 @@ description: Checking String.prototype.constructor ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.constructor !== String) { - $ERROR('#1: String.prototype.constructor === String. Actual: String.prototype.constructor ==='+String.prototype.constructor ); + $ERROR('#1: String.prototype.constructor === String. Actual: String.prototype.constructor ===' + String.prototype.constructor); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js b/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js index e3bf5290a..fbceb8735 100644 --- a/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js +++ b/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js @@ -15,8 +15,8 @@ var __instance = new __constr("choosing one"); ////////////////////////////////////////////////////////////////////////////// // CHECK#0 -if (__instance !="choosing one") { - $ERROR('#0: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); __instance =="choosing one". Actual: __instance =='+__instance ); +if (__instance != "choosing one") { + $ERROR('#0: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); __instance =="choosing one". Actual: __instance ==' + __instance); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (__instance !="choosing one") { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (__instance.constructor !== String) { - $ERROR('#1: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); __instance.constructor === String. Actual: __instance.constructor ==='+__instance.constructor ); + $ERROR('#1: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); __instance.constructor === String. Actual: __instance.constructor ===' + __instance.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,19 +32,19 @@ if (__instance.constructor !== String) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 if (!(String.prototype.isPrototypeOf(__instance))) { - $ERROR('#2: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); String.prototype.isPrototypeOf(__instance) return true. Actual: '+String.prototype.isPrototypeOf(__instance)); + $ERROR('#2: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); String.prototype.isPrototypeOf(__instance) return true. Actual: ' + String.prototype.isPrototypeOf(__instance)); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // CHECK#3 -var __to_string_result = '[object '+ 'String' +']'; +var __to_string_result = '[object ' + 'String' + ']'; delete String.prototype.toString; if (__instance.toString() !== __to_string_result) { - $ERROR('#3: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); delete String.prototype.toString; __instance.toString() === __to_string_result. Actual: __instance.toString() ==='+__instance.toString()+' __to_string_result ==='+__to_string_result ); + $ERROR('#3: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); delete String.prototype.toString; __instance.toString() === __to_string_result. Actual: __instance.toString() ===' + __instance.toString() + ' __to_string_result ===' + __to_string_result); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js index a5725856e..7ce937b59 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.indexOf.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.indexOf.hasOwnProperty('length')); + $ERROR('#1: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.indexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.indexOf.length; -verifyNotWritable(String.prototype.indexOf, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.indexOf, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.indexOf.length !== __obj) { - $ERROR('#2: __obj = String.prototype.indexOf.length; String.prototype.indexOf.length = function(){return "shifted";}; String.prototype.indexOf.length === __obj. Actual: '+String.prototype.indexOf.length ); + $ERROR('#2: __obj = String.prototype.indexOf.length; String.prototype.indexOf.length = function(){return "shifted";}; String.prototype.indexOf.length === __obj. Actual: ' + String.prototype.indexOf.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js index db610fbe1..173f1b556 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.indexOf.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.indexOf.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.indexOf.hasOwnProperty("length") return true. Actual: '+String.prototype.indexOf.hasOwnProperty("length")); + $ERROR('#1: String.prototype.indexOf.hasOwnProperty("length") return true. Actual: ' + String.prototype.indexOf.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.indexOf.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.indexOf.length !== 1) { - $ERROR('#2: String.prototype.indexOf.length === 1. Actual: '+String.prototype.indexOf.length ); + $ERROR('#2: String.prototype.indexOf.length === 1. Actual: ' + String.prototype.indexOf.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js index f3bc0fb9b..ef3079ba4 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js @@ -14,7 +14,7 @@ __instance.indexOf = String.prototype.indexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.indexOf(true, false) !== 0) { - $ERROR('#1: __instance = new Object(true); __instance.indexOf = String.prototype.indexOf; __instance.indexOf(true, false) === 0. Actual: '+__instance.indexOf(true, false) ); + $ERROR('#1: __instance = new Object(true); __instance.indexOf = String.prototype.indexOf; __instance.indexOf(true, false) === 0. Actual: ' + __instance.indexOf(true, false)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js index 16c1d275b..52c005605 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js @@ -7,15 +7,23 @@ es5id: 15.5.4.7_A1_T10 description: Call indexOf(searchString, position) function with object arguments ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return true;}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return true; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.indexOf(__obj, __obj2) !== 3) { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABB\u0041BABAB"; __str.indexOf(__obj, __obj2) === 3. Actual: '+__str.indexOf(__obj, __obj2) ); - } +if (__str.indexOf(__obj, __obj2) !== 3) { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABB\u0041BABAB"; __str.indexOf(__obj, __obj2) === 3. Actual: ' + __str.indexOf(__obj, __obj2)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js index b641ced38..145b6519c 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js @@ -7,12 +7,12 @@ es5id: 15.5.4.7_A1_T12 description: Argument is string, and instance is array of strings ---*/ -var __instance = new Array('new','zoo','revue'); +var __instance = new Array('new', 'zoo', 'revue'); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.indexOf('new') !== 0) { - $ERROR('#1: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.indexOf(\'new\') === 0. Actual: '+__instance.indexOf('new') ); + $ERROR('#1: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.indexOf(\'new\') === 0. Actual: ' + __instance.indexOf('new')); } // ////////////////////////////////////////////////////////////////////////////// @@ -20,7 +20,7 @@ if (__instance.indexOf('new') !== 0) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__instance.indexOf('zoo') !== 1) { - $ERROR('#2: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.indexOf(\'zoo\') === 1. Actual: '+__instance.indexOf('zoo') ); + $ERROR('#2: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.indexOf(\'zoo\') === 1. Actual: ' + __instance.indexOf('zoo')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js index c20692bb2..15645c345 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js @@ -15,8 +15,12 @@ __instance.indexOf = String.prototype.indexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.indexOf("A"!=="\u0041", function(){return 0;}(),null) !== 0) { - $ERROR('#1: __instance = new Boolean; __instance.indexOf = String.prototype.indexOf; __instance.indexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: '+__instance.indexOf("A"!=="\u0041", function(){return 0;}(),null) ); +if (__instance.indexOf("A" !== "\u0041", function() { + return 0; + }(), null) !== 0) { + $ERROR('#1: __instance = new Boolean; __instance.indexOf = String.prototype.indexOf; __instance.indexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: ' + __instance.indexOf("A" !== "\u0041", function() { + return 0; + }(), null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js index d9f26b932..fc998a006 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString() evaluates to "" indexOf() evaluates to indexOf("",0) if ("".indexOf() !== -1) { - $ERROR('#1: "".indexOf() === -1. Actual: '+("".indexOf()) ); + $ERROR('#1: "".indexOf() === -1. Actual: ' + ("".indexOf())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js index 61d8e7037..0a189320d 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js @@ -12,8 +12,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" indexOf(null) evaluates to indexOf("",0) -if (function(){return "gnulluna"}().indexOf(null) !== 1) { - $ERROR('#1: function(){return "gnulluna"}().indexOf(null) === 1. Actual: '+function(){return "gnulluna"}().indexOf(null) ); +if (function() { + return "gnulluna" + }().indexOf(null) !== 1) { + $ERROR('#1: function(){return "gnulluna"}().indexOf(null) === 1. Actual: ' + function() { + return "gnulluna" + }().indexOf(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js index 4279d8f7e..8e7b5e3e4 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(undefined) evaluates to "" indexOf(undefined) evaluates to indexOf("",0) if (new String("undefined").indexOf(x) !== 0) { - $ERROR('#1: var x; new String("undefined").indexOf(x) === 0. Actual: '+new String("undefined").indexOf(x) ); + $ERROR('#1: var x; new String("undefined").indexOf(x) === 0. Actual: ' + new String("undefined").indexOf(x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js index 485239896..4eee2242f 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(undefined) evaluates to "undefined" indexOf(undefined) evaluates to indexOf("undefined",0) if (String("undefined").indexOf(undefined) !== 0) { - $ERROR('#1: String("undefined").indexOf(undefined) === 0. Actual: '+String("undefined").indexOf(undefined) ); + $ERROR('#1: String("undefined").indexOf(undefined) === 0. Actual: ' + String("undefined").indexOf(undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js index 1232528e7..eae58fcbb 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js @@ -9,13 +9,15 @@ description: > of string object ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(void 0) evaluates to "undefined" indexOf(void 0) evaluates to indexOf("undefined") if (String(__obj).indexOf(void 0) !== 0) { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).indexOf(void 0) === 0. Actual: '+String(__obj).indexOf(void 0) ); + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).indexOf(void 0) === 0. Actual: ' + String(__obj).indexOf(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js index 69dd4c039..49f56f4d8 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js @@ -10,15 +10,15 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(undefined) evaluates to "undefined" indexOf(undefined) evaluates to indexOf("undefined") -if (new String(__obj).indexOf(function(){}()) !== 0) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).indexOf(function(){}()) === 0. Actual: '+new String(__obj).indexOf(function(){}()) ); +if (new String(__obj).indexOf(function() {}()) !== 0) { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).indexOf(function(){}()) === 0. Actual: ' + new String(__obj).indexOf(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js index a2e046ce2..62aecd071 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js @@ -9,8 +9,8 @@ description: Call "abcd".indexOf("abcdab") and check result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("abcd".indexOf("abcdab")!==-1) { - $ERROR('#1: "abcd".indexOf("abcdab")===-1. Actual: '+("abcd".indexOf("abcdab"))); +if ("abcd".indexOf("abcdab") !== -1) { + $ERROR('#1: "abcd".indexOf("abcdab")===-1. Actual: ' + ("abcd".indexOf("abcdab"))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js index f342413d7..58362dbdd 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js @@ -9,8 +9,8 @@ description: Call "abcd".indexOf("abcdab",0) and check result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("abcd".indexOf("abcdab",0)!==-1) { - $ERROR('#1: "abcd".indexOf("abcdab",0)===-1. Actual: '+("abcd".indexOf("abcdab",0))); +if ("abcd".indexOf("abcdab", 0) !== -1) { + $ERROR('#1: "abcd".indexOf("abcdab",0)===-1. Actual: ' + ("abcd".indexOf("abcdab", 0))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js index f7e1100b8..cff1c33cb 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js @@ -9,8 +9,8 @@ description: Call "abcd".indexOf("abcdab",99) and check result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("abcd".indexOf("abcdab",99)!==-1) { - $ERROR('#1: "abcd".indexOf("abcdab",99)===-1. Actual: '+("abcd".indexOf("abcdab",99))); +if ("abcd".indexOf("abcdab", 99) !== -1) { + $ERROR('#1: "abcd".indexOf("abcdab",99)===-1. Actual: ' + ("abcd".indexOf("abcdab", 99))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js index bf82c55e6..f39afbeec 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js @@ -9,8 +9,8 @@ description: Call "abcd".indexOf("abcdab",NaN) and check result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("abcd".indexOf("abcdab",NaN)!==-1) { - $ERROR('#1: "abcd".indexOf("abcdab",NaN)===-1. Actual: '+("abcd".indexOf("abcdab",NaN))); +if ("abcd".indexOf("abcdab", NaN) !== -1) { + $ERROR('#1: "abcd".indexOf("abcdab",NaN)===-1. Actual: ' + ("abcd".indexOf("abcdab", NaN))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js index 3e59d66f6..133abbee3 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js @@ -11,8 +11,8 @@ description: Call "$$abcdabcd".indexOf("ab",NaN) and check result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("$$abcdabcd".indexOf("ab",NaN)!==2) { - $ERROR('#1: "$$abcdabcd".indexOf("ab",NaN)===2. Actual: '+("$$abcdabcd".indexOf("ab",NaN))); +if ("$$abcdabcd".indexOf("ab", NaN) !== 2) { + $ERROR('#1: "$$abcdabcd".indexOf("ab",NaN)===2. Actual: ' + ("$$abcdabcd".indexOf("ab", NaN))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js index 359661a10..b5921b250 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js @@ -11,8 +11,8 @@ description: Call "$$abcdabcd".indexOf("ab",eval("\"-99\"")) and check result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("$$abcdabcd".indexOf("ab",eval("\"-99\""))!==2) { - $ERROR('#1: "$$abcdabcd".indexOf("ab",eval("\\"-99\\""))===2. Actual: '+("$$abcdabcd".indexOf("ab",eval("\"-99\"")))); +if ("$$abcdabcd".indexOf("ab", eval("\"-99\"")) !== 2) { + $ERROR('#1: "$$abcdabcd".indexOf("ab",eval("\\"-99\\""))===2. Actual: ' + ("$$abcdabcd".indexOf("ab", eval("\"-99\"")))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js index 9a17c22de..192b7edc9 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js @@ -13,8 +13,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("$$abcdabcd".indexOf("ab", function(){return -Infinity;}())!==2) { - $ERROR('#1: "$$abcdabcd".indexOf("ab", function(){return -Infinity;}())===2. Actual: '+("$$abcdabcd".indexOf("ab", function(){return -Infinity;}()))); +if ("$$abcdabcd".indexOf("ab", function() { + return -Infinity; + }()) !== 2) { + $ERROR('#1: "$$abcdabcd".indexOf("ab", function(){return -Infinity;}())===2. Actual: ' + ("$$abcdabcd".indexOf("ab", function() { + return -Infinity; + }()))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js index ae24f56f0..eca493a17 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js @@ -9,19 +9,27 @@ es5id: 15.5.4.7_A4_T1 description: Override toString and valueOf functions, valueOf throw exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.indexOf(__obj, __obj2); - $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.indexOf(__obj, __obj2); + $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js index 85f5aa298..ee769a9ae 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js @@ -11,19 +11,30 @@ description: > exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "intointeger"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.indexOf(__obj, __obj2); - $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.indexOf(__obj, __obj2); + $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js index 2374c6792..6bf5f2046 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js @@ -9,13 +9,24 @@ es5id: 15.5.4.7_A4_T3 description: Override toString and valueOf functions ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + return "1"; + } +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("ABB\u0041BABAB".indexOf(__obj, __obj2)!==3) { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}}; "ABB\\u0041BABAB".indexOf(__obj, __obj2)===3. Actual: '+("ABB\u0041BABAB".indexOf(__obj, __obj2))); +if ("ABB\u0041BABAB".indexOf(__obj, __obj2) !== 3) { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}}; "ABB\\u0041BABAB".indexOf(__obj, __obj2)===3. Actual: ' + ("ABB\u0041BABAB".indexOf(__obj, __obj2))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js index 59a05c692..578eb5c09 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js @@ -9,20 +9,28 @@ es5id: 15.5.4.7_A4_T4 description: Override toString and valueOf functions, and they throw exceptions ---*/ -var __obj = {toString:function(){throw "intostr";}}; -var __obj2 = {valueOf:function(){throw "intoint";}}; +var __obj = { + toString: function() { + throw "intostr"; + } +}; +var __obj2 = { + valueOf: function() { + throw "intoint"; + } +}; var __instance = new Number(10001.10001); -Number.prototype.indexOf=String.prototype.indexOf; +Number.prototype.indexOf = String.prototype.indexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __instance.indexOf(__obj, __obj2); - $ERROR('#1: "var x = __instance.indexOf(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __instance.indexOf(__obj, __obj2); + $ERROR('#1: "var x = __instance.indexOf(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js index 97ab2def6..d40f319ce 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js @@ -11,9 +11,20 @@ description: > throw exception ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +}; -var __obj2 = {valueOf:function(){throw "intointeger";}}; +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +}; __FACTORY.prototype.indexOf = String.prototype.indexOf; @@ -25,15 +36,19 @@ try { var x = __instance.indexOf(__obj, __obj2); $ERROR('#1: "var x = __instance.indexOf(__obj, __obj2)" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value; - this.toString = function() { return new Number; }; - this.valueOf=function(){return this.value+""}; +function __FACTORY(value) { + this.value = value; + this.toString = function() { + return new Number; + }; + this.valueOf = function() { + return this.value + "" + }; } diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js index eef162fed..4823a08d1 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js @@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T1 description: Search one symbol from begin of string ---*/ -var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); +var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for (var k = 0, i = 0x0020; i < 0x007e; i++, k++ ) { - if (TEST_STRING.indexOf( String.fromCharCode(i), 0 )!==k) { - $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( String.fromCharCode('+i+'), 0 )==='+k+'. Actual: '+TEST_STRING.indexOf( String.fromCharCode(i), 0 )); - } +for (var k = 0, i = 0x0020; i < 0x007e; i++, k++) { + if (TEST_STRING.indexOf(String.fromCharCode(i), 0) !== k) { + $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( String.fromCharCode(' + i + '), 0 )===' + k + '. Actual: ' + TEST_STRING.indexOf(String.fromCharCode(i), 0)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js index b6f09b64c..a66021f9e 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js @@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T2 description: Search one symbol from it`s position in the string ---*/ -var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); +var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for (var k = 0, i = 0x0020; i < 0x007e; i++, k++ ) { - if (TEST_STRING.indexOf( String.fromCharCode(i), k )!==k) { - $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( String.fromCharCode('+i+'), '+k+' )==='+k+'. Actual: '+TEST_STRING.indexOf( String.fromCharCode(i), k )); - } +for (var k = 0, i = 0x0020; i < 0x007e; i++, k++) { + if (TEST_STRING.indexOf(String.fromCharCode(i), k) !== k) { + $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( String.fromCharCode(' + i + '), ' + k + ' )===' + k + '. Actual: ' + TEST_STRING.indexOf(String.fromCharCode(i), k)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js index f13ef4847..f5075e15c 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js @@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T3 description: Search one symbol from it`s position+1 in the string ---*/ -var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); +var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for ( var k = 0, i = 0x0020; i < 0x007e; i++, k++ ) { - if (TEST_STRING.indexOf( String.fromCharCode(i), k+1 ) !== -1) { - $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( String.fromCharCode('+i+'), '+(k+1)+' )===-1. Actual: '+TEST_STRING.indexOf( String.fromCharCode(i), k+1 )); - } +for (var k = 0, i = 0x0020; i < 0x007e; i++, k++) { + if (TEST_STRING.indexOf(String.fromCharCode(i), k + 1) !== -1) { + $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( String.fromCharCode(' + i + '), ' + (k + 1) + ' )===-1. Actual: ' + TEST_STRING.indexOf(String.fromCharCode(i), k + 1)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js index 1d89cb311..a7f3ceb92 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js @@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T4 description: Search substring from begin of string ---*/ -var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); +var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for (var k = 0, i = 0x0020; i < 0x007d; i++, k++ ) { - if (TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1) + String.fromCharCode(i+2)), 0 )!==k) { - $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( (String.fromCharCode('+i+')+ String.fromCharCode('+(i+1)+') + String.fromCharCode('+(i+2)+')), 0 )==='+k+'. Actual: '+TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1) + String.fromCharCode(i+2)), 0 )); - } +for (var k = 0, i = 0x0020; i < 0x007d; i++, k++) { + if (TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), 0) !== k) { + $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( (String.fromCharCode(' + i + ')+ String.fromCharCode(' + (i + 1) + ') + String.fromCharCode(' + (i + 2) + ')), 0 )===' + k + '. Actual: ' + TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), 0)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js index 95262eb4e..8ea838dc4 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js @@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T5 description: Search substring from it`s position in the string ---*/ -var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); +var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for ( var k = 0, i = 0x0020; i < 0x007d; i++, k++ ) { - if (TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1)+ String.fromCharCode(i+2)),k ) !==k) { - $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( (String.fromCharCode('+i+')+ String.fromCharCode('+(i+1)+') + String.fromCharCode('+(i+2)+')), '+k+' )==='+k+'. Actual: '+TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1) + String.fromCharCode(i+2)), k )); - } +for (var k = 0, i = 0x0020; i < 0x007d; i++, k++) { + if (TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), k) !== k) { + $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( (String.fromCharCode(' + i + ')+ String.fromCharCode(' + (i + 1) + ') + String.fromCharCode(' + (i + 2) + ')), ' + k + ' )===' + k + '. Actual: ' + TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), k)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js index c8456ed37..9e82edeab 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js @@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T6 description: Search substring from it`s position+1 in the string ---*/ -var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); +var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for (var k = 0, i = 0x0020; i < 0x007d; i++, k++ ) { - if (TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1)+ String.fromCharCode(i+2)), k+1 )!== -1) { - $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( (String.fromCharCode('+i+')+ String.fromCharCode('+(i+1)+') + String.fromCharCode('+(i+2)+')), '+(k+1)+' )=== -1. Actual: '+TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1) + String.fromCharCode(i+2)), k+1 )); - } +for (var k = 0, i = 0x0020; i < 0x007d; i++, k++) { + if (TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), k + 1) !== -1) { + $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( (String.fromCharCode(' + i + ')+ String.fromCharCode(' + (i + 1) + ') + String.fromCharCode(' + (i + 2) + ')), ' + (k + 1) + ' )=== -1. Actual: ' + TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), k + 1)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js index 406153de7..296e90732 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.indexOf.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.indexOf.prototype !== undefined) { - $ERROR('#1: String.prototype.indexOf.prototype === undefined. Actual: '+String.prototype.indexOf.prototype ); + $ERROR('#1: String.prototype.indexOf.prototype === undefined. Actual: ' + String.prototype.indexOf.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js index b1bdd51e0..11b58ce8e 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js @@ -14,6 +14,6 @@ try { $ERROR('#1: var __FACTORY = String.prototype.indexOf; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: var __FACTORY = String.prototype.indexOf; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); + $ERROR('#1.2: var __FACTORY = String.prototype.indexOf; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js index 4c5256a81..41c2e2d8d 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.indexOf.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.indexOf.hasOwnProperty('length')); + $ERROR('#0: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.indexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.indexOf.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.indexOf){ - if (p==="length") count++; +for (var p in String.prototype.indexOf) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.indexOf){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.indexOf){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js index 71a9ebd06..3ea088e2c 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.indexOf.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.indexOf.hasOwnProperty('length')); + $ERROR('#0: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.indexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.indexOf.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.indexOf.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.indexOf.length; String.prototype.indexOf.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.indexOf.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.indexOf.length; String.prototype.indexOf.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.indexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js index cf5a46c38..ea24cf5f2 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length')); + $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.lastIndexOf.length; -verifyNotWritable(String.prototype.lastIndexOf, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.lastIndexOf, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.lastIndexOf.length !== __obj) { - $ERROR('#2: __obj = String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.length = function(){return "shifted";}; String.prototype.lastIndexOf.length === __obj. Actual: '+String.prototype.lastIndexOf.length ); + $ERROR('#2: __obj = String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.length = function(){return "shifted";}; String.prototype.lastIndexOf.length === __obj. Actual: ' + String.prototype.lastIndexOf.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js index 4ffaeb11f..e30042895 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.lastIndexOf.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.lastIndexOf.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty("length") return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty("length")); + $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty("length") return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.lastIndexOf.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.lastIndexOf.length !== 1) { - $ERROR('#2: String.prototype.lastIndexOf.length === 1. Actual: '+String.prototype.lastIndexOf.length ); + $ERROR('#2: String.prototype.lastIndexOf.length === 1. Actual: ' + String.prototype.lastIndexOf.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js index 9c97a086e..43ef35657 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js @@ -14,7 +14,7 @@ __instance.lastIndexOf = String.prototype.lastIndexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.lastIndexOf(true, false) !== 0) { - $ERROR('#1: __instance = new Object(true); __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf(true, false) === 0. Actual: '+__instance.lastIndexOf(true, false) ); + $ERROR('#1: __instance = new Object(true); __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf(true, false) === 0. Actual: ' + __instance.lastIndexOf(true, false)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js index afc3bc4b8..4ee4bf2d6 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js @@ -9,15 +9,23 @@ description: > arguments ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return NaN;}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return NaN; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.lastIndexOf(__obj, __obj2) !== 7) { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return NaN;}}; var __str = "ABB\u0041BABAB";lastIndexOf(__obj, __obj2) === 7. Actual: '+__str.lastIndexOf(__obj, __obj2) ); - } +if (__str.lastIndexOf(__obj, __obj2) !== 7) { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return NaN;}}; var __str = "ABB\u0041BABAB";lastIndexOf(__obj, __obj2) === 7. Actual: ' + __str.lastIndexOf(__obj, __obj2)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js index 293237feb..ddb271087 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js @@ -7,12 +7,12 @@ es5id: 15.5.4.8_A1_T12 description: Argument is string, and instance is array of strings ---*/ -var __instance = new Array('new','zoo','revue'); +var __instance = new Array('new', 'zoo', 'revue'); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.lastIndexOf('new') !== 0) { - $ERROR('#1: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.lastIndexOf(\'new\') === 0. Actual: '+__instance.lastIndexOf('new') ); + $ERROR('#1: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.lastIndexOf(\'new\') === 0. Actual: ' + __instance.lastIndexOf('new')); } // ////////////////////////////////////////////////////////////////////////////// @@ -20,7 +20,7 @@ if (__instance.lastIndexOf('new') !== 0) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__instance.lastIndexOf('zoo') !== 1) { - $ERROR('#2: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.lastIndexOf(\'zoo\') === 1. Actual: '+__instance.lastIndexOf('zoo') ); + $ERROR('#2: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.lastIndexOf(\'zoo\') === 1. Actual: ' + __instance.lastIndexOf('zoo')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js index 27072b7b7..41a74156b 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js @@ -15,8 +15,12 @@ __instance.lastIndexOf = String.prototype.lastIndexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.lastIndexOf("A"!=="\u0041", function(){return 0;}(),null) !== 0) { - $ERROR('#1: __instance = new Boolean; __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: '+__instance.lastIndexOf("A"!=="\u0041", function(){return 0;}(),null) ); +if (__instance.lastIndexOf("A" !== "\u0041", function() { + return 0; + }(), null) !== 0) { + $ERROR('#1: __instance = new Boolean; __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: ' + __instance.lastIndexOf("A" !== "\u0041", function() { + return 0; + }(), null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js index ebed93a09..0c91d1d25 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString() evaluates to "" lastIndexOf() evaluates to lastIndexOf("",0) if ("".lastIndexOf() !== -1) { - $ERROR('#1: "".lastIndexOf() === -1. Actual: '+("".lastIndexOf()) ); + $ERROR('#1: "".lastIndexOf() === -1. Actual: ' + ("".lastIndexOf())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js index 69ab01061..42cd7e1b2 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js @@ -12,8 +12,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" lastIndexOf(null) evaluates to lastIndexOf("",0) -if (function(){return "gnullunazzgnull"}().lastIndexOf(null) !== 11) { - $ERROR('#1: function(){return "gnullunazzgnull"}().lastIndexOf(null) === 11. Actual: '+function(){return "gnullunazzgnull"}().lastIndexOf(null) ); +if (function() { + return "gnullunazzgnull" + }().lastIndexOf(null) !== 11) { + $ERROR('#1: function(){return "gnullunazzgnull"}().lastIndexOf(null) === 11. Actual: ' + function() { + return "gnullunazzgnull" + }().lastIndexOf(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js index 9517f5e65..d151e20e3 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(undefined) evaluates to "" lastIndexOf(undefined) evaluates to lastIndexOf("",0) if (new String("undefined").lastIndexOf(x) !== 0) { - $ERROR('#1: var x; new String("undefined").lastIndexOf(x) === 0. Actual: '+new String("undefined").lastIndexOf(x) ); + $ERROR('#1: var x; new String("undefined").lastIndexOf(x) === 0. Actual: ' + new String("undefined").lastIndexOf(x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js index a68a8d5ab..b7c047e15 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(undefined) evaluates to "undefined" lastIndexOf(undefined) evaluates to lastIndexOf("undefined",0) if (String("undefined").lastIndexOf(undefined) !== 0) { - $ERROR('#1: String("undefined").lastIndexOf(undefined) === 0. Actual: '+String("undefined").lastIndexOf(undefined) ); + $ERROR('#1: String("undefined").lastIndexOf(undefined) === 0. Actual: ' + String("undefined").lastIndexOf(undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js index 29068e54e..ffa75b06f 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js @@ -9,13 +9,15 @@ description: > argument of string object ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(void 0) evaluates to "undefined" lastIndexOf(void 0) evaluates to lastIndexOf("undefined",0) if (String(__obj).lastIndexOf(void 0) !== 0) { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).lastIndexOf(void 0) === 0. Actual: '+String(__obj).lastIndexOf(void 0) ); + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).lastIndexOf(void 0) === 0. Actual: ' + String(__obj).lastIndexOf(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js index ff3b8527c..0eec7b4ce 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js @@ -10,15 +10,15 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(undefined) evaluates to "undefined" indexOf(undefined) evaluates to indexOf("undefined") -if (new String(__obj).lastIndexOf(function(){}()) !== 0) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).lastIndexOf(function(){}()) === 0. Actual: '+new String(__obj).lastIndexOf(function(){}()) ); +if (new String(__obj).lastIndexOf(function() {}()) !== 0) { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).lastIndexOf(function(){}()) === 0. Actual: ' + new String(__obj).lastIndexOf(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js index 5f71a0eaf..51e9c2a20 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js @@ -9,19 +9,27 @@ es5id: 15.5.4.8_A4_T1 description: Override toString and valueOf functions, valueOf throw exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.lastIndexOf(__obj, __obj2); - $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.lastIndexOf(__obj, __obj2); + $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js index fec80696c..6df1e9860 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js @@ -11,19 +11,30 @@ description: > exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "intointeger"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.lastIndexOf(__obj, __obj2); - $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.lastIndexOf(__obj, __obj2); + $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// 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))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js index bd1e7613f..232fc191c 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js @@ -9,20 +9,28 @@ es5id: 15.5.4.8_A4_T4 description: Override toString and valueOf functions, and they throw exceptions ---*/ -var __obj = {toString:function(){throw "intostr";}}; -var __obj2 = {valueOf:function(){throw "intoint";}}; +var __obj = { + toString: function() { + throw "intostr"; + } +}; +var __obj2 = { + valueOf: function() { + throw "intoint"; + } +}; var __instance = new Number(10001.10001); -Number.prototype.lastIndexOf=String.prototype.lastIndexOf; +Number.prototype.lastIndexOf = String.prototype.lastIndexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __instance.lastIndexOf(__obj, __obj2); - $ERROR('#1: var x = __instance.lastIndexOf(__obj, __obj2) lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __instance.lastIndexOf(__obj, __obj2); + $ERROR('#1: var x = __instance.lastIndexOf(__obj, __obj2) lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js index 08f5fed5b..b1ea6070f 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js @@ -11,9 +11,20 @@ description: > throw exception ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +}; -var __obj2 = {valueOf:function(){throw "intointeger";}}; +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +}; __FACTORY.prototype.lastIndexOf = String.prototype.lastIndexOf; @@ -25,15 +36,19 @@ try { var x = __instance.lastIndexOf(__obj, __obj2); $ERROR('#1: var x = __instance.lastIndexOf(__obj, __obj2) lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value; - this.toString = function() { return new Number; }; - this.valueOf=function(){return this.value+""}; +function __FACTORY(value) { + this.value = value; + this.toString = function() { + return new Number; + }; + this.valueOf = function() { + return this.value + "" + }; } diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js index 96170a0ca..49063652b 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.lastIndexOf.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.lastIndexOf.prototype !== undefined) { - $ERROR('#1: String.prototype.lastIndexOf.prototype === undefined. Actual: '+String.prototype.lastIndexOf.prototype ); + $ERROR('#1: String.prototype.lastIndexOf.prototype === undefined. Actual: ' + String.prototype.lastIndexOf.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js index 31aa5fcd8..bbe092d51 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length')); + $ERROR('#0: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,21 +23,21 @@ if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (String.prototype.lastIndexOf.propertyIsEnumerable('length')) { - $ERROR('#1: String.prototype.lastIndexOf.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.lastIndexOf.propertyIsEnumerable('length')); + $ERROR('#1: String.prototype.lastIndexOf.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.lastIndexOf.propertyIsEnumerable('length')); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.lastIndexOf){ - if (p==="length") count++; +for (var p in String.prototype.lastIndexOf) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.lastIndexOf){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.lastIndexOf){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js index 61be576d1..44fb7852e 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length')); + $ERROR('#0: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.lastIndexOf.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.lastIndexOf.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js b/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js index 06517ec3a..e1e5cdd26 100644 --- a/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js +++ b/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js @@ -13,11 +13,11 @@ var thisValues = ["a", "t", "u", "undefined", "UNDEFINED", "nicht definiert", "x var i; for (i = 0; i < thisValues.length; i++) { - var thisValue = thisValues[i]; - if (thisValue.localeCompare() !== thisValue.localeCompare(undefined)) { - $ERROR("String.prototype.localeCompare does not treat missing 'that' argument as undefined."); - } - if (thisValue.localeCompare(undefined) !== thisValue.localeCompare("undefined")) { - $ERROR("String.prototype.localeCompare does not treat undefined 'that' argument as \"undefined\"."); - } + var thisValue = thisValues[i]; + if (thisValue.localeCompare() !== thisValue.localeCompare(undefined)) { + $ERROR("String.prototype.localeCompare does not treat missing 'that' argument as undefined."); + } + if (thisValue.localeCompare(undefined) !== thisValue.localeCompare("undefined")) { + $ERROR("String.prototype.localeCompare does not treat undefined 'that' argument as \"undefined\"."); + } } diff --git a/test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js b/test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js index 365a80595..4123b624f 100644 --- a/test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js +++ b/test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js @@ -14,71 +14,71 @@ author: Norbert Lindenberg // pairs with characters not in Unicode 3.0 are commented out var pairs = [ - // example from Unicode 5.0, section 3.7, definition D70 - ["o\u0308", "ö"], - // examples from Unicode 5.0, chapter 3.11 - ["ä\u0323", "a\u0323\u0308"], - ["a\u0308\u0323", "a\u0323\u0308"], - ["ạ\u0308", "a\u0323\u0308"], - ["ä\u0306", "a\u0308\u0306"], - ["ă\u0308", "a\u0306\u0308"], - // example from Unicode 5.0, chapter 3.12 - ["\u1111\u1171\u11B6", "퓛"], - // examples from UTS 10, Unicode Collation Algorithm - ["Å", "Å"], - ["Å", "A\u030A"], - ["x\u031B\u0323", "x\u0323\u031B"], - ["ự", "ụ\u031B"], - ["ự", "u\u031B\u0323"], - ["ự", "ư\u0323"], - ["ự", "u\u0323\u031B"], - // examples from UAX 15, Unicode Normalization Forms - ["Ç", "C\u0327"], - ["q\u0307\u0323", "q\u0323\u0307"], - ["가", "\u1100\u1161"], - ["Å", "A\u030A"], - ["Ω", "Ω"], - ["Å", "A\u030A"], - ["ô", "o\u0302"], - ["ṩ", "s\u0323\u0307"], - ["ḋ\u0323", "d\u0323\u0307"], - ["ḋ\u0323", "ḍ\u0307"], - ["q\u0307\u0323", "q\u0323\u0307"], - // examples involving supplementary characters from UCD NormalizationTest.txt -// ["\uD834\uDD5E", "\uD834\uDD57\uD834\uDD65"], -// ["\uD87E\uDC2B", "北"] + // example from Unicode 5.0, section 3.7, definition D70 + ["o\u0308", "ö"], + // examples from Unicode 5.0, chapter 3.11 + ["ä\u0323", "a\u0323\u0308"], + ["a\u0308\u0323", "a\u0323\u0308"], + ["ạ\u0308", "a\u0323\u0308"], + ["ä\u0306", "a\u0308\u0306"], + ["ă\u0308", "a\u0306\u0308"], + // example from Unicode 5.0, chapter 3.12 + ["\u1111\u1171\u11B6", "퓛"], + // examples from UTS 10, Unicode Collation Algorithm + ["Å", "Å"], + ["Å", "A\u030A"], + ["x\u031B\u0323", "x\u0323\u031B"], + ["ự", "ụ\u031B"], + ["ự", "u\u031B\u0323"], + ["ự", "ư\u0323"], + ["ự", "u\u0323\u031B"], + // examples from UAX 15, Unicode Normalization Forms + ["Ç", "C\u0327"], + ["q\u0307\u0323", "q\u0323\u0307"], + ["가", "\u1100\u1161"], + ["Å", "A\u030A"], + ["Ω", "Ω"], + ["Å", "A\u030A"], + ["ô", "o\u0302"], + ["ṩ", "s\u0323\u0307"], + ["ḋ\u0323", "d\u0323\u0307"], + ["ḋ\u0323", "ḍ\u0307"], + ["q\u0307\u0323", "q\u0323\u0307"], + // examples involving supplementary characters from UCD NormalizationTest.txt + // ["\uD834\uDD5E", "\uD834\uDD57\uD834\uDD65"], + // ["\uD87E\uDC2B", "北"] ]; // Detect whether we are using locale-sensitive comparisons or a bitwise comparison -if("a".localeCompare("Z") < 0) { - // We are using locale-sensitive comparison, so all pairs should be canonically equivalent - var i; - for (i = 0; i < pairs.length; i++) { - var pair = pairs[i]; - if (pair[0].localeCompare(pair[1]) !== 0) { - $ERROR("String.prototype.localeCompare considers " + pair[0] + " (" + toU(pair[0]) + - ") ≠ " + pair[1] + " (" + toU(pair[1]) + ")."); - } +if ("a".localeCompare("Z") < 0) { + // We are using locale-sensitive comparison, so all pairs should be canonically equivalent + var i; + for (i = 0; i < pairs.length; i++) { + var pair = pairs[i]; + if (pair[0].localeCompare(pair[1]) !== 0) { + $ERROR("String.prototype.localeCompare considers " + pair[0] + " (" + toU(pair[0]) + + ") ≠ " + pair[1] + " (" + toU(pair[1]) + ")."); } + } } else { - // We are using bitwise comparison, so all pairs should not be equivalent - var i; - for (i = 0; i < pairs.length; i++) { - var pair = pairs[i]; - if (pair[0].localeCompare(pair[1]) === 0) { - $ERROR("String.prototype.localeCompare considers " + pair[0] + " (" + toU(pair[0]) + - ") = " + pair[1] + " (" + toU(pair[1]) + ")."); - } + // We are using bitwise comparison, so all pairs should not be equivalent + var i; + for (i = 0; i < pairs.length; i++) { + var pair = pairs[i]; + if (pair[0].localeCompare(pair[1]) === 0) { + $ERROR("String.prototype.localeCompare considers " + pair[0] + " (" + toU(pair[0]) + + ") = " + pair[1] + " (" + toU(pair[1]) + ")."); } + } } function toU(s) { - var result = ""; - var escape = "\\u0000"; - var i; - for (i = 0; i < s.length; i++) { - var hex = s.charCodeAt(i).toString(16); - result += escape.substring(0, escape.length - hex.length) + hex; - } - return result; + var result = ""; + var escape = "\\u0000"; + var i; + for (i = 0; i < s.length; i++) { + var hex = s.charCodeAt(i).toString(16); + result += escape.substring(0, escape.length - hex.length) + hex; + } + return result; } diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js index 7af411b70..f50b0ff8d 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.localeCompare.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.localeCompare.hasOwnProperty('length')); + $ERROR('#1: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.localeCompare.length; -verifyNotWritable(String.prototype.localeCompare, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.localeCompare, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.localeCompare.length !== __obj) { - $ERROR('#2: __obj = String.prototype.localeCompare.length; String.prototype.localeCompare.length = function(){return "shifted";}; String.prototype.localeCompare.length === __obj. Actual: '+String.prototype.localeCompare.length ); + $ERROR('#2: __obj = String.prototype.localeCompare.length; String.prototype.localeCompare.length = function(){return "shifted";}; String.prototype.localeCompare.length === __obj. Actual: ' + String.prototype.localeCompare.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js index 4cd0b2bce..d2b382111 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.localeCompare.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.localeCompare.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.localeCompare.hasOwnProperty("length") return true. Actual: '+String.prototype.localeCompare.hasOwnProperty("length")); + $ERROR('#1: String.prototype.localeCompare.hasOwnProperty("length") return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.localeCompare.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.localeCompare.length !== 1) { - $ERROR('#2: String.prototype.localeCompare.length === 1. Actual: '+String.prototype.localeCompare.length ); + $ERROR('#2: String.prototype.localeCompare.length === 1. Actual: ' + String.prototype.localeCompare.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js index 36c1e7019..c1d231158 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js @@ -7,21 +7,21 @@ es5id: 15.5.4.9_A1_T1 description: This string is symbol and arguments are symbols ---*/ -var str1 = new String("h"); +var str1 = new String("h"); //CHECK#1 -var str2 = new String ("\x68"); -if (str1.localeCompare(str2)!==0){ - $ERROR('#1: var str1 = new String("h"); var str2 = new String ("\\x68"); str1.localeCompare(str2)===0. Actual: '+str1.localeCompare(str2)); +var str2 = new String("\x68"); +if (str1.localeCompare(str2) !== 0) { + $ERROR('#1: var str1 = new String("h"); var str2 = new String ("\\x68"); str1.localeCompare(str2)===0. Actual: ' + str1.localeCompare(str2)); } //CHECK#2 -var str2 = new String ("\u0068"); -if (str1.localeCompare(str2)!==0){ - $ERROR('#2: var str1 = new String("h"); var str2 = new String ("\\u0068"); str1.localeCompare(str2)===0. Actual: '+str1.localeCompare(str2)); +var str2 = new String("\u0068"); +if (str1.localeCompare(str2) !== 0) { + $ERROR('#2: var str1 = new String("h"); var str2 = new String ("\\u0068"); str1.localeCompare(str2)===0. Actual: ' + str1.localeCompare(str2)); } //CHECK#3 -var str2 = new String ("h"); -if (str1.localeCompare(str2)!==0){ - $ERROR('#3: var str1 = new String("h"); var str2 = new String ("h"); str1.localeCompare(str2)===0. Actual: '+str1.localeCompare(str2)); +var str2 = new String("h"); +if (str1.localeCompare(str2) !== 0) { + $ERROR('#3: var str1 = new String("h"); var str2 = new String ("h"); str1.localeCompare(str2)===0. Actual: ' + str1.localeCompare(str2)); } diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js index be41eeb44..65aa3fbf3 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js @@ -12,6 +12,6 @@ description: > //CHECK#1 var str1 = "h"; var str2 = "H"; -if (str1.localeCompare(str2)!==-str2.localeCompare(str1)){ - $ERROR('#1.1: var str1 = "h"; var str2 = "H"; str1.localeCompare(str2)===-str2.localeCompare(str1). Actual: '+str1.localeCompare(str2)); +if (str1.localeCompare(str2) !== -str2.localeCompare(str1)) { + $ERROR('#1.1: var str1 = "h"; var str2 = "H"; str1.localeCompare(str2)===-str2.localeCompare(str1). Actual: ' + str1.localeCompare(str2)); } diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js index 19001efc7..01b7a4006 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.localeCompare.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.localeCompare.prototype !== undefined) { - $ERROR('#1: String.prototype.localeCompare.prototype === undefined. Actual: '+String.prototype.localeCompare.prototype ); + $ERROR('#1: String.prototype.localeCompare.prototype === undefined. Actual: ' + String.prototype.localeCompare.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js index b70beafa0..b52cc3ba6 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js @@ -15,5 +15,5 @@ try { var __instance = new __FACTORY; $ERROR('#1: __FACTORY = String.prototype.localeCompare; __instance = new __FACTORY lead to throwing exception'); } catch (e) { - if (e instanceof Test262Error) throw e; + if (e instanceof Test262Error) throw e; } diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A8.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A8.js index 137c85bb3..928d8f703 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A8.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A8.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.localeCompare.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.localeCompare.hasOwnProperty('length')); + $ERROR('#0: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,14 +30,14 @@ if (String.prototype.localeCompare.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.localeCompare){ - if (p==="length") count++; +for (var p in String.prototype.localeCompare) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.localeCompare){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.localeCompare){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js index af1145e50..544ffe9d9 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.localeCompare.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.localeCompare.hasOwnProperty('length')); + $ERROR('#0: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.localeCompare.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.localeCompare.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.localeCompare.length; String.prototype.localeCompare.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.localeCompare.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.localeCompare.length; String.prototype.localeCompare.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js index 009ca6ab1..4b71f1900 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js @@ -7,14 +7,18 @@ es5id: 15.5.4.10_A1_T10 description: Call match (regexp) function with object argument ---*/ -var __obj = {toString:function(){return "\u0041B";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.match(__obj)[0] !=="AB") { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; __str.match(__obj)[0] ==="AB". Actual: '+__str.match(__obj)[0] ); - } +if (__str.match(__obj)[0] !== "AB") { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; __str.match(__obj)[0] ==="AB". Actual: ' + __str.match(__obj)[0]); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js index 01c8767eb..ea732163a 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js @@ -9,18 +9,22 @@ description: > match (regexp) function with this object as argument ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.match(__obj); - $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __str.match(__obj); + $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js index 9f6049a40..1acb9a21d 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js @@ -9,18 +9,25 @@ description: > then call match (regexp) function with this object as argument ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.match(__obj); - $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __str.match(__obj); + $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js index 64e9be70b..8a9cb164f 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js @@ -9,12 +9,19 @@ description: > function with this object as argument ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0] !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj)[0] ==="1". Actual: '+("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0]) ); +if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0] !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj)[0] ==="1". Actual: ' + ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0])); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +29,7 @@ if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0] !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length !== 1) { - $ERROR('#3: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj).length === 1. Actual: '+("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length) ); + $ERROR('#3: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj).length === 1. Actual: ' + ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js index fb112c3fa..5ef04584d 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js @@ -14,7 +14,7 @@ var __reg = new RegExp("77"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("ABB\u0041BABAB\u0037\u0037BBAA".match(__reg)[0] !== "77") { - $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".match(__reg)[0] === "77". Actual: '+("ABB\u0041BABAB\u0037\u0037BBAA".match(__reg)[0]) ); + $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".match(__reg)[0] === "77". Actual: ' + ("ABB\u0041BABAB\u0037\u0037BBAA".match(__reg)[0])); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js index dd8713565..e657e1bf3 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js @@ -10,14 +10,15 @@ description: Checking by using eval var match = String.prototype.match.bind(this); try { - this.toString = Object.prototype.toString; -} catch (e) { ; } + this.toString = Object.prototype.toString; +} catch (e) {; +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ((this.toString === Object.prototype.toString) && //Ensure we could overwrite global obj's toString - (match(eval("\"bj\""))[0] !== "bj")) { - $ERROR('#1: match = String.prototype.match.bind(this); match(eval("\\"bj\\""))[0] === "bj". Actual: '+match(eval("\"bj\""))[0] ); +if ((this.toString === Object.prototype.toString) && //Ensure we could overwrite global obj's toString + (match(eval("\"bj\""))[0] !== "bj")) { + $ERROR('#1: match = String.prototype.match.bind(this); match(eval("\\"bj\\""))[0] === "bj". Actual: ' + match(eval("\"bj\""))[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js index d81fcf57f..7d67a718b 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js @@ -9,12 +9,12 @@ description: Call match (regexp) function without arguments of string var __matched = "".match(); -var __expected = RegExp().exec(""); +var __expected = RegExp().exec(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__matched.length !== __expected.length) { - $ERROR('#1: __matched = "".match(); __expected = RegExp().exec(""); __matched.length === __expected.length. Actual: '+__matched.length ); + $ERROR('#1: __matched = "".match(); __expected = RegExp().exec(""); __matched.length === __expected.length. Actual: ' + __matched.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (__matched.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__matched.index !== __expected.index) { - $ERROR('#2: __matched = "".match(); __expected = RegExp().exec(""); __matched.index === __expected.index. Actual: '+__matched.index ); + $ERROR('#2: __matched = "".match(); __expected = RegExp().exec(""); __matched.index === __expected.index. Actual: ' + __matched.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,16 +30,16 @@ if (__matched.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__matched.input !== __expected.input) { - $ERROR('#3: __matched = "".match(); __expected = RegExp().exec(""); __matched.input === __expected.input. Actual: '+__matched.input ); + $ERROR('#3: __matched = "".match(); __expected = RegExp().exec(""); __matched.input === __expected.input. Actual: ' + __matched.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__matched[index]!==__expected[index]) { - $ERROR('#4.'+index+': __matched = "".match(); __expected = RegExp().exec(""); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]); +for (var index = 0; index < __expected.length; index++) { + if (__matched[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __matched = "".match(); __expected = RegExp().exec(""); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js index f0a41f16f..a8ca7399d 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js @@ -10,8 +10,12 @@ description: Call match (regexp) function with null argument of function object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "gnulluna"}().match(null)[0] !== "null") { - $ERROR('#1: function(){return "gnulluna"}().match(null)[0] === "null". Actual: '+function(){return "gnulluna"}().match(null)[0] ); +if (function() { + return "gnulluna" + }().match(null)[0] !== "null") { + $ERROR('#1: function(){return "gnulluna"}().match(null)[0] === "null". Actual: ' + function() { + return "gnulluna" + }().match(null)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js index 9fd224f52..f88921461 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js @@ -11,12 +11,12 @@ description: > var __matched = new String("undefined").match(x); -var __expected = RegExp(x).exec("undefined"); +var __expected = RegExp(x).exec("undefined"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__matched.length !== __expected.length) { - $ERROR('#1: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length ); + $ERROR('#1: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (__matched.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__matched.index !== __expected.index) { - $ERROR('#2: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index ); + $ERROR('#2: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,16 +32,16 @@ if (__matched.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__matched.input !== __expected.input) { - $ERROR('#3: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input ); + $ERROR('#3: __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__matched[index]!==__expected[index]) { - $ERROR('#4.'+index+': __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]); +for (var index = 0; index < __expected.length; index++) { + if (__matched[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __matched = new String("undefined").match(x); __expected = RegExp(x).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js index b59c69173..a07e6f768 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T7.js @@ -11,12 +11,12 @@ description: > var __matched = String("undefined").match(undefined); -var __expected = RegExp(undefined).exec("undefined"); +var __expected = RegExp(undefined).exec("undefined"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__matched.length !== __expected.length) { - $ERROR('#1: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length ); + $ERROR('#1: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (__matched.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__matched.index !== __expected.index) { - $ERROR('#2: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index ); + $ERROR('#2: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,16 +32,16 @@ if (__matched.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__matched.input !== __expected.input) { - $ERROR('#3: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input ); + $ERROR('#3: __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__matched[index]!==__expected[index]) { - $ERROR('#4.'+index+': __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]); +for (var index = 0; index < __expected.length; index++) { + if (__matched[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __matched = String("undefined").match(undefined); __expected = RegExp(undefined).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js index 13aa23e55..36f3d0802 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js @@ -7,16 +7,18 @@ es5id: 15.5.4.10_A1_T8 description: Call match (regexp) function with void 0 argument of string object; ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; var __matched = String(__obj).match(void 0); -var __expected = RegExp(void 0).exec("undefined"); +var __expected = RegExp(void 0).exec("undefined"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__matched.length !== __expected.length) { - $ERROR('#1: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length ); + $ERROR('#1: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +26,7 @@ if (__matched.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__matched.index !== __expected.index) { - $ERROR('#2: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index ); + $ERROR('#2: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,16 +34,16 @@ if (__matched.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__matched.input !== __expected.input) { - $ERROR('#3: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input ); + $ERROR('#3: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__matched[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]); +for (var index = 0; index < __expected.length; index++) { + if (__matched[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js index a9ce29da4..df8ab7b60 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js @@ -10,18 +10,18 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; -var __matched = new String(__obj).match(function(){}()); +var __matched = new String(__obj).match(function() {}()); -var __expected = RegExp(undefined).exec("undefined"); +var __expected = RegExp(undefined).exec("undefined"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__matched.length !== __expected.length) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length ); + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (__matched.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__matched.index !== __expected.index) { - $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index ); + $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,16 +37,16 @@ if (__matched.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__matched.input !== __expected.input) { - $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input ); + $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__matched[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]); +for (var index = 0; index < __expected.length; index++) { + if (__matched[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __matched = new String(__obj).match(function(){}()); __expected = RegExp(undefined).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js index 4f74b0689..d45e716aa 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T1.js @@ -11,32 +11,32 @@ var __string = "1234567890"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(3)[0]!== "3") { - $ERROR('#1: __string = "1234567890"; __string.match(3)[0]=== "3". Actual: '+__string.match(3)[0]); +if (__string.match(3)[0] !== "3") { + $ERROR('#1: __string = "1234567890"; __string.match(3)[0]=== "3". Actual: ' + __string.match(3)[0]); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(3).length !==1) { - $ERROR('#2: __string = "1234567890"; __string.match(3).length ===1. Actual: '+__string.match(3).length ); +if (__string.match(3).length !== 1) { + $ERROR('#2: __string = "1234567890"; __string.match(3).length ===1. Actual: ' + __string.match(3).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__string.match(3).index !==2) { - $ERROR('#3: __string = "1234567890"; __string.match(3).index ===2. Actual: '+__string.match(3).index ); +if (__string.match(3).index !== 2) { + $ERROR('#3: __string = "1234567890"; __string.match(3).index ===2. Actual: ' + __string.match(3).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__string.match(3).input !==__string) { - $ERROR('#4: __string = "1234567890"; __string.match(3).input ===__string. Actual: '+__string.match(3).input ); +if (__string.match(3).input !== __string) { + $ERROR('#4: __string = "1234567890"; __string.match(3).input ===__string. Actual: ' + __string.match(3).input); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js index 5a5c5f382..6a23ef54e 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T10.js @@ -12,7 +12,7 @@ description: > var __string = "Boston, MA 02134"; -var __matches=["02134", "02134", undefined]; +var __matches = ["02134", "02134", undefined]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/; @@ -20,25 +20,25 @@ __re.lastIndex = __string.lastIndexOf("0"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== 3) { - $ERROR('#1: __string.match(__re).length=== 3. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== 3) { + $ERROR('#1: __string.match(__re).length=== 3. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(__re).index !==__string.lastIndexOf("0")) { - $ERROR('#2: __string.match(__re).index ===__string.lastIndexOf("0"). Actual: '+__string.match(__re).index ); +if (__string.match(__re).index !== __string.lastIndexOf("0")) { + $ERROR('#2: __string.match(__re).index ===__string.lastIndexOf("0"). Actual: ' + __string.match(__re).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(__re)[mi]!==__matches[mi]) { - $ERROR('#3.'+mi+': __string.match(__re)['+mi+']===__matches['+mi+']. Actual: '+__string.match(__re)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(__re)[mi] !== __matches[mi]) { + $ERROR('#3.' + mi + ': __string.match(__re)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(__re)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js index 8bf987ea9..c34a0c874 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T11.js @@ -12,33 +12,33 @@ description: > var __string = "Boston, MA 02134"; -var __matches=["02134", "02134", undefined]; +var __matches = ["02134", "02134", undefined]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/; -__re.lastIndex = __string.lastIndexOf("0")+1; +__re.lastIndex = __string.lastIndexOf("0") + 1; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== 3) { - $ERROR('#1: __string.match(__re).length=== 3. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== 3) { + $ERROR('#1: __string.match(__re).length=== 3. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(__re).index !==__string.lastIndexOf("0")) { - $ERROR('#2: __string.match(__re).index ===__string.lastIndexOf("0"). Actual: '+__string.match(__re).index ); +if (__string.match(__re).index !== __string.lastIndexOf("0")) { + $ERROR('#2: __string.match(__re).index ===__string.lastIndexOf("0"). Actual: ' + __string.match(__re).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(__re)[mi]!==__matches[mi]) { - $ERROR('#3.'+mi+': __string.match(__re)['+mi+']===__matches['+mi+']. Actual: '+__string.match(__re)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(__re)[mi] !== __matches[mi]) { + $ERROR('#3.' + mi + ': __string.match(__re)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(__re)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js index c89079514..760e6a107 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js @@ -9,7 +9,7 @@ description: > ]?[\d]{4})?$/g ---*/ -var __matches=["02134"]; +var __matches = ["02134"]; var __string = "Boston, MA 02134"; @@ -17,16 +17,16 @@ var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== __matches.length) { - $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== __matches.length) { + $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(__re)[0]!==__matches[0]) { - $ERROR('#2: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]); +if (__string.match(__re)[0] !== __matches[0]) { + $ERROR('#2: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js index 4a6175599..3424023d2 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T13.js @@ -9,7 +9,7 @@ description: > expression object have property lastIndex = 0 ---*/ -var __matches=["02134"]; +var __matches = ["02134"]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g; __re.lastIndex = 0; @@ -18,16 +18,16 @@ var __string = "Boston, MA 02134"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== __matches.length) { - $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== __matches.length) { + $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__string.match(__re)[0]!==__matches[0]) { - $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]); +if (__string.match(__re)[0] !== __matches[0]) { + $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js index 92b559388..673f1fb0c 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T14.js @@ -11,7 +11,7 @@ description: > var __string = "Boston, MA 02134"; -var __matches=["02134"]; +var __matches = ["02134"]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g; @@ -19,16 +19,16 @@ __re.lastIndex = __string.length; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== __matches.length) { - $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== __matches.length) { + $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__string.match(__re)[0]!==__matches[0]) { - $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]); +if (__string.match(__re)[0] !== __matches[0]) { + $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js index b2101492c..1f222e684 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T15.js @@ -12,7 +12,7 @@ description: > var __string = "Boston, MA 02134"; -var __matches=["02134"]; +var __matches = ["02134"]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g; @@ -20,16 +20,16 @@ __re.lastIndex = __string.lastIndexOf("0"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== __matches.length) { - $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== __matches.length) { + $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__string.match(__re)[0]!==__matches[0]) { - $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]); +if (__string.match(__re)[0] !== __matches[0]) { + $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js index ac72b075f..6fb716b82 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T16.js @@ -12,24 +12,24 @@ description: > var __string = "Boston, MA 02134"; -var __matches=["02134"]; +var __matches = ["02134"]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/g; -__re.lastIndex = __string.lastIndexOf("0")+1; +__re.lastIndex = __string.lastIndexOf("0") + 1; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== __matches.length) { - $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== __matches.length) { + $ERROR('#1: __string.match(__re).length=== __matches.length. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__string.match(__re)[0]!==__matches[0]) { - $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: '+__string.match(__re)[0]); +if (__string.match(__re)[0] !== __matches[0]) { + $ERROR('#3: __string.match(__re)[0]===__matches[0]. Actual: ' + __string.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js index 9cd4f7848..2721f7871 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T17.js @@ -17,32 +17,32 @@ Number.prototype.match = String.prototype.match; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__num.match(__re)[0]!== "02") { - $ERROR('#1: __num.match(__re)[0]=== "02". Actual: '+__num.match(__re)[0]); +if (__num.match(__re)[0] !== "02") { + $ERROR('#1: __num.match(__re)[0]=== "02". Actual: ' + __num.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__num.match(__re).length !==1) { - $ERROR('#2: __num.match(__re).length ===1. Actual: '+__num.match(__re).length ); +if (__num.match(__re).length !== 1) { + $ERROR('#2: __num.match(__re).length ===1. Actual: ' + __num.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__num.match(__re).index !==1) { - $ERROR('#3: __num.match(__re).index ===1. Actual: '+__num.match(__re).index ); +if (__num.match(__re).index !== 1) { + $ERROR('#3: __num.match(__re).index ===1. Actual: ' + __num.match(__re).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__num.match(__re).input !==String(__num)) { - $ERROR('#4: __num.match(__re).input ===String(__num). Actual: '+__num.match(__re).input ); +if (__num.match(__re).input !== String(__num)) { + $ERROR('#4: __num.match(__re).input ===String(__num). Actual: ' + __num.match(__re).input); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js index 9f8c8b30e..00ac312bc 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T18.js @@ -19,32 +19,32 @@ Number.prototype.match = String.prototype.match; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__num.match(__re)[0]!== "02") { - $ERROR('#1: __num.match(__re)[0]=== "02". Actual: '+__num.match(__re)[0]); +if (__num.match(__re)[0] !== "02") { + $ERROR('#1: __num.match(__re)[0]=== "02". Actual: ' + __num.match(__re)[0]); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__num.match(__re).length !==1) { - $ERROR('#2: __num.match(__re).length ===1. Actual: '+__num.match(__re).length ); +if (__num.match(__re).length !== 1) { + $ERROR('#2: __num.match(__re).length ===1. Actual: ' + __num.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__num.match(__re).index !==1) { - $ERROR('#3: __num.match(__re).index ===1. Actual: '+__num.match(__re).index ); +if (__num.match(__re).index !== 1) { + $ERROR('#3: __num.match(__re).index ===1. Actual: ' + __num.match(__re).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__num.match(__re).input !==String(__num)) { - $ERROR('#4: __num.match(__re).input ===String(__num). Actual: '+__num.match(__re).input ); +if (__num.match(__re).input !== String(__num)) { + $ERROR('#4: __num.match(__re).input ===String(__num). Actual: ' + __num.match(__re).input); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js index 27e46bbb2..4d156a3c7 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T2.js @@ -7,23 +7,23 @@ es5id: 15.5.4.10_A2_T2 description: Regular expression is /34/g ---*/ -var __matches=["34","34","34"]; +var __matches = ["34", "34", "34"]; var __string = "343443444"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(/34/g).length!== 3) { - $ERROR('#1: __string = "343443444"; __string.match(/34/g).length=== 3. Actual: '+__string.match(/34/g).length); +if (__string.match(/34/g).length !== 3) { + $ERROR('#1: __string = "343443444"; __string.match(/34/g).length=== 3. Actual: ' + __string.match(/34/g).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(/34/g)[mi]!==__matches[mi]) { - $ERROR('#2.'+mi+': __matches=["34","34","34"]; __string = "343443444"; __string.match(/34/g)['+mi+']===__matches['+mi+']. Actual: '+__string.match(/34/g)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(/34/g)[mi] !== __matches[mi]) { + $ERROR('#2.' + mi + ': __matches=["34","34","34"]; __string = "343443444"; __string.match(/34/g)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(/34/g)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js index 26e6dd68e..3d42695ab 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T3.js @@ -7,23 +7,23 @@ es5id: 15.5.4.10_A2_T3 description: Regular expression is /\d{1}/g ---*/ -var __matches=["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; +var __matches = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; var __string = "123456abcde7890"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(/\d{1}/g).length!== 10) { - $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\d{1}/g).length=== 10. Actual: '+__string.match(/\d{1}/g).length); +if (__string.match(/\d{1}/g).length !== 10) { + $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\d{1}/g).length=== 10. Actual: ' + __string.match(/\d{1}/g).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(/\d{1}/g)[mi]!==__matches[mi]) { - $ERROR('#2.'+mi+': __matches=["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; __string = "123456abcde7890"; __string.match(/\\d{1}/g)['+mi+']===__matches['+mi+']. Actual: '+__string.match(/\d{1}/g)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(/\d{1}/g)[mi] !== __matches[mi]) { + $ERROR('#2.' + mi + ': __matches=["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; __string = "123456abcde7890"; __string.match(/\\d{1}/g)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(/\d{1}/g)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js index 37c6ec04e..bf143c5e3 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T4.js @@ -7,23 +7,23 @@ es5id: 15.5.4.10_A2_T4 description: Regular expression is /\d{2}/g ---*/ -var __matches=["12", "34", "56", "78", "90"]; +var __matches = ["12", "34", "56", "78", "90"]; var __string = "123456abcde7890"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(/\d{2}/g).length!== 5) { - $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\d{2}/g).length=== 5. Actual: '+__string.match(/\d{2}/g).length); +if (__string.match(/\d{2}/g).length !== 5) { + $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\d{2}/g).length=== 5. Actual: ' + __string.match(/\d{2}/g).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(/\d{2}/g)[mi]!==__matches[mi]) { - $ERROR('#2.'+mi+': __matches=["12", "34", "56", "78", "90"]; __string = "123456abcde7890"; __string.match(/\\d{2}/g)['+mi+']===__matches['+mi+']. Actual: '+__string.match(/\d{2}/g)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(/\d{2}/g)[mi] !== __matches[mi]) { + $ERROR('#2.' + mi + ': __matches=["12", "34", "56", "78", "90"]; __string = "123456abcde7890"; __string.match(/\\d{2}/g)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(/\d{2}/g)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js index 22044d86b..f2fc03437 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T5.js @@ -7,23 +7,23 @@ es5id: 15.5.4.10_A2_T5 description: Regular expression is /\D{2}/g ---*/ -var __matches=["ab", "cd"]; +var __matches = ["ab", "cd"]; var __string = "123456abcde7890"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(/\D{2}/g).length!== 2) { - $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\D{2}/g).length=== 2. Actual: '+__string.match(/\D{2}/g).length); +if (__string.match(/\D{2}/g).length !== 2) { + $ERROR('#1: __string = "123456abcde7890"; __string.match(/\\D{2}/g).length=== 2. Actual: ' + __string.match(/\D{2}/g).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(/\D{2}/g)[mi]!==__matches[mi]) { - $ERROR('#2.'+mi+': __matches=["ab", "cd"]; __string = "123456abcde7890"; __string.match(/\\D{2}/g)['+mi+']===__matches['+mi+']. Actual: '+__string.match(/\D{2}/g)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(/\D{2}/g)[mi] !== __matches[mi]) { + $ERROR('#2.' + mi + ': __matches=["ab", "cd"]; __string = "123456abcde7890"; __string.match(/\\D{2}/g)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(/\D{2}/g)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js index 1be783adf..7a1422d91 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T6.js @@ -13,48 +13,48 @@ var __string = "Boston, Mass. 02134"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[0]!== "02134") { - $ERROR('#1: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[0]=== "02134". Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[0]); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[0] !== "02134") { + $ERROR('#1: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[0]=== "02134". Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[0]); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[1]!== "02134") { - $ERROR('#2: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[1]=== "02134". Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[1]); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[1] !== "02134") { + $ERROR('#2: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[1]=== "02134". Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[1]); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[2]!== void 0) { - $ERROR('#3: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[2]=== void 0. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[2]); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[2] !== void 0) { + $ERROR('#3: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/)[2]=== void 0. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/)[2]); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).length !==3) { - $ERROR('#4: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).length ===3. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).length ); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).length !== 3) { + $ERROR('#4: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).length ===3. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#5 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).index !==14) { - $ERROR('#5: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).index ===14. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).index ); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).index !== 14) { + $ERROR('#5: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).index ===14. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#6 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input !==__string) { - $ERROR('#6: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).input ===__string. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input ); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input !== __string) { + $ERROR('#6: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/).input ===__string. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/).input); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js index 48a7ba461..18e1477be 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T7.js @@ -7,22 +7,22 @@ es5id: 15.5.4.10_A2_T7 description: Regular expression is /([\d]{5})([-\ ]?[\d]{4})?$/g ---*/ -var __matches=["02134"]; +var __matches = ["02134"]; var __string = "Boston, Mass. 02134"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g).length!== 1) { - $ERROR('#1: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/g).length=== 1. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g).length); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g).length !== 1) { + $ERROR('#1: __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/g).length=== 1. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0]!==__matches[0]) { - $ERROR('#2: __matches=["02134"]; __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/g)[0]===__matches[0]. Actual: '+__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0]); +if (__string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0] !== __matches[0]) { + $ERROR('#2: __matches=["02134"]; __string = "Boston, Mass. 02134"; __string.match(/([\\d]{5})([-\\ ]?[\\d]{4})?$/g)[0]===__matches[0]. Actual: ' + __string.match(/([\d]{5})([-\ ]?[\d]{4})?$/g)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js index 27cf7c407..635952659 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T8.js @@ -10,7 +10,7 @@ description: > = 0 ---*/ -var __matches=["02134", "02134", undefined]; +var __matches = ["02134", "02134", undefined]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = 0; @@ -19,25 +19,25 @@ var __string = "Boston, MA 02134"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== 3) { - $ERROR('#1: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __string.match(__re).length=== 3. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== 3) { + $ERROR('#1: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __string.match(__re).length=== 3. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(__re).index !==__string.lastIndexOf("0")) { - $ERROR('#2: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = 0; __string.match(__re).index ===__string.lastIndexOf("0"). Actual: '+__string.match(__re).index ); +if (__string.match(__re).index !== __string.lastIndexOf("0")) { + $ERROR('#2: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = 0; __string.match(__re).index ===__string.lastIndexOf("0"). Actual: ' + __string.match(__re).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(__re)[mi]!==__matches[mi]) { - $ERROR('#3.'+mi+': __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __matches=["02134", "02134", undefined]; __string.match(__re)['+mi+']===__matches['+mi+']. Actual: '+__string.match(__re)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(__re)[mi] !== __matches[mi]) { + $ERROR('#3.' + mi + ': __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __matches=["02134", "02134", undefined]; __string.match(__re)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(__re)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js index b37f8ec73..730494c45 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A2_T9.js @@ -12,7 +12,7 @@ description: > var __string = "Boston, MA 02134"; -var __matches=["02134", "02134", undefined]; +var __matches = ["02134", "02134", undefined]; var __re = /([\d]{5})([-\ ]?[\d]{4})?$/; @@ -20,25 +20,25 @@ __re.lastIndex = __string.length; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.match(__re).length!== 3) { - $ERROR('#1: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __string.match(__re).length=== 3. Actual: '+__string.match(__re).length); +if (__string.match(__re).length !== 3) { + $ERROR('#1: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __string.match(__re).length=== 3. Actual: ' + __string.match(__re).length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__string.match(__re).index !==__string.lastIndexOf("0")) { - $ERROR('#2: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = __string.length; __string.match(__re).index ===__string.lastIndexOf("0"). Actual: '+__string.match(__re).index ); +if (__string.match(__re).index !== __string.lastIndexOf("0")) { + $ERROR('#2: __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __re.lastIndex = __string.length; __string.match(__re).index ===__string.lastIndexOf("0"). Actual: ' + __string.match(__re).index); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var mi=0; mi<__matches.length; mi++) { - if (__string.match(__re)[mi]!==__matches[mi]) { - $ERROR('#3.'+mi+': __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __matches=["02134", "02134", undefined]; __string.match(__re)['+mi+']===__matches['+mi+']. Actual: '+__string.match(__re)[mi]); +for (var mi = 0; mi < __matches.length; mi++) { + if (__string.match(__re)[mi] !== __matches[mi]) { + $ERROR('#3.' + mi + ': __string = "Boston, MA 02134"; __re = /([\d]{5})([-\ ]?[\d]{4})?$/; __matches=["02134", "02134", undefined]; __string.match(__re)[' + mi + ']===__matches[' + mi + ']. Actual: ' + __string.match(__re)[mi]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A6.js b/test/built-ins/String/prototype/match/S15.5.4.10_A6.js index e7b44f13f..e2f257c4b 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A6.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.match.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.match.prototype !== undefined) { - $ERROR('#1: String.prototype.match.prototype === undefined. Actual: '+String.prototype.match.prototype ); + $ERROR('#1: String.prototype.match.prototype === undefined. Actual: ' + String.prototype.match.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A7.js b/test/built-ins/String/prototype/match/S15.5.4.10_A7.js index f3ab3f402..c1b66b3a6 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A7.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A7.js @@ -13,5 +13,5 @@ try { var __instance = new __FACTORY; $ERROR('#1: __FACTORY = String.prototype.match; __FACTORY = String.prototype.match; __instance = new __FACTORY lead to throwing exception'); } catch (e) { - if (e instanceof Test262Error) throw e; + if (e instanceof Test262Error) throw e; } diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A8.js b/test/built-ins/String/prototype/match/S15.5.4.10_A8.js index d07bced4d..dedeedfd4 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A8.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.match.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.match.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.match.hasOwnProperty('length')); + $ERROR('#0: String.prototype.match.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.match.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.match.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.match){ - if (p==="length") count++; +for (var p in String.prototype.match) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.match){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.match){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A9.js b/test/built-ins/String/prototype/match/S15.5.4.10_A9.js index e6c8b7d8a..71b5ba725 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A9.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.match.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.match.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.match.hasOwnProperty('length')); + $ERROR('#0: String.prototype.match.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.match.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.match.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.match.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.match.length; String.prototype.match.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.match.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.match.length; String.prototype.match.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.match.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/length.js b/test/built-ins/String/prototype/match/length.js index 674b25cad..89688b5da 100644 --- a/test/built-ins/String/prototype/match/length.js +++ b/test/built-ins/String/prototype/match/length.js @@ -25,7 +25,7 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.match.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.match.hasOwnProperty("length") return true. Actual: '+String.prototype.match.hasOwnProperty("length")); + $ERROR('#1: String.prototype.match.hasOwnProperty("length") return true. Actual: ' + String.prototype.match.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +33,7 @@ if (!(String.prototype.match.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.match.length !== 1) { - $ERROR('#2: String.prototype.match.length === 1. Actual: '+String.prototype.match.length ); + $ERROR('#2: String.prototype.match.length === 1. Actual: ' + String.prototype.match.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/this-val-bool.js b/test/built-ins/String/prototype/match/this-val-bool.js index 65488e526..47765c59f 100644 --- a/test/built-ins/String/prototype/match/this-val-bool.js +++ b/test/built-ins/String/prototype/match/this-val-bool.js @@ -15,8 +15,12 @@ __instance.match = String.prototype.match; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.match(function(){return false;}())[0] !== "false") { - $ERROR('#1: __instance = new Boolean; __instance.match = String.prototype.match; __instance.match(function(){return false;}())[0] === "false". Actual: '+__instance.match(function(){return false;}())[0] ); +if (__instance.match(function() { + return false; + }())[0] !== "false") { + $ERROR('#1: __instance = new Boolean; __instance.match = String.prototype.match; __instance.match(function(){return false;}())[0] === "false". Actual: ' + __instance.match(function() { + return false; + }())[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/this-val-obj.js b/test/built-ins/String/prototype/match/this-val-obj.js index 62c178186..65b477392 100644 --- a/test/built-ins/String/prototype/match/this-val-obj.js +++ b/test/built-ins/String/prototype/match/this-val-obj.js @@ -14,7 +14,7 @@ __instance.match = String.prototype.match; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.match(true)[0] !== "true") { - $ERROR('#1: __instance = new Object(true); __instance.match = String.prototype.match; __instance.match(true)[0] === "true". Actual: '+__instance.match(true)[0] ); + $ERROR('#1: __instance = new Object(true); __instance.match = String.prototype.match; __instance.match(true)[0] === "true". Actual: ' + __instance.match(true)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js b/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js index 81ca29036..1efb22b12 100644 --- a/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js +++ b/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js @@ -23,14 +23,18 @@ var s = '\u00C5\u2ADC\u0958\u2126\u0344'; var nfc = '\xC5\u2ADD\u0338\u0915\u093C\u03A9\u0308\u0301'; var nfd = 'A\u030A\u2ADD\u0338\u0915\u093C\u03A9\u0308\u0301'; var o = { - toString: function() { return 'NFC'; } + toString: function() { + return 'NFC'; + } }; assert.sameValue(s.normalize(['NFC']), nfc, 'coerced array - NFC'); assert.sameValue(s.normalize(o), nfc, 'coerced object - NFC'); o = { - toString: function() { return 'NFD'; } + toString: function() { + return 'NFD'; + } }; assert.sameValue(s.normalize(['NFD']), nfd, 'coerced array - NFD'); diff --git a/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js b/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js index 1bd167844..96d9d2859 100644 --- a/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js +++ b/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js @@ -8,6 +8,6 @@ author: Jordan Harband features: [Symbol] ---*/ -assert.throws(TypeError, function () { - 'abc'.padEnd(10, Symbol()); +assert.throws(TypeError, function() { + 'abc'.padEnd(10, Symbol()); }); diff --git a/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js b/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js index ef89429a2..7736d7ff0 100644 --- a/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js +++ b/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js @@ -9,20 +9,20 @@ description: > author: Jordan Harband ---*/ -assert.throws(TypeError, function () { - String.prototype.padEnd.call(null); +assert.throws(TypeError, function() { + String.prototype.padEnd.call(null); }); -assert.throws(TypeError, function () { - String.prototype.padEnd.call(undefined); +assert.throws(TypeError, function() { + String.prototype.padEnd.call(undefined); }); var notCoercible = { - toString: function () { - throw new Test262Error('attempted toString'); - } + toString: function() { + throw new Test262Error('attempted toString'); + } }; -assert.throws(Test262Error, function () { - String.prototype.padEnd.call(notCoercible); +assert.throws(Test262Error, function() { + String.prototype.padEnd.call(notCoercible); }); diff --git a/test/built-ins/String/prototype/padEnd/exception-symbol.js b/test/built-ins/String/prototype/padEnd/exception-symbol.js index 949d4d927..2c4b5ff0c 100644 --- a/test/built-ins/String/prototype/padEnd/exception-symbol.js +++ b/test/built-ins/String/prototype/padEnd/exception-symbol.js @@ -8,6 +8,6 @@ author: Jordan Harband features: [Symbol] ---*/ -assert.throws(TypeError, function () { - String.prototype.padEnd.call(Symbol()); +assert.throws(TypeError, function() { + String.prototype.padEnd.call(Symbol()); }); diff --git a/test/built-ins/String/prototype/padEnd/function-name.js b/test/built-ins/String/prototype/padEnd/function-name.js index 0b6b7db74..d37b167d9 100644 --- a/test/built-ins/String/prototype/padEnd/function-name.js +++ b/test/built-ins/String/prototype/padEnd/function-name.js @@ -9,9 +9,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - String.prototype.padEnd.name, - 'padEnd', - 'Expected String#padEnd.name to be "padEnd"' + String.prototype.padEnd.name, + 'padEnd', + 'Expected String#padEnd.name to be "padEnd"' ); verifyNotEnumerable(String.prototype.padEnd, 'name'); diff --git a/test/built-ins/String/prototype/padEnd/observable-operations.js b/test/built-ins/String/prototype/padEnd/observable-operations.js index 38315b3c4..ebfe78c89 100644 --- a/test/built-ins/String/prototype/padEnd/observable-operations.js +++ b/test/built-ins/String/prototype/padEnd/observable-operations.js @@ -11,11 +11,11 @@ var log = ""; function createPrimitiveObserver(name, string, value) { return { - toString: function () { + toString: function() { log += '|toString:' + name; return string; }, - valueOf: function () { + valueOf: function() { log += '|valueOf:' + name; return value; } @@ -33,10 +33,10 @@ var result = String.prototype.padEnd.call(receiver, maxLength, fillString); assert.sameValue(result, 'abcdefdefde'); assert.sameValue(log, '|' + [ - 'toString:receiver', - 'valueOf:receiver', - 'valueOf:maxLength', - 'toString:maxLength', - 'toString:fillString', - 'valueOf:fillString' + 'toString:receiver', + 'valueOf:receiver', + 'valueOf:maxLength', + 'toString:maxLength', + 'toString:fillString', + 'valueOf:fillString' ].join('|'), log); diff --git a/test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js b/test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js index 73f543544..fbcb05454 100644 --- a/test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js +++ b/test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js @@ -8,6 +8,6 @@ author: Jordan Harband features: [Symbol] ---*/ -assert.throws(TypeError, function () { - 'abc'.padStart(10, Symbol()); +assert.throws(TypeError, function() { + 'abc'.padStart(10, Symbol()); }); diff --git a/test/built-ins/String/prototype/padStart/exception-not-object-coercible.js b/test/built-ins/String/prototype/padStart/exception-not-object-coercible.js index 7d08deae0..c6ea23939 100644 --- a/test/built-ins/String/prototype/padStart/exception-not-object-coercible.js +++ b/test/built-ins/String/prototype/padStart/exception-not-object-coercible.js @@ -9,20 +9,20 @@ description: > author: Jordan Harband ---*/ -assert.throws(TypeError, function () { - String.prototype.padStart.call(null); +assert.throws(TypeError, function() { + String.prototype.padStart.call(null); }); -assert.throws(TypeError, function () { - String.prototype.padStart.call(undefined); +assert.throws(TypeError, function() { + String.prototype.padStart.call(undefined); }); var notCoercible = { - toString: function () { - throw new Test262Error('attempted toString'); - } + toString: function() { + throw new Test262Error('attempted toString'); + } }; -assert.throws(Test262Error, function () { - String.prototype.padStart.call(notCoercible); +assert.throws(Test262Error, function() { + String.prototype.padStart.call(notCoercible); }); diff --git a/test/built-ins/String/prototype/padStart/exception-symbol.js b/test/built-ins/String/prototype/padStart/exception-symbol.js index 66521f28c..9f85fe4f6 100644 --- a/test/built-ins/String/prototype/padStart/exception-symbol.js +++ b/test/built-ins/String/prototype/padStart/exception-symbol.js @@ -8,6 +8,6 @@ author: Jordan Harband features: [Symbol] ---*/ -assert.throws(TypeError, function () { - String.prototype.padStart.call(Symbol()); +assert.throws(TypeError, function() { + String.prototype.padStart.call(Symbol()); }); diff --git a/test/built-ins/String/prototype/padStart/function-name.js b/test/built-ins/String/prototype/padStart/function-name.js index 0b63be0e4..824978a80 100644 --- a/test/built-ins/String/prototype/padStart/function-name.js +++ b/test/built-ins/String/prototype/padStart/function-name.js @@ -9,9 +9,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - String.prototype.padStart.name, - 'padStart', - 'Expected String#padStart.name to be "padStart"' + String.prototype.padStart.name, + 'padStart', + 'Expected String#padStart.name to be "padStart"' ); verifyNotEnumerable(String.prototype.padStart, 'name'); diff --git a/test/built-ins/String/prototype/padStart/observable-operations.js b/test/built-ins/String/prototype/padStart/observable-operations.js index dfb9a0f26..260ecda04 100644 --- a/test/built-ins/String/prototype/padStart/observable-operations.js +++ b/test/built-ins/String/prototype/padStart/observable-operations.js @@ -11,11 +11,11 @@ var log = ""; function createPrimitiveObserver(name, string, value) { return { - toString: function () { + toString: function() { log += '|toString:' + name; return string; }, - valueOf: function () { + valueOf: function() { log += '|valueOf:' + name; return value; } @@ -33,10 +33,10 @@ var result = String.prototype.padStart.call(receiver, maxLength, fillString); assert.sameValue(result, 'defdefdeabc'); assert.sameValue(log, '|' + [ - 'toString:receiver', - 'valueOf:receiver', - 'valueOf:maxLength', - 'toString:maxLength', - 'toString:fillString', - 'valueOf:fillString' + 'toString:receiver', + 'valueOf:receiver', + 'valueOf:maxLength', + 'toString:maxLength', + 'toString:fillString', + 'valueOf:fillString' ].join('|'), log); diff --git a/test/built-ins/String/prototype/replace/15.5.4.11-1.js b/test/built-ins/String/prototype/replace/15.5.4.11-1.js index 5cc4a8ce9..c59125079 100644 --- a/test/built-ins/String/prototype/replace/15.5.4.11-1.js +++ b/test/built-ins/String/prototype/replace/15.5.4.11-1.js @@ -10,13 +10,13 @@ flags: [noStrict] ---*/ var global = this; - var retVal = 'x'.replace(/x/, - function() { - if (this===global) { - return 'y'; - } else { - return 'z'; - } - }); +var retVal = 'x'.replace(/x/, + function() { + if (this === global) { + return 'y'; + } else { + return 'z'; + } + }); assert.sameValue(retVal, 'y', 'retVal'); diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js index 76846ee1f..a733aa05a 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.replace.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length')); + $ERROR('#1: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.replace.length; -verifyNotWritable(String.prototype.replace, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.replace, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.replace.length !== __obj) { - $ERROR('#2: __obj = String.prototype.replace.length; String.prototype.replace.length = function(){return "shifted";}; String.prototype.replace.length === __obj. Actual: '+String.prototype.replace.length ); + $ERROR('#2: __obj = String.prototype.replace.length; String.prototype.replace.length = function(){return "shifted";}; String.prototype.replace.length === __obj. Actual: ' + String.prototype.replace.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js index 5b9af5f11..78b3472ae 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.replace.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.replace.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.replace.hasOwnProperty("length") return true. Actual: '+String.prototype.replace.hasOwnProperty("length")); + $ERROR('#1: String.prototype.replace.hasOwnProperty("length") return true. Actual: ' + String.prototype.replace.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.replace.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.replace.length !== 2) { - $ERROR('#2: String.prototype.replace.length === 2. Actual: '+String.prototype.replace.length ); + $ERROR('#2: String.prototype.replace.length === 2. Actual: ' + String.prototype.replace.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js index 66ba29f7f..0dea5dd0f 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js @@ -17,7 +17,7 @@ var global = this; } if (this !== undefined) { $ERROR('#2: replaceValue should be called with this===undefined. ' + - 'Actual: ' + this); + 'Actual: ' + this); } return 'y'; }); diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js index 0ccd9a781..1e8384155 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js @@ -14,7 +14,7 @@ __instance.replace = String.prototype.replace; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.replace(true, 1) !== "1") { - $ERROR('#1: __instance = new Object(true); __instance.replace = String.prototype.replace; __instance.replace(true, 1) === "1". Actual: '+__instance.replace(true, 1) ); + $ERROR('#1: __instance = new Object(true); __instance.replace = String.prototype.replace; __instance.replace(true, 1) === "1". Actual: ' + __instance.replace(true, 1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js index 552c478ff..c044c8515 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js @@ -10,15 +10,23 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041B";}}; +var __obj = { + toString: function() { + return "\u0041B"; + } +}; var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.replace(__obj, function(){return x;}) !== "undefinedBABABAB") { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; replace(__obj, function(){return x;}) === "undefinedBABABAB". Actual: '+__str.replace(__obj, function(){return x;}) ); - } +if (__str.replace(__obj, function() { + return x; + }) !== "undefinedBABABAB") { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; replace(__obj, function(){return x;}) === "undefinedBABABAB". Actual: ' + __str.replace(__obj, function() { + return x; + })); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js index e6da57621..9957654db 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js @@ -10,19 +10,27 @@ description: > function, that throw exception ---*/ -var __obj = {toString:function(){throw "insearchValue";}}; -var __obj2 = {toString:function(){throw "inreplaceValue";}}; +var __obj = { + toString: function() { + throw "insearchValue"; + } +}; +var __obj2 = { + toString: function() { + throw "inreplaceValue"; + } +}; var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.replace(__obj,__obj2); - $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="insearchValue") { - $ERROR('#1.1: Exception === "insearchValue". Actual: '+e); - } - } +try { + var x = __str.replace(__obj, __obj2); + $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "insearchValue") { + $ERROR('#1.1: Exception === "insearchValue". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js index d56fe57fd..b7fb48f1f 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js @@ -11,19 +11,30 @@ description: > have overrided toString function, that throw exception ---*/ -var __obj = {toString:function(){return {};}, valueOf:function(){throw "insearchValue";}}; -var __obj2 = {toString:function(){throw "inreplaceValue";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "insearchValue"; + } +}; +var __obj2 = { + toString: function() { + throw "inreplaceValue"; + } +}; var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.replace(__obj, __obj2); - $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="insearchValue") { - $ERROR('#1.1: Exception === "insearchValue". Actual: '+e); - } - } +try { + var x = __str.replace(__obj, __obj2); + $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "insearchValue") { + $ERROR('#1.1: Exception === "insearchValue". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js index 0a3b6feff..47f4cd103 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js @@ -11,18 +11,29 @@ description: > function, that throw exception ---*/ -var __obj = {toString:function(){return {};}, valueOf:function(){return 1;}}; -var __obj2 = {toString:function(){throw "inreplaceValue";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +}; +var __obj2 = { + toString: function() { + throw "inreplaceValue"; + } +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - var x = "ABB\u0041BABAB\u0031BBAA".replace(__obj, __obj2); - $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".replace(__obj,__obj2) lead to throwing exception'); + var x = "ABB\u0041BABAB\u0031BBAA".replace(__obj, __obj2); + $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".replace(__obj,__obj2) lead to throwing exception'); } catch (e) { - if (e!=="inreplaceValue") { - $ERROR('#1.1: Exception === "inreplaceValue". Actual: '+e); - } + if (e !== "inreplaceValue") { + $ERROR('#1.1: Exception === "inreplaceValue". Actual: ' + e); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js index e37a5abec..0068bb2ff 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js @@ -12,7 +12,7 @@ var __reg = new RegExp("77"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1) !== "ABBABABAB\u0031BBAA") { - $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".replace(__reg, 1) === "ABBABABAB\\u0031BBAA". Actual: '+("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1)) ); + $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".replace(__reg, 1) === "ABBABABAB\\u0031BBAA". Actual: ' + ("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js index 6156897ad..f6a6011c9 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js @@ -7,7 +7,11 @@ es5id: 15.5.4.11_A1_T15 description: Instance is Object, searchValue is regular expression ---*/ -var __obj = {toString:function(){return /77/}}; +var __obj = { + toString: function() { + return /77/ + } +}; var __instance = new Object(1100.00777001); @@ -17,10 +21,10 @@ Object.prototype.replace = String.prototype.replace; //CHECK#1 try { var x = __instance.replace(__obj, 1) === "1100.0017001"; - $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.0017001" lead to throwing exception'); + $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.0017001" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js index e29fe2002..7954b1f9a 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js @@ -13,7 +13,13 @@ var __instance = new Number(1100.00777001); Number.prototype.replace = String.prototype.replace; -var __obj = {toString:function(){return function(a1,a2,a3){return a2+"z"};}} +var __obj = { + toString: function() { + return function(a1, a2, a3) { + return a2 + "z" + }; + } +} //__obj = function(a1,a2,a3){return a2+"z"}; @@ -24,7 +30,7 @@ try { $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.007z7001" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js index 979101a3a..89a3a605e 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js @@ -7,7 +7,7 @@ es5id: 15.5.4.11_A1_T17 description: Instance is String object, searchValue is regular expression ---*/ -var __re = new RegExp(x,"g"); +var __re = new RegExp(x, "g"); var __instance = String("asdf"); @@ -15,7 +15,7 @@ var __str = "1"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.replace(__re, __str) !== "1a1s1d1f1") { - $ERROR('#1: var x; var __re = new RegExp(x,"g"); __instance = String("asdf"); __str = "1"; __instance.replace(__re, __str) === "1a1s1d1f1". Actual: '+__instance.replace(__re, __str) ); + $ERROR('#1: var x; var __re = new RegExp(x,"g"); __instance = String("asdf"); __str = "1"; __instance.replace(__re, __str) === "1a1s1d1f1". Actual: ' + __instance.replace(__re, __str)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js index b8c56f315..342007437 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js @@ -15,8 +15,12 @@ __instance.replace = String.prototype.replace; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.replace(function(){return false;}(),x) !== "undefined") { - $ERROR('#1: var x; __instance = new Boolean; __instance.replace = String.prototype.replace; __instance.replace(function(){return false;}(),x) === "undefined". Actual: '+__instance.replace(function(){return false;}(),x) ); +if (__instance.replace(function() { + return false; + }(), x) !== "undefined") { + $ERROR('#1: var x; __instance = new Boolean; __instance.replace = String.prototype.replace; __instance.replace(function(){return false;}(),x) === "undefined". Actual: ' + __instance.replace(function() { + return false; + }(), x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js index e38a39444..f647a286e 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js @@ -11,8 +11,16 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) !== "g1una") { - $ERROR('#1: function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) === "g1una". Actual: '+function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) ); +if (function() { + return "gnulluna" + }().replace(null, function(a1, a2, a3) { + return a2 + ""; + }) !== "g1una") { + $ERROR('#1: function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) === "g1una". Actual: ' + function() { + return "gnulluna" + }().replace(null, function(a1, a2, a3) { + return a2 + ""; + })); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js index cbd9c74fe..1b285d190 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js @@ -11,8 +11,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (function(){return "gnulluna"}().replace(null, Function()) !== "gundefineduna") { - $ERROR('#1: function(){return "gnulluna"}().replace(null, Function()) === "gundefineduna". Actual: '+function(){return "gnulluna"}().replace(null, Function()) ); +if (function() { + return "gnulluna" + }().replace(null, Function()) !== "gundefineduna") { + $ERROR('#1: function(){return "gnulluna"}().replace(null, Function()) === "gundefineduna". Actual: ' + function() { + return "gnulluna" + }().replace(null, Function())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js index b593f4f93..4bb87896c 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js @@ -12,8 +12,8 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String("undefined").replace(x,Function("return arguments[1]+42;")) !== "42") { - $ERROR('#1: var x; new String("undefined").replace(x,Function("return arguments[1]+42;")) === "42". Actual: '+new String("undefined").replace(x,Function("return arguments[1]+42;")) ); +if (new String("undefined").replace(x, Function("return arguments[1]+42;")) !== "42") { + $ERROR('#1: var x; new String("undefined").replace(x,Function("return arguments[1]+42;")) === "42". Actual: ' + new String("undefined").replace(x, Function("return arguments[1]+42;"))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js index 8c2ec1311..aebeaffc2 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js @@ -11,8 +11,8 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(void 0).replace("e",undefined) !== "undundefinedfined") { - $ERROR('#1: String(void 0).replace("e",undefined) === "undundefinedfined". Actual: '+String(void 0).replace("e",undefined) ); +if (String(void 0).replace("e", undefined) !== "undundefinedfined") { + $ERROR('#1: String(void 0).replace("e",undefined) === "undundefinedfined". Actual: ' + String(void 0).replace("e", undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js index 81c9a9c4a..24bfc5d14 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js @@ -9,12 +9,14 @@ description: > expression and void 0 arguments of String object ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(__obj).replace(/e/g,void 0) !== "undundefinedfinundefinedd") { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).replace(/e/g,void 0) === "undundefinedfinundefinedd". Actual: '+String(__obj).replace(/e/g,void 0) ); +if (String(__obj).replace(/e/g, void 0) !== "undundefinedfinundefinedd") { + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).replace(/e/g,void 0) === "undundefinedfinundefinedd". Actual: ' + String(__obj).replace(/e/g, void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js index 9c4ebe9e2..950aa347a 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js @@ -10,16 +10,18 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String(__obj).replace(function(){}(),__func) !== "undefined0undefined") { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; function __func(a1,a2,a3){return a1+a2+a3;}; new String(__obj).replace(function(){}(),__func) === "undefined0undefined". Actual: '+new String(__obj).replace(function(){}(),__func) ); +if (new String(__obj).replace(function() {}(), __func) !== "undefined0undefined") { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; function __func(a1,a2,a3){return a1+a2+a3;}; new String(__obj).replace(function(){}(),__func) === "undefined0undefined". Actual: ' + new String(__obj).replace(function() {}(), __func)); } // ////////////////////////////////////////////////////////////////////////////// -function __func(a1,a2,a3){return a1+a2+a3;}; +function __func(a1, a2, a3) { + return a1 + a2 + a3; +}; diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js index faf12bdc5..14975453a 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js @@ -16,8 +16,8 @@ var __re = /sh/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re,'sch')!=='She sells seaschells by the seaschore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,\'sch\')===\'She sells seaschells by the seaschore.\'. Actual: '+__str.replace(__re,'sch')); +if (__str.replace(__re, 'sch') !== 'She sells seaschells by the seaschore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,\'sch\')===\'She sells seaschells by the seaschore.\'. Actual: ' + __str.replace(__re, 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js index aabe0d9ae..0a8d22f4c 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js @@ -14,8 +14,8 @@ var __re = /sh/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$'" + 'sch')!=='She sells seaells by the seashore.schells by the seashore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seashore.\'. Actual: '+__str.replace(__re, "$'" + 'sch')); +if (__str.replace(__re, "$'" + 'sch') !== 'She sells seaells by the seashore.schells by the seashore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seashore.\'. Actual: ' + __str.replace(__re, "$'" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js index b5290edf2..3c4026889 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js @@ -14,8 +14,8 @@ var __re = /sh/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re,"$$" + 'sch')!=='She sells sea$schells by the sea$schore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$$" + \'sch\')===\'She sells sea$schells by the sea$schore.\'. Actual: '+__str.replace(__re,"$$" + 'sch')); +if (__str.replace(__re, "$$" + 'sch') !== 'She sells sea$schells by the sea$schore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$$" + \'sch\')===\'She sells sea$schells by the sea$schore.\'. Actual: ' + __str.replace(__re, "$$" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js index ca30baccb..231fe1bca 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js @@ -14,8 +14,8 @@ var __re = /sh/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re,"$&" + 'sch')!=='She sells seashschells by the seashschore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$&" + \'sch\')===\'She sells seashschells by the seashschore.\'. Actual: '+__str.replace(__re,"$&" + 'sch')); +if (__str.replace(__re, "$&" + 'sch') !== 'She sells seashschells by the seashschore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$&" + \'sch\')===\'She sells seashschells by the seashschore.\'. Actual: ' + __str.replace(__re, "$&" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// 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')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js index a3c907e2b..734dcb247 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js @@ -14,8 +14,8 @@ var __re = /sh/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$'" + 'sch')!=='She sells seaells by the seashore.schells by the seaore.schore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seaore.schore.\'. Actual: '+__str.replace(__re, "$'" + 'sch')); +if (__str.replace(__re, "$'" + 'sch') !== 'She sells seaells by the seashore.schells by the seaore.schore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seaore.schore.\'. Actual: ' + __str.replace(__re, "$'" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js index c0811cbee..3ba195faf 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js @@ -14,8 +14,8 @@ var __re = /sh/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, 'sch')!=='She sells seaschells by the seashore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, \'sch\')===\'She sells seaschells by the seashore.\'. Actual: '+__str.replace(__re, 'sch')); +if (__str.replace(__re, 'sch') !== 'She sells seaschells by the seashore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, \'sch\')===\'She sells seaschells by the seashore.\'. Actual: ' + __str.replace(__re, 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js index 327071a44..3c475e5f1 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js @@ -14,8 +14,8 @@ var __re = /sh/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$$" + 'sch')!=='She sells sea$schells by the seashore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$$" + \'sch\')===\'She sells sea$schells by the seashore.\'. Actual: '+__str.replace(__re, "$$" + 'sch')); +if (__str.replace(__re, "$$" + 'sch') !== 'She sells sea$schells by the seashore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$$" + \'sch\')===\'She sells sea$schells by the seashore.\'. Actual: ' + __str.replace(__re, "$$" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js index 45c09ddfd..38accef87 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js @@ -14,8 +14,8 @@ var __re = /sh/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$&" + 'sch')!=='She sells seashschells by the seashore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$&" + \'sch\')===\'She sells seashschells by the seashore.\'. Actual: '+__str.replace(__re, "$&" + 'sch')); +if (__str.replace(__re, "$&" + 'sch') !== 'She sells seashschells by the seashore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$&" + \'sch\')===\'She sells seashschells by the seashore.\'. Actual: ' + __str.replace(__re, "$&" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js index 946f10372..175a4df67 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js @@ -14,8 +14,8 @@ var __re = /sh/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$`" + 'sch')!=='She sells seaShe sells seaschells by the seashore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seashore.\'. Actual: '+__str.replace(__re, "$`" + 'sch')); +if (__str.replace(__re, "$`" + 'sch') !== 'She sells seaShe sells seaschells by the seashore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seashore.\'. Actual: ' + __str.replace(__re, "$`" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js index 07cc9cc72..2bd1e5d2d 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js @@ -12,8 +12,8 @@ var __re = /(uid=)(\d+)/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$11" + 15)!=='uid=115') { - $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + 15)===\'uid=115\'. Actual: '+__str.replace(__re, "$11" + 15)); +if (__str.replace(__re, "$11" + 15) !== 'uid=115') { + $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + 15)===\'uid=115\'. Actual: ' + __str.replace(__re, "$11" + 15)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js index 103dc9ec3..10b7df2c5 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js @@ -12,8 +12,8 @@ var __re = /(uid=)(\d+)/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$11" + '15')!=='uid=115') { - $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'15\')===\'uid=115\'. Actual: '+__str.replace(__re, "$11" + '15')); +if (__str.replace(__re, "$11" + '15') !== 'uid=115') { + $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'15\')===\'uid=115\'. Actual: ' + __str.replace(__re, "$11" + '15')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js index 3b1a30458..83060fd58 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js @@ -12,8 +12,8 @@ var __re = /(uid=)(\d+)/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$11" + 'A15')!=='uid=1A15' ) { - $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'A15\')===\'uid=1A15\' . Actual: '+__str.replace(__re, "$11" + 'A15')); +if (__str.replace(__re, "$11" + 'A15') !== 'uid=1A15') { + $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'A15\')===\'uid=1A15\' . Actual: ' + __str.replace(__re, "$11" + 'A15')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js index e695fe572..99a1b6f3a 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js @@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__pattern, __replFN)!=='12abc def34') { - $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc def34\'. Actual: '+__str.replace(__pattern, __replFN)); +if (__str.replace(__pattern, __replFN) !== '12abc def34') { + $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc def34\'. Actual: ' + __str.replace(__pattern, __replFN)); } // ////////////////////////////////////////////////////////////////////////////// - + function __replFN() { - return arguments[2] + arguments[1]; + return arguments[2] + arguments[1]; } diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js index 141966c06..83489c51d 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js @@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__pattern, __replFN)!=='12abc 34def') { - $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/g; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc 34def\'. Actual: '+__str.replace(__pattern, __replFN)); +if (__str.replace(__pattern, __replFN) !== '12abc 34def') { + $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/g; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc 34def\'. Actual: ' + __str.replace(__pattern, __replFN)); } // ////////////////////////////////////////////////////////////////////////////// - + function __replFN() { - return arguments[2] + arguments[1]; + return arguments[2] + arguments[1]; } diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js index fcd736f85..e60121203 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js @@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/i; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__pattern, __replFN)!=='12aBc def34') { - $ERROR('#1: var __str = "aBc12 def34"; var __pattern = /([a-z]+)([0-9]+)/i; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc def34\'. Actual: '+__str.replace(__pattern, __replFN)); +if (__str.replace(__pattern, __replFN) !== '12aBc def34') { + $ERROR('#1: var __str = "aBc12 def34"; var __pattern = /([a-z]+)([0-9]+)/i; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc def34\'. Actual: ' + __str.replace(__pattern, __replFN)); } // ////////////////////////////////////////////////////////////////////////////// - + function __replFN() { - return arguments[2] + arguments[1]; + return arguments[2] + arguments[1]; } diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js index b272fa8d7..199688c6c 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js @@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/ig; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__pattern, __replFN)!=='12aBc 34dEf') { - $ERROR('#1: var __str = "aBc12 dEf34"; var __pattern = /([a-z]+)([0-9]+)/ig; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc 34dEf\'. Actual: '+__str.replace(__pattern, __replFN)); +if (__str.replace(__pattern, __replFN) !== '12aBc 34dEf') { + $ERROR('#1: var __str = "aBc12 dEf34"; var __pattern = /([a-z]+)([0-9]+)/ig; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc 34dEf\'. Actual: ' + __str.replace(__pattern, __replFN)); } // ////////////////////////////////////////////////////////////////////////////// - + function __replFN() { - return arguments[2] + arguments[1]; + return arguments[2] + arguments[1]; } diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js index 22128bc6e..37a6bb1fb 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js @@ -13,8 +13,8 @@ var __repl = "$1"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__pattern, __repl)!=='aaaaa') { - $ERROR('#1: var __str = "aaaaaaaaaa,aaaaaaaaaaaaaaa"; var __pattern = /^(a+)\\1*,\\1+$/; var __repl = "$1"; __str.replace(__pattern, __repl)===\'aaaaa\'. Actual: '+__str.replace(__pattern, __repl)); +if (__str.replace(__pattern, __repl) !== 'aaaaa') { + $ERROR('#1: var __str = "aaaaaaaaaa,aaaaaaaaaaaaaaa"; var __pattern = /^(a+)\\1*,\\1+$/; var __repl = "$1"; __str.replace(__pattern, __repl)===\'aaaaa\'. Actual: ' + __str.replace(__pattern, __repl)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js index 5ba2416ab..f71770ae6 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.replace.prototype; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.replace.prototype !== undefined) { - $ERROR('#1: String.prototype.replace.prototype === undefined. Actual: '+String.prototype.replace.prototype ); + $ERROR('#1: String.prototype.replace.prototype === undefined. Actual: ' + String.prototype.replace.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js index 848f6bd1e..e88a11ca1 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js @@ -13,5 +13,5 @@ try { var __instance = new __FACTORY; $ERROR('#1: __FACTORY = String.prototype.replace; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { - if (e instanceof Test262Error) throw e; + if (e instanceof Test262Error) throw e; } diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js index 3ad4ba953..536529b43 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.replace.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length')); + $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.replace.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.replace){ - if (p==="length") count++; +for (var p in String.prototype.replace) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.replace){if (p==="length") count++;} count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.replace){if (p==="length") count++;} count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js index 55b188a5e..0d198db9e 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.replace.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length')); + $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.replace.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.replace.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.replace.length; String.prototype.replace.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.replace.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.replace.length; String.prototype.replace.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.replace.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A10.js b/test/built-ins/String/prototype/search/S15.5.4.12_A10.js index 9b1186132..3a7a27f67 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A10.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.search.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.search.hasOwnProperty('length')); + $ERROR('#1: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.search.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.search.length; -verifyNotWritable(String.prototype.search, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.search, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.search.length !== __obj) { - $ERROR('#2: __obj = String.prototype.search.length; String.prototype.search.length = function(){return "shifted";}; String.prototype.search.length === __obj. Actual: '+String.prototype.search.length ); + $ERROR('#2: __obj = String.prototype.search.length; String.prototype.search.length = function(){return "shifted";}; String.prototype.search.length === __obj. Actual: ' + String.prototype.search.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A11.js b/test/built-ins/String/prototype/search/S15.5.4.12_A11.js index 3e71c196d..13e25ac57 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A11.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.search.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.search.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.search.hasOwnProperty("length") return true. Actual: '+String.prototype.search.hasOwnProperty("length")); + $ERROR('#1: String.prototype.search.hasOwnProperty("length") return true. Actual: ' + String.prototype.search.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.search.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.search.length !== 1) { - $ERROR('#2: String.prototype.search.length === 1. Actual: '+String.prototype.search.length ); + $ERROR('#2: String.prototype.search.length === 1. Actual: ' + String.prototype.search.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js index 1813eaac2..2ef942e49 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js @@ -14,7 +14,7 @@ __instance.search = String.prototype.search; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.search(true) !== 0) { - $ERROR('#1: __instance = new Object(true); __instance.search = String.prototype.search; __instance.search(true) === 0. Actual: '+__instance.search(true) ); + $ERROR('#1: __instance = new Object(true); __instance.search = String.prototype.search; __instance.search(true) === 0. Actual: ' + __instance.search(true)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js index 8e6a7efc5..02515864e 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js @@ -9,14 +9,18 @@ description: > toString function ---*/ -var __obj = {toString:function(){return "\u0041B";}}; +var __obj = { + toString: function() { + return "\u0041B"; + } +}; var __str = "ssABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.search(__obj) !==2) { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __str = "ssABB\u0041BABAB"; __str.search(__obj) ===2. Actual: '+__str.search(__obj) ); - } +if (__str.search(__obj) !== 2) { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __str = "ssABB\u0041BABAB"; __str.search(__obj) ===2. Actual: ' + __str.search(__obj)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js index 8367e9ae3..dec9e127e 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js @@ -9,18 +9,22 @@ description: > toString function, that throw exception ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.search(__obj); - $ERROR('#1: var x = __str.search(__obj) lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __str.search(__obj); + $ERROR('#1: var x = __str.search(__obj) lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js index b53f64452..09d8fcee6 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js @@ -9,18 +9,25 @@ description: > toString and valueOf functions, valueOf throw exception ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.search(__obj); - $ERROR('#1: var x = __str.search(__obj) lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __str.search(__obj); + $ERROR('#1: var x = __str.search(__obj) lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js index edec536de..92c121f58 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js @@ -9,12 +9,19 @@ description: > toString and valueOf functions ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj) !==5) { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".search(__obj) ===5. Actual: '+("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj)) ); +if ("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj) !== 5) { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".search(__obj) ===5. Actual: ' + ("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js index a8245be47..8a12d8fa8 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js @@ -12,7 +12,7 @@ var __reg = new RegExp("77"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("ABB\u0041BABAB\u0037\u0037BBAA".search(__reg) !== 9) { - $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".search(__reg) === 9. Actual: '+("ABB\u0041BABAB\u0037\u0037BBAA".search(__reg)) ); + $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".search(__reg) === 9. Actual: ' + ("ABB\u0041BABAB\u0037\u0037BBAA".search(__reg))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js index 61d0ec886..103332f71 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js @@ -13,8 +13,12 @@ __instance.search = String.prototype.search; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.search(function(){return false;}()) !== 0) { - $ERROR('#1: __instance = new Boolean; __instance.search = String.prototype.search; __instance.search(function(){return false;}()) === 0. Actual: '+__instance.search(function(){return false;}()) ); +if (__instance.search(function() { + return false; + }()) !== 0) { + $ERROR('#1: __instance = new Boolean; __instance.search = String.prototype.search; __instance.search(function(){return false;}()) === 0. Actual: ' + __instance.search(function() { + return false; + }())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js index c3e0aa669..d7245d11e 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js @@ -11,11 +11,11 @@ description: Call search (regexp) without arguments //CHECK#1 //since ToString() evaluates to "" search() evaluates to search("") if ("".search() !== 0) { - $ERROR('#1: "".search() === 0. Actual: '+("".search()) ); + $ERROR('#1: "".search() === 0. Actual: ' + ("".search())); } if ("--undefined--".search() != 0) { - $ERROR('#1: "--undefined--".search() === 0. Actual: '+("--undefined--".search()) ); + $ERROR('#1: "--undefined--".search() === 0. Actual: ' + ("--undefined--".search())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js index a1407792f..297c1719d 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js @@ -10,8 +10,12 @@ description: Argument is null, and instance is function call, that return string ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" search(null) evaluates to search("null") -if (function(){return "gnulluna"}().search(null) !== 1) { - $ERROR('#1: function(){return "gnulluna"}().search(null) === 1. Actual: '+function(){return "gnulluna"}().search(null) ); +if (function() { + return "gnulluna" + }().search(null) !== 1) { + $ERROR('#1: function(){return "gnulluna"}().search(null) === 1. Actual: ' + function() { + return "gnulluna" + }().search(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js index 074d2d68f..f2b4f7654 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js @@ -11,7 +11,7 @@ description: Argument is x, and instance is new String, x is undefined variable //CHECK#1 //since ToString(undefined) evaluates to "undefined" search(undefined) evaluates to search("undefined") if (new String("undefined").search(x) !== 0) { - $ERROR('#1: var x; new String("undefined").search(x) === 0. Actual: '+new String("undefined").search(x) ); + $ERROR('#1: var x; new String("undefined").search(x) === 0. Actual: ' + new String("undefined").search(x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js index dc79e77e2..f4512a691 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js @@ -11,7 +11,7 @@ description: Argument is undefined, and instance is new String //CHECK#1 //since ToString(undefined) evaluates to "undefined" search(undefined) evaluates to search("undefined") if (String("undefined").search(undefined) !== 0) { - $ERROR('#1: String("undefined").search(undefined) === 0. Actual: '+String("undefined").search(undefined) ); + $ERROR('#1: String("undefined").search(undefined) === 0. Actual: ' + String("undefined").search(undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js index 9686f918f..77a619c6a 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js @@ -9,13 +9,15 @@ description: > toString function ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(void 0) evaluates to "undefined" search(void 0) evaluates to search("undefined") if (String(__obj).search(void 0) !== 0) { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).search(void 0) === 0. Actual: '+String(__obj).search(void 0) ); + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).search(void 0) === 0. Actual: ' + String(__obj).search(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js index d94e1307f..000e2f3d7 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js @@ -10,15 +10,15 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(undefined) evaluates to "undefined" search(undefined) evaluates to search("undefined") -if (new String(__obj).search(function(){}()) !== 0) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).search(function(){}()) === 0. Actual: '+new String(__obj).search(function(){}()) ); +if (new String(__obj).search(function() {}()) !== 0) { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).search(function(){}()) === 0. Actual: ' + new String(__obj).search(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js index 67cd389fc..3e7755ee4 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js @@ -11,8 +11,8 @@ var aString = new String("test string"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search("string")!== 5) { - $ERROR('#1: var aString = new String("test string"); aString.search("string")=== 5. Actual: '+aString.search("string")); +if (aString.search("string") !== 5) { + $ERROR('#1: var aString = new String("test string"); aString.search("string")=== 5. Actual: ' + aString.search("string")); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js index 31a6f4123..5e1946c29 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js @@ -11,8 +11,8 @@ var aString = new String("test string"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search("String")!== -1) { - $ERROR('#1: var aString = new String("test string"); aString.search("String")=== -1. Actual: '+aString.search("String")); +if (aString.search("String") !== -1) { + $ERROR('#1: var aString = new String("test string"); aString.search("String")=== -1. Actual: ' + aString.search("String")); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js index 221a60249..6d9640d7b 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js @@ -11,8 +11,8 @@ var aString = new String("test string"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search(/String/i)!== 5) { - $ERROR('#1: var aString = new String("test string"); aString.search(/String/i)=== 5. Actual: '+aString.search(/String/i)); +if (aString.search(/String/i) !== 5) { + $ERROR('#1: var aString = new String("test string"); aString.search(/String/i)=== 5. Actual: ' + aString.search(/String/i)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js index 2edc13e4a..98e9ccd3f 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js @@ -14,8 +14,8 @@ var regExp = /Four/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (bString.search(regExp)!== -1) { - $ERROR('#1: var bString = new String("one two three four five"); var regExp = /Four/; bString.search(regExp)=== -1. Actual: '+bString.search(regExp)); +if (bString.search(regExp) !== -1) { + $ERROR('#1: var bString = new String("one two three four five"); var regExp = /Four/; bString.search(regExp)=== -1. Actual: ' + bString.search(regExp)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js index 40b750cc8..a2c4d80fd 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js @@ -14,8 +14,8 @@ var regExp = /four/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (bString.search(regExp)!== 14) { - $ERROR('#1: var bString = new String("one two three four five"); var regExp = /four/; bString.search(regExp)=== 14. Actual: '+bString.search(regExp)); +if (bString.search(regExp) !== 14) { + $ERROR('#1: var bString = new String("one two three four five"); var regExp = /four/; bString.search(regExp)=== 14. Actual: ' + bString.search(regExp)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js index b6787c22c..3acba0c77 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js @@ -11,8 +11,8 @@ var aString = new String("test string"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search("notexist")!== -1) { - $ERROR('#1: var aString = new String("test string"); aString.search("notexist")=== -1. Actual: '+aString.search("notexist")); +if (aString.search("notexist") !== -1) { + $ERROR('#1: var aString = new String("test string"); aString.search("notexist")=== -1. Actual: ' + aString.search("notexist")); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js index 4dad5ae95..7581a0a85 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js @@ -11,8 +11,8 @@ var aString = new String("test string probe"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search("string pro")!== 5) { - $ERROR('#1: var aString = new String("test string probe"); aString.search("string pro")=== 5. Actual: '+aString.search("string pro")); +if (aString.search("string pro") !== 5) { + $ERROR('#1: var aString = new String("test string probe"); aString.search("string pro")=== 5. Actual: ' + aString.search("string pro")); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js b/test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js index 1481639f7..bc46040ef 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js @@ -13,8 +13,8 @@ var aString = new String("power of the power of the power of the power of the po ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search(/the/)!== aString.search(/the/g)) { - $ERROR('#1: var aString = new String("power of the power of the power of the power of the power of the power of the great sword"); aString.search(/the/)=== aString.search(/the/g). Actual: '+aString.search(/the/)); +if (aString.search(/the/) !== aString.search(/the/g)) { + $ERROR('#1: var aString = new String("power of the power of the power of the power of the power of the power of the great sword"); aString.search(/the/)=== aString.search(/the/g). Actual: ' + aString.search(/the/)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js b/test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js index 099e69e6f..af4e03407 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js @@ -13,8 +13,8 @@ var aString = new String("power \u006F\u0066 the power of the power \u006F\u0066 ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search(/of/)!== aString.search(/of/g)) { - $ERROR('#1: var aString = new String("power \\u006F\\u0066 the power of the power \\u006F\\u0066 the power of the power \\u006F\\u0066 the power of the great sword"); aString.search(/of/)=== aString.search(/of/g). Actual: '+aString.search(/of/)); +if (aString.search(/of/) !== aString.search(/of/g)) { + $ERROR('#1: var aString = new String("power \\u006F\\u0066 the power of the power \\u006F\\u0066 the power of the power \\u006F\\u0066 the power of the great sword"); aString.search(/of/)=== aString.search(/of/g). Actual: ' + aString.search(/of/)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A6.js b/test/built-ins/String/prototype/search/S15.5.4.12_A6.js index 7b56f3270..8e6d1e94d 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A6.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.search.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.search.prototype !== undefined) { - $ERROR('#1: String.prototype.search.prototype === undefined. Actual: '+String.prototype.search.prototype ); + $ERROR('#1: String.prototype.search.prototype === undefined. Actual: ' + String.prototype.search.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A7.js b/test/built-ins/String/prototype/search/S15.5.4.12_A7.js index e34449aac..d6e6f751c 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A7.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A7.js @@ -14,6 +14,6 @@ try { $ERROR('#1: __FACTORY = String.prototype.search; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.1: __FACTORY = String.prototype.search; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); + $ERROR('#1.1: __FACTORY = String.prototype.search; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A8.js b/test/built-ins/String/prototype/search/S15.5.4.12_A8.js index e51d88ad6..300413c01 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A8.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.search.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.search.hasOwnProperty('length')); + $ERROR('#0: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.search.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.search.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.search){ - if (p==="length") count++; +for (var p in String.prototype.search) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.search){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.search){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A9.js b/test/built-ins/String/prototype/search/S15.5.4.12_A9.js index 544791040..1abba4346 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A9.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.search.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.search.hasOwnProperty('length')); + $ERROR('#0: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.search.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.search.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.search.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.search.length; String.prototype.search.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.search.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.search.length; String.prototype.search.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.search.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js index 190575259..b01969682 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.slice.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.slice.hasOwnProperty('length')); + $ERROR('#1: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.slice.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.slice.length; -verifyNotWritable(String.prototype.slice, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.slice, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.slice.length !== __obj) { - $ERROR('#2: __obj = String.prototype.slice.length; String.prototype.slice.length = function(){return "shifted";}; String.prototype.slice.length === __obj. Actual: '+String.prototype.slice.length ); + $ERROR('#2: __obj = String.prototype.slice.length; String.prototype.slice.length = function(){return "shifted";}; String.prototype.slice.length === __obj. Actual: ' + String.prototype.slice.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js index df758f408..e5ea943ba 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.slice.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.slice.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.slice.hasOwnProperty("length") return true. Actual: '+String.prototype.slice.hasOwnProperty("length")); + $ERROR('#1: String.prototype.slice.hasOwnProperty("length") return true. Actual: ' + String.prototype.slice.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.slice.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.slice.length !== 2) { - $ERROR('#2: String.prototype.slice.length === 2. Actual: '+String.prototype.slice.length ); + $ERROR('#2: String.prototype.slice.length === 2. Actual: ' + String.prototype.slice.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js index 5158fdf5b..5ec85372c 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js @@ -14,7 +14,7 @@ __instance.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.slice(false, true) !== "t") { - $ERROR('#1: __instance = new Object(true); __instance.slice = String.prototype.slice; __instance.slice(false, true) === "t". Actual: '+__instance.slice(false, true) ); + $ERROR('#1: __instance = new Object(true); __instance.slice = String.prototype.slice; __instance.slice(false, true) === "t". Actual: ' + __instance.slice(false, true)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js index 6f6100e61..14dd4a2c0 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js @@ -9,15 +9,23 @@ description: > object have overrided valueOf function ---*/ -var __obj = {valueOf:function(){return 2;}}; +var __obj = { + valueOf: function() { + return 2; + } +}; var __str = "\u0035ABBBABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.slice(__obj, function(){return __str.slice(0,1);}()) !== "BBB") { - $ERROR('#1: var x; var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.slice(__obj, function(){return __str.slice(0,1);}()) === "BBB". Actual: '+__str.slice(__obj, function(){return __str.slice(0,1);}()) ); - } +if (__str.slice(__obj, function() { + return __str.slice(0, 1); + }()) !== "BBB") { + $ERROR('#1: var x; var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.slice(__obj, function(){return __str.slice(0,1);}()) === "BBB". Actual: ' + __str.slice(__obj, function() { + return __str.slice(0, 1); + }())); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js index 1e5d7e9a7..5c45b1ceb 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js @@ -9,19 +9,27 @@ description: > overrided valueOf function, that return exception ---*/ -var __obj = {valueOf:function(){throw "instart";}}; -var __obj2 = {valueOf:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + throw "instart"; + } +}; +var __obj2 = { + valueOf: function() { + throw "inend"; + } +}; var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.slice(__obj,__obj2); - $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="instart") { - $ERROR('#1.1: Exception === "instart". Actual: '+e); - } - } +try { + var x = __str.slice(__obj, __obj2); + $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "instart") { + $ERROR('#1.1: Exception === "instart". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js index 351daa7f7..b111b08e5 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js @@ -11,19 +11,30 @@ description: > return exception ---*/ -var __obj = {valueOf:function(){return {};}, toString:function(){throw "instart";}}; -var __obj2 = {valueOf:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "instart"; + } +}; +var __obj2 = { + valueOf: function() { + throw "inend"; + } +}; var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.slice(__obj, __obj2); - $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="instart") { - $ERROR('#1.1: Exception === "instart". Actual: '+e); - } - } +try { + var x = __str.slice(__obj, __obj2); + $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "instart") { + $ERROR('#1.1: Exception === "instart". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js index 82799f1ab..50e38d195 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js @@ -10,18 +10,29 @@ description: > overrided toString function, that return exception ---*/ -var __obj = {valueOf:function(){return {};}, toString:function(){return 1;}}; -var __obj2 = {toString:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + return {}; + }, + toString: function() { + return 1; + } +}; +var __obj2 = { + toString: function() { + throw "inend"; + } +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - var x = "ABB\u0041BABAB\u0031BBAA".slice(__obj, __obj2); - $ERROR('#1: "var x = slice(__obj,__obj2)" lead to throwing exception'); + var x = "ABB\u0041BABAB\u0031BBAA".slice(__obj, __obj2); + $ERROR('#1: "var x = slice(__obj,__obj2)" lead to throwing exception'); } catch (e) { - if (e!=="inend") { - $ERROR('#1.1: Exception === "inend". Actual: '+e); - } + if (e !== "inend") { + $ERROR('#1.1: Exception === "inend". Actual: ' + e); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js index d7b718ac8..ab3b2dbbd 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js @@ -9,8 +9,8 @@ description: Used one argument, that is function(){}(). Instance is string ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("report".slice(function(){}()) !== "report") { - $ERROR('#1: "report".slice(function(){}()) === "report". Actual: '+"report".slice(function(){}()) ); +if ("report".slice(function() {}()) !== "report") { + $ERROR('#1: "report".slice(function(){}()) === "report". Actual: ' + "report".slice(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js index b7017e4db..747902faa 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js @@ -16,8 +16,8 @@ Number.prototype.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__num.slice()!=="11.001002") { - $ERROR('#1: var __num = 11.001002; Number.prototype.slice = String.prototype.slice; __num.slice()==="11.001002". Actual: '+__num.slice()); +if (__num.slice() !== "11.001002") { + $ERROR('#1: var __num = 11.001002; Number.prototype.slice = String.prototype.slice; __num.slice()==="11.001002". Actual: ' + __num.slice()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js index dd945f581..b2932ddb8 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js @@ -15,8 +15,12 @@ __instance.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(function(){return true;}(),x) !== "alse") { - $ERROR('#1: var x; __instance = new Boolean; __instance.slice = String.prototype.slice; __instance.slice(function(){return true;}(),x) === "alse". Actual: '+__instance.slice(function(){return true;}(),x) ); +if (__instance.slice(function() { + return true; + }(), x) !== "alse") { + $ERROR('#1: var x; __instance = new Boolean; __instance.slice = String.prototype.slice; __instance.slice(function(){return true;}(),x) === "alse". Actual: ' + __instance.slice(function() { + return true; + }(), x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js index 1fda0a114..b3dd30a6d 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js @@ -12,8 +12,12 @@ description: > //since ToInteger(null) yelds 0 ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (function(){return "gnulluna"}().slice(null, -3) !== "gnull") { - $ERROR('#1: function(){return "gnulluna"}().slice(null, -3) === "gnull". Actual: '+function(){return "gnulluna"}().slice(null, -3) ); +if (function() { + return "gnulluna" + }().slice(null, -3) !== "gnull") { + $ERROR('#1: function(){return "gnulluna"}().slice(null, -3) === "gnull". Actual: ' + function() { + return "gnulluna" + }().slice(null, -3)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js index d75481ec2..516aefbc9 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js @@ -10,18 +10,22 @@ description: > functions ---*/ -__func.valueOf=function(){return "gnulluna"}; -__func.toString=function(){return __func;}; +__func.valueOf = function() { + return "gnulluna" +}; +__func.toString = function() { + return __func; +}; -Function.prototype.slice=String.prototype.slice; +Function.prototype.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__func.slice(null, Function().slice(__func,5).length) !== "gnull") { - $ERROR('#1: __func.slice(null, Function().slice(__func,5).length) === "gnull". Actual: '+__func.slice(null, Function().slice(__func,5).length) ); +if (__func.slice(null, Function().slice(__func, 5).length) !== "gnull") { + $ERROR('#1: __func.slice(null, Function().slice(__func,5).length) === "gnull". Actual: ' + __func.slice(null, Function().slice(__func, 5).length)); } // ////////////////////////////////////////////////////////////////////////////// -function __func(){}; +function __func() {}; diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js index 38aa85042..a0e18491b 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js @@ -12,8 +12,8 @@ description: > //since ToInteger(undefined yelds 0) ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String("undefined").slice(x,3) !== "und") { - $ERROR('#1: var x; new String("undefined").slice(x,3) === "und". Actual: '+new String("undefined").slice(x,3) ); +if (new String("undefined").slice(x, 3) !== "und") { + $ERROR('#1: var x; new String("undefined").slice(x,3) === "und". Actual: ' + new String("undefined").slice(x, 3)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js index 3926ea9df..1ac08f088 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js @@ -10,8 +10,8 @@ description: Arguments are symbol and undefined, and instance is String //since ToInteger("e") yelds 0 ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(void 0).slice("e",undefined) !== "undefined") { - $ERROR('#1: String(void 0).slice("e",undefined) === "undefined". Actual: '+String(void 0).slice("e",undefined) ); +if (String(void 0).slice("e", undefined) !== "undefined") { + $ERROR('#1: String(void 0).slice("e",undefined) === "undefined". Actual: ' + String(void 0).slice("e", undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js index 106fd8a1e..9eb7c5b31 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js @@ -9,13 +9,15 @@ description: > String(object), object have overrided toString function ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; //since void 0 yelds 0 ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(__obj).slice(-4,void 0) !== "ined") { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).slice(-4,void 0) === "ined". Actual: '+String(__obj).slice(-4,void 0) ); +if (String(__obj).slice(-4, void 0) !== "ined") { + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).slice(-4,void 0) === "ined". Actual: ' + String(__obj).slice(-4, void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js index 9c927f1f2..e26a1a66d 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js @@ -11,15 +11,15 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; //since ToInteger(undefined) yelds 0 ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String(__obj).slice(/*(function(){})()*/undefined,__obj) !== "") { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).slice(//*(function(){})()*//undefined,__obj) === "". Actual: '+new String(__obj).slice(/*(function(){})()*/undefined,__obj) ); +if (new String(__obj).slice( /*(function(){})()*/ undefined, __obj) !== "") { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).slice(//*(function(){})()*//undefined,__obj) === "". Actual: ' + new String(__obj).slice( /*(function(){})()*/ undefined, __obj)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js index 88790f7e7..d691c9710 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __string.slice() !== "string") { - $ERROR('#1: __string = new String("this is a string object"); typeof __string.slice() === "string". Actual: '+typeof __string.slice() ); + $ERROR('#1: __string = new String("this is a string object"); typeof __string.slice() === "string". Actual: ' + typeof __string.slice()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js index cadc98532..1dda10c23 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js @@ -12,7 +12,7 @@ var __string = new String('this is a string object'); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.slice(NaN, Infinity) !== "this is a string object") { - $ERROR('#1: __string = new String(\'this is a string object\'); __string.slice(NaN, Infinity) === "this is a string object". Actual: '+__string.slice(NaN, Infinity) ); + $ERROR('#1: __string = new String(\'this is a string object\'); __string.slice(NaN, Infinity) === "this is a string object". Actual: ' + __string.slice(NaN, Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js index 2cd542d17..3ca0043d5 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js @@ -11,8 +11,8 @@ var __string = new String(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.slice(1,0) !== "") { - $ERROR('#1: __string = new String(""); __string.slice(1,0) === "". Actual: '+__string.slice(1,0) ); +if (__string.slice(1, 0) !== "") { + $ERROR('#1: __string = new String(""); __string.slice(1,0) === "". Actual: ' + __string.slice(1, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js index db80ad757..6a31bfee9 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.slice(Infinity, NaN) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.slice(Infinity, NaN) === "". Actual: '+__string.slice(Infinity, NaN) ); + $ERROR('#1: __string = new String("this is a string object"); __string.slice(Infinity, NaN) === "". Actual: ' + __string.slice(Infinity, NaN)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js index e889dedce..92ff1765a 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.slice(Infinity, Infinity) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.slice(Infinity, Infinity) === "". Actual: '+__string.slice(Infinity, Infinity) ); + $ERROR('#1: __string = new String("this is a string object"); __string.slice(Infinity, Infinity) === "". Actual: ' + __string.slice(Infinity, Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js index 73383aaeb..905fea791 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js @@ -11,8 +11,8 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.slice(-0.01,0) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.slice(-0.01,0) === "". Actual: '+__string.slice(-0.01,0) ); +if (__string.slice(-0.01, 0) !== "") { + $ERROR('#1: __string = new String("this is a string object"); __string.slice(-0.01,0) === "". Actual: ' + __string.slice(-0.01, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js index 5a6e272b3..1badb971a 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.slice(__string.length, __string.length) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.slice(__string.length, __string.length) === "". Actual: '+__string.slice(__string.length, __string.length) ); + $ERROR('#1: __string = new String("this is a string object"); __string.slice(__string.length, __string.length) === "". Actual: ' + __string.slice(__string.length, __string.length)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js index 9559e7b75..ad8c991f2 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js @@ -11,8 +11,8 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.slice(__string.length+1, 0) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.slice(__string.length+1, 0) === "". Actual: '+__string.slice(__string.length+1, 0) ); +if (__string.slice(__string.length + 1, 0) !== "") { + $ERROR('#1: __string = new String("this is a string object"); __string.slice(__string.length+1, 0) === "". Actual: ' + __string.slice(__string.length + 1, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js index 9b13cb8df..196575b08 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.slice(-Infinity, -Infinity) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.slice(-Infinity, -Infinity) === "". Actual: '+__string.slice(-Infinity, -Infinity) ); + $ERROR('#1: __string = new String("this is a string object"); __string.slice(-Infinity, -Infinity) === "". Actual: ' + __string.slice(-Infinity, -Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js index b60a25f06..1bfa9b1c0 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js @@ -13,8 +13,8 @@ __instance.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(0,8) !== "[object ") { - $ERROR('#1: __instance = new Object(); __instance.slice = String.prototype.slice; __instance.slice(0,8) === "[object ". Actual: '+__instance.slice(0,8) ); +if (__instance.slice(0, 8) !== "[object ") { + $ERROR('#1: __instance = new Object(); __instance.slice = String.prototype.slice; __instance.slice(0,8) === "[object ". Actual: ' + __instance.slice(0, 8)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js index 4335b1e82..5d1c65a58 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js @@ -15,8 +15,8 @@ __instance.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(8,__instance.toString().length) !== "Object]") { - $ERROR('#1: __instance = new Object(); __instance.slice = String.prototype.slice; __instance.slice(8,__instance.toString().length) === "Object]". Actual: '+__instance.slice(8,__instance.toString().length) ); +if (__instance.slice(8, __instance.toString().length) !== "Object]") { + $ERROR('#1: __instance = new Object(); __instance.slice = String.prototype.slice; __instance.slice(8,__instance.toString().length) === "Object]". Actual: ' + __instance.slice(8, __instance.toString().length)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js index 2ed9d7ff0..8092dd587 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js @@ -9,14 +9,18 @@ description: > instance.slice(...).slice(...) ---*/ -var __instance = { toString: function() { return "function(){}";} }; +var __instance = { + toString: function() { + return "function(){}"; + } +}; __instance.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(-Infinity,8).slice(1,Infinity) !== "unction") { - $ERROR('#1: __instance = function(){}; __instance.slice = String.prototype.slice; __instance.slice(-Infinity,8).slice(1,Infinity) === "unction". Actual: '+__instance.slice(-Infinity,8).slice(1,Infinity) ); +if (__instance.slice(-Infinity, 8).slice(1, Infinity) !== "unction") { + $ERROR('#1: __instance = function(){}; __instance.slice = String.prototype.slice; __instance.slice(-Infinity,8).slice(1,Infinity) === "unction". Actual: ' + __instance.slice(-Infinity, 8).slice(1, Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js index e07c09aae..889019cfd 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js @@ -9,20 +9,22 @@ description: > instance passes ---*/ -__FACTORY.prototype.toString = function() { return this.value+''; }; +__FACTORY.prototype.toString = function() { + return this.value + ''; +}; var __instance = new __FACTORY(void 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(0,100) !== "undefined") { - $ERROR('#1: __instance.slice(0,100) === "undefined". Actual: '+__instance.slice(0,100) ); +if (__instance.slice(0, 100) !== "undefined") { + $ERROR('#1: __instance.slice(0,100) === "undefined". Actual: ' + __instance.slice(0, 100)); } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value, - this.slice= String.prototype.slice; - //this.substring = String.prototype.substring; +function __FACTORY(value) { + this.value = value, + this.slice = String.prototype.slice; + //this.substring = String.prototype.substring; } diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js index 0e9643aa6..5c97de6aa 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.slice.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.slice.prototype !== undefined) { - $ERROR('#1: String.prototype.slice.prototype === undefined. Actual: '+String.prototype.slice.prototype ); + $ERROR('#1: String.prototype.slice.prototype === undefined. Actual: ' + String.prototype.slice.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A8.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A8.js index 9e4042b08..d4f6b3fc7 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A8.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.slice.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.slice.hasOwnProperty('length')); + $ERROR('#0: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.slice.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.slice.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.slice){ - if (p==="length") count++; +for (var p in String.prototype.slice) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.slice){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.slice){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A9.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A9.js index f45ea3180..ce8ca68af 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A9.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.slice.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.slice.hasOwnProperty('length')); + $ERROR('#0: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.slice.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.slice.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.slice.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.slice.length; String.prototype.slice.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.slice.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.slice.length; String.prototype.slice.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.slice.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A10.js index f4f331cb6..153a57b56 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A10.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.split.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length')); + $ERROR('#1: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.split.length; -verifyNotWritable(String.prototype.split, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.split, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.split.length !== __obj) { - $ERROR('#2: __obj = String.prototype.split.length; String.prototype.split.length = function(){return "shifted";}; String.prototype.split.length === __obj. Actual: '+String.prototype.split.length ); + $ERROR('#2: __obj = String.prototype.split.length; String.prototype.split.length = function(){return "shifted";}; String.prototype.split.length === __obj. Actual: ' + String.prototype.split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A11.js index b3a94684f..e5ca3139e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A11.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.split.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.split.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.split.hasOwnProperty("length") return true. Actual: '+String.prototype.split.hasOwnProperty("length")); + $ERROR('#1: String.prototype.split.hasOwnProperty("length") return true. Actual: ' + String.prototype.split.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.split.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.split.length !== 2) { - $ERROR('#2: String.prototype.split.length === 2. Actual: '+String.prototype.split.length ); + $ERROR('#2: String.prototype.split.length === 2. Actual: ' + String.prototype.split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js index 9acfda6b3..69ca40343 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js @@ -21,7 +21,7 @@ var __split = __instance.split(true, false); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 0) { - $ERROR('#3: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.length === 0. Actual: '+__split.length ); + $ERROR('#3: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.length === 0. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js index bc79057f8..c56b54de7 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js @@ -15,8 +15,16 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0042B";}} -var __obj2 = {valueOf:function(){return true;}} +var __obj = { + toString: function() { + return "\u0042B"; + } +} +var __obj2 = { + valueOf: function() { + return true; + } +} var __str = "ABB\u0041BABAB"; var __split = __str.split(__obj, __obj2); @@ -24,7 +32,7 @@ var __split = __str.split(__obj, __obj2); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +40,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +48,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -48,7 +56,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "A") { - $ERROR('#4: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split[0] === "A". Actual: '+__split[0] ); + $ERROR('#4: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split[0] === "A". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js index ddf8fe760..73d4917a7 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js @@ -15,19 +15,27 @@ description: > function, that throw exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.split(__obj, __obj2); - $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.split(__obj, __obj2); + $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js index ba6a0efed..5fe372049 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js @@ -15,19 +15,30 @@ description: > function and toString function, that throw exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "intointeger"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.split(__obj, __obj2); - $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.split(__obj, __obj2); + $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js index d97ac63db..eded7e4c0 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js @@ -15,15 +15,26 @@ description: > and toString functions ---*/ -var __obj = {toString:function(){return "\u0042\u0042";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}} +var __obj = { + toString: function() { + return "\u0042\u0042"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + return "2"; + } +} var __split = "ABB\u0041BABAB\u0042cc^^\u0042Bvv%%B\u0042xxx".split(__obj, __obj2); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,7 +42,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -39,7 +50,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 2) { - $ERROR('#3: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.length === 2. Actual: '+__split.length ); + $ERROR('#3: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -47,7 +58,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "A") { - $ERROR('#4: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[0] === "A". Actual: '+__split[0] ); + $ERROR('#4: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[0] === "A". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -55,7 +66,7 @@ if (__split[0] !== "A") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[1] !== "ABABA") { - $ERROR('#5: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[1] === "ABABA". Actual: '+__split[1] ); + $ERROR('#5: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[1] === "ABABA". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js index 412513ed5..df6ee1d69 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js @@ -15,20 +15,28 @@ description: > have overrided valueOf function, that throw exception ---*/ -var __obj = {toString:function(){throw "intostr";}}; -var __obj2 = {valueOf:function(){throw "intoint";}}; +var __obj = { + toString: function() { + throw "intostr"; + } +}; +var __obj2 = { + valueOf: function() { + throw "intoint"; + } +}; var __instance = new Number(10001.10001); -Number.prototype.split=String.prototype.split; +Number.prototype.split = String.prototype.split; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __instance.split(__obj, __obj2); - $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intoint") { - $ERROR('#1.1: Exception === "intoint". Actual: '+e); - } - } +try { + var x = __instance.split(__obj, __obj2); + $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intoint") { + $ERROR('#1.1: Exception === "intoint". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js index 46cf12809..52c2fc9ca 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js @@ -16,9 +16,20 @@ description: > throw exception ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +}; -var __obj2 = {valueOf:function(){throw "intointeger";}}; +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +}; __FACTORY.prototype.split = String.prototype.split; @@ -30,15 +41,19 @@ try { var x = __instance.split(__obj, __obj2); $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception'); } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); } } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value; - this.toString = function() { return new Number; }; - this.valueOf=function(){return this.value+""}; +function __FACTORY(value) { + this.value = value; + this.toString = function() { + return new Number; + }; + this.valueOf = function() { + return this.value + "" + }; } diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js index ff3d9ef00..4fb875732 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js @@ -14,15 +14,19 @@ description: > toString function, that return regexp ---*/ -var __obj = {toString:function(){return /\u0037\u0037/g;}}; +var __obj = { + toString: function() { + return /\u0037\u0037/g; + } +}; -Number.prototype.split=String.prototype.split; +Number.prototype.split = String.prototype.split; try { var __split = 6776767677.006771122677555.split(__obj); $ERROR('#1: "__split = 6776767677.006771122677555.split(__obj)" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e); } } diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js index 9d7b34da2..95124d9cd 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js @@ -14,14 +14,14 @@ description: Argument is regexp, and instance is Number var __re = /\u0037\u0037/g; -Number.prototype.split=String.prototype.split; +Number.prototype.split = String.prototype.split; var __split = 6776767677.006771122677555.split(__re); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 4) { - $ERROR('#3: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.length === 4. Actual: '+__split.length ); + $ERROR('#3: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.length === 4. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -45,7 +45,7 @@ if (__split.length !== 4) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "6") { - $ERROR('#4: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[0] === "6". Actual: '+__split[0] ); + $ERROR('#4: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[0] === "6". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -53,7 +53,7 @@ if (__split[0] !== "6") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[1] !== "67676") { - $ERROR('#5: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[1] === "67676". Actual: '+__split[1] ); + $ERROR('#5: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[1] === "67676". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -61,7 +61,7 @@ if (__split[1] !== "67676") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__split[2] !== ".006") { - $ERROR('#6: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[2] === ".006". Actual: '+__split[2] ); + $ERROR('#6: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[2] === ".006". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// @@ -69,7 +69,7 @@ if (__split[2] !== ".006") { ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (__split[3] !== "1") { - $ERROR('#7: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[3] === "1". Actual: '+__split[3] ); + $ERROR('#7: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[3] === "1". Actual: ' + __split[3]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js index 48bccb512..4c8fdbfb6 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js @@ -12,16 +12,16 @@ es5id: 15.5.4.14_A1_T18 description: Checking by using eval ---*/ -var __re = new RegExp("00"); +var __re = new RegExp("00"); -Number.prototype.split=String.prototype.split; +Number.prototype.split = String.prototype.split; var __split = 6776767677.006771122677555.split(__re, eval("\"1\"")); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -45,7 +45,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "6776767677.") { - $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split[0] === "6776767677.". Actual: '+__split[0] ); + $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split[0] === "6776767677.". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js index e099b49fa..775ac3f56 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js @@ -18,12 +18,14 @@ var __instance = new Boolean; __instance.split = String.prototype.split; -var __split = __instance.split("A"!=="\u0041", function(){return 0;}(),null); +var __split = __instance.split("A" !== "\u0041", function() { + return 0; +}(), null); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,7 +33,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -39,7 +41,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 0) { - $ERROR('#3: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.length === 0. Actual: '+__split.length ); + $ERROR('#3: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.length === 0. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js index a7725324f..cb21c14a1 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js @@ -14,48 +14,53 @@ description: Checking by using eval var split = String.prototype.split.bind(this); -var __obj__lim = {valueOf:function(){return 5;}}; +var __obj__lim = { + valueOf: function() { + return 5; + } +}; try { - toString = Object.prototype.toString; -} catch(e) { ; } + toString = Object.prototype.toString; +} catch (e) {; +} //Checks are only valid if we can overwrite the global object's toString method //(which ES5 doesn't even require to exist) -if (toString===Object.prototype.toString) { - var __class__ = toString(); - - var __split = split(eval("\"[\""),__obj__lim); - - ////////////////////////////////////////////////////////////////////////////// - //CHECK#1 - if (typeof __split !== "object") { - $ERROR('#1: typeof __split === "object". Actual: '+typeof __split ); - } - // - ////////////////////////////////////////////////////////////////////////////// - - ////////////////////////////////////////////////////////////////////////////// - //CHECK#2 - if (__split.constructor !== Array) { - $ERROR('#2: __split.constructor === Array. Actual: '+__split.constructor ); - } - // - ////////////////////////////////////////////////////////////////////////////// - - ////////////////////////////////////////////////////////////////////////////// - //CHECK#3 - if (__split.length !== 2) { - $ERROR('#3: __split.length === 2. Actual: '+__split.length ); - } - // - ////////////////////////////////////////////////////////////////////////////// - - ////////////////////////////////////////////////////////////////////////////// - //CHECK#3 - if (__split[1].substring(0,6) !== "object") { - $ERROR('#4: __split[1].substring(0,6) === "object". Actual: '+__split[1].substring(0,6) ); - } - // - ////////////////////////////////////////////////////////////////////////////// +if (toString === Object.prototype.toString) { + var __class__ = toString(); + + var __split = split(eval("\"[\""), __obj__lim); + + ////////////////////////////////////////////////////////////////////////////// + //CHECK#1 + if (typeof __split !== "object") { + $ERROR('#1: typeof __split === "object". Actual: ' + typeof __split); + } + // + ////////////////////////////////////////////////////////////////////////////// + + ////////////////////////////////////////////////////////////////////////////// + //CHECK#2 + if (__split.constructor !== Array) { + $ERROR('#2: __split.constructor === Array. Actual: ' + __split.constructor); + } + // + ////////////////////////////////////////////////////////////////////////////// + + ////////////////////////////////////////////////////////////////////////////// + //CHECK#3 + if (__split.length !== 2) { + $ERROR('#3: __split.length === 2. Actual: ' + __split.length); + } + // + ////////////////////////////////////////////////////////////////////////////// + + ////////////////////////////////////////////////////////////////////////////// + //CHECK#3 + if (__split[1].substring(0, 6) !== "object") { + $ERROR('#4: __split[1].substring(0,6) === "object". Actual: ' + __split[1].substring(0, 6)); + } + // + ////////////////////////////////////////////////////////////////////////////// } diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js index e0f5e3294..f2931438d 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js @@ -18,7 +18,7 @@ var __split = "".split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __split = "".split(); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __split = "".split(); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __split = "".split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __split = "".split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: __split = "".split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: __split = "".split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "") { - $ERROR('#4: __split = "".split(); __split[0] === "". Actual: '+__split[0] ); + $ERROR('#4: __split = "".split(); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js index 5515c76a9..982309d1a 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js @@ -15,12 +15,14 @@ description: > ---*/ //since ToString(null) evaluates to "null" split(null) evaluates to split("null",0) -var __split = function(){return "gnulluna"}().split(null); +var __split = function() { + return "gnulluna" +}().split(null); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __split = function(){return "gnulluna"}().split(null); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __split = function(){return "gnulluna"}().split(null); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,7 +30,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __split = function(){return "gnulluna"}().split(null); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __split = function(){return "gnulluna"}().split(null); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,7 +38,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 2) { - $ERROR('#3: __split = function(){return "gnulluna"}().split(null); __split.length === 2. Actual: '+__split.length ); + $ERROR('#3: __split = function(){return "gnulluna"}().split(null); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -44,7 +46,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "g") { - $ERROR('#4: __split = function(){return "gnulluna"}().split(null); __split[0] === "g". Actual: '+__split[0] ); + $ERROR('#4: __split = function(){return "gnulluna"}().split(null); __split[0] === "g". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -52,7 +54,7 @@ if (__split[0] !== "g") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[1] !== "una") { - $ERROR('#5: __split = function(){return "gnulluna"}().split(null); __split[1] === "una". Actual: '+__split[1] ); + $ERROR('#5: __split = function(){return "gnulluna"}().split(null); __split[1] === "una". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js index 74a9b6d77..815d13d19 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js @@ -18,7 +18,7 @@ var __split = new String("1undefined").split(x); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: var x; __split = new String("1undefined").split(x); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: var x; __split = new String("1undefined").split(x); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: var x; __split = new String("1undefined").split(x); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: var x; __split = new String("1undefined").split(x); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: var x; __split = new String("1undefined").split(x); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: var x; __split = new String("1undefined").split(x); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "1undefined") { - $ERROR('#4: var x; __split = new String("1undefined").split(x); __split[0] === "1undefined". Actual: '+__split[0] ); + $ERROR('#4: var x; __split = new String("1undefined").split(x); __split[0] === "1undefined". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js index bb030f4e2..02cfc0165 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js @@ -17,7 +17,7 @@ var __split = String("undefinedd").split(undefined); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __split = String("undefinedd").split(undefined); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __split = String("undefinedd").split(undefined); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -25,7 +25,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __split = String("undefinedd").split(undefined); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __split = String("undefinedd").split(undefined); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +33,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: __split = String("undefinedd").split(undefined); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: __split = String("undefinedd").split(undefined); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -41,7 +41,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "undefinedd") { - $ERROR('#4: __split = String("undefinedd").split(undefined); __split[0] === "undefinedd". Actual: '+__split[0] ); + $ERROR('#4: __split = String("undefinedd").split(undefined); __split[0] === "undefinedd". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js index 3a7d671f3..05eb86148 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js @@ -14,14 +14,16 @@ description: > overrided toString function ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; var __split = String(__obj).split(void 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +31,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +39,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -45,7 +47,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "undefined") { - $ERROR('#4: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split[0] !== "undefined". Actual: '+__split[0]); + $ERROR('#4: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split[0] !== "undefined". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js index e78ae20d0..eb545020d 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js @@ -15,17 +15,17 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; //since ToString(undefined) evaluates to "undefined" -var __split = new String(__obj).split(function(){}()); +var __split = new String(__obj).split(function() {}()); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +33,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -41,7 +41,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -49,7 +49,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "undefined") { - $ERROR('#4: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split[0] !== "undefined". Actual: '+__split[0]); + $ERROR('#4: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split[0] !== "undefined". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js index 0674e6091..fdf968d87 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js @@ -18,7 +18,7 @@ var __split = __string.split(","); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 5) { - $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.length === 5. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.length === 5. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 5) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one") { - $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[0] === "one". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[0] === "one". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "one") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "two") { - $ERROR('#4: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[1] === "two". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[1] === "two". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ if (__split[1] !== "two") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "three") { - $ERROR('#5: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[2] === "three". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[2] === "three". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (__split[2] !== "three") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__split[3] !== "four") { - $ERROR('#6: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[3] === "four". Actual: '+__split[3] ); + $ERROR('#6: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[3] === "four". Actual: ' + __split[3]); } // ////////////////////////////////////////////////////////////////////////////// @@ -66,7 +66,7 @@ if (__split[3] !== "four") { ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (__split[4] !== "five") { - $ERROR('#7: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[4] === "five". Actual: '+__split[4] ); + $ERROR('#7: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[4] === "five". Actual: ' + __split[4]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js index 64ad57b26..eff95ed19 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js @@ -19,7 +19,7 @@ var __split = __string.split(123); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,17 +27,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for ( var i = 0; i < __expected.length; i++ ) { - if (__expected[i]!==__split[i]) { - $ERROR('#3.'+i+': var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __expected['+i+']===__split['+i+']. Actual: '+__expected[i]); - } +for (var i = 0; i < __expected.length; i++) { + if (__expected[i] !== __split[i]) { + $ERROR('#3.' + i + ': var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __expected[' + i + ']===__split[' + i + ']. Actual: ' + __expected[i]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js index 08951717a..b29dc9e0e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js @@ -18,7 +18,7 @@ var __split = __string.split(":"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one-1,two-2,four-4") { - $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split[0] === "one-1,two-2,four-4". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split[0] === "one-1,two-2,four-4". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js index e3cde172c..7696dfa9e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js @@ -18,7 +18,7 @@ var __split = __string.split("r-42"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one-1 two-2 four-4") { - $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split[0] === "one-1 two-2 four-4". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split[0] === "one-1 two-2 four-4". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js index 1dfd75e25..067bf5aeb 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js @@ -18,7 +18,7 @@ var __split = __string.split("-4"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one-1 two-2 four") { - $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[0] === "one-1 two-2 four". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[0] === "one-1 two-2 four". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "one-1 two-2 four") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[1] === "". Actual: '+__split[1] ); + $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js index 0ee0bd42d..ec0899acb 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js @@ -18,7 +18,7 @@ var __split = __string.split("on"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[0] === "". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "e-1 two-2 four-4") { - $ERROR('#4: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[1] === "e-1 two-2 four-4". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[1] === "e-1 two-2 four-4". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js index dea226994..2a580f29e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js @@ -18,7 +18,7 @@ var __split = __string.split(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String(); __split = __string.split(""); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String(); __split = __string.split(""); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 0) { - $ERROR('#2: var __string = new String(); __split = __string.split(""); __split.length === 0. Actual: '+__split.length ); + $ERROR('#2: var __string = new String(); __split = __string.split(""); __split.length === 0. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 0) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== undefined) { - $ERROR('#3: var __string = new String(); __split = __string.split(""); __split[0] === undefined. Actual: '+__split[0] ); + $ERROR('#3: var __string = new String(); __split = __string.split(""); __split[0] === undefined. Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js index a7664c43b..4a3bceb58 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js @@ -18,7 +18,7 @@ var __split = __string.split(" "); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String(); __split = __string.split(" "); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String(); __split = __string.split(" "); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String(); __split = __string.split(" "); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String(); __split = __string.split(" "); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = new String(); __split = __string.split(" "); __split[0] === "". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String(); __split = __string.split(" "); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js index f21647307..e76f25688 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js @@ -18,7 +18,7 @@ var __split = __string.split(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String(" "); __split = __string.split(""); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String(" "); __split = __string.split(""); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String(" "); __split = __string.split(""); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String(" "); __split = __string.split(""); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== " ") { - $ERROR('#3: var __string = new String(" "); __split = __string.split(""); __split[0] === " ". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String(" "); __split = __string.split(""); __split[0] === " ". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js index 8e8f76073..65971fdd3 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js @@ -18,7 +18,7 @@ var __split = __string.split(" "); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String(" "); __split = __string.split(" "); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String(" "); __split = __string.split(" "); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String(" "); __split = __string.split(" "); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String(" "); __split = __string.split(" "); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = new String(" "); __split = __string.split(" "); __split[0] === "". Actual: '+__split[0]); + $ERROR('#3: var __string = new String(" "); __split = __string.split(" "); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String(" "); __split = __string.split(" "); __split[1] === "". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String(" "); __split = __string.split(" "); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js index bfd2b88a6..b9a9b2a74 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js @@ -18,7 +18,7 @@ var __split = __string.split("x"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = ""; __split = __string.split("x"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = ""; __split = __string.split("x"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = ""; __split = __string.split("x"); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = ""; __split = __string.split("x"); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = ""; __split = __string.split("x"); __split[0] === "". Actual: '+__split[0] ); + $ERROR('#3: var __string = ""; __split = __string.split("x"); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js index ccf7ca484..bedfcf81b 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js @@ -18,7 +18,7 @@ var __split = __string.split(" "); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(" "); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(" "); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 5) { - $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(" "); __split.length === 5. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(" "); __split.length === 5. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 5) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one") { - $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(" "); __split[0] === "one". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(" "); __split[0] === "one". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "one") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "two") { - $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(" "); __split[1] === "two". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(" "); __split[1] === "two". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ if (__split[1] !== "two") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "three") { - $ERROR('#5: var __string = new String("one two three four five"); __split = __string.split(" "); __split[2] === "three". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("one two three four five"); __split = __string.split(" "); __split[2] === "three". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (__split[2] !== "three") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__split[3] !== "four") { - $ERROR('#6: var __string = new String("one two three four five"); __split = __string.split(" "); __split[3] === "four". Actual: '+__split[3] ); + $ERROR('#6: var __string = new String("one two three four five"); __split = __string.split(" "); __split[3] === "four". Actual: ' + __split[3]); } // ////////////////////////////////////////////////////////////////////////////// @@ -66,7 +66,7 @@ if (__split[3] !== "four") { ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (__split[4] !== "five") { - $ERROR('#7: var __string = new String("one two three four five"); __split = __string.split(" "); __split[4] === "five". Actual: '+__split[4] ); + $ERROR('#7: var __string = new String("one two three four five"); __split = __string.split(" "); __split[4] === "five". Actual: ' + __split[4]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js index dc5250fa8..b927eeb09 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js @@ -18,7 +18,7 @@ var __split = __string.split(new RegExp); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,17 +26,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __string.length) { - $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.length === __string.length. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.length === __string.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for ( var i = 0; i < __string.length; i++ ) { - if (__string.charAt(i)!==__split[i]) { - $ERROR('#3.'+i+': var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __string.charAt('+i+')===__split['+i+']. Actual: '+__string.charAt(i)); - } +for (var i = 0; i < __string.length; i++) { + if (__string.charAt(i) !== __split[i]) { + $ERROR('#3.' + i + ': var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __string.charAt(' + i + ')===__split[' + i + ']. Actual: ' + __string.charAt(i)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js index ea7759b72..dfe48ffd3 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js @@ -18,7 +18,7 @@ var __split = __string.split("ll"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("ll"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("ll"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("ll"); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("ll"); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("ll"); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("ll"); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "o") { - $ERROR('#4: var __string = new String("hello"); __split = __string.split("ll"); __split[1] === "o". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("hello"); __split = __string.split("ll"); __split[1] === "o". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js index f57cd2035..2000c8067 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js @@ -18,7 +18,7 @@ var __split = __string.split("l"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("l"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("l"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("l"); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("l"); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("l"); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("l"); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); __split = __string.split("l"); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); __split = __string.split("l"); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ if (__split[1] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "o") { - $ERROR('#5: var __string = new String("hello"); __split = __string.split("l"); __split[2] === "o". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("hello"); __split = __string.split("l"); __split[2] === "o". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js index e50b1d847..495b83a60 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js @@ -18,7 +18,7 @@ var __split = __string.split("x"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("x"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("x"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("x"); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("x"); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "hello") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("x"); __split[0] === "hello". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("x"); __split[0] === "hello". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js index 7efcab337..49c6a0f1c 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js @@ -18,7 +18,7 @@ var __split = __string.split("h"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("h"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("h"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("h"); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("h"); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("h"); __split[0] === "". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("h"); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "ello") { - $ERROR('#4: var __string = new String("hello"); __split = __string.split("h"); __split[1] === "ello". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("hello"); __split = __string.split("h"); __split[1] === "ello". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js index e8f450156..ae70cca74 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js @@ -18,7 +18,7 @@ var __split = __string.split("o"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("o"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("o"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("o"); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("o"); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "hell") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("o"); __split[0] === "hell". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("o"); __split[0] === "hell". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "hell") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); __split = __string.split("o"); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); __split = __string.split("o"); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js index 27f6d41d6..3646139de 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js @@ -18,7 +18,7 @@ var __split = __string.split("hello"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("hello"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("hello"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("hello"); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("hello"); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("hello"); __split[0] === "". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("hello"); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); __split = __string.split("hello"); __split[1] === "". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("hello"); __split = __string.split("hello"); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js index 865c38c87..c7fd8c546 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js @@ -18,7 +18,7 @@ var __split = __string.split(undefined); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split(undefined); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split(undefined); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split(undefined); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split(undefined); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "hello") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split(undefined); __split[0] === "hello". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("hello"); __split = __string.split(undefined); __split[0] === "hello". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js index 634a2b4cb..6ef0a4657 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js @@ -18,7 +18,7 @@ var __split = __string.split("hellothere"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("hellothere"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("hellothere"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("hellothere"); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("hellothere"); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "hello") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("hellothere"); __split[0] === "hello". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("hellothere"); __split[0] === "hello". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js index b93e14102..fa342d632 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js @@ -17,12 +17,12 @@ Number.prototype.split = String.prototype.split; var __split = __instance.split(1); -var __expected = ["","00","","","","22","33","44","60"]; +var __expected = ["", "00", "", "", "", "22", "33", "44", "60"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,17 +30,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js index 0b16fee4d..6dd024d4a 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js @@ -13,12 +13,12 @@ description: Call split(/ /,2), instance is String("one two three four five") var __string = new String("one two three four five"); -var __split = __string.split(/ /,2); +var __split = __string.split(/ /, 2); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one") { - $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[0] === "one". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[0] === "one". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "one") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "two") { - $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[1] === "two". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[1] === "two". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js index 7f17c7f3d..5323ad072 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1,1); +var __split = __instance.split(1, 1); var __expected = [""]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -38,7 +38,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js index 45fb07dc2..15adead0f 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1,2); +var __split = __instance.split(1, 2); -var __expected = ["","00"]; +var __expected = ["", "00"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,17 +30,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js index 926a61515..208852941 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1,0); +var __split = __instance.split(1, 0); var __expected = []; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -38,7 +38,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js index 3f6695e9b..3d1269637 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1,100); +var __split = __instance.split(1, 100); -var __expected = ["","00","","","","22","33","44","60"]; +var __expected = ["", "00", "", "", "", "22", "33", "44", "60"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,17 +30,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js index 4132da25a..c40f3993a 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1,void 0); +var __split = __instance.split(1, void 0); -var __expected = ["","00","","","","22","33","44","60"]; +var __expected = ["", "00", "", "", "", "22", "33", "44", "60"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,17 +30,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3: __split[index] === __expected[index]. Actual: '+__split[index] ); - } + $ERROR('#3: __split[index] === __expected[index]. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js index 22a23453c..c82748bf2 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1, Math.pow(2,32)-1); +var __split = __instance.split(1, Math.pow(2, 32) - 1); -var __expected = ["","00","","","","22","33","44","60"]; +var __expected = ["", "00", "", "", "", "22", "33", "44", "60"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,17 +30,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js index d79d2d72d..20e3e84f2 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js @@ -22,7 +22,7 @@ var __expected = []; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -38,7 +38,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js index 05850c859..1fa443388 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1, -Math.pow(2,32)+1); +var __split = __instance.split(1, -Math.pow(2, 32) + 1); var __expected = [""]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -38,7 +38,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js index 1ca64e502..fd0b4b97a 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js @@ -20,7 +20,7 @@ var __expected = []; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,7 +28,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,6 +36,6 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js index c9e9569ca..ee012e98d 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js @@ -20,7 +20,7 @@ var __expected = []; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,7 +28,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,6 +36,6 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js index 95f73fc13..69bed2044 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js @@ -18,7 +18,7 @@ var __split = __string.split(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one two three"); __split = __string.split(""); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one two three"); __split = __string.split(""); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __string.length) { - $ERROR('#2: var __string = new String("one two three"); __split = __string.split(""); __split.length === __string.length. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one two three"); __split = __string.split(""); __split.length === __string.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== __string.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "o") { - $ERROR('#3: var __string = new String("one two three"); __split = __string.split(""); __split[0] === "o". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one two three"); __split = __string.split(""); __split[0] === "o". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "o") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "n") { - $ERROR('#4: var __string = new String("one two three"); __split = __string.split(""); __split[1] === "n". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one two three"); __split = __string.split(""); __split[1] === "n". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ if (__split[1] !== "n") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[11] !== "e") { - $ERROR('#5: var __string = new String("one two three"); __split = __string.split(""); __split[11] === "e". Actual: '+__split[11] ); + $ERROR('#5: var __string = new String("one two three"); __split = __string.split(""); __split[11] === "e". Actual: ' + __split[11]); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (__split[11] !== "e") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__split[12] !== "e") { - $ERROR('#6: var __string = new String("one two three"); __split = __string.split(""); __split[12] === "e". Actual: '+__split[12] ); + $ERROR('#6: var __string = new String("one two three"); __split = __string.split(""); __split[12] === "e". Actual: ' + __split[12]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js index 8ae1dcfc9..2f11e0f0f 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js @@ -20,7 +20,7 @@ var __expected = ["he"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,7 +28,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,6 +36,6 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js index 76940f644..d8e21db1e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js @@ -15,12 +15,12 @@ var __instance = new String("hello"); var __split = __instance.split("l", 2); -var __expected = ["he",""]; +var __expected = ["he", ""]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,17 +28,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js index 3998246a3..5b9b69fc8 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js @@ -15,12 +15,12 @@ var __instance = new String("hello"); var __split = __instance.split("l", 3); -var __expected = ["he","","o"]; +var __expected = ["he", "", "o"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,17 +28,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js index 13a5d18ec..1ec04cfc4 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js @@ -15,12 +15,12 @@ var __instance = new String("hello"); var __split = __instance.split("l", 4); -var __expected = ["he","","o"]; +var __expected = ["he", "", "o"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,17 +28,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js index bced5a65c..1c8618b6d 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js @@ -18,7 +18,7 @@ var __split = __string.split(/,/); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one-1") { - $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[0] === "one-1". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[0] === "one-1". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "one-1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "two-2") { - $ERROR('#4: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[1] === "two-2". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[1] === "two-2". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ if (__split[1] !== "two-2") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "four-4") { - $ERROR('#5: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[2] === "four-4". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[2] === "four-4". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js index b7c5dc2ad..e9d469d4a 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js @@ -18,7 +18,7 @@ var __split = __string.split(''); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,17 +26,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __string.length) { - $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.length === __string.length. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.length === __string.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for ( var i = 0; i < __string.length; i++ ) { - if (__split[i]!==__string.charAt(i)) { - $ERROR('#3.'+i+': var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split['+i+']===__string.charAt('+i+'). Actual: '+__split[i]); - } +for (var i = 0; i < __string.length; i++) { + if (__split[i] !== __string.charAt(i)) { + $ERROR('#3.' + i + ': var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split[' + i + ']===__string.charAt(' + i + '). Actual: ' + __split[i]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js index 31a269a9c..e0e5f0ca3 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js @@ -21,7 +21,7 @@ var __split = __string.split(void 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,17 +29,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for ( var i = 0; i < __expected.length; i++ ) { - if (__expected[i]!==__split[i]) { - $ERROR('#3.'+i+': var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __expected['+i+']==='+__split[i]+'. Actual: '+__expected[i]); - } +for (var i = 0; i < __expected.length; i++) { + if (__expected[i] !== __split[i]) { + $ERROR('#3.' + i + ': var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __expected[' + i + ']===' + __split[i] + '. Actual: ' + __expected[i]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js index 6f571dd08..ec0170f44 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js @@ -19,7 +19,7 @@ var __split = __string.split(null); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,17 +27,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for ( var i = 0; i < __expected.length; i++ ) { - if (__expected[i]!==__split[i]) { - $ERROR('#3.'+i+': var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __expected['+i+']==='+__split[i]+'. Actual: '+__expected[i]); - } +for (var i = 0; i < __expected.length; i++) { + if (__expected[i] !== __split[i]) { + $ERROR('#3.' + i + ': var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __expected[' + i + ']===' + __split[i] + '. Actual: ' + __expected[i]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js index 47aed96ec..8d7da32de 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js @@ -19,7 +19,7 @@ var __split = __string.split(true); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,17 +27,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for ( var i = 0; i < __expected.length; i++ ) { - if (__expected[i]!==__split[i]) { - $ERROR('#3.'+i+': var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __expected['+i+']==='+__split[i]+'. Actual: '+__expected[i]); - } +for (var i = 0; i < __expected.length; i++) { + if (__expected[i] !== __split[i]) { + $ERROR('#3.' + i + ': var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __expected[' + i + ']===' + __split[i] + '. Actual: ' + __expected[i]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js index 0b1cc3a24..f9494680c 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js @@ -17,7 +17,7 @@ var __split = __string.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -25,7 +25,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +33,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one,two,three,four,five") { - $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split[0] === "one,two,three,four,five". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split[0] === "one,two,three,four,five". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js index 4193458cb..0958d37c5 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js @@ -17,7 +17,7 @@ var __split = __string.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String; __split = __string.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String; __split = __string.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -25,7 +25,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String; __split = __string.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String; __split = __string.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +33,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = new String; __split = __string.split(); __split[0] === "". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String; __split = __string.split(); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js index 57b559c75..07f2d68c3 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js @@ -17,7 +17,7 @@ var __split = __string.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String(" "); __split = __string.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String(" "); __split = __string.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -25,7 +25,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String(" "); __split = __string.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String(" "); __split = __string.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +33,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== " ") { - $ERROR('#3: var __string = new String(" "); __split = __string.split(); __split[0] === " ". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String(" "); __split = __string.split(); __split[0] === " ". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js index ae6a6f525..58670f6d0 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "[object Object]") { - $ERROR('#3: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Object]". Actual: '+__split[0] ); + $ERROR('#3: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Object]". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js index 4e4190bf0..137d8465a 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js @@ -10,7 +10,11 @@ es5id: 15.5.4.14_A3_T3 description: Instance is function(){} ---*/ -var __instance = { toString: function() { return "function(){}";} }; +var __instance = { + toString: function() { + return "function(){}"; + } +}; __instance.split = String.prototype.split; @@ -19,7 +23,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,15 +31,15 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__split[0].substring(0,8) !== "function") { - $ERROR('#3: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split[0].substring(0,8) === "function". Actual: '+__split[0].substring(0,8) ); +if (__split[0].substring(0, 8) !== "function") { + $ERROR('#3: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split[0].substring(0,8) === "function". Actual: ' + __split[0].substring(0, 8)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js index 4fdbc54d4..36f0fb2b2 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "NaN") { - $ERROR('#3: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "NaN". Actual: '+__split[0] ); + $ERROR('#3: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "NaN". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js index 5d59496dc..ad0cdda56 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "-1234567890") { - $ERROR('#3: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "-1234567890". Actual: '+__split[0] ); + $ERROR('#3: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "-1234567890". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js index 5e8882c5d..c68a29ee1 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __instance.toString()) { - $ERROR('#3: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === __instance.toString(). Actual: '+__split[0] ); + $ERROR('#3: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === __instance.toString(). Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js index da708173f..661bf4e36 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "[object Math]") { - $ERROR('#3: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Math]". Actual: '+__split[0] ); + $ERROR('#3: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Math]". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js index 197e89afd..e1a309ef2 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js @@ -10,7 +10,7 @@ es5id: 15.5.4.14_A3_T8 description: Instance is Array(1,2,3,4,5) ---*/ -var __instance = new Array(1,2,3,4,5); +var __instance = new Array(1, 2, 3, 4, 5); __instance.split = String.prototype.split; @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "1,2,3,4,5") { - $ERROR('#3: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "1,2,3,4,5". Actual: '+__split[0] ); + $ERROR('#3: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "1,2,3,4,5". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js index 4694e6d8f..b3bf706cf 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "false") { - $ERROR('#3: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "false". Actual: '+__split[0] ); + $ERROR('#3: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "false". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js index 3086e76b7..8306e88d7 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js @@ -19,7 +19,7 @@ var __split = __string.split(__re); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -43,7 +43,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -51,7 +51,7 @@ if (__split[1] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "o") { - $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[2] === "o". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[2] === "o". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js index 26a49a0aa..296ac5ee5 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js @@ -16,12 +16,12 @@ var __re = new RegExp; var __split = __string.split(__re); -var __expected = ["h","e","l","l","o"]; +var __expected = ["h", "e", "l", "l", "o"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js index a23f5e726..32503116d 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js @@ -21,7 +21,7 @@ var __expected = []; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js index 820d433fe..05cc593e5 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js @@ -21,7 +21,7 @@ var __expected = ["h"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[0] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js index e9d93c574..72683da88 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js @@ -21,7 +21,7 @@ var __expected = ["h", "e"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js index 52ebdc475..a3e264a31 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js @@ -21,7 +21,7 @@ var __expected = ["h", "e", "l"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js index ecfd109af..88d744ae3 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js @@ -16,12 +16,12 @@ var __re = new RegExp; var __split = __string.split(__re, 4); -var __expected = ["h", "e", "l" ,"l"]; +var __expected = ["h", "e", "l", "l"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js index 5b669ab81..b97b9aa5d 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js @@ -23,7 +23,7 @@ var __expected = ["h", "e", "l", "l", "o"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,16 +31,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js index fcea734ec..5fecb0dca 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js @@ -23,7 +23,7 @@ var __expected = ["h", "e", "l", "l", "o"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,16 +31,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js index 8121de01b..68a70929c 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js @@ -21,7 +21,7 @@ var __expected = []; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js index f9de8ea34..3df56dacf 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js @@ -16,12 +16,12 @@ var __re = /\s/; var __split = __string.split(__re); -var __expected = ["a","b","c","de","f"]; +var __expected = ["a", "b", "c", "de", "f"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js index 5454f5281..b6d9396e8 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js @@ -14,12 +14,12 @@ var __string = new String("hello"); var __re = /l/; -var __split = __string.split(__re,0); +var __split = __string.split(__re, 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 0) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.length === 0. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.length === 0. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js index 5825800d0..cddd4f260 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js @@ -16,14 +16,14 @@ var __string = new String("a b c de f"); var __re = /\s/; -var __split = __string.split(__re,3); +var __split = __string.split(__re, 3); -var __expected = ["a","b","c"]; +var __expected = ["a", "b", "c"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,16 +31,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js index 8dbfb55ad..16485eb04 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js @@ -21,7 +21,7 @@ var __expected = ["a b c de f"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js index 1aed36c4a..8ab1e54bf 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js @@ -18,12 +18,12 @@ var __re = /\d+/; var __split = __string.split(__re); -var __expected = ["dfe","iu "," =+","--"]; +var __expected = ["dfe", "iu ", " =+", "--"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,16 +31,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js index 6cfc3d655..2118c1e0e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js @@ -18,12 +18,12 @@ var __re = new RegExp('\\d+'); var __split = __string.split(__re); -var __expected = ["dfe","iu "," =+","--"]; +var __expected = ["dfe", "iu ", " =+", "--"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,16 +31,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js index 5ea67cedc..e946d99b5 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js @@ -16,12 +16,12 @@ var __re = /[a-z]/; var __split = __string.split(__re); -var __expected = ["","","",""]; +var __expected = ["", "", "", ""]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js index 16f05e87a..59cc456a5 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js @@ -16,12 +16,12 @@ var __re = new RegExp('[a-z]'); var __split = __string.split(__re); -var __expected = ["","","",""]; +var __expected = ["", "", "", ""]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js index 791426679..047e8d44e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js @@ -14,12 +14,12 @@ var __string = new String("hello"); var __re = /l/; -var __split = __string.split(__re,1); +var __split = __string.split(__re, 1); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split[0] === "he". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js index b57bc9bdb..4c713ecb8 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js @@ -14,12 +14,12 @@ var __string = new String("hello"); var __re = /l/; -var __split = __string.split(__re,2); +var __split = __string.split(__re, 2); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -43,7 +43,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[1] === "". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js index 0f1354a76..ed7869865 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js @@ -14,12 +14,12 @@ var __string = new String("hello"); var __re = /l/; -var __split = __string.split(__re,3); +var __split = __string.split(__re, 3); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -43,7 +43,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -51,7 +51,7 @@ if (__split[1] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "o") { - $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[2] === "o". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[2] === "o". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js index cb69ee51e..0a8a68942 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js @@ -14,12 +14,12 @@ var __string = new String("hello"); var __re = /l/; -var __split = __string.split(__re,4); +var __split = __string.split(__re, 4); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -43,7 +43,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -51,7 +51,7 @@ if (__split[1] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "o") { - $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[2] === "o". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[2] === "o". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js index dc4d0275e..85a4f3b34 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js @@ -21,7 +21,7 @@ var __split = __string.split(__re, void 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -45,7 +45,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -53,7 +53,7 @@ if (__split[1] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "o") { - $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[2] === "o". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[2] === "o". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js index 2f4d49ed8..4ecc5fac7 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js @@ -19,7 +19,7 @@ var __split = __string.split(__re, "hi"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 0) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.length === 0. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.length === 0. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js index 2d4ac920a..bea17ccf4 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js @@ -21,7 +21,7 @@ var __split = __string.split(__re, undefined); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -45,7 +45,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -53,7 +53,7 @@ if (__split[1] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "o") { - $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[2] === "o". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[2] === "o". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A6.js index 8d714bf6d..85d6a2e7c 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A6.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.split.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.split.prototype !== undefined) { - $ERROR('#1: String.prototype.split.prototype === undefined. Actual: '+String.prototype.split.prototype ); + $ERROR('#1: String.prototype.split.prototype === undefined. Actual: ' + String.prototype.split.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A7.js index 7aeac1323..13b7b1d0c 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A7.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A7.js @@ -13,5 +13,5 @@ try { var __instance = new __FACTORY; $ERROR('#1: __FACTORY = String.prototype.split; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { - if (e instanceof Test262Error) throw e; + if (e instanceof Test262Error) throw e; } diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A8.js index 640f04120..4f0cd2184 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A8.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.split.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length')); + $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.split.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.split){ - if (p==="length") count++; +for (var p in String.prototype.split) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.split){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.split){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A9.js index c63153264..131d8017e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A9.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.split.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length')); + $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.split.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.split.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.split.length; String.prototype.split.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.split.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.split.length; String.prototype.split.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.split.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js b/test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js index 295687133..d588fd061 100644 --- a/test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js +++ b/test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js @@ -37,4 +37,4 @@ assert( assert( str.startsWith('', Infinity), 'str.startsWith("", Infinity) returns true' -); \ No newline at end of file +); diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js index 792a205e7..c59e390c1 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.substring.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.substring.hasOwnProperty('length')); + $ERROR('#1: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.substring.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.substring.length; -verifyNotWritable(String.prototype.substring, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.substring, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.substring.length !== __obj) { - $ERROR('#2: __obj = String.prototype.substring.length; String.prototype.substring.length = function(){return "shifted";}; String.prototype.substring.length === __obj. Actual: '+String.prototype.substring.length ); + $ERROR('#2: __obj = String.prototype.substring.length; String.prototype.substring.length = function(){return "shifted";}; String.prototype.substring.length === __obj. Actual: ' + String.prototype.substring.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js index 020b8a0c5..b09a01d2d 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.substring.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.substring.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.substring.hasOwnProperty("length") return true. Actual: '+String.prototype.substring.hasOwnProperty("length")); + $ERROR('#1: String.prototype.substring.hasOwnProperty("length") return true. Actual: ' + String.prototype.substring.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.substring.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.substring.length !== 2) { - $ERROR('#2: String.prototype.substring.length === 2. Actual: '+String.prototype.substring.length ); + $ERROR('#2: String.prototype.substring.length === 2. Actual: ' + String.prototype.substring.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js index c737a2f30..a653a6ee5 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js @@ -14,7 +14,7 @@ __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(false, true) !== "t") { - $ERROR('#1: __instance = new Object(true); __instance.substring = String.prototype.substring; __instance.substring(false, true) === "t". Actual: '+__instance.substring(false, true) ); + $ERROR('#1: __instance = new Object(true); __instance.substring = String.prototype.substring; __instance.substring(false, true) === "t". Actual: ' + __instance.substring(false, true)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js index 2770321ed..355476880 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js @@ -9,15 +9,23 @@ description: > object have overrided valueOf function ---*/ -var __obj = {valueOf:function(){return 2;}}; +var __obj = { + valueOf: function() { + return 2; + } +}; var __str = "\u0035ABBBABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.substring(__obj, function(){return __str.substring(0,1);}()) !== "BBB") { - $ERROR('#1: var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.substring(__obj, function(){return __str.substring(0,1);}()) === "BBB". Actual: '+__str.substring(__obj, function(){return __str.substring(0,1);}()) ); - } +if (__str.substring(__obj, function() { + return __str.substring(0, 1); + }()) !== "BBB") { + $ERROR('#1: var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.substring(__obj, function(){return __str.substring(0,1);}()) === "BBB". Actual: ' + __str.substring(__obj, function() { + return __str.substring(0, 1); + }())); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js index f17b396d9..e3b97ed32 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js @@ -9,19 +9,27 @@ description: > overrided valueOf function, that return exception ---*/ -var __obj = {valueOf:function(){throw "instart";}}; -var __obj2 = {valueOf:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + throw "instart"; + } +}; +var __obj2 = { + valueOf: function() { + throw "inend"; + } +}; var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.substring(__obj,__obj2); - $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception'); - } catch (e) { - if (e!=="instart") { - $ERROR('#1.1: Exception === "instart". Actual: '+e); - } - } +try { + var x = __str.substring(__obj, __obj2); + $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception'); +} catch (e) { + if (e !== "instart") { + $ERROR('#1.1: Exception === "instart". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js index b8f9af963..43ae7ac78 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js @@ -11,19 +11,30 @@ description: > return exception ---*/ -var __obj = {valueOf:function(){return {};}, toString:function(){throw "instart";}}; -var __obj2 = {valueOf:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "instart"; + } +}; +var __obj2 = { + valueOf: function() { + throw "inend"; + } +}; var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.substring(__obj, __obj2); - $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception'); - } catch (e) { - if (e!=="instart") { - $ERROR('#1.1: Exception ==="instart". Actual: '+e); - } - } +try { + var x = __str.substring(__obj, __obj2); + $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception'); +} catch (e) { + if (e !== "instart") { + $ERROR('#1.1: Exception ==="instart". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js index f74970094..8efdfb328 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js @@ -10,18 +10,29 @@ description: > overrided toString function, that return exception ---*/ -var __obj = {valueOf:function(){return {};}, toString:function(){return 1;}}; -var __obj2 = {toString:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + return {}; + }, + toString: function() { + return 1; + } +}; +var __obj2 = { + toString: function() { + throw "inend"; + } +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - var x = "ABB\u0041BABAB\u0031BBAA".substring(__obj, __obj2); - $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".substring(__obj,__obj2) lead to throw exception'); + var x = "ABB\u0041BABAB\u0031BBAA".substring(__obj, __obj2); + $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".substring(__obj,__obj2) lead to throw exception'); } catch (e) { - if (e!=="inend") { - $ERROR('#1.1: Exception === "inend". Actual: '+e); - } + if (e !== "inend") { + $ERROR('#1.1: Exception === "inend". Actual: ' + e); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js index e9e4d0750..4f85a9e09 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js @@ -9,8 +9,8 @@ description: Used one argument, that is function(){}(). Instance is string ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("report".substring(function(){}()) !== "report") { - $ERROR('#1: "report".substring(function(){}()) === "report". Actual: '+"report".substring(function(){}()) ); +if ("report".substring(function() {}()) !== "report") { + $ERROR('#1: "report".substring(function(){}()) === "report". Actual: ' + "report".substring(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js index 50af2e9d8..37c4bc704 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js @@ -16,8 +16,8 @@ Number.prototype.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__num.substring()!=="11.001002") { - $ERROR('#1: var __num = 11.001002; Number.prototype.substring = String.prototype.substring; __num.substring()==="11.001002". Actual: '+__num.substring()); +if (__num.substring() !== "11.001002") { + $ERROR('#1: var __num = 11.001002; Number.prototype.substring = String.prototype.substring; __num.substring()==="11.001002". Actual: ' + __num.substring()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js index 21abf6d49..658ce9d2b 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js @@ -15,8 +15,12 @@ __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.substring(function(){return true;}(),x) !== "alse") { - $ERROR('#1: var x; __instance = new Boolean; __instance.substring = String.prototype.substring; __instance.substring(function(){return true;}(),x) === "alse". Actual: '+__instance.substring(function(){return true;}(),x) ); +if (__instance.substring(function() { + return true; + }(), x) !== "alse") { + $ERROR('#1: var x; __instance = new Boolean; __instance.substring = String.prototype.substring; __instance.substring(function(){return true;}(),x) === "alse". Actual: ' + __instance.substring(function() { + return true; + }(), x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js index 8e5be04b6..aaf8f7e24 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js @@ -11,8 +11,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (function(){return "gnulluna"}().substring(null, -3) !== "") { - $ERROR('#1: function(){return "gnulluna"}().substring(null, -3) === "". Actual: '+function(){return "gnulluna"}().substring(null, -3) ); +if (function() { + return "gnulluna" + }().substring(null, -3) !== "") { + $ERROR('#1: function(){return "gnulluna"}().substring(null, -3) === "". Actual: ' + function() { + return "gnulluna" + }().substring(null, -3)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js index 2f716f58a..9efb6cc77 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js @@ -9,17 +9,19 @@ description: > object, that have overrided valueOf function ---*/ -__func.valueOf=function(){return "gnulluna"}; +__func.valueOf = function() { + return "gnulluna" +}; -Function.prototype.substring=String.prototype.substring; +Function.prototype.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__func.substring(null, Function()) !== "") { - $ERROR('#1: __func.valueOf=function(){return "gnulluna"}; Function.prototype.substring=String.prototype.substring; function __func(){}; __func.substring(null, Function()) === "". Actual: '+__func.substring(null, Function()) ); + $ERROR('#1: __func.valueOf=function(){return "gnulluna"}; Function.prototype.substring=String.prototype.substring; function __func(){}; __func.substring(null, Function()) === "". Actual: ' + __func.substring(null, Function())); } // ////////////////////////////////////////////////////////////////////////////// -function __func(){}; +function __func() {}; diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js index d41f4b1c2..d9538d5f6 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js @@ -11,8 +11,8 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String("undefined").substring(x,3) !== "und") { - $ERROR('#1: var x; new String("undefined").substring(x,3) === "und". Actual: '+new String("undefined").substring(x,3) ); +if (new String("undefined").substring(x, 3) !== "und") { + $ERROR('#1: var x; new String("undefined").substring(x,3) === "und". Actual: ' + new String("undefined").substring(x, 3)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js index eecbb5da7..fa599a546 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js @@ -9,8 +9,8 @@ description: Arguments are symbol and undefined, and instance is String ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(void 0).substring("e",undefined) !== "undefined") { - $ERROR('#1: String(void 0).substring("e",undefined) === "undefined". Actual: '+String(void 0).substring("e",undefined) ); +if (String(void 0).substring("e", undefined) !== "undefined") { + $ERROR('#1: String(void 0).substring("e",undefined) === "undefined". Actual: ' + String(void 0).substring("e", undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js index c7e0a5953..1279d0ebe 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js @@ -9,12 +9,14 @@ description: > String(object), object have overrided toString function ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(__obj).substring(-4,void 0) !== "undefined") { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).substring(-4,void 0) === "undefined". Actual: '+String(__obj).substring(-4,void 0) ); +if (String(__obj).substring(-4, void 0) !== "undefined") { + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).substring(-4,void 0) === "undefined". Actual: ' + String(__obj).substring(-4, void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js index b4b0053b9..1720c35f4 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js @@ -11,14 +11,14 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String(__obj).substring(/*(function(){})()*/undefined,undefined) !== "undefined") { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).substring(/*(function(){})()*/undefined,undefined) === "undefined". Actual: '+new String(__obj).substring(/*(function(){})()*/undefined,undefined) ); +if (new String(__obj).substring( /*(function(){})()*/ undefined, undefined) !== "undefined") { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).substring(/*(function(){})()*/undefined,undefined) === "undefined". Actual: ' + new String(__obj).substring( /*(function(){})()*/ undefined, undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js index a87e1b4e5..499a890e7 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __string.substring() !== "string") { - $ERROR('#1: __string = new String("this is a string object"); typeof __string.substring() === "string". Actual: '+typeof __string.substring() ); + $ERROR('#1: __string = new String("this is a string object"); typeof __string.substring() === "string". Actual: ' + typeof __string.substring()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js index 44c719d2e..c98235acd 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js @@ -11,8 +11,8 @@ var __string = new String("this_is_a_string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.substring(0,8) !== "this_is_") { - $ERROR('#1: __string = new String("this_is_a_string object"); __string.substring(0,8) === "this_is_". Actual: '+__string.substring(0,8) ); +if (__string.substring(0, 8) !== "this_is_") { + $ERROR('#1: __string = new String("this_is_a_string object"); __string.substring(0,8) === "this_is_". Actual: ' + __string.substring(0, 8)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js index 179af831e..3fec5dfee 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js @@ -12,7 +12,7 @@ var __string = new String('this is a string object'); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.substring(NaN, Infinity) !== "this is a string object") { - $ERROR('#1: __string = new String(\'this is a string object\'); __string.substring(NaN, Infinity) === "this is a string object". Actual: '+__string.substring(NaN, Infinity) ); + $ERROR('#1: __string = new String(\'this is a string object\'); __string.substring(NaN, Infinity) === "this is a string object". Actual: ' + __string.substring(NaN, Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js index 18201d070..3fab39c9b 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js @@ -11,8 +11,8 @@ var __string = new String(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.substring(1,0) !== "") { - $ERROR('#1: __string = new String(""); __string.substring(1,0) === "". Actual: '+__string.substring(1,0) ); +if (__string.substring(1, 0) !== "") { + $ERROR('#1: __string = new String(""); __string.substring(1,0) === "". Actual: ' + __string.substring(1, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js index d10dc05a3..95095d5e1 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.substring(Infinity, NaN) !== "this is a string object") { - $ERROR('#1: __string = new String("this is a string object"); __string.substring(Infinity, NaN) === "this is a string object". Actual: '+__string.substring(Infinity, NaN) ); + $ERROR('#1: __string = new String("this is a string object"); __string.substring(Infinity, NaN) === "this is a string object". Actual: ' + __string.substring(Infinity, NaN)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js index 6d5d0a849..15c49967a 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.substring(Infinity, Infinity) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.substring(Infinity, Infinity) === "". Actual: '+__string.substring(Infinity, Infinity) ); + $ERROR('#1: __string = new String("this is a string object"); __string.substring(Infinity, Infinity) === "". Actual: ' + __string.substring(Infinity, Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js index aec40ce40..9e78388c9 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js @@ -11,8 +11,8 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.substring(-0.01,0) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.substring(-0.01,0) === "". Actual: '+__string.substring(-0.01,0) ); +if (__string.substring(-0.01, 0) !== "") { + $ERROR('#1: __string = new String("this is a string object"); __string.substring(-0.01,0) === "". Actual: ' + __string.substring(-0.01, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js index 4ce872828..d510a6481 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.substring(__string.length, __string.length) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.substring(__string.length, __string.length) === "". Actual: '+__string.substring(__string.length, __string.length) ); + $ERROR('#1: __string = new String("this is a string object"); __string.substring(__string.length, __string.length) === "". Actual: ' + __string.substring(__string.length, __string.length)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js index e73ef3e64..41618595e 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js @@ -11,8 +11,8 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.substring(__string.length+1, 0) !== "this is a string object") { - $ERROR('#1: __string = new String("this is a string object"); __string.substring(__string.length+1, 0) === "this is a string object". Actual: '+__string.substring(__string.length+1, 0) ); +if (__string.substring(__string.length + 1, 0) !== "this is a string object") { + $ERROR('#1: __string = new String("this is a string object"); __string.substring(__string.length+1, 0) === "this is a string object". Actual: ' + __string.substring(__string.length + 1, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js index 4ba78e6d7..3f5dbcad5 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.substring(-Infinity, -Infinity) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.substring(-Infinity, -Infinity) === "". Actual: '+__string.substring(-Infinity, -Infinity) ); + $ERROR('#1: __string = new String("this is a string object"); __string.substring(-Infinity, -Infinity) === "". Actual: ' + __string.substring(-Infinity, -Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js index feff7d77e..2a26bc88d 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js @@ -11,13 +11,13 @@ description: > Infinity, end is -Infinity ---*/ -var __instance = new Array(1,2,3,4,5); +var __instance = new Array(1, 2, 3, 4, 5); __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.substring(Infinity,-Infinity) !== "1,2,3,4,5") { - $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(Infinity,-Infinity) === "1,2,3,4,5". Actual: '+__instance.substring(Infinity,-Infinity) ); +if (__instance.substring(Infinity, -Infinity) !== "1,2,3,4,5") { + $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(Infinity,-Infinity) === "1,2,3,4,5". Actual: ' + __instance.substring(Infinity, -Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js index e2920aafb..4a7fd0ac3 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js @@ -14,16 +14,18 @@ description: > __FACTORY.prototype.substring = String.prototype.substring; var __instance = new __FACTORY(void 0); - + ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(0, 100) !== "undefined") { - $ERROR('#1: __instance.substring(0, 100) === "undefined". Actual: '+__instance.substring(0, 100) ); + $ERROR('#1: __instance.substring(0, 100) === "undefined". Actual: ' + __instance.substring(0, 100)); } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value; - this.toString = function() { return this.value+''; } +function __FACTORY(value) { + this.value = value; + this.toString = function() { + return this.value + ''; + } } diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js index a55770141..e4238cc57 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js @@ -12,13 +12,13 @@ description: > ---*/ var __instance = new Boolean(); - + __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(new Array(), new Boolean(1)) !== "f") { - $ERROR('#1: __instance = new Boolean(); __instance.substring = String.prototype.substring; __instance.substring(new Array(), new Boolean(1)) === "f". Actual: '+__instance.substring(new Array(), new Boolean(1)) ); + $ERROR('#1: __instance = new Boolean(); __instance.substring = String.prototype.substring; __instance.substring(new Array(), new Boolean(1)) === "f". Actual: ' + __instance.substring(new Array(), new Boolean(1))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js index dd187638f..e03694767 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js @@ -11,13 +11,13 @@ description: > end is -Infinity ---*/ -var __instance = new Array(1,2,3,4,5); +var __instance = new Array(1, 2, 3, 4, 5); __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.substring(9,-Infinity) !== "1,2,3,4,5") { - $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(9,-Infinity) === "1,2,3,4,5". Actual: '+__instance.substring(9,-Infinity) ); +if (__instance.substring(9, -Infinity) !== "1,2,3,4,5") { + $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(9,-Infinity) === "1,2,3,4,5". Actual: ' + __instance.substring(9, -Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js index 4d93dfb75..6cfa98872 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js @@ -11,13 +11,13 @@ description: > end is false ---*/ -var __instance = new Array(1,2,3,4,5); +var __instance = new Array(1, 2, 3, 4, 5); __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(true, false) !== "1") { - $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(true, false) === "1". Actual: '+__instance.substring(true, false) ); + $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(true, false) === "1". Actual: ' + __instance.substring(true, false)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js index 064d643fc..12b14f241 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js @@ -11,13 +11,13 @@ description: > end is '5' ---*/ -var __instance = new Array(1,2,3,4,5); +var __instance = new Array(1, 2, 3, 4, 5); __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring('4', '5') !== "3") { - $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(\'4\', \'5\') === "3". Actual: '+__instance.substring('4', '5') ); + $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(\'4\', \'5\') === "3". Actual: ' + __instance.substring('4', '5')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js index 95eb172cc..1405841b4 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js @@ -11,13 +11,13 @@ description: > end is 0 ---*/ -var __instance = new Object(); +var __instance = new Object(); __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.substring(8,0) !== "[object ") { - $ERROR('#1: __instance = new Object(); __instance.substring = String.prototype.substring; __instance.substring(8,0) === "[object ". Actual: '+__instance.substring(8,0) ); +if (__instance.substring(8, 0) !== "[object ") { + $ERROR('#1: __instance = new Object(); __instance.substring = String.prototype.substring; __instance.substring(8,0) === "[object ". Actual: ' + __instance.substring(8, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js index 0ee3e9695..29bba1594 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js @@ -11,13 +11,13 @@ description: > end is length of object.toString ---*/ -var __instance = new Object(); +var __instance = new Object(); __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(8, __instance.toString().length) !== "Object]") { - $ERROR('#1: __instance = new Object(); __instance.substring = String.prototype.substring; __instance.substring(8, __instance.toString().length) === "Object]". Actual: '+__instance.substring(8, __instance.toString().length) ); + $ERROR('#1: __instance = new Object(); __instance.substring = String.prototype.substring; __instance.substring(8, __instance.toString().length) === "Object]". Actual: ' + __instance.substring(8, __instance.toString().length)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js index 8305324ec..d8d84a122 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js @@ -11,14 +11,18 @@ description: > instance.substring(...).substring(...) ---*/ -var __instance = { toString: function() { return "function(){}";} }; - +var __instance = { + toString: function() { + return "function(){}"; + } +}; + __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.substring(-Infinity,8) !== "function") { - $ERROR('#1: __instance = function(){}; __instance.substring = String.prototype.substring; __instance.substring(-Infinity,8) === "function". Actual: '+__instance.substring(8,Infinity).substring(-Infinity,1) ); +if (__instance.substring(-Infinity, 8) !== "function") { + $ERROR('#1: __instance = function(){}; __instance.substring = String.prototype.substring; __instance.substring(-Infinity,8) === "function". Actual: ' + __instance.substring(8, Infinity).substring(-Infinity, 1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js index ca339a846..60729b827 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js @@ -12,13 +12,13 @@ description: > ---*/ var __instance = new Number(NaN); - + __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(Infinity, NaN) !== "NaN") { - $ERROR('#1: __instance = new Number(NaN); __instance.substring = String.prototype.substring; __instance.substring(Infinity, NaN) === "NaN". Actual: '+__instance.substring(Infinity, NaN) ); + $ERROR('#1: __instance = new Number(NaN); __instance.substring = String.prototype.substring; __instance.substring(Infinity, NaN) === "NaN". Actual: ' + __instance.substring(Infinity, NaN)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js index 75623a9ee..1fc65965c 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js @@ -12,13 +12,13 @@ description: > ---*/ var __instance = Math; - + __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(Math.PI, -10) !== "[ob") { - $ERROR('#1: __instance = Math; __instance.substring = String.prototype.substring; __instance.substring(Math.PI, -10) === "[ob". Actual: '+__instance.substring(Math.PI, -10) ); + $ERROR('#1: __instance = Math; __instance.substring = String.prototype.substring; __instance.substring(Math.PI, -10) === "[ob". Actual: ' + __instance.substring(Math.PI, -10)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A6.js index bc4cccb70..f16156445 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A6.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.substring.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.substring.prototype !== undefined) { - $ERROR('#1: String.prototype.substring.prototype === undefined. Actual: '+String.prototype.substring.prototype ); + $ERROR('#1: String.prototype.substring.prototype === undefined. Actual: ' + String.prototype.substring.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A7.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A7.js index 14440737f..9cf25cfb1 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A7.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A7.js @@ -14,6 +14,6 @@ try { $ERROR('#1: __FACTORY = String.prototype.substring; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e)); + $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js index b48d4db02..36af36356 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.substring.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.substring.hasOwnProperty('length')); + $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.substring.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.substring.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.substring){ - if (p==="length") count++; +for (var p in String.prototype.substring) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.substring){if (p==="length") count++;} count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.substring){if (p==="length") count++;} count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A9.js index 26e1c976a..803b98b5e 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A9.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.substring.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.substring.hasOwnProperty('length')); + $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.substring.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.substring.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.substring.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.substring.length; String.prototype.substring.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.substring.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.substring.length; String.prototype.substring.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.substring.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js index 399651837..3168e925a 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLocaleLowerCase.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length')); + $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.toLocaleLowerCase.length; -verifyNotWritable(String.prototype.toLocaleLowerCase, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.toLocaleLowerCase, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleLowerCase.length !== __obj) { - $ERROR('#2: __obj = String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.length = function(){return "shifted";}; String.prototype.toLocaleLowerCase.length === __obj. Actual: '+String.prototype.toLocaleLowerCase.length ); + $ERROR('#2: __obj = String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.length = function(){return "shifted";}; String.prototype.toLocaleLowerCase.length === __obj. Actual: ' + String.prototype.toLocaleLowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js index c6ca64f03..28a5f7aab 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toLocaleLowerCase.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLocaleLowerCase.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty("length") return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty("length")); + $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.toLocaleLowerCase.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleLowerCase.length !== 0) { - $ERROR('#2: String.prototype.toLocaleLowerCase.length === 0. Actual: '+String.prototype.toLocaleLowerCase.length ); + $ERROR('#2: String.prototype.toLocaleLowerCase.length === 0. Actual: ' + String.prototype.toLocaleLowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js index b929ade1d..181691a71 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js @@ -14,7 +14,7 @@ __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toLocaleLowerCase() !== "true") { - $ERROR('#1: __instance = new Object(true); __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __instance.toLocaleLowerCase() === "true". Actual: '+__instance.toLocaleLowerCase() ); + $ERROR('#1: __instance = new Object(true); __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __instance.toLocaleLowerCase() === "true". Actual: ' + __instance.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js index cfdc535d8..afc5510af 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js @@ -9,13 +9,17 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041B";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLocaleLowerCase() !=="ab") { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="ab". Actual: '+__obj.toLocaleLowerCase() ); +if (__obj.toLocaleLowerCase() !== "ab") { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="ab". Actual: ' + __obj.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js index 10c4df6a2..802f832ee 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js @@ -9,17 +9,21 @@ description: > toLocaleLowerCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLocaleLowerCase(); - $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js index 716a6d917..6754da40c 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js @@ -9,17 +9,24 @@ description: > then call toLocaleLowerCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLocaleLowerCase(); - $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js index eb19ac07c..11d49736b 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js @@ -9,13 +9,20 @@ description: > toLocaleLowerCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLocaleLowerCase() !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="1". Actual: '+__obj.toLocaleLowerCase() ); +if (__obj.toLocaleLowerCase() !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="1". Actual: ' + __obj.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,7 +30,7 @@ if (__obj.toLocaleLowerCase() !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__obj.toLocaleLowerCase().length !== 1) { - $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase().length === 1. Actual: '+__obj.toLocaleLowerCase().length ); + $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase().length === 1. Actual: ' + __obj.toLocaleLowerCase().length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js index 95da90ec3..978a4932b 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js @@ -13,7 +13,7 @@ __reg.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__reg.toLocaleLowerCase() !== "/abc/") { - $ERROR('#1: var __reg = new RegExp("ABC"); __reg.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __reg.toLocaleLowerCase() === "/abc/". Actual: '+__reg.toLocaleLowerCase() ); + $ERROR('#1: var __reg = new RegExp("ABC"); __reg.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __reg.toLocaleLowerCase() === "/abc/". Actual: ' + __reg.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js index d20cef4b2..fe95c5cd6 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js @@ -14,7 +14,7 @@ __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toLocaleLowerCase() !== "false") { - $ERROR('#1: __instance = new Boolean; __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __instance.toLocaleLowerCase() === "false". Actual: '+__instance.toLocaleLowerCase() ); + $ERROR('#1: __instance = new Boolean; __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __instance.toLocaleLowerCase() === "false". Actual: ' + __instance.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js index 00eca997a..a4aee2c5e 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js @@ -10,7 +10,7 @@ description: Checking by using eval ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (eval("\"BJ\"").toLocaleLowerCase() !== "bj") { - $ERROR('#1: eval("\\"BJ\\"").toLocaleLowerCase() === "bj". Actual: '+eval("\"BJ\"").toLocaleLowerCase() ); + $ERROR('#1: eval("\\"BJ\\"").toLocaleLowerCase() === "bj". Actual: ' + eval("\"BJ\"").toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js index 04b36119a..7336d0cd3 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js @@ -11,12 +11,12 @@ description: > var __lowerCase = "".toLocaleLowerCase(); -var __expected = ""; +var __expected = ""; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,15 +32,15 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__lowerCase[0]!==__expected[0]) { - $ERROR('#4: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase[0]===__expected[0]. Actual: '+__lowerCase[0]); +if (__lowerCase[0] !== __expected[0]) { + $ERROR('#4: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase[0]===__expected[0]. Actual: ' + __lowerCase[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js index fb3d25143..d97884e82 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js @@ -10,8 +10,12 @@ description: Call toLocaleLowerCase() function for function call ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "GnulLuNa"}().toLocaleLowerCase() !== "gnulluna") { - $ERROR('#1: function(){return "GnulLuNa"}().toLocaleLowerCase() === "gnulluna". Actual: '+function(){return "GnulLuNa"}().toLocaleLowerCase() ); +if (function() { + return "GnulLuNa" + }().toLocaleLowerCase() !== "gnulluna") { + $ERROR('#1: function(){return "GnulLuNa"}().toLocaleLowerCase() === "gnulluna". Actual: ' + function() { + return "GnulLuNa" + }().toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js index 6339d0011..93cfe7ed4 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js @@ -12,7 +12,7 @@ Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ((Number.NEGATIVE_INFINITY).toLocaleLowerCase() !== "-infinity") { - $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; (Number.NEGATIVE_INFINITY).toLocaleLowerCase() === "-infinity". Actual: '+(Number.NEGATIVE_INFINITY).toLocaleLowerCase() ); + $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; (Number.NEGATIVE_INFINITY).toLocaleLowerCase() === "-infinity". Actual: ' + (Number.NEGATIVE_INFINITY).toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js index fcd3a61e2..01751fa42 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js @@ -11,8 +11,8 @@ Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (NaN.toLocaleLowerCase()!== "nan") { - $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; NaN.toLocaleLowerCase()=== "nan". Actual: '+NaN.toLocaleLowerCase()); +if (NaN.toLocaleLowerCase() !== "nan") { + $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; NaN.toLocaleLowerCase()=== "nan". Actual: ' + NaN.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js index 17ccebbee..b9219740a 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js @@ -9,6 +9,6 @@ description: Call toLocaleLowerCase() function of Infinity Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; -if (Infinity.toLocaleLowerCase()!== "infinity") { - $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; Infinity.toLocaleLowerCase()=== "infinity". Actual: '+Infinity.toLocaleLowerCase()); +if (Infinity.toLocaleLowerCase() !== "infinity") { + $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; Infinity.toLocaleLowerCase()=== "infinity". Actual: ' + Infinity.toLocaleLowerCase()); } diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js index 94129acfc..3c122f6d6 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js @@ -8,19 +8,19 @@ description: Call toLocaleLowerCase() function of string object ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; var __lowerCase = new String(__obj).toLocaleLowerCase(); -var __expected ="undefined"; +var __expected = "undefined"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,7 +28,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,16 +36,16 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__lowerCase[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase['+index+']=== '+__expected[index]+'. Actual: '+__lowerCase[index]); +for (var index = 0; index < __expected.length; index++) { + if (__lowerCase[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase[' + index + ']=== ' + __expected[index] + '. Actual: ' + __lowerCase[index]); } } // diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js index 715dee843..0fa680559 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js @@ -12,7 +12,7 @@ description: Checking returned result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("Hello, WoRlD!".toLocaleLowerCase() !== "hello, world!") { - $ERROR('#1: "Hello, WoRlD!".toLocaleLowerCase() === "hello, world!". Actual: '+("Hello, WoRlD!".toLocaleLowerCase()) ); + $ERROR('#1: "Hello, WoRlD!".toLocaleLowerCase() === "hello, world!". Actual: ' + ("Hello, WoRlD!".toLocaleLowerCase())); } // ////////////////////////////////////////////////////////////////////////////// @@ -20,7 +20,7 @@ if ("Hello, WoRlD!".toLocaleLowerCase() !== "hello, world!") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if ("Hello, WoRlD!".toLocaleLowerCase() !== String("hello, world!")) { - $ERROR('#2: "Hello, WoRlD!".toLocaleLowerCase() === String("hello, world!"). Actual: '+("Hello, WoRlD!".toLocaleLowerCase()) ); + $ERROR('#2: "Hello, WoRlD!".toLocaleLowerCase() === String("hello, world!"). Actual: ' + ("Hello, WoRlD!".toLocaleLowerCase())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js index de23fd2e5..7ee83f78f 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toLocaleLowerCase.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.toLocaleLowerCase.prototype !== undefined) { - $ERROR('#1: String.prototype.toLocaleLowerCase.prototype === undefined. Actual: '+String.prototype.toLocaleLowerCase.prototype ); + $ERROR('#1: String.prototype.toLocaleLowerCase.prototype === undefined. Actual: ' + String.prototype.toLocaleLowerCase.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js index 03faefe86..408d0e59e 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js @@ -16,6 +16,6 @@ try { $ERROR('#1: var __FACTORY = String.prototype.toLocaleLowerCase; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.1: var __FACTORY = String.prototype.toLocaleLowerCase; "var __instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); + $ERROR('#1.1: var __FACTORY = String.prototype.toLocaleLowerCase; "var __instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js index 8699a7657..e421581f6 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toLocaleLowerCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,14 +30,14 @@ if (String.prototype.toLocaleLowerCase.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.toLocaleLowerCase){ - if (p==="length") count++; +for (var p in String.prototype.toLocaleLowerCase) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.toLocaleLowerCase){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.toLocaleLowerCase){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js index a4c0873dc..42dbf02a7 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toLocaleLowerCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.toLocaleLowerCase.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleLowerCase.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js index 34289893b..9ee03545e 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length')); + $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.toLocaleUpperCase.length; -verifyNotWritable(String.prototype.toLocaleUpperCase, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.toLocaleUpperCase, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleUpperCase.length !== __obj) { - $ERROR('#2: __obj = String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.length = function(){return "shifted";}; String.prototype.toLocaleUpperCase.length === __obj. Actual: '+String.prototype.toLocaleUpperCase.length ); + $ERROR('#2: __obj = String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.length = function(){return "shifted";}; String.prototype.toLocaleUpperCase.length === __obj. Actual: ' + String.prototype.toLocaleUpperCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js index da53d2892..c55ed8da0 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toLocaleUpperCase.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLocaleUpperCase.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty("length") return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty("length")); + $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.toLocaleUpperCase.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleUpperCase.length !== 0) { - $ERROR('#2: String.prototype.toLocaleUpperCase.length === 0. Actual: '+String.prototype.toLocaleUpperCase.length ); + $ERROR('#2: String.prototype.toLocaleUpperCase.length === 0. Actual: ' + String.prototype.toLocaleUpperCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js index e58f9b38a..128481712 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js @@ -14,7 +14,7 @@ __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toLocaleUpperCase() !== "TRUE") { - $ERROR('#1: __instance = new Object(true); __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __instance.toLocaleUpperCase() === "TRUE". Actual: '+__instance.toLocaleUpperCase() ); + $ERROR('#1: __instance = new Object(true); __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __instance.toLocaleUpperCase() === "TRUE". Actual: ' + __instance.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js index 6bcc86f58..0e0bd3fbe 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js @@ -9,13 +9,17 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041b";}} +var __obj = { + toString: function() { + return "\u0041b"; + } +} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLocaleUpperCase() !=="AB") { - $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="AB". Actual: '+__obj.toLocaleUpperCase() ); +if (__obj.toLocaleUpperCase() !== "AB") { + $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="AB". Actual: ' + __obj.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js index 45a9a2087..ba8ef4900 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js @@ -9,7 +9,11 @@ description: > toLocaleUpperCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -17,8 +21,8 @@ try { var x = __obj.toLocaleUpperCase(); $ERROR('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js index 185ea8fcb..a473a9bb4 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js @@ -9,16 +9,23 @@ description: > then call toLocaleUpperCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLocaleUpperCase(); - $ERROR('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js index 3b1b61817..a73b5c9d5 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js @@ -9,12 +9,19 @@ description: > toLocaleUpperCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLocaleUpperCase() !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="1". Actual: '+__obj.toLocaleUpperCase() ); +if (__obj.toLocaleUpperCase() !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="1". Actual: ' + __obj.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +29,7 @@ if (__obj.toLocaleUpperCase() !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__obj.toLocaleUpperCase().length !== 1) { - $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase().length === 1. Actual: '+__obj.toLocaleUpperCase().length ); + $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase().length === 1. Actual: ' + __obj.toLocaleUpperCase().length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js index 8c2104cc7..71d330aaa 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js @@ -12,7 +12,7 @@ __reg.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__reg.toLocaleUpperCase() !== "/ABC/") { - $ERROR('#1: var __reg = new RegExp("abc"); __reg.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __reg.toLocaleUpperCase() === "/ABC/". Actual: '+__reg.toLocaleUpperCase() ); + $ERROR('#1: var __reg = new RegExp("abc"); __reg.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __reg.toLocaleUpperCase() === "/ABC/". Actual: ' + __reg.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js index 425c58fc1..533a4294d 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js @@ -14,7 +14,7 @@ __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toLocaleUpperCase() !== "FALSE") { - $ERROR('#1: __instance = new Boolean; __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __instance.toLocaleUpperCase() === "FALSE". Actual: '+__instance.toLocaleUpperCase() ); + $ERROR('#1: __instance = new Boolean; __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __instance.toLocaleUpperCase() === "FALSE". Actual: ' + __instance.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js index 1de801a89..04432731a 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js @@ -10,7 +10,7 @@ description: Checking by using eval ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (eval("\"bj\"").toLocaleUpperCase() !== "BJ") { - $ERROR('#1: eval("\\"bj\\"").toLocaleUpperCase() === "BJ". Actual: '+eval("\"bj\"").toLocaleUpperCase() ); + $ERROR('#1: eval("\\"bj\\"").toLocaleUpperCase() === "BJ". Actual: ' + eval("\"bj\"").toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js index 3cea1ebf0..1b144d679 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js @@ -10,12 +10,12 @@ description: > ---*/ var __lowerCase = "".toLocaleUpperCase(); -var __expected = ""; +var __expected = ""; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,7 +23,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,15 +31,15 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__lowerCase[0]!==__expected[0]) { - $ERROR('#4: __lowerCase = "".toLocaleUpperCase(); __lowerCase[0]==='+__expected[0]+'. Actual: '+__lowerCase[0]); +if (__lowerCase[0] !== __expected[0]) { + $ERROR('#4: __lowerCase = "".toLocaleUpperCase(); __lowerCase[0]===' + __expected[0] + '. Actual: ' + __lowerCase[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js index f1da20120..d28e77888 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js @@ -10,8 +10,12 @@ description: Call toLocaleUpperCase() function of function call ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "GnulLuNa"}().toLocaleUpperCase() !== "GNULLUNA") { - $ERROR('#1: function(){return "GnulLuNa"}().toLocaleUpperCase() === "GNULLUNA". Actual: '+function(){return "GnulLuNa"}().toLocaleUpperCase() ); +if (function() { + return "GnulLuNa" + }().toLocaleUpperCase() !== "GNULLUNA") { + $ERROR('#1: function(){return "GnulLuNa"}().toLocaleUpperCase() === "GNULLUNA". Actual: ' + function() { + return "GnulLuNa" + }().toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js index 5088fcb8d..6d69d494d 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js @@ -12,7 +12,7 @@ Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ((Number.NEGATIVE_INFINITY).toLocaleUpperCase() !== "-INFINITY") { - $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; (Number.NEGATIVE_INFINITY).toLocaleUpperCase() === "-INFINITY". Actual: '+(Number.NEGATIVE_INFINITY).toLocaleUpperCase() ); + $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; (Number.NEGATIVE_INFINITY).toLocaleUpperCase() === "-INFINITY". Actual: ' + (Number.NEGATIVE_INFINITY).toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js index 0c710d629..1a24a8824 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js @@ -11,8 +11,8 @@ Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (NaN.toLocaleUpperCase()!== "NAN") { - $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; NaN.toLocaleUpperCase()=== "NAN". Actual: '+NaN.toLocaleUpperCase()); +if (NaN.toLocaleUpperCase() !== "NAN") { + $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; NaN.toLocaleUpperCase()=== "NAN". Actual: ' + NaN.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js index 968e66738..ef2c7b26c 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js @@ -9,6 +9,6 @@ description: Call toLocaleUpperCase() function of Infinity Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; -if (Infinity.toLocaleUpperCase()!== "INFINITY") { - $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; Infinity.toLocaleUpperCase()=== "INFINITY". Actual: '+Infinity.toLocaleUpperCase()); +if (Infinity.toLocaleUpperCase() !== "INFINITY") { + $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; Infinity.toLocaleUpperCase()=== "INFINITY". Actual: ' + Infinity.toLocaleUpperCase()); } diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js index debdee1dd..ff1ea5933 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js @@ -8,18 +8,18 @@ description: Call toLocaleUpperCase() function of string object ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; var __lowerCase = new String(__obj).toLocaleUpperCase(); -var __expected ="UNDEFINED"; +var __expected = "UNDEFINED"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,16 +35,16 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__lowerCase[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase['+index+']==='+__expected[index]+'. Actual: '+__lowerCase[index]); +for (var index = 0; index < __expected.length; index++) { + if (__lowerCase[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase[' + index + ']===' + __expected[index] + '. Actual: ' + __lowerCase[index]); } } // diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js index 39cf66d2c..32986be8b 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js @@ -12,7 +12,7 @@ description: Checking returned result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("Hello, WoRlD!".toLocaleUpperCase() !== "HELLO, WORLD!") { - $ERROR('#1: "Hello, WoRlD!".toLocaleUpperCase() === "HELLO, WORLD!". Actual: '+("Hello, WoRlD!".toLocaleUpperCase()) ); + $ERROR('#1: "Hello, WoRlD!".toLocaleUpperCase() === "HELLO, WORLD!". Actual: ' + ("Hello, WoRlD!".toLocaleUpperCase())); } // ////////////////////////////////////////////////////////////////////////////// @@ -20,14 +20,14 @@ if ("Hello, WoRlD!".toLocaleUpperCase() !== "HELLO, WORLD!") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if ("Hello, WoRlD!".toLocaleUpperCase() !== String("HELLO, WORLD!")) { - $ERROR('#2: "Hello, WoRlD!".toLocaleUpperCase() === String("HELLO, WORLD!"). Actual: '+("Hello, WoRlD!".toLocaleUpperCase()) ); + $ERROR('#2: "Hello, WoRlD!".toLocaleUpperCase() === String("HELLO, WORLD!"). Actual: ' + ("Hello, WoRlD!".toLocaleUpperCase())); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if ("Hello, WoRlD!".toLocaleUpperCase() ===new String("HELLO, WORLD!")) { +if ("Hello, WoRlD!".toLocaleUpperCase() === new String("HELLO, WORLD!")) { $ERROR('#3: "Hello, WoRlD!".toLocaleUpperCase() !== new String("HELLO, WORLD!"'); } // diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js index 498dbfaa5..ba3d6e8f2 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toLocaleUpperCase.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.toLocaleUpperCase.prototype !== undefined) { - $ERROR('#1: String.prototype.toLocaleUpperCase.prototype === undefined. Actual: '+String.prototype.toLocaleUpperCase.prototype ); + $ERROR('#1: String.prototype.toLocaleUpperCase.prototype === undefined. Actual: ' + String.prototype.toLocaleUpperCase.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js index 3f57102ee..75f8ac013 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js @@ -16,6 +16,6 @@ try { $ERROR('#1: __FACTORY = String.prototype.toLocaleUpperCase; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.1: var __instance = new __FACTORY; Object has no construct lead a TypeError. Actual: ' + (e)); + $ERROR('#1.1: var __instance = new __FACTORY; Object has no construct lead a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js index c1f69036c..0043fa412 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,14 +30,14 @@ if (String.prototype.toLocaleUpperCase.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.toLocaleUpperCase){ - if (p==="length") count++; +for (var p in String.prototype.toLocaleUpperCase) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.toLocaleUpperCase){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.toLocaleUpperCase){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js index 36c4c6c82..ec9102e6d 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.toLocaleUpperCase.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleUpperCase.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js index 37b044c1e..6cc53960b 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLowerCase.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length')); + $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.toLowerCase.length; -verifyNotWritable(String.prototype.toLowerCase, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.toLowerCase, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLowerCase.length !== __obj) { - $ERROR('#2: __obj = String.prototype.toLowerCase.length; String.prototype.toLowerCase.length = function(){return "shifted";}; String.prototype.toLowerCase.length === __obj. Actual: '+String.prototype.toLowerCase.length ); + $ERROR('#2: __obj = String.prototype.toLowerCase.length; String.prototype.toLowerCase.length = function(){return "shifted";}; String.prototype.toLowerCase.length === __obj. Actual: ' + String.prototype.toLowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js index f05e554ca..6f4f7e826 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toLowerCase.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLowerCase.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty("length") return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty("length")); + $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.toLowerCase.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLowerCase.length !== 0) { - $ERROR('#2: String.prototype.toLowerCase.length === 0. Actual: '+String.prototype.toLowerCase.length ); + $ERROR('#2: String.prototype.toLowerCase.length === 0. Actual: ' + String.prototype.toLowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js index 62a744bc9..467141034 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js @@ -14,7 +14,7 @@ __instance.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toLowerCase() !== "true") { - $ERROR('#1: __instance = new Object(true); __instance.toLowerCase = String.prototype.toLowerCase; __instance.toLowerCase() === "true". Actual: '+__instance.toLowerCase() ); + $ERROR('#1: __instance = new Object(true); __instance.toLowerCase = String.prototype.toLowerCase; __instance.toLowerCase() === "true". Actual: ' + __instance.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js index 8e5b25c86..6c36aa0ea 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js @@ -9,14 +9,18 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041B";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} __obj.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLowerCase() !=="ab") { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="ab". Actual: '+__obj.toLowerCase() ); +if (__obj.toLowerCase() !== "ab") { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="ab". Actual: ' + __obj.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js index 1e47da862..922da6901 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js @@ -9,17 +9,21 @@ description: > toLowerCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLowerCase(); - $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js index df60a2502..38427815e 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js @@ -9,17 +9,24 @@ description: > then call toLowerCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} __obj.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLowerCase(); - $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js index 2b3e12789..f3d3b396b 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js @@ -9,13 +9,20 @@ description: > function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} __obj.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLowerCase() !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="1". Actual: '+__obj.toLowerCase() ); +if (__obj.toLowerCase() !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="1". Actual: ' + __obj.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,7 +30,7 @@ if (__obj.toLowerCase() !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__obj.toLowerCase().length !== 1) { - $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase().length === 1. Actual: '+__obj.toLowerCase().length ); + $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase().length === 1. Actual: ' + __obj.toLowerCase().length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js index 5693649fa..0c3e21058 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js @@ -13,7 +13,7 @@ __reg.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__reg.toLowerCase() !== "/abc/") { - $ERROR('#1: var __reg = new RegExp("ABC"); __reg.toLowerCase = String.prototype.toLowerCase; __reg.toLowerCase() === "/abc/". Actual: '+__reg.toLowerCase() ); + $ERROR('#1: var __reg = new RegExp("ABC"); __reg.toLowerCase = String.prototype.toLowerCase; __reg.toLowerCase() === "/abc/". Actual: ' + __reg.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js index d5ed914c9..b54c9754c 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js @@ -14,7 +14,7 @@ __instance.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toLowerCase() !== "false") { - $ERROR('#1: __instance = new Boolean; __instance.toLowerCase = String.prototype.toLowerCase; __instance.toLowerCase() === "false". Actual: '+__instance.toLowerCase() ); + $ERROR('#1: __instance = new Boolean; __instance.toLowerCase = String.prototype.toLowerCase; __instance.toLowerCase() === "false". Actual: ' + __instance.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js index 35a215e6f..39b4a54ec 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js @@ -10,7 +10,7 @@ description: Checking by using eval ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (eval("\"BJ\"").toLowerCase() !== "bj") { - $ERROR('#1: eval("\\"BJ\\"").toLowerCase() === "bj". Actual: '+eval("\"BJ\"").toLowerCase() ); + $ERROR('#1: eval("\\"BJ\\"").toLowerCase() === "bj". Actual: ' + eval("\"BJ\"").toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js index 145ad95bd..7a9da2162 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js @@ -11,12 +11,12 @@ description: > var __lowerCase = "".toLowerCase(); -var __expected = ""; +var __expected = ""; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,15 +32,15 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__lowerCase[0]!==__expected[0]) { - $ERROR('#4: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase[0]==='+__expected[0]+'. Actual: '+__lowerCase[0]); +if (__lowerCase[0] !== __expected[0]) { + $ERROR('#4: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase[0]===' + __expected[0] + '. Actual: ' + __lowerCase[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js index 0082c8caf..7b1e62c44 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js @@ -10,8 +10,12 @@ description: Call toLowerCase() function for function call ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "GnulLuNa"}().toLowerCase() !== "gnulluna") { - $ERROR('#1: function(){return "GnulLuNa"}().toLowerCase() === "gnulluna". Actual: '+function(){return "GnulLuNa"}().toLowerCase() ); +if (function() { + return "GnulLuNa" + }().toLowerCase() !== "gnulluna") { + $ERROR('#1: function(){return "GnulLuNa"}().toLowerCase() === "gnulluna". Actual: ' + function() { + return "GnulLuNa" + }().toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js index 915b9bc6a..961534476 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js @@ -12,7 +12,7 @@ Number.prototype.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ((Number.NEGATIVE_INFINITY).toLowerCase() !== "-infinity") { - $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; (Number.NEGATIVE_INFINITY).toLowerCase() === "-infinity". Actual: '+(Number.NEGATIVE_INFINITY).toLowerCase() ); + $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; (Number.NEGATIVE_INFINITY).toLowerCase() === "-infinity". Actual: ' + (Number.NEGATIVE_INFINITY).toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js index efb0be3d4..ac4ac806a 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js @@ -11,8 +11,8 @@ Number.prototype.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (NaN.toLowerCase()!== "nan") { - $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; NaN.toLowerCase()=== "nan". Actual: '+NaN.toLowerCase()); +if (NaN.toLowerCase() !== "nan") { + $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; NaN.toLowerCase()=== "nan". Actual: ' + NaN.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js index 12d8e4982..bf1daa0e1 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js @@ -9,6 +9,6 @@ description: Call toLowerCase() function of Infinity Number.prototype.toLowerCase = String.prototype.toLowerCase; -if (Infinity.toLowerCase()!== "infinity") { - $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; Infinity.toLowerCase()=== "infinity". Actual: '+Infinity.toLowerCase()); +if (Infinity.toLowerCase() !== "infinity") { + $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; Infinity.toLowerCase()=== "infinity". Actual: ' + Infinity.toLowerCase()); } diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js index 713b5ced9..823e01128 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js @@ -8,18 +8,18 @@ description: Call toLowerCase() function of string object ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; var __lowerCase = new String(__obj).toLowerCase(); -var __expected ="undefined"; +var __expected = "undefined"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,16 +35,16 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__lowerCase[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase['+index+']==='+__expected[index]+'. Actual: '+__lowerCase[index]); +for (var index = 0; index < __expected.length; index++) { + if (__lowerCase[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase[' + index + ']===' + __expected[index] + '. Actual: ' + __lowerCase[index]); } } // diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js index 23824d463..472f9a243 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js @@ -10,7 +10,7 @@ description: Checking returned result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("Hello, WoRlD!".toLowerCase() !== "hello, world!") { - $ERROR('#1: "Hello, WoRlD!".toLowerCase() === "hello, world!". Actual: '+("Hello, WoRlD!".toLowerCase()) ); + $ERROR('#1: "Hello, WoRlD!".toLowerCase() === "hello, world!". Actual: ' + ("Hello, WoRlD!".toLowerCase())); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,14 +18,14 @@ if ("Hello, WoRlD!".toLowerCase() !== "hello, world!") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if ("Hello, WoRlD!".toLowerCase() !== String("hello, world!")) { - $ERROR('#2: "Hello, WoRlD!".toLowerCase() === String("hello, world!"). Actual: '+("Hello, WoRlD!".toLowerCase()) ); + $ERROR('#2: "Hello, WoRlD!".toLowerCase() === String("hello, world!"). Actual: ' + ("Hello, WoRlD!".toLowerCase())); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if ("Hello, WoRlD!".toLowerCase() ===new String("hello, world!")) { +if ("Hello, WoRlD!".toLowerCase() === new String("hello, world!")) { $ERROR('#3: "Hello, WoRlD!".toLowerCase() !== new String("hello, world!")'); } // diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js index 4504be730..056ad2ca1 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toLowerCase.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.toLowerCase.prototype !== undefined) { - $ERROR('#1: String.prototype.toLowerCase.prototype === undefined. Actual: '+String.prototype.toLowerCase.prototype ); + $ERROR('#1: String.prototype.toLowerCase.prototype === undefined. Actual: ' + String.prototype.toLowerCase.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js index 4d8c14efe..4e800e64b 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js @@ -14,6 +14,6 @@ try { $ERROR('#1: var __FACTORY = String.prototype.toLowerCase; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.1: var __FACTORY = String.prototype.toLowerCase; "__instance = new __FACTORY" throws a TypeError. Actual: ' + (e)); + $ERROR('#1.1: var __FACTORY = String.prototype.toLowerCase; "__instance = new __FACTORY" throws a TypeError. Actual: ' + (e)); } }; diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js index 779e3d2b0..0681d09cf 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toLowerCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,14 +30,14 @@ if (String.prototype.toLowerCase.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.toLowerCase){ - if (p==="length") count++; +for (var p in String.prototype.toLowerCase) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.toLowerCase){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.toLowerCase){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js index 2b680311f..4d3bc2aef 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toLowerCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.toLowerCase.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLowerCase.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.toLowerCase.length; String.prototype.toLowerCase.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.toLowerCase.length; String.prototype.toLowerCase.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js index b83c5b183..9b397fe4b 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js @@ -11,8 +11,8 @@ var __string__obj = new String(1); ////////////////////////////////////////////////////////////////////////////// //CHECK# -if (__string__obj.toString() !== ""+1) { - $ERROR('#1: __string__obj = new String(1); __string__obj.toString() === ""+1. Actual: __string__obj.toString() ==='+__string__obj.toString() ); +if (__string__obj.toString() !== "" + 1) { + $ERROR('#1: __string__obj = new String(1); __string__obj.toString() === ""+1. Actual: __string__obj.toString() ===' + __string__obj.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js index 568f1a93f..328e8c177 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js @@ -11,8 +11,8 @@ var __string__obj = new String(true); ////////////////////////////////////////////////////////////////////////////// //CHECK# -if (__string__obj.toString() !== ""+true) { - $ERROR('#1: __string__obj = new String(true); __string__obj.toString() === ""+true. Actual: __string__obj.toString() ==='+__string__obj.toString() ); +if (__string__obj.toString() !== "" + true) { + $ERROR('#1: __string__obj = new String(true); __string__obj.toString() === ""+true. Actual: __string__obj.toString() ===' + __string__obj.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js index 2720ba435..ddeb249a6 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js @@ -12,7 +12,7 @@ var __string__obj = new String("metal"); ////////////////////////////////////////////////////////////////////////////// //CHECK# if (__string__obj.toString() !== "metal") { - $ERROR('#1: __string__obj = new String("metal"); __string__obj.toString() === "metal". Actual: __string__obj.toString() ==='+__string__obj.toString() ); + $ERROR('#1: __string__obj = new String("metal"); __string__obj.toString() === "metal". Actual: __string__obj.toString() ===' + __string__obj.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js index 933030ef5..73a7b7529 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js @@ -7,12 +7,12 @@ es5id: 15.5.4.2_A1_T4 description: Create new String(function(){}()) and check it`s method toString() ---*/ -var __string__obj = new String(function(){}()); +var __string__obj = new String(function() {}()); ////////////////////////////////////////////////////////////////////////////// //CHECK# if (__string__obj.toString() !== "undefined") { - $ERROR('#1: __string__obj = new String(function(){}()); __string__obj.toString() === "undefined". Actual: __string__obj.toString() ==='+__string__obj.toString() ); + $ERROR('#1: __string__obj = new String(function(){}()); __string__obj.toString() === "undefined". Actual: __string__obj.toString() ===' + __string__obj.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js index 8f1721db5..ba121d025 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js @@ -15,7 +15,7 @@ var __toString = String.prototype.toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __toString !== "function") { - $ERROR('#1: __toString = String.prototype.toString; typeof __toString === "function". Actual: typeof __toString ==='+typeof __toString ); + $ERROR('#1: __toString = String.prototype.toString; typeof __toString === "function". Actual: typeof __toString ===' + typeof __toString); } // @@ -28,7 +28,7 @@ try { $ERROR('#2: "__toString = String.prototype.toString; var x = __toString();" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: "__toString = String.prototype.toString; var x = __toString();" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#2.1: "__toString = String.prototype.toString; var x = __toString();" lead to throwing exception. Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js index 56896801c..8862f4fe8 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js @@ -10,12 +10,14 @@ es5id: 15.5.4.2_A2_T2 description: Checking if creating the object String.prototype.toString fails ---*/ -var __obj={toString : String.prototype.toString}; +var __obj = { + toString: String.prototype.toString +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __obj["toString"] !== "function") { - $ERROR('#1: var __obj={toString : String.prototype.toString}; typeof __obj["toString"] === "function". Actual: typeof __obj["toString"] ==='+typeof __obj["toString"] ); + $ERROR('#1: var __obj={toString : String.prototype.toString}; typeof __obj["toString"] === "function". Actual: typeof __obj["toString"] ===' + typeof __obj["toString"]); } // @@ -28,7 +30,7 @@ try { $ERROR('#2: "var x = (__obj == 1)" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js index 51b235fe1..dfa848162 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js @@ -11,20 +11,20 @@ description: > //CHECK#1 var str = new String(); -if(!(str.valueOf() == str.toString())) +if (!(str.valueOf() == str.toString())) $ERROR('#1: str = new String(),str.valueOf() == str.toString()'); //CHECK#2 str = new String(true); -if(!(str.valueOf() == str.toString())) +if (!(str.valueOf() == str.toString())) $ERROR('#2: str = new String(true),str.valueOf() == str.toString()'); //CHECK#3 str = new String(false); -if(!(str.valueOf() == str.toString())) +if (!(str.valueOf() == str.toString())) $ERROR('#3: str = new String(false),str.valueOf() == str.toString()'); //CHECK#4 str = new String(Math.PI); -if(!(str.valueOf() == str.toString())) +if (!(str.valueOf() == str.toString())) $ERROR('#4: str = new String(Math.PI),str.valueOf() == str.toString()'); diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js index f4b51a90a..01356cb51 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js @@ -8,11 +8,11 @@ description: Checking String.prototype.toString.length property ---*/ //CHECK#1 -if (String.prototype.toString.hasOwnProperty('length')!==true){ - $ERROR('#1: String.prototype.toString.hasOwnProperty(\'length\')===true. Actual: '+String.prototype.toString.hasOwnProperty('length')); +if (String.prototype.toString.hasOwnProperty('length') !== true) { + $ERROR('#1: String.prototype.toString.hasOwnProperty(\'length\')===true. Actual: ' + String.prototype.toString.hasOwnProperty('length')); } -else{ -//CHECK#2 -if (String.prototype.toString.length!==0) - $ERROR('#2: String.prototype.toString.length===0. Actual: String.prototype.toString.length==='+String.prototype.toString.length); +else { + //CHECK#2 + if (String.prototype.toString.length !== 0) + $ERROR('#2: String.prototype.toString.length===0. Actual: String.prototype.toString.length===' + String.prototype.toString.length); } diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js index b88e37c58..b1b96a0d0 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toUpperCase.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length')); + $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.toUpperCase.length; -verifyNotWritable(String.prototype.toUpperCase, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.toUpperCase, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toUpperCase.length !== __obj) { - $ERROR('#2: __obj = String.prototype.toUpperCase.length; String.prototype.toUpperCase.length = function(){return "shifted";}; String.prototype.toUpperCase.length === __obj. Actual: '+String.prototype.toUpperCase.length ); + $ERROR('#2: __obj = String.prototype.toUpperCase.length; String.prototype.toUpperCase.length = function(){return "shifted";}; String.prototype.toUpperCase.length === __obj. Actual: ' + String.prototype.toUpperCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js index 3747a63f4..fb9baed90 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toUpperCase.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toUpperCase.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty("length") return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty("length")); + $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.toUpperCase.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toUpperCase.length !== 0) { - $ERROR('#2: String.prototype.toUpperCase.length === 0. Actual: '+String.prototype.toUpperCase.length ); + $ERROR('#2: String.prototype.toUpperCase.length === 0. Actual: ' + String.prototype.toUpperCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js index 951eafd2c..c5093c5a5 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js @@ -14,7 +14,7 @@ __instance.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toUpperCase() !== "TRUE") { - $ERROR('#1: __instance = new Object(true); __instance.toUpperCase = String.prototype.toUpperCase; __instance.toUpperCase() === "TRUE". Actual: '+__instance.toUpperCase() ); + $ERROR('#1: __instance = new Object(true); __instance.toUpperCase = String.prototype.toUpperCase; __instance.toUpperCase() === "TRUE". Actual: ' + __instance.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js index 0da16d896..505d785b8 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js @@ -9,13 +9,17 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041b";}} +var __obj = { + toString: function() { + return "\u0041b"; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toUpperCase() !=="AB") { - $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="AB". Actual: '+__obj.toUpperCase() ); +if (__obj.toUpperCase() !== "AB") { + $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="AB". Actual: ' + __obj.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js index 63a68975a..4eccc3afc 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js @@ -9,16 +9,20 @@ description: > toUpperCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toUpperCase(); - $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js index 7ec6f11d7..6695033cd 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js @@ -9,16 +9,23 @@ description: > then call toUpperCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toUpperCase(); - $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js index f3c9080f8..a4f0e26f3 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js @@ -9,13 +9,20 @@ description: > function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toUpperCase() !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="1". Actual: '+__obj.toUpperCase() ); +if (__obj.toUpperCase() !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="1". Actual: ' + __obj.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,7 +30,7 @@ if (__obj.toUpperCase() !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__obj.toUpperCase().length !== 1) { - $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase().length === 1. Actual: '+__obj.toUpperCase().length ); + $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase().length === 1. Actual: ' + __obj.toUpperCase().length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js index 38d64db46..0c13deac2 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js @@ -12,7 +12,7 @@ __reg.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__reg.toUpperCase() !== "/ABC/") { - $ERROR('#1: var __reg = new RegExp("abc"); __reg.toUpperCase = String.prototype.toUpperCase; __reg.toUpperCase() === "/ABC/". Actual: '+__reg.toUpperCase() ); + $ERROR('#1: var __reg = new RegExp("abc"); __reg.toUpperCase = String.prototype.toUpperCase; __reg.toUpperCase() === "/ABC/". Actual: ' + __reg.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js index e07861a9e..fda139b74 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js @@ -14,7 +14,7 @@ __instance.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toUpperCase() !== "FALSE") { - $ERROR('#1: __instance = new Boolean; __instance.toUpperCase = String.prototype.toUpperCase; __instance.toUpperCase() === "FALSE". Actual: '+__instance.toUpperCase() ); + $ERROR('#1: __instance = new Boolean; __instance.toUpperCase = String.prototype.toUpperCase; __instance.toUpperCase() === "FALSE". Actual: ' + __instance.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js index 127023d0d..c095aa910 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js @@ -10,7 +10,7 @@ description: Checking by using eval ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (eval("\"bj\"").toUpperCase() !== "BJ") { - $ERROR('#1: eval("\\"bj\\"").toUpperCase() === "BJ". Actual: '+eval("\"bj\"").toUpperCase() ); + $ERROR('#1: eval("\\"bj\\"").toUpperCase() === "BJ". Actual: ' + eval("\"bj\"").toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js index a0f71334a..752d08837 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js @@ -11,12 +11,12 @@ description: > var __lowerCase = "".toUpperCase(); -var __expected = ""; +var __expected = ""; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,15 +32,15 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__lowerCase[0]!==__expected[0]) { - $ERROR('#4: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase[0]==='+__expected[0]+'. Actual: '+__lowerCase[0]); +if (__lowerCase[0] !== __expected[0]) { + $ERROR('#4: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase[0]===' + __expected[0] + '. Actual: ' + __lowerCase[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js index 1e179135b..e9dbfcaf3 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js @@ -10,8 +10,12 @@ description: Call toUpperCase() function of function call ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "GnulLuNa"}().toUpperCase() !== "GNULLUNA") { - $ERROR('#1: function(){return "GnulLuNa"}().toUpperCase() === "GNULLUNA". Actual: '+function(){return "GnulLuNa"}().toUpperCase() ); +if (function() { + return "GnulLuNa" + }().toUpperCase() !== "GNULLUNA") { + $ERROR('#1: function(){return "GnulLuNa"}().toUpperCase() === "GNULLUNA". Actual: ' + function() { + return "GnulLuNa" + }().toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js index 85fc4f0e3..43fb1fc12 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js @@ -12,7 +12,7 @@ Number.prototype.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ((Number.NEGATIVE_INFINITY).toUpperCase() !== "-INFINITY") { - $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; (Number.NEGATIVE_INFINITY).toUpperCase() === "-INFINITY". Actual: '+(Number.NEGATIVE_INFINITY).toUpperCase() ); + $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; (Number.NEGATIVE_INFINITY).toUpperCase() === "-INFINITY". Actual: ' + (Number.NEGATIVE_INFINITY).toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js index d5ea87140..2c94d95cc 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js @@ -11,8 +11,8 @@ Number.prototype.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (NaN.toUpperCase()!== "NAN") { - $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; NaN.toUpperCase()=== "NAN". Actual: '+NaN.toUpperCase()); +if (NaN.toUpperCase() !== "NAN") { + $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; NaN.toUpperCase()=== "NAN". Actual: ' + NaN.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js index 289d7d1d7..d4297d85f 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js @@ -9,6 +9,6 @@ description: Call toUpperCase() function of Infinity; Number.prototype.toUpperCase = String.prototype.toUpperCase; -if (Infinity.toUpperCase()!== "INFINITY") { - $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; Infinity.toUpperCase()=== "INFINITY". Actual: '+Infinity.toUpperCase()); +if (Infinity.toUpperCase() !== "INFINITY") { + $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; Infinity.toUpperCase()=== "INFINITY". Actual: ' + Infinity.toUpperCase()); } diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js index 10a3f1b23..4a5327174 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js @@ -8,18 +8,18 @@ description: Call toUpperCase() function of string object ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; var __upperCase = new String(__obj).toUpperCase(); -var __expected ="UNDEFINED"; +var __expected = "UNDEFINED"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__upperCase.length !== __expected.length) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.length === __expected.length. Actual: '+__upperCase.length ); + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.length === __expected.length. Actual: ' + __upperCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__upperCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__upperCase.index !== __expected.index) { - $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.index === __expected.index. Actual: '+__upperCase.index ); + $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.index === __expected.index. Actual: ' + __upperCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,16 +35,16 @@ if (__upperCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__upperCase.input !== __expected.input) { - $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.input === __expected.input. Actual: '+__upperCase.input ); + $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.input === __expected.input. Actual: ' + __upperCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__upperCase[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase['+index+']==='+__expected[index]+'. Actual: '+__upperCase[index]); +for (var index = 0; index < __expected.length; index++) { + if (__upperCase[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase[' + index + ']===' + __expected[index] + '. Actual: ' + __upperCase[index]); } } // diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js index b6b76ea34..7ed0d7de9 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js @@ -10,7 +10,7 @@ description: Checking returned result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("Hello, WoRlD!".toUpperCase() !== "HELLO, WORLD!") { - $ERROR('#1: "Hello, WoRlD!".toUpperCase() === "HELLO, WORLD!". Actual: '+("Hello, WoRlD!".toUpperCase()) ); + $ERROR('#1: "Hello, WoRlD!".toUpperCase() === "HELLO, WORLD!". Actual: ' + ("Hello, WoRlD!".toUpperCase())); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,14 +18,14 @@ if ("Hello, WoRlD!".toUpperCase() !== "HELLO, WORLD!") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if ("Hello, WoRlD!".toUpperCase() !== String("HELLO, WORLD!")) { - $ERROR('#2: "Hello, WoRlD!".toUpperCase() === String("HELLO, WORLD!"). Actual: '+("Hello, WoRlD!".toUpperCase()) ); + $ERROR('#2: "Hello, WoRlD!".toUpperCase() === String("HELLO, WORLD!"). Actual: ' + ("Hello, WoRlD!".toUpperCase())); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if ("Hello, WoRlD!".toUpperCase() ===new String("HELLO, WORLD!")) { +if ("Hello, WoRlD!".toUpperCase() === new String("HELLO, WORLD!")) { $ERROR('#3: "Hello, WoRlD!".toUpperCase() !== new String("HELLO, WORLD!")'); } // diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js index e870a1a9b..7d1512f5a 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toUpperCase.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.toUpperCase.prototype !== undefined) { - $ERROR('#1: String.prototype.toUpperCase.prototype === undefined. Actual: '+String.prototype.toUpperCase.prototype ); + $ERROR('#1: String.prototype.toUpperCase.prototype === undefined. Actual: ' + String.prototype.toUpperCase.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js index bd2d26e8a..b11b32063 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js @@ -14,6 +14,6 @@ try { $ERROR('#1: var __FACTORY = String.prototype.toUpperCase; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.1: var __FACTORY = String.prototype.toUpperCase; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); + $ERROR('#1.1: var __FACTORY = String.prototype.toUpperCase; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js index d5deefd6d..b388e38a6 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toUpperCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,14 +30,14 @@ if (String.prototype.toUpperCase.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.toUpperCase){ - if (p==="length") count++; +for (var p in String.prototype.toUpperCase) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.toUpperCase){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.toUpperCase){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js index 9e33d4b01..5cf505e07 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toUpperCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.toUpperCase.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toUpperCase.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.toUpperCase.length; String.prototype.toUpperCase.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.toUpperCase.length; String.prototype.toUpperCase.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-0-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-0-1.js index 429a17b07..cd7a756f4 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-0-1.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-0-1.js @@ -6,6 +6,6 @@ es5id: 15.5.4.20-0-1 description: String.prototype.trim must exist as a function ---*/ - var f = String.prototype.trim; +var f = String.prototype.trim; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-1-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-1-1.js index bd0bcaa1f..d44536ab5 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-1-1.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-1-1.js @@ -8,5 +8,5 @@ description: String.prototype.trim throws TypeError when string is undefined assert.throws(TypeError, function() { - String.prototype.trim.call(undefined); + String.prototype.trim.call(undefined); }); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js b/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js index d91241da2..728d40f5a 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js @@ -8,5 +8,5 @@ description: String.prototype.trim throws TypeError when string is null assert.throws(TypeError, function() { - String.prototype.trim.call(null); + String.prototype.trim.call(null); }); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-1-8.js b/test/built-ins/String/prototype/trim/15.5.4.20-1-8.js index 3b93eb173..874f8110d 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-1-8.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-1-8.js @@ -8,7 +8,7 @@ description: > abc') ---*/ - var strObj = String(" abc"); +var strObj = String(" abc"); assert.sameValue(strObj.trim(), "abc", 'strObj.trim()'); assert.sameValue(strObj.toString(), " abc", 'strObj.toString()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-1-9.js b/test/built-ins/String/prototype/trim/15.5.4.20-1-9.js index cd09927dd..69ada3281 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-1-9.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-1-9.js @@ -8,6 +8,6 @@ description: > undefined ---*/ - var strObj = new String(undefined); +var strObj = new String(undefined); assert.sameValue(strObj.trim(), "undefined", 'strObj.trim()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-38.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-38.js index 163254129..925c82e1e 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-38.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-38.js @@ -8,10 +8,10 @@ description: > toString method ---*/ - var obj = { - toString: function () { - return "abc"; - } - }; +var obj = { + toString: function() { + return "abc"; + } +}; assert.sameValue(String.prototype.trim.call(obj), "abc", 'String.prototype.trim.call(obj)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-39.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-39.js index 2536716de..6d93265b0 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-39.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-39.js @@ -8,10 +8,10 @@ description: > valueOf method ---*/ - var obj = { - valueOf: function () { - return "abc"; - } - }; +var obj = { + valueOf: function() { + return "abc"; + } +}; assert.sameValue(String.prototype.trim.call(obj), "[object Object]", 'String.prototype.trim.call(obj)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-40.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-40.js index 4edb83c72..d3e91e5f1 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-40.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-40.js @@ -9,18 +9,18 @@ description: > returns a primitive value ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; - var obj = { - toString: function () { - toStringAccessed = true; - return {}; - }, - valueOf: function () { - valueOfAccessed = true; - return "abc"; - } - }; +var toStringAccessed = false; +var valueOfAccessed = false; +var obj = { + toString: function() { + toStringAccessed = true; + return {}; + }, + valueOf: function() { + valueOfAccessed = true; + return "abc"; + } +}; assert.sameValue(String.prototype.trim.call(obj), "abc", 'String.prototype.trim.call(obj)'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-41.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-41.js index a9233a47d..260eb88cc 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-41.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-41.js @@ -8,18 +8,18 @@ description: > toString and valueOf method. ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; - var obj = { - toString: function () { - toStringAccessed = true; - return "abc"; - }, - valueOf: function () { - valueOfAccessed = true; - return "cef"; - } - }; +var toStringAccessed = false; +var valueOfAccessed = false; +var obj = { + toString: function() { + toStringAccessed = true; + return "abc"; + }, + valueOf: function() { + valueOfAccessed = true; + return "cef"; + } +}; assert.sameValue(String.prototype.trim.call(obj), "abc", 'String.prototype.trim.call(obj)'); assert.sameValue(valueOfAccessed, false, 'valueOfAccessed'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-42.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-42.js index 393625ce0..2c7faa8ec 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-42.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-42.js @@ -9,20 +9,20 @@ description: > primitive value. ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; - var obj = { - toString: function () { - toStringAccessed = true; - return {}; - }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - }; +var toStringAccessed = false; +var valueOfAccessed = false; +var obj = { + toString: function() { + toStringAccessed = true; + return {}; + }, + valueOf: function() { + valueOfAccessed = true; + return {}; + } +}; assert.throws(TypeError, function() { - String.prototype.trim.call(obj); + String.prototype.trim.call(obj); }); assert(valueOfAccessed, 'valueOfAccessed !== true'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-43.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-43.js index 1c9446bdc..0bad8928f 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-43.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-43.js @@ -9,24 +9,24 @@ description: > toString method will be called first ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var proto = { - toString: function () { - toStringAccessed = true; - return "abc"; - } - }; +var proto = { + toString: function() { + toStringAccessed = true; + return "abc"; + } +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.valueOf = function () { - valueOfAccessed = true; - return "efg"; - }; +var child = new Con(); +child.valueOf = function() { + valueOfAccessed = true; + return "efg"; +}; assert.sameValue(String.prototype.trim.call(child), "abc", 'String.prototype.trim.call(child)'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-44.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-44.js index 3dbead788..9da700970 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-44.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-44.js @@ -8,6 +8,6 @@ description: > Asian characters (value is 'SD咕噜') ---*/ - var str = "SD咕噜"; +var str = "SD咕噜"; assert.sameValue(str.trim(), str, 'str.trim()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-45.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-45.js index c8c99d70a..82d31dc33 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-45.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-45.js @@ -8,7 +8,7 @@ description: > space, character, number, object and null characters ---*/ - var str = "abc" + " " + 123 + " " + {} + " " + "\u0000"; - var str1 = " " + str + " "; +var str = "abc" + " " + 123 + " " + {} + " " + "\u0000"; +var str1 = " " + str + " "; assert.sameValue(str1.trim(), str, 'str1.trim()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js index f68088fa3..a01462f13 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js @@ -8,6 +8,8 @@ description: > to a string ---*/ - var funObj = function () { return arguments; }; +var funObj = function() { + return arguments; +}; assert.sameValue(typeof(String.prototype.trim.call(funObj)), "string", 'typeof(String.prototype.trim.call(funObj))'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js index 7eb3a04b3..88e71dcb9 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js @@ -8,6 +8,6 @@ description: > a string ---*/ - var regObj = new RegExp(/test/); +var regObj = new RegExp(/test/); assert.sameValue(String.prototype.trim.call(regObj), "/test/", 'String.prototype.trim.call(regObj)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-50.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-50.js index 7dff7b940..a59a845ca 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-50.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-50.js @@ -8,6 +8,6 @@ description: > a string ---*/ - var errObj = new Error("test"); +var errObj = new Error("test"); assert.sameValue(String.prototype.trim.call(errObj), "Error: test", 'String.prototype.trim.call(errObj)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js index d47c31beb..525f8e8e8 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js @@ -8,6 +8,8 @@ description: > to a string ---*/ - var argObj = function () { return arguments; } (1, 2, true); +var argObj = function() { + return arguments; +}(1, 2, true); assert.sameValue(String.prototype.trim.call(argObj), "[object Arguments]", 'String.prototype.trim.call(argObj)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js index 0d7794575..b2fae943c 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js @@ -6,6 +6,6 @@ es5id: 15.5.4.20-3-1 description: String.prototype.trim - 'S' is a string with all LineTerminator ---*/ - var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; +var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; assert.sameValue(lineTerminatorsStr.trim(), "", 'lineTerminatorsStr.trim()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-3-5.js b/test/built-ins/String/prototype/trim/15.5.4.20-3-5.js index c488c91ee..1c2c946b6 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-3-5.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-3-5.js @@ -10,6 +10,6 @@ description: > var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; -var str = "abc" + whiteSpacesStr + lineTerminatorsStr ; +var str = "abc" + whiteSpacesStr + lineTerminatorsStr; assert.sameValue(str.trim(), "abc", 'str.trim()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-4-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-4-1.js index 9abc0fdfa..33666c924 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-4-1.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-4-1.js @@ -11,6 +11,6 @@ description: > var s = "\u0009a b\ c \u0009" - + assert.sameValue(s.trim(), "a bc", 's.trim()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-4-59.js b/test/built-ins/String/prototype/trim/15.5.4.20-4-59.js index 13a98eb6c..209698561 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-4-59.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-4-59.js @@ -8,7 +8,7 @@ description: > (\u2029abc as a multiline string) ---*/ - var s = "\u2029\ +var s = "\u2029\ abc"; assert.sameValue(s.trim(), "abc", 's.trim()'); diff --git a/test/built-ins/String/prototype/trimEnd/this-value-number.js b/test/built-ins/String/prototype/trimEnd/this-value-number.js index 2affe2261..1f331ee47 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-number.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-number.js @@ -45,4 +45,3 @@ assert.sameValue( '-1', 'String.prototype.trimEnd.call(-1)' ); - diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js b/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js index 3a85af554..77170a1c7 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js @@ -53,5 +53,7 @@ var thisVal = { // nor valueOf defined, then a TypeError exception should be thrown. assert.throws( TypeError, - function() { String.prototype.trimEnd.call(thisVal); }, + function() { + String.prototype.trimEnd.call(thisVal); + }, ); diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js index f7bdb4e5e..127dc03f9 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js @@ -33,15 +33,21 @@ var valueOfAccessed = 0; var thisVal = { get [Symbol.toPrimitive]() { toPrimitiveAccessed += 1; - return function() { return '42 '; }; + return function() { + return '42 '; + }; }, get toString() { toStringAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, get valueOf() { valueOfAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, }; diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js index 50e78cb60..3c65454e0 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js @@ -48,16 +48,20 @@ var toStringAccessed = 0; var valueOfAccessed = 0; var thisVal = { get [Symbol.toPrimitive]() { - toPrimitiveAccessed +=1; + toPrimitiveAccessed += 1; return undefined; }, get toString() { toStringAccessed += 1; - return function() { return '42 '; }; + return function() { + return '42 '; + }; }, get valueOf() { valueOfAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, }; diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js index fe327468e..b2a16798c 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js @@ -57,7 +57,9 @@ var thisVal = { }, get valueOf() { valueOfAccessed += 1; - return function() { return '42 '; }; + return function() { + return '42 '; + }; }, }; diff --git a/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js b/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js index e53131a6a..d043708aa 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js @@ -19,6 +19,8 @@ var symbol = Symbol(); assert.throws( TypeError, - function() { trimEnd.call(symbol); }, + function() { + trimEnd.call(symbol); + }, 'String.prototype.trimEnd.call(Symbol())' ); diff --git a/test/built-ins/String/prototype/trimStart/this-value-number.js b/test/built-ins/String/prototype/trimStart/this-value-number.js index 2a4a518ea..c187cbad9 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-number.js +++ b/test/built-ins/String/prototype/trimStart/this-value-number.js @@ -45,4 +45,3 @@ assert.sameValue( '-1', 'String.prototype.trimStart.call(-1)' ); - diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js b/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js index 15de7e415..e74d0569b 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js @@ -53,5 +53,7 @@ var thisVal = { // nor valueOf defined, then a TypeError exception should be thrown. assert.throws( TypeError, - function() { String.prototype.trimStart.call(thisVal); }, + function() { + String.prototype.trimStart.call(thisVal); + }, ); diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js index b6db92121..f16a325f8 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js @@ -33,15 +33,21 @@ var valueOfAccessed = 0; var thisVal = { get [Symbol.toPrimitive]() { toPrimitiveAccessed += 1; - return function() { return ' 42'; }; + return function() { + return ' 42'; + }; }, get toString() { toStringAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, get valueOf() { valueOfAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, }; diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js index af3d34873..f4fb1f201 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js @@ -48,16 +48,20 @@ var toStringAccessed = 0; var valueOfAccessed = 0; var thisVal = { get [Symbol.toPrimitive]() { - toPrimitiveAccessed +=1; + toPrimitiveAccessed += 1; return undefined; }, get toString() { toStringAccessed += 1; - return function() { return ' 42'; }; + return function() { + return ' 42'; + }; }, get valueOf() { valueOfAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, }; diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js index 6ebbda736..1f4e67cea 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js @@ -57,7 +57,9 @@ var thisVal = { }, get valueOf() { valueOfAccessed += 1; - return function() { return ' 42'; }; + return function() { + return ' 42'; + }; }, }; diff --git a/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js b/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js index e66f2e85d..f49280759 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js +++ b/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js @@ -19,6 +19,8 @@ var symbol = Symbol(); assert.throws( TypeError, - function() { trimStart.call(symbol); }, + function() { + trimStart.call(symbol); + }, 'String.prototype.trimStart.call(Symbol())' ); diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js index a3080da71..6e42dcfbf 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js @@ -11,8 +11,8 @@ var __string__obj = new String(1); ////////////////////////////////////////////////////////////////////////////// //CHECK# -if (__string__obj.valueOf() !== ""+1) { - $ERROR('#1: __string__obj = new String(1); __string__obj.valueOf() === ""+1. Actual: __string__obj.valueOf() ==='+__string__obj.valueOf() ); +if (__string__obj.valueOf() !== "" + 1) { + $ERROR('#1: __string__obj = new String(1); __string__obj.valueOf() === ""+1. Actual: __string__obj.valueOf() ===' + __string__obj.valueOf()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js index 553ccf768..88a5de7e4 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js @@ -11,8 +11,8 @@ var __string__obj = new String(true); ////////////////////////////////////////////////////////////////////////////// //CHECK# -if (__string__obj.valueOf() !== ""+true) { - $ERROR('#1: __string__obj = new String(true); __string__obj.valueOf() === ""+true. Actual: __string__obj.valueOf() ==='+__string__obj.valueOf() ); +if (__string__obj.valueOf() !== "" + true) { + $ERROR('#1: __string__obj = new String(true); __string__obj.valueOf() === ""+true. Actual: __string__obj.valueOf() ===' + __string__obj.valueOf()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js index cbeb4dd01..20f48c09b 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js @@ -12,7 +12,7 @@ var __string__obj = new String("metal"); ////////////////////////////////////////////////////////////////////////////// //CHECK# if (__string__obj.valueOf() !== "metal") { - $ERROR('#1: __string__obj = new String("metal"); __string__obj.valueOf() === "metal". Actual: __string__obj.valueOf() ==='+__string__obj.valueOf() ); + $ERROR('#1: __string__obj = new String("metal"); __string__obj.valueOf() === "metal". Actual: __string__obj.valueOf() ===' + __string__obj.valueOf()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js index e7beb039a..495b720c5 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js @@ -9,12 +9,12 @@ description: > valueOf() ---*/ -var __string__obj = new String(function(){}()); +var __string__obj = new String(function() {}()); ////////////////////////////////////////////////////////////////////////////// //CHECK# if (__string__obj.valueOf() !== "undefined") { - $ERROR('#1: __string__obj = new String(function(){}()); __string__obj.valueOf() === "undefined". Actual: __string__obj.valueOf() ==='+__string__obj.valueOf() ); + $ERROR('#1: __string__obj = new String(function(){}()); __string__obj.valueOf() === "undefined". Actual: __string__obj.valueOf() ===' + __string__obj.valueOf()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js index 4e4613a5e..4c8cf8269 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js @@ -14,7 +14,7 @@ var __valueOf = String.prototype.valueOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __valueOf !== "function") { - $ERROR('#1: __valueOf = String.prototype.valueOf; typeof __valueOf === "function". Actual: typeof __valueOf ==='+typeof __valueOf ); + $ERROR('#1: __valueOf = String.prototype.valueOf; typeof __valueOf === "function". Actual: typeof __valueOf ===' + typeof __valueOf); } // @@ -27,7 +27,7 @@ try { $ERROR('#2: "__valueOf = String.prototype.valueOf; var x = __valueOf()" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js index efaa7ef5d..ec48d9f96 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js @@ -9,12 +9,14 @@ es5id: 15.5.4.3_A2_T2 description: Checking if creating the object String.prototype.valueOf fails ---*/ -var __obj={valueOf : String.prototype.valueOf}; +var __obj = { + valueOf: String.prototype.valueOf +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __obj["valueOf"] !== "function") { - $ERROR('#1: var __obj={valueOf : String.prototype.valueOf}; typeof __obj["valueOf"] === "function". Actual: typeof __obj["valueOf"] ==='+typeof __obj["valueOf"] ); + $ERROR('#1: var __obj={valueOf : String.prototype.valueOf}; typeof __obj["valueOf"] === "function". Actual: typeof __obj["valueOf"] ===' + typeof __obj["valueOf"]); } // @@ -27,7 +29,7 @@ try { $ERROR('#2: "var __obj={valueOf : String.prototype.valueOf}; var x = (__obj == 1)" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // -- cgit v1.2.1