From fe4da360ce4f5b862f4e4113a47eee5224d68d64 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 17 Jun 2011 13:16:53 +0000 Subject: [PATCH] Demonstrate that instanceof doesn't work for arrays created in another frame. git-svn-id: http://svn.openlayers.org/trunk/openlayers@12097 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Util.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/Util.html b/tests/Util.html index 7e83d27b25..7ec2ab3cc1 100644 --- a/tests/Util.html +++ b/tests/Util.html @@ -63,6 +63,20 @@ "isArray reports new Array() is an Array"); } + function test_iframe_isArray(t) { + t.plan(3); + // create an array in an iframe + var iframe = document.createElement("iframe"); + document.body.appendChild(iframe); + frames[frames.length-1].document.write( + "