Index: test/webkit/for-in-to-text.js |
diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/for-in-to-text.js |
similarity index 86% |
copy from test/webkit/concat-while-having-a-bad-time.js |
copy to test/webkit/for-in-to-text.js |
index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..34f79d9aadf92d9f4200cf5c76c44bafab7b76f2 100644 |
--- a/test/webkit/concat-while-having-a-bad-time.js |
+++ b/test/webkit/for-in-to-text.js |
@@ -22,10 +22,13 @@ |
// 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 JavaScriptCore ForInNodes are converted correctly to text." |
); |
-Object.defineProperty(Array.prototype, 0, { writable: false }); |
-shouldBe("[42].concat()", "[42]"); |
- |
+function test() { |
+ for (j in index) { |
+ testProperty(index[j]); |
+ } |
+} |
+shouldBeTrue("test.toString().match('for *[(]j *in *index[)]') != null"); |