mobile/android/base/tests/robocop_javascript.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/tests/robocop_javascript.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +<!DOCTYPE html>
     1.5 +<head>
     1.6 +<meta charset="UTF-8">
     1.7 +<title>Mochitest Robotium Javascript Test Harness</title>
     1.8 +<link rel="author" title="nalexander" href="mailto:nalexander@mozilla.com">
     1.9 +<script type="application/javascript;version=1.8" src="robocop_testharness.js"></script>
    1.10 +<script>
    1.11 +var param = /[&?]path=([^&]+)/.exec(location.search);
    1.12 +if (param) {
    1.13 +  // We encode so that absolute URLs can be provided.  Since the
    1.14 +  // encoding of a relative filename is just the filename, no special
    1.15 +  // processing is needed for the most common case.
    1.16 +  var src = decodeURIComponent(param[1]);
    1.17 +  document.title = src;
    1.18 +
    1.19 +  // Provided by robocop_testharness.js.
    1.20 +  testOneFile(src);
    1.21 +}
    1.22 +</script>
    1.23 +</head>

mercurial