diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2018-02-15 15:39:13 -0500 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-15 15:39:13 -0500 |
commit | 19ca734beaea75fc61e296f78450354ff0dff7e9 (patch) | |
tree | 151310b950d46e9843df6f98d21fcc89f8ceca9b /test/built-ins/String/S15.5.2.1_A1_T12.js | |
parent | af37c92af7691eaf4769eb1f5f44f92a4a883426 (diff) | |
download | qtdeclarative-testsuites-19ca734beaea75fc61e296f78450354ff0dff7e9.tar.gz |
built-ins/String/*: make all indentation consistent (depth & character) (#1430)
Diffstat (limited to 'test/built-ins/String/S15.5.2.1_A1_T12.js')
-rw-r--r-- | test/built-ins/String/S15.5.2.1_A1_T12.js | 14 |
1 files changed, 10 insertions, 4 deletions
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); } } // |