summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2018-02-09 11:35:37 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-09 11:35:37 -0500
commita01de4a722d088055a7d84d8c691ddd7109edb34 (patch)
treef583c8efd40a3b699261f1166da75a9861d83e7b /test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js
parent7b01f9799f99851955f23c18c12e6651c1941022 (diff)
downloadqtdeclarative-testsuites-a01de4a722d088055a7d84d8c691ddd7109edb34.tar.gz
js-beautify: make all indentation consistent (depth & character) (#1409)
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js
index 0afda4bd3..fda33ef75 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js
@@ -9,29 +9,29 @@ description: >
current position are visited on an Array
---*/
- var testResult = false;
+var testResult = false;
- function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
- }
+function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+}
- var arr = [0, , 2];
+var arr = [0, , 2];
- Object.defineProperty(arr, "0", {
- get: function () {
- Object.defineProperty(arr, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
- });
+Object.defineProperty(arr, "0", {
+ get: function() {
+ Object.defineProperty(arr, "1", {
+ get: function() {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+});
- arr.forEach(callbackfn);
+arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');