Make it easy to package Air.js
[WebKit-https.git] / PerformanceTests / Air.js / test.html
index 281b4ad72b97366714ad36e213682f976e2293d5..506ef3d823c373ef63f6eb2ae0e49d336201d0b4 100644 (file)
 <script src="benchmark.js"></script>
 <script>
     function runTest() {
-        var result = runBenchmark();
-        document.getElementById("result-summary").innerHTML = "That took " + result + " ms.";
+        try {
+            var result = runBenchmark();
+            document.getElementById("result-summary").innerHTML = "That took " + result + " ms.";
+        } catch (e) {
+            document.getElementById("result-summary").innerHTML = "Failed: " + e;
+        }
     }
 </script>
 </head>