topical media & game development

talk show tell print

mobile-query-three-bench-benchmark.js-tests-index.htm / htm



  <!doctype html>
  <html>
          <head>
                  <title>Benchmark.js Test Suite</title>
                  <link rel="stylesheet" href="../vendor/qunit/qunit/qunit.css">
                  <style>
                  applet {
                          position: absolute;
                          left: -9999em;
                  }
                  </style>
          </head>
          <body>
                  <h1 id="qunit-header">Benchmark.js Test Suite</h1>
                  <h2 id="qunit-banner"></h2>
                  <div id="qunit-testrunner-toolbar"></div>
                  <h2 id="qunit-userAgent"></h2>
                  <ol id="qunit-tests"></ol>
                  <script>
                  (function() {
                          var hasOwnProperty = function hasOwnProperty(key) {
                                  var parent = (this.constructor || Object).prototype;
                                  return key in this && !(key in parent && this[key] === parent[key]);
                          };
                          if (typeof {}.hasOwnProperty != 'function') {
                                  // redefine for Safari 2, else use the less accurate fallback for others
                                  if ({}.__proto__ == Object.prototype) {
                                          hasOwnProperty = function hasOwnProperty(key) {
                                                  var result;
                                                  this.__proto__ = [this.__proto__, this.__proto__ = null, result = key in this][0];
                                                  return result;
                                          };
                                  }
                                  Object.prototype.hasOwnProperty = hasOwnProperty;
                          }
                  }());
                  </script>
                  <script src="../vendor/qunit/qunit/qunit.js"></script>
                  <script>var Benchmark2, platform;</script>
                  <script src="../benchmark.js"></script>
                  <script src="../vendor/requirejs/require.js"></script>
                  <script>
                  if (/[?&]norequire=true(?:&|)/.test(location.search)) {
                          require = define = null;
                          document.write('<script src="tests.js"><\/script>');
                          document.write('<script src="../vendor/platform.js/platform.js"><\/script>');
                  }
                  else {
                          require({
                                  'baseUrl': '../vendor/requirejs/',
                                  'urlArgs': 't=' + (+new Date),
                                  'paths': {
                                          'benchmark': '../../benchmark',
                                          'platform': '../platform.js/platform'
                                  }
                          },
                          ['benchmark', 'platform'], function(Benchmark, platform) {
                                  Benchmark2 = Benchmark;
                                  Benchmark2.platform = platform;
                                  document.getElementById('qunit-userAgent').innerHTML = platform;
                                  require(['tests.js']);
                          });
                  }
                  if (!/[?&]nojava=true(?:&|)/.test(location.search)) {
                          document.write('<applet code="nano" archive="../nano.jar"></applet>');
                  }
                  window.onload = function() {
                          setTimeout(function() {
                                  document.getElementById('qunit-userAgent').innerHTML =
                                          platform || (Benchmark2 || 0).platform || Benchmark.platform;
                          }, 15);
                  };
                  </script>
          </body>
  </html>


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.