Changeset 5444
- Timestamp:
- 12/16/07 19:55:07 (1 year ago)
- Files:
-
- trunk/openlayers/tests/auto-tests.html (copied) (copied from trunk/openlayers/tests/run-tests.html) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/tests/auto-tests.html
r4224 r5444 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 2 <html><head><title> Run the testsuite</title> 2 <html><head> 3 <meta http-equiv="refresh" content="1200" /> 4 <title> Run the testsuite</title> 3 5 <noscript>Javascript is disabled in your browser. This page cannot be displayed correctly without Javascript. Sorry. <br/> If you want to view this page, please change your browser settings so that Javascript is enabled.</noscript> 4 6 <!-- … … 82 84 <script type="text/javascript"> 83 85 <!-- 86 87 function report_results() { 88 req = false; 89 // branch for native XMLHttpRequest object 90 if(window.XMLHttpRequest && !(window.ActiveXObject)) { 91 try { 92 req = new XMLHttpRequest(); 93 } catch(e) { 94 req = false; 95 } 96 // branch for IE/Windows ActiveX version 97 } else if(window.ActiveXObject) { 98 try { 99 req = new ActiveXObject("Msxml2.XMLHTTP"); 100 } catch(e) { 101 try { 102 req = new ActiveXObject("Microsoft.XMLHTTP"); 103 } catch(e) { 104 req = false; 105 } 106 } 107 } 108 req.open("POST", "/test/results.cgi"); 109 req.setRequestHeader("Content-Type", 'application/x-www-form-urlencoded'); 110 var results = document.getElementById('total').innerHTML; 111 var test_text = ""; 112 if (results.match("fail")) { 113 test_text = document.getElementById("results").innerHTML; 114 } 115 req.send("results="+escape(results)+"&test_text="+escape(test_text)); 116 } 117 84 118 if( typeof( Test )=="undefined" ) { 85 119 Test={}; … … 735 769 Test.AnotherWay._g_test_iframe.location.replace( "about:blank" ); 736 770 } 737 } 771 report_results(); 772 } 738 773 } 739 774 Test.AnotherWay._g_opera_path_correction=null; // ugly wart to support opera … … 788 823 { 789 824 var test_page=Test.AnotherWay._g_tests_queue[0]; 790 test_page.loading_timeout_milliseconds= 6000;825 test_page.loading_timeout_milliseconds=20000; 791 826 test_page.timeout_id=setTimeout( Test.AnotherWay._loading_timeout, Test.AnotherWay._g_timeout_granularity ); 792 827 test_page.wait_msg=Test.AnotherWay._print_counter_result( test_page.url, "loading...", test_page.loading_timeout_milliseconds, "loading" );
