From ea9643c56e602432609b407307afb1ef9da6e9a9 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 4 Nov 2008 23:19:34 +0000 Subject: [PATCH] Update auto-tests from run-tests. git-svn-id: http://svn.openlayers.org/trunk/openlayers@8277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/auto-tests.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/auto-tests.html b/tests/auto-tests.html index 9d2a30cbce..4aaaa0d68c 100644 --- a/tests/auto-tests.html +++ b/tests/auto-tests.html @@ -34,7 +34,7 @@ body { height: 98%; font: normal normal 10pt sans-serif } #col1 { float: left; width: 27em; margin: 0 0 0 1em; overflow: visible; } #col2 { position: relative; height: 98%; margin: 0 0.5em 0 28em; } #col1_header { margin-top: 0.5em; } -#scroller { height: 550px; overflow: auto;} +#scroller { height: 400px; overflow: auto;} #testtable { margin: 0 0 2em 0; width: 97%; } #run_buttons { margin-bottom: 4em; } @@ -470,7 +470,14 @@ Test.AnotherWay._html_eq_node_to_string=function( node ) { if( node.outerHTML!=null ) { Test.AnotherWay._g_html_eq_span.innerHTML=node.outerHTML; }else { - Test.AnotherWay._g_html_eq_span.appendChild( node.cloneNode( true ) ); + var clone = node.cloneNode(true); + var node = Test.AnotherWay._g_html_eq_span; + if(node.ownerDocument && node.ownerDocument.importNode) { + if(node.ownerDocument != clone.ownerDocument) { + clone = node.ownerDocument.importNode(clone, true); + } + } + node.appendChild(clone); } return Test.AnotherWay._g_html_eq_span.innerHTML; } @@ -2334,6 +2341,7 @@ onload=function() // --> +