| Index: test/webkit/propertyIsEnumerable.js
|
| diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/propertyIsEnumerable.js
|
| similarity index 70%
|
| copy from test/webkit/concat-while-having-a-bad-time.js
|
| copy to test/webkit/propertyIsEnumerable.js
|
| index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..e6dc22f64b66c530635995c6d532cf06434470c1 100644
|
| --- a/test/webkit/concat-while-having-a-bad-time.js
|
| +++ b/test/webkit/propertyIsEnumerable.js
|
| @@ -22,10 +22,21 @@
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| description(
|
| -"Tests the behavior of Array.prototype.concat while the array is having a bad time due to one of the elements we are concatenating."
|
| +"This tests that propertyIsEnumerable works according to the ECMA spec."
|
| );
|
|
|
| -Object.defineProperty(Array.prototype, 0, { writable: false });
|
| -shouldBe("[42].concat()", "[42]");
|
| +a = new Array();
|
| +a.foo='bar'
|
|
|
| +var aVarDecl;
|
| +function aFunctionDecl(){}
|
| +var global = this;
|
| +shouldBeFalse("a.propertyIsEnumerable('length')");
|
| +shouldBeTrue("a.propertyIsEnumerable ('foo')");
|
| +shouldBeFalse("a.propertyIsEnumerable ('non-existant')");
|
|
|
| +shouldBeTrue("global.propertyIsEnumerable ('aVarDecl')");
|
| +shouldBeTrue("global.propertyIsEnumerable ('aFunctionDecl')");
|
| +shouldBeFalse("global.propertyIsEnumerable ('Math')");
|
| +shouldBeFalse("global.propertyIsEnumerable ('NaN')");
|
| +shouldBeFalse("global.propertyIsEnumerable ('undefined')");
|
|
|