summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2018-02-15 15:41:09 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-15 15:41:09 -0500
commitbc70e0339f2221787f11396cfc22c6e333148914 (patch)
treeb9bc9ffdb85a6a81380ed2c48396bc99abecb640
parent621d34d5eaf76fc2737307fc8e0a35090959eff5 (diff)
downloadqtdeclarative-testsuites-bc70e0339f2221787f11396cfc22c6e333148914.tar.gz
built-ins/ThrowTypeError/*: make all indentation consistent (depth & character) (#1427)
-rw-r--r--test/built-ins/ThrowTypeError/distinct-cross-realm.js5
-rw-r--r--test/built-ins/ThrowTypeError/extensible.js5
-rw-r--r--test/built-ins/ThrowTypeError/forbidden-arguments.js5
-rw-r--r--test/built-ins/ThrowTypeError/forbidden-caller.js5
-rw-r--r--test/built-ins/ThrowTypeError/frozen.js5
-rw-r--r--test/built-ins/ThrowTypeError/is-function.js5
-rw-r--r--test/built-ins/ThrowTypeError/length.js5
-rw-r--r--test/built-ins/ThrowTypeError/name.js5
-rw-r--r--test/built-ins/ThrowTypeError/prototype.js5
-rw-r--r--test/built-ins/ThrowTypeError/throws-type-error.js5
-rw-r--r--test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js5
-rw-r--r--test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js5
-rw-r--r--test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js5
13 files changed, 52 insertions, 13 deletions
diff --git a/test/built-ins/ThrowTypeError/distinct-cross-realm.js b/test/built-ins/ThrowTypeError/distinct-cross-realm.js
index 3fb412296..b25660179 100644
--- a/test/built-ins/ThrowTypeError/distinct-cross-realm.js
+++ b/test/built-ins/ThrowTypeError/distinct-cross-realm.js
@@ -13,7 +13,10 @@ features: [cross-realm]
---*/
var other = $262.createRealm().global;
-var localArgs = function(){ "use strict"; return arguments; }();
+var localArgs = function() {
+ "use strict";
+ return arguments;
+}();
var otherArgs = (new other.Function('return arguments;'))();
var localThrowTypeError = Object.getOwnPropertyDescriptor(localArgs, "callee").get;
var otherThrowTypeError = Object.getOwnPropertyDescriptor(otherArgs, "callee").get;
diff --git a/test/built-ins/ThrowTypeError/extensible.js b/test/built-ins/ThrowTypeError/extensible.js
index c6c93ae28..ac42dadf9 100644
--- a/test/built-ins/ThrowTypeError/extensible.js
+++ b/test/built-ins/ThrowTypeError/extensible.js
@@ -12,6 +12,9 @@ info: |
function is false.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(Object.isExtensible(ThrowTypeError), false);
diff --git a/test/built-ins/ThrowTypeError/forbidden-arguments.js b/test/built-ins/ThrowTypeError/forbidden-arguments.js
index d4d8cbda9..7532de505 100644
--- a/test/built-ins/ThrowTypeError/forbidden-arguments.js
+++ b/test/built-ins/ThrowTypeError/forbidden-arguments.js
@@ -25,6 +25,9 @@ info: |
properties.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "arguments"), false);
diff --git a/test/built-ins/ThrowTypeError/forbidden-caller.js b/test/built-ins/ThrowTypeError/forbidden-caller.js
index e2d7bece1..6aa2fb62c 100644
--- a/test/built-ins/ThrowTypeError/forbidden-caller.js
+++ b/test/built-ins/ThrowTypeError/forbidden-caller.js
@@ -25,6 +25,9 @@ info: |
properties.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "caller"), false);
diff --git a/test/built-ins/ThrowTypeError/frozen.js b/test/built-ins/ThrowTypeError/frozen.js
index 011f62f8c..76c9b6ec7 100644
--- a/test/built-ins/ThrowTypeError/frozen.js
+++ b/test/built-ins/ThrowTypeError/frozen.js
@@ -14,6 +14,9 @@ info: |
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(Object.isFrozen(ThrowTypeError), true);
diff --git a/test/built-ins/ThrowTypeError/is-function.js b/test/built-ins/ThrowTypeError/is-function.js
index 553a8fe41..b3d15916d 100644
--- a/test/built-ins/ThrowTypeError/is-function.js
+++ b/test/built-ins/ThrowTypeError/is-function.js
@@ -12,6 +12,9 @@ info: |
object that is defined once for each realm.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(typeof ThrowTypeError, "function");
diff --git a/test/built-ins/ThrowTypeError/length.js b/test/built-ins/ThrowTypeError/length.js
index 5e74e1745..5a14e231b 100644
--- a/test/built-ins/ThrowTypeError/length.js
+++ b/test/built-ins/ThrowTypeError/length.js
@@ -13,7 +13,10 @@ info: |
includes: [propertyHelper.js]
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(ThrowTypeError.length, 0);
diff --git a/test/built-ins/ThrowTypeError/name.js b/test/built-ins/ThrowTypeError/name.js
index d2cb287c3..d894ee12f 100644
--- a/test/built-ins/ThrowTypeError/name.js
+++ b/test/built-ins/ThrowTypeError/name.js
@@ -12,6 +12,9 @@ info: |
object that is defined once for each Realm.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "name"), false);
diff --git a/test/built-ins/ThrowTypeError/prototype.js b/test/built-ins/ThrowTypeError/prototype.js
index 4ad20323b..fcb92f431 100644
--- a/test/built-ins/ThrowTypeError/prototype.js
+++ b/test/built-ins/ThrowTypeError/prototype.js
@@ -19,6 +19,9 @@ info: |
...
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.sameValue(Object.getPrototypeOf(ThrowTypeError), Function.prototype);
diff --git a/test/built-ins/ThrowTypeError/throws-type-error.js b/test/built-ins/ThrowTypeError/throws-type-error.js
index 577dc4560..b2df50ca1 100644
--- a/test/built-ins/ThrowTypeError/throws-type-error.js
+++ b/test/built-ins/ThrowTypeError/throws-type-error.js
@@ -13,7 +13,10 @@ info: |
1. Throw a TypeError exception.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
assert.throws(TypeError, function() {
ThrowTypeError();
diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js b/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js
index a5235f1c3..47fdb00d1 100644
--- a/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js
+++ b/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js
@@ -12,7 +12,10 @@ info: |
object that is defined once for each realm.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
// Test with Function.prototype.arguments and Function.prototype.caller properties.
var argumentsDesc = Object.getOwnPropertyDescriptor(Function.prototype, "arguments");
diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js b/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js
index a69be6bf4..f30052e0b 100644
--- a/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js
+++ b/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js
@@ -12,7 +12,10 @@ info: |
object that is defined once for each realm.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
// Test with unmapped arguments object from function with non-simple parameters list.
function nonSimple(a = 0) {
diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js b/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js
index 66dee2bd4..057225298 100644
--- a/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js
+++ b/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js
@@ -12,7 +12,10 @@ info: |
object that is defined once for each realm.
---*/
-var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get;
+var ThrowTypeError = Object.getOwnPropertyDescriptor(function() {
+ "use strict";
+ return arguments;
+}(), "callee").get;
// Test with unmapped arguments object from strict-mode function.
function strictFn() {