summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Balter <leonardo.balter@gmail.com>2018-02-15 17:51:52 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-15 17:51:52 -0500
commit857f1d429b939c6feef1951041b5c91c9f3a8b4a (patch)
treeb2c16184e39a20fd66f11f2fc517e8e592d6536e
parent77096157d10fcb6d72696456c5a9302ab29ba62a (diff)
downloadqtdeclarative-testsuites-857f1d429b939c6feef1951041b5c91c9f3a8b4a.tar.gz
fix bad fixings from Remove N
-rw-r--r--test/built-ins/TypedArray/prototype/fill/coerced-indexes.js28
-rw-r--r--test/built-ins/TypedArray/prototype/fill/fill-values-custom-start-and-end.js10
-rw-r--r--test/built-ins/TypedArray/prototype/fill/fill-values-relative-end.js8
-rw-r--r--test/built-ins/TypedArray/prototype/fill/fill-values-relative-start.js8
-rw-r--r--test/built-ins/TypedArray/prototype/fill/fill-values.js2
5 files changed, 28 insertions, 28 deletions
diff --git a/test/built-ins/TypedArray/prototype/fill/coerced-indexes.js b/test/built-ins/TypedArray/prototype/fill/coerced-indexes.js
index 0f0dab7d8..2d512bae5 100644
--- a/test/built-ins/TypedArray/prototype/fill/coerced-indexes.js
+++ b/test/built-ins/TypedArray/prototype/fill/coerced-indexes.js
@@ -33,72 +33,72 @@ features: [TypedArray]
testWithTypedArrayConstructors(function(TA) {
assert(
- compareArray(new TA([0, 0])).fill(1, undefined), [1, 1],
+ compareArray(new TA([0, 0]).fill(1, undefined), [1, 1]),
'`undefined` start coerced to 0'
);
assert(
- compareArray(new TA([0, 0])).fill(1, 0, undefined), [1, 1],
+ compareArray(new TA([0, 0]).fill(1, 0, undefined), [1, 1]),
'If end is undefined, let relativeEnd be len'
);
assert(
- compareArray(new TA([0, 0])).fill(1, null), [1, 1],
+ compareArray(new TA([0, 0]).fill(1, null), [1, 1]),
'`null` start coerced to 0'
);
assert(
- compareArray(new TA([0, 0])).fill(1, 0, null), [0, 0],
+ compareArray(new TA([0, 0]).fill(1, 0, null), [0, 0]),
'`null` end coerced to 0'
);
assert(
- compareArray(new TA([0, 0])).fill(1, true), [0, 1],
+ compareArray(new TA([0, 0]).fill(1, true), [0, 1]),
'`true` start coerced to 1'
);
assert(
- compareArray(new TA([0, 0])).fill(1, 0, true), [1, 0],
+ compareArray(new TA([0, 0]).fill(1, 0, true), [1, 0]),
'`true` end coerced to 1'
);
assert(
- compareArray(new TA([0, 0])).fill(1, false), [1, 1],
+ compareArray(new TA([0, 0]).fill(1, false), [1, 1]),
'`false` start coerced to 0'
);
assert(
- compareArray(new TA([0, 0])).fill(1, 0, false), [0, 0],
+ compareArray(new TA([0, 0]).fill(1, 0, false), [0, 0]),
'`false` end coerced to 0'
);
assert(
- compareArray(new TA([0, 0])).fill(1, NaN), [1, 1],
+ compareArray(new TA([0, 0]).fill(1, NaN), [1, 1]),
'`NaN` start coerced to 0'
);
assert(
- compareArray(new TA([0, 0])).fill(1, 0, NaN), [0, 0],
+ compareArray(new TA([0, 0]).fill(1, 0, NaN), [0, 0]),
'`NaN` end coerced to 0'
);
assert(
- compareArray(new TA([0, 0])).fill(1, '1'), [0, 1],
+ compareArray(new TA([0, 0]).fill(1, '1'), [0, 1]),
'string start coerced'
);
assert(
- compareArray(new TA([0, 0])).fill(1, 0, '1'), [1, 0],
+ compareArray(new TA([0, 0]).fill(1, 0, '1'), [1, 0]),
'string end coerced'
);
assert(
- compareArray(new TA([0, 0])).fill(1, 1.5), [0, 1],
+ compareArray(new TA([0, 0]).fill(1, 1.5), [0, 1]),
'start as a float number coerced'
);
assert(
- compareArray(new TA([0, 0])).fill(1, 0, 1.5), [1, 0],
+ compareArray(new TA([0, 0]).fill(1, 0, 1.5), [1, 0]),
'end as a float number coerced'
);
});
diff --git a/test/built-ins/TypedArray/prototype/fill/fill-values-custom-start-and-end.js b/test/built-ins/TypedArray/prototype/fill/fill-values-custom-start-and-end.js
index ca66ad48c..2a332b54f 100644
--- a/test/built-ins/TypedArray/prototype/fill/fill-values-custom-start-and-end.js
+++ b/test/built-ins/TypedArray/prototype/fill/fill-values-custom-start-and-end.js
@@ -34,9 +34,9 @@ features: [TypedArray]
---*/
testWithTypedArrayConstructors(function(TA) {
- assert(compareArray(new TA([0, 0, 0])).fill(8, 1, 2), [0, 8, 0]);
- assert(compareArray(new TA([0, 0, 0, 0, 0])).fill(8, -3, 4), [0, 0, 8, 8, 0]);
- assert(compareArray(new TA([0, 0, 0, 0, 0])).fill(8, -2, -1), [0, 0, 0, 8, 0]);
- assert(compareArray(new TA([0, 0, 0, 0, 0])).fill(8, -1, -3), [0, 0, 0, 0, 0]);
- assert(compareArray(new TA([0, 0, 0, 0, 0])).fill(8, 1, 3), [0, 8, 8, 0, 0]);
+ assert(compareArray(new TA([0, 0, 0]).fill(8, 1, 2), [0, 8, 0]));
+ assert(compareArray(new TA([0, 0, 0, 0, 0]).fill(8, -3, 4), [0, 0, 8, 8, 0]));
+ assert(compareArray(new TA([0, 0, 0, 0, 0]).fill(8, -2, -1), [0, 0, 0, 8, 0]));
+ assert(compareArray(new TA([0, 0, 0, 0, 0]).fill(8, -1, -3), [0, 0, 0, 0, 0]));
+ assert(compareArray(new TA([0, 0, 0, 0, 0]).fill(8, 1, 3), [0, 8, 8, 0, 0]));
});
diff --git a/test/built-ins/TypedArray/prototype/fill/fill-values-relative-end.js b/test/built-ins/TypedArray/prototype/fill/fill-values-relative-end.js
index 13f76f482..4926fdb57 100644
--- a/test/built-ins/TypedArray/prototype/fill/fill-values-relative-end.js
+++ b/test/built-ins/TypedArray/prototype/fill/fill-values-relative-end.js
@@ -32,22 +32,22 @@ features: [TypedArray]
testWithTypedArrayConstructors(function(TA) {
assert(
- compareArray(new TA([0, 0, 0])).fill(8, 0, 1), [8, 0, 0],
+ compareArray(new TA([0, 0, 0]).fill(8, 0, 1), [8, 0, 0]),
"Fill elements from custom end position"
);
assert(
- compareArray(new TA([0, 0, 0])).fill(8, 0, -1), [8, 8, 0],
+ compareArray(new TA([0, 0, 0]).fill(8, 0, -1), [8, 8, 0]),
"negative end sets final position to max((length + relativeEnd), 0)"
);
assert(
- compareArray(new TA([0, 0, 0])).fill(8, 0, 5), [8, 8, 8],
+ compareArray(new TA([0, 0, 0]).fill(8, 0, 5), [8, 8, 8]),
"end position is never higher than of length"
);
assert(
- compareArray(new TA([0, 0, 0])).fill(8, 0, -4), [0, 0, 0],
+ compareArray(new TA([0, 0, 0]).fill(8, 0, -4), [0, 0, 0]),
"end position is 0 when (len + relativeEnd) < 0"
);
});
diff --git a/test/built-ins/TypedArray/prototype/fill/fill-values-relative-start.js b/test/built-ins/TypedArray/prototype/fill/fill-values-relative-start.js
index 245c5d856..cb89c951f 100644
--- a/test/built-ins/TypedArray/prototype/fill/fill-values-relative-start.js
+++ b/test/built-ins/TypedArray/prototype/fill/fill-values-relative-start.js
@@ -30,22 +30,22 @@ features: [TypedArray]
testWithTypedArrayConstructors(function(TA) {
assert(
- compareArray(new TA([0, 0, 0])).fill(8, 1), [0, 8, 8],
+ compareArray(new TA([0, 0, 0]).fill(8, 1), [0, 8, 8]),
"Fill elements from custom start position"
);
assert(
- compareArray(new TA([0, 0, 0])).fill(8, 4), [0, 0, 0],
+ compareArray(new TA([0, 0, 0]).fill(8, 4), [0, 0, 0]),
"start position is never higher than length"
);
assert(
- compareArray(new TA([0, 0, 0])).fill(8, -1), [0, 0, 8],
+ compareArray(new TA([0, 0, 0]).fill(8, -1), [0, 0, 8]),
"start < 0 sets initial position to max((len + relativeStart), 0)"
);
assert(
- compareArray(new TA([0, 0, 0])).fill(8, -5), [8, 8, 8],
+ compareArray(new TA([0, 0, 0]).fill(8, -5), [8, 8, 8]),
"start position is 0 when (len + relativeStart) < 0"
);
});
diff --git a/test/built-ins/TypedArray/prototype/fill/fill-values.js b/test/built-ins/TypedArray/prototype/fill/fill-values.js
index cf632e77b..7d0faa44f 100644
--- a/test/built-ins/TypedArray/prototype/fill/fill-values.js
+++ b/test/built-ins/TypedArray/prototype/fill/fill-values.js
@@ -38,7 +38,7 @@ testWithTypedArrayConstructors(function(TA) {
);
assert(
- compareArray(new TA([0, 0, 0])).fill(8), [8, 8, 8],
+ compareArray(new TA([0, 0, 0]).fill(8), [8, 8, 8]),
"Default start and end indexes are 0 and this.length"
);
});