source: subversion/applications/editors/applet/html/test_osm_applet.html @ 32690

Last change on this file since 32690 was 2176, checked in by danmoore, 13 years ago

fix for deadlock on upload fail/abort/rollback with redraw; addition of 'injectTimeouts' parameter to help test

File size: 2.6 KB
Line 
1<html>
2        <head>
3                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
4                <title>OSM Applet Test Page</title>
5    <script src="jquery.js" type="text/javascript"></script>
6        <body>
7          <h3>OpenStreetMap Applet</h3>
8    <p>Local dev version.  Using test username <b id="user_span">(not set)</b> and password <b id="pass_span">(not set)</b>
9    To use your login in this page after build, call ant with parameters:</p>
10    <pre>-Dtest.user=(your username) -Dtest.user=(your password)</pre>
11    <p>  Link: <span id="linkOut"></span>.</p>
12    <div>
13      <applet 
14        code="org/openstreetmap/processing/OsmApplet.class"
15        width="800"
16        height="600"
17        archive="commons-codec-1.3.jar,commons-httpclient-3.0-rc3.jar,commons-logging.jar,core.jar,MinML2.jar,OSMApplet.jar,thinlet.jar"
18        name="osm_applet"
19        MAYSCRIPT="true">
20        <param name="clat" value="51.414942428013056"/>
21        <param name="clon" value="-0.13467264175415036"/>
22        <param name="user" value="@user@" />
23        <param name="pass" value="@pass@" />
24        <param name="tileThreads" value="6"/> <!-- tile image download threads -->
25        <param name="windowWidth" value="800"/>
26        <param name="windowHeight" value="600"/>
27        <param name="debugToPage" value="false" /> <!-- true = output to appletDebug() fn -->
28        <param name="abortable" value="true" /> <!-- true = allow abort of map download -->
29        <param name="timeout" value="5"/> <!-- server connect timeout in seconds -->
30        <param name="socketTimeout" value="30"/> <!-- server connect timeout in seconds -->
31        <param name="retries" value="5"/> <!-- max number of server retries -->
32        <param name="injectTimeouts" value="30"/> <!-- percent chance of (simulated) timeout, for testing, 0 = live i.e. no timeouts -->
33      </applet>
34      <div style="font-size: small; position: relative; left: 800px; top:-600px; height: 600px; width: 400px; overflow: scroll; visibility: hidden" >
35        <p>Debug output from applet</p>
36        <pre id="debug_out"></pre>
37      </div>
38    </div>
39    <script type="text/javascript">/*<![CDATA[*/
40jQuery.noConflict();
41var jq = jQuery;
42 
43function updatelinks(lat, lon, zoom) {
44  jq('#linkOut').empty().append('lat=' + lat + ', lon=' + lon + ', zoom=' + zoom);
45} 
46
47function appletDebug(s) {
48  jq('#debug_out').append(s).append('<br/>'); 
49}
50
51var user = jq("param[@name='user']").val();
52var pass = jq("param[@name='pass']").val();
53jq('#user_span').empty().append(user);   
54jq('#pass_span').empty().append(pass);
55   
56    /*]]>*/</script>
57        </body>
58</html>
Note: See TracBrowser for help on using the repository browser.