diff options
author | André Bargull <andre.bargull@gmail.com> | 2018-02-09 09:09:47 -0800 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-09 12:09:47 -0500 |
commit | f95b56ab28c5f18150f30fbfa889a4f6ba0e50a1 (patch) | |
tree | d403f704c1b6a1842f12df380651919beaaf5fef /test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js | |
parent | a01de4a722d088055a7d84d8c691ddd7109edb34 (diff) | |
download | qtdeclarative-testsuites-f95b56ab28c5f18150f30fbfa889a4f6ba0e50a1.tar.gz |
Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
Diffstat (limited to 'test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js')
-rw-r--r-- | test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js index e577c80f0..e2318bff2 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js @@ -8,62 +8,62 @@ description: x is 10^21 ---*/ //CHECK#1 -if ((new Number(1e21)).toFixed() !== String(1e21)) { +if((new Number(1e21)).toFixed() !== String(1e21)){ $ERROR('#1: (new Number(1e21)).prototype.toFixed() === String(1e21)'); } //CHECK#2 -if ((new Number(1e21)).toFixed(0) !== String(1e21)) { +if((new Number(1e21)).toFixed(0) !== String(1e21)){ $ERROR('#2: (new Number(1e21)).prototype.toFixed(0) === String(1e21)'); } //CHECK#3 -if ((new Number(1e21)).toFixed(1) !== String(1e21)) { +if((new Number(1e21)).toFixed(1) !== String(1e21)){ $ERROR('#3: (new Number(1e21)).prototype.toFixed(1) === String(1e21)'); } //CHECK#4 -if ((new Number(1e21)).toFixed(1.1) !== String(1e21)) { +if((new Number(1e21)).toFixed(1.1) !== String(1e21)){ $ERROR('#4: (new Number(1e21)).toFixed(1.1) === String(1e21)'); } //CHECK#5 -if ((new Number(1e21)).toFixed(0.9) !== String(1e21)) { +if((new Number(1e21)).toFixed(0.9) !== String(1e21)){ $ERROR('#5: (new Number(1e21)).toFixed(0.9) === String(1e21)'); } //CHECK#6 -if ((new Number(1e21)).toFixed("1") !== String(1e21)) { +if((new Number(1e21)).toFixed("1") !== String(1e21)){ $ERROR('#6: (new Number(1e21)).toFixed("1") === String(1e21)'); } //CHECK#7 -if ((new Number(1e21)).toFixed("1.1") !== String(1e21)) { +if((new Number(1e21)).toFixed("1.1") !== String(1e21)){ $ERROR('#7: (new Number(1e21)).toFixed("1.1") === String(1e21)'); } //CHECK#8 -if ((new Number(1e21)).toFixed("0.9") !== String(1e21)) { +if((new Number(1e21)).toFixed("0.9") !== String(1e21)){ $ERROR('#8: (new Number(1e21)).toFixed("0.9") === String(1e21)'); } //CHECK#9 -if ((new Number(1e21)).toFixed(Number.NaN) !== String(1e21)) { +if((new Number(1e21)).toFixed(Number.NaN) !== String(1e21)){ $ERROR('#9: (new Number(1e21)).toFixed(Number.NaN) === String(1e21)'); } //CHECK#10 -if ((new Number(1e21)).toFixed("some string") !== String(1e21)) { +if((new Number(1e21)).toFixed("some string") !== String(1e21)){ $ERROR('#9: (new Number(1e21)).toFixed("some string") === String(1e21)'); } //CHECK#10 -try { +try{ s = (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY); $ERROR('#10: (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not return NaN'); } -catch (e) { - if (!(e instanceof RangeError)) { - $ERROR('#10: (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not ' + e); +catch(e){ + if(!(e instanceof RangeError)){ + $ERROR('#10: (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not '+e); } } |