Updated Branches:
  refs/heads/3.0.x e12609d87 -> daca6cff9

Add backButton for autobench.html

---Show backButton when tests are done
---Since "licensecontents.js" is non-exist, remove the reference  to it


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/daca6cff
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/daca6cff
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/daca6cff

Branch: refs/heads/3.0.x
Commit: daca6cff946b283a0c356d0338b6f0dc2a3b8706
Parents: e0a72bd
Author: lmnbeyond <[email protected]>
Authored: Wed Aug 14 20:04:14 2013 +0800
Committer: Max Woghiren <[email protected]>
Committed: Tue Aug 27 11:39:02 2013 -0400

----------------------------------------------------------------------
 benchmarks/autobench.html | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/daca6cff/benchmarks/autobench.html
----------------------------------------------------------------------
diff --git a/benchmarks/autobench.html b/benchmarks/autobench.html
index 445a46d..1a909fb 100644
--- a/benchmarks/autobench.html
+++ b/benchmarks/autobench.html
@@ -27,7 +27,6 @@
     <link rel="stylesheet" href="../master.css" type="text/css" media="screen" 
title="no title" charset="utf-8">
     <script type="text/javascript" charset="utf-8" 
src="../cordova-incl.js"></script>      
     <script type="text/javascript" charset="utf-8" src="uubench.js"></script>
-    <script type="text/javascript" charset="utf-8" 
src="licensecontents.js"></script>
 <script>
     var exec = cordova.require('cordova/exec');
     var temp, pers, LICENSE_CONTENTS;
@@ -62,6 +61,7 @@
         min: 2000, // each benchmark should run for at least 2000ms
         done:function() { 
             $('loading').innerHTML = "Benchmarks complete.";
+            $('backBtn').style.display="block";
         }
     });
     var results = {};
@@ -176,7 +176,7 @@ function bench() {
 </script>
 
   </head>
-  <body>
+  <body id="stage" class="theme">
     <h1>Auto-Benchmarks</h1>
     <h2 id="loading"></h2>
     <table>
@@ -189,5 +189,6 @@ function bench() {
         <tbody id="table-results">
         </tbody>
     </table>
+    <h2>&nbsp</h2><a href="javascript:" class="backBtn" style="display:none" 
id='backBtn' onclick="backHome();">Back</a><br>
   </body>
 </html>      

Reply via email to