tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test-console.html (687B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3  <head>
      4    <meta charset="utf-8">
      5    <title>Simple webconsole test page</title>
      6    <style>
      7      p {
      8        color: bled;
      9      }
     10    </style>
     11  </head>
     12  <body>
     13    <p>Simple webconsole test page</p>
     14    <script>
     15      /* exported doLogs, stringLog, throwError */
     16      "use strict";
     17 
     18      function doLogs(num) {
     19        num = num || 1;
     20        for (let i = 0; i < num; i++) {
     21          console.log(i);
     22        }
     23      }
     24 
     25      function stringLog() {
     26        console.log("stringLog");
     27      }
     28 
     29      function throwError(errorMessage) {
     30        setTimeout(() => {
     31          throw errorMessage;
     32        }, 0);
     33      }
     34    </script>
     35  </body>
     36 </html>