From 8add0d64b226665972d8021a7a271b82c2c4ffa2 Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Thu, 15 Feb 2018 17:34:54 -0500 Subject: [PATCH] Fix whitespace --- test/built-ins/Map/iterator-items-are-not-object.js | 3 ++- test/built-ins/Math/atan2/S15.8.2.5_A16.js | 3 ++- test/built-ins/Math/atan2/S15.8.2.5_A8.js | 3 ++- test/built-ins/Math/pow/applying-the-exp-operator_A1.js | 3 +-- test/built-ins/Math/pow/applying-the-exp-operator_A10.js | 6 ++---- test/built-ins/Math/pow/applying-the-exp-operator_A11.js | 6 ++---- test/built-ins/Math/pow/applying-the-exp-operator_A12.js | 3 +-- test/built-ins/Math/pow/applying-the-exp-operator_A13.js | 6 ++---- test/built-ins/Math/pow/applying-the-exp-operator_A14.js | 6 ++---- test/built-ins/Math/pow/applying-the-exp-operator_A15.js | 3 +-- test/built-ins/Math/pow/applying-the-exp-operator_A16.js | 3 +-- test/built-ins/Math/pow/applying-the-exp-operator_A17.js | 3 +-- test/built-ins/Math/pow/applying-the-exp-operator_A18.js | 6 ++---- test/built-ins/Math/pow/applying-the-exp-operator_A19.js | 3 +-- test/built-ins/Math/pow/applying-the-exp-operator_A2.js | 6 ++---- test/built-ins/Math/pow/applying-the-exp-operator_A20.js | 3 +-- test/built-ins/Math/pow/applying-the-exp-operator_A21.js | 6 ++---- test/built-ins/Math/pow/applying-the-exp-operator_A22.js | 6 ++---- test/built-ins/Math/pow/applying-the-exp-operator_A3.js | 6 ++---- test/built-ins/Math/pow/applying-the-exp-operator_A4.js | 3 +-- test/built-ins/Math/pow/applying-the-exp-operator_A5.js | 6 ++---- test/built-ins/Math/pow/applying-the-exp-operator_A6.js | 3 +-- test/built-ins/Math/pow/applying-the-exp-operator_A7.js | 3 +-- test/built-ins/Math/pow/applying-the-exp-operator_A8.js | 3 +-- test/built-ins/Math/pow/applying-the-exp-operator_A9.js | 3 +-- 25 files changed, 38 insertions(+), 67 deletions(-) diff --git a/test/built-ins/Map/iterator-items-are-not-object.js b/test/built-ins/Map/iterator-items-are-not-object.js index aceebcef7c..958efd1d39 100644 --- a/test/built-ins/Map/iterator-items-are-not-object.js +++ b/test/built-ins/Map/iterator-items-are-not-object.js @@ -45,6 +45,7 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { new Map([ - ['a', 1], 2 + ['a', 1], + 2 ]); }); diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A16.js b/test/built-ins/Math/atan2/S15.8.2.5_A16.js index 5c0ea9823f..19f2509a17 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A16.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A16.js @@ -20,7 +20,8 @@ var ynum = 3; for (var i = 0; i < ynum; i++) { assert.sameValue( - Math.atan2(y[i], x), -0, + Math.atan2(y[i], x), + -0, "(" + y[i] + ", Infinity)" ); } diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A8.js b/test/built-ins/Math/atan2/S15.8.2.5_A8.js index de7ff4e1e7..9ea6757a52 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A8.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A8.js @@ -18,7 +18,8 @@ var xnum = 3; for (var i = 0; i < xnum; i++) { assert.sameValue( - Math.atan2(y, x[i]), -0, + Math.atan2(y, x[i]), + -0, "(-0, " + x[i] + ")" ); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A1.js b/test/built-ins/Math/pow/applying-the-exp-operator_A1.js index 838ba78f3a..08a4911c1b 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A1.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A1.js @@ -20,8 +20,7 @@ base[7] = +Infinity; base[8] = NaN; var basenum = 9; -for (var i = 0; i < basenum; i++) -{ +for (var i = 0; i < basenum; i++) { assert.sameValue( Math.pow(base[i], exponent), NaN, diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A10.js b/test/built-ins/Math/pow/applying-the-exp-operator_A10.js index fc788b35f8..5aff303831 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A10.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A10.js @@ -17,10 +17,8 @@ base[4] = -0.5; base[5] = -0.999999999999999; var basenum = 6; -for (var i = 0; i < basenum; i++) -{ - if (Math.pow(base[i], exponent) !== +Infinity) - { +for (var i = 0; i < basenum; i++) { + if (Math.pow(base[i], exponent) !== +Infinity) { $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity"); } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A11.js b/test/built-ins/Math/pow/applying-the-exp-operator_A11.js index f44e1d30cd..04371a5457 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A11.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A11.js @@ -15,10 +15,8 @@ exponent[1] = 1; exponent[0] = 0.000000000000001; var exponentnum = 4; -for (var i = 0; i < exponentnum; i++) -{ - if (Math.pow(base, exponent[i]) !== +Infinity) - { +for (var i = 0; i < exponentnum; i++) { + if (Math.pow(base, exponent[i]) !== +Infinity) { $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A12.js b/test/built-ins/Math/pow/applying-the-exp-operator_A12.js index e9dc94944f..4e1a807366 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A12.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A12.js @@ -15,7 +15,6 @@ exponent[2] = -1; exponent[3] = -0.000000000000001; var exponentnum = 4; -for (var i = 0; i < exponentnum; i++) -{ +for (var i = 0; i < exponentnum; i++) { assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A13.js b/test/built-ins/Math/pow/applying-the-exp-operator_A13.js index daac829f45..e05737a7d1 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A13.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A13.js @@ -14,10 +14,8 @@ exponent[1] = 111; exponent[2] = 111111; var exponentnum = 3; -for (var i = 0; i < exponentnum; i++) -{ - if (Math.pow(base, exponent[i]) !== -Infinity) - { +for (var i = 0; i < exponentnum; i++) { + if (Math.pow(base, exponent[i]) !== -Infinity) { $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity"); } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A14.js b/test/built-ins/Math/pow/applying-the-exp-operator_A14.js index e5ab5e270d..fcfc594f8b 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A14.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A14.js @@ -16,10 +16,8 @@ exponent[3] = 1.7976931348623157E308; //largest finite number exponent[4] = +Infinity; var exponentnum = 5; -for (var i = 0; i < exponentnum; i++) -{ - if (Math.pow(base, exponent[i]) !== +Infinity) - { +for (var i = 0; i < exponentnum; i++) { + if (Math.pow(base, exponent[i]) !== +Infinity) { $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A15.js b/test/built-ins/Math/pow/applying-the-exp-operator_A15.js index caf4f4f1a3..978fd912c3 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A15.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A15.js @@ -14,7 +14,6 @@ exponent[1] = -111; exponent[0] = -111111; var exponentnum = 3; -for (var i = 0; i < exponentnum; i++) -{ +for (var i = 0; i < exponentnum; i++) { assert.sameValue(Math.pow(base, exponent[i]), -0, exponent[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A16.js b/test/built-ins/Math/pow/applying-the-exp-operator_A16.js index f4ef700400..893688e489 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A16.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A16.js @@ -16,7 +16,6 @@ exponent[1] = -1.7976931348623157E308; //largest (by module) finite number exponent[0] = -Infinity; var exponentnum = 5; -for (var i = 0; i < exponentnum; i++) -{ +for (var i = 0; i < exponentnum; i++) { assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A17.js b/test/built-ins/Math/pow/applying-the-exp-operator_A17.js index 388dcaf607..939a0376de 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A17.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A17.js @@ -15,7 +15,6 @@ exponent[1] = 1; exponent[0] = 0.000000000000001; var exponentnum = 4; -for (var i = 0; i < exponentnum; i++) -{ +for (var i = 0; i < exponentnum; i++) { assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A18.js b/test/built-ins/Math/pow/applying-the-exp-operator_A18.js index 565353c2c3..3fac38c844 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A18.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A18.js @@ -15,10 +15,8 @@ exponent[2] = -1; exponent[3] = -0.000000000000001; var exponentnum = 4; -for (var i = 0; i < exponentnum; i++) -{ - if (Math.pow(base, exponent[i]) !== +Infinity) - { +for (var i = 0; i < exponentnum; i++) { + if (Math.pow(base, exponent[i]) !== +Infinity) { $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A19.js b/test/built-ins/Math/pow/applying-the-exp-operator_A19.js index fae8fa4bb7..30851c4071 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A19.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A19.js @@ -14,7 +14,6 @@ exponent[1] = 111; exponent[2] = 111111; var exponentnum = 3; -for (var i = 0; i < exponentnum; i++) -{ +for (var i = 0; i < exponentnum; i++) { assert.sameValue(Math.pow(base, exponent[i]), -0, exponent[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A2.js b/test/built-ins/Math/pow/applying-the-exp-operator_A2.js index 41d840c29c..72e4489c55 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A2.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A2.js @@ -20,10 +20,8 @@ base[7] = +Infinity; base[8] = NaN; var basenum = 9; -for (var i = 0; i < basenum; i++) -{ - if (Math.pow(base[i], exponent) !== 1) - { +for (var i = 0; i < basenum; i++) { + if (Math.pow(base[i], exponent) !== 1) { $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== 1"); } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A20.js b/test/built-ins/Math/pow/applying-the-exp-operator_A20.js index b81837f074..930d83bfae 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A20.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A20.js @@ -16,7 +16,6 @@ exponent[3] = 1.7976931348623157E308; //largest finite number exponent[4] = +Infinity; var exponentnum = 5; -for (var i = 0; i < exponentnum; i++) -{ +for (var i = 0; i < exponentnum; i++) { assert.sameValue(Math.pow(base, exponent[i]), 0, exponent[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A21.js b/test/built-ins/Math/pow/applying-the-exp-operator_A21.js index 5a2cf3b0e8..702143cd9f 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A21.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A21.js @@ -14,10 +14,8 @@ exponent[1] = -111; exponent[0] = -111111; var exponentnum = 3; -for (var i = 0; i < exponentnum; i++) -{ - if (Math.pow(base, exponent[i]) !== -Infinity) - { +for (var i = 0; i < exponentnum; i++) { + if (Math.pow(base, exponent[i]) !== -Infinity) { $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity"); } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A22.js b/test/built-ins/Math/pow/applying-the-exp-operator_A22.js index 8075195490..0fb7ac98b7 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A22.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A22.js @@ -16,10 +16,8 @@ exponent[1] = -1.7976931348623157E308; //largest (by module) finite number exponent[0] = -Infinity; var exponentnum = 5; -for (var i = 0; i < exponentnum; i++) -{ - if (Math.pow(base, exponent[i]) !== +Infinity) - { +for (var i = 0; i < exponentnum; i++) { + if (Math.pow(base, exponent[i]) !== +Infinity) { $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A3.js b/test/built-ins/Math/pow/applying-the-exp-operator_A3.js index 7fa5ecc466..65c6d86bb7 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A3.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A3.js @@ -20,10 +20,8 @@ base[7] = +Infinity; base[8] = NaN; var basenum = 9; -for (var i = 0; i < basenum; i++) -{ - if (Math.pow(base[i], exponent) !== 1) - { +for (var i = 0; i < basenum; i++) { + if (Math.pow(base[i], exponent) !== 1) { $ERROR("#1: Math.pow(" + base[i] + ", -0) !== 1"); } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A4.js b/test/built-ins/Math/pow/applying-the-exp-operator_A4.js index 7288b105b8..b28586e0b7 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A4.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A4.js @@ -18,8 +18,7 @@ exponent[5] = +Infinity; exponent[6] = NaN; var exponentnum = 7; -for (var i = 0; i < exponentnum; i++) -{ +for (var i = 0; i < exponentnum; i++) { assert.sameValue( Math.pow(base, exponent[i]), NaN, diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A5.js b/test/built-ins/Math/pow/applying-the-exp-operator_A5.js index 1d8fa231af..52c56b49c5 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A5.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A5.js @@ -17,10 +17,8 @@ base[4] = 1.7976931348623157E308; //largest finite number base[5] = +Infinity; var basenum = 6; -for (var i = 0; i < basenum; i++) -{ - if (Math.pow(base[i], exponent) !== +Infinity) - { +for (var i = 0; i < basenum; i++) { + if (Math.pow(base[i], exponent) !== +Infinity) { $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity"); } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A6.js b/test/built-ins/Math/pow/applying-the-exp-operator_A6.js index a4bad1832b..c511ed89a2 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A6.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A6.js @@ -17,7 +17,6 @@ base[4] = 1.7976931348623157E308; //largest finite number base[5] = +Infinity; var basenum = 6; -for (var i = 0; i < basenum; i++) -{ +for (var i = 0; i < basenum; i++) { assert.sameValue(Math.pow(base[i], exponent), 0, base[i]); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A7.js b/test/built-ins/Math/pow/applying-the-exp-operator_A7.js index aa736c972b..459e8aa0de 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A7.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A7.js @@ -13,8 +13,7 @@ base[0] = -1; base[1] = 1 var basenum = 2; -for (var i = 0; i < basenum; i++) -{ +for (var i = 0; i < basenum; i++) { assert.sameValue( Math.pow(base[i], exponent), NaN, diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A8.js b/test/built-ins/Math/pow/applying-the-exp-operator_A8.js index e87cd290c2..61b2d89600 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A8.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A8.js @@ -13,8 +13,7 @@ base[0] = -1; base[1] = 1 var basenum = 2; -for (var i = 0; i < basenum; i++) -{ +for (var i = 0; i < basenum; i++) { assert.sameValue( Math.pow(base[i], exponent), NaN, diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A9.js b/test/built-ins/Math/pow/applying-the-exp-operator_A9.js index 8801a29416..70ee86431a 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A9.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A9.js @@ -17,7 +17,6 @@ base[4] = -0.5; base[5] = -0.999999999999999; var basenum = 6; -for (var i = 0; i < basenum; i++) -{ +for (var i = 0; i < basenum; i++) { assert.sameValue(Math.pow(base[i], exponent), 0, exponent); }