summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js
diff options
context:
space:
mode:
authorSue Lockwood <deathbear.apache@gmail.com>2017-06-30 07:36:17 -0700
committerLeo Balter <leonardo.balter@gmail.com>2017-06-30 10:36:17 -0400
commitf395b67d29c2141bd5d58962ff32561f6331b43c (patch)
tree7545301d120e591c658d640ffbca1be026f9ac77 /test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js
parent6155f6161a07f2c32eac2bf679316ec3042363b2 (diff)
downloadqtdeclarative-testsuites-f395b67d29c2141bd5d58962ff32561f6331b43c.tar.gz
add esid to array/prototype/filter tests (#1102)
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js')
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js
index 8075b1500..a778ad888 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js
@@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
+esid: sec-array.prototype.filter
es5id: 15.4.4.20-6-7
description: >
Array.prototype.filter returns an empty array if 'length' is 0
@@ -12,10 +13,10 @@ description: >
foo.prototype = new Array(1, 2, 3);
function foo() {}
var f = new foo();
-
+
var o = { toString: function () { return '0';}};
f.length = o;
-
+
// objects inherit the default valueOf method of the Object object;
// that simply returns the itself. Since the default valueOf() method
// does not return a primitive value, ES next tries to convert the object
@@ -24,7 +25,7 @@ description: >
function cb(){}
var a = f.filter(cb);
-
+
assert(Array.isArray(a), 'Array.isArray(a) !== true');
assert.sameValue(a.length, 0, 'a.length');