Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <!DOCTYPE HTML>
2 <html dir="ltr" xml:lang="en-US" lang="en-US">
3 <head>
4 <!--
5 Any copyright is dedicated to the Public Domain.
6 http://creativecommons.org/publicdomain/zero/1.0/
7 -->
8 <meta charset="utf-8">
9 <title>console.count() test</title>
10 <script src="test-console-count-external-file.js"></script>
11 <script tyoe="text/javascript">
12 function counterSeperateScriptTag() {
13 console.count("console.count() testcounter");
14 }
15 </script>
16 <script type="text/javascript">
17 function counterNoLabel() {
18 console.count();
19 }
20 function countersWithoutLabel() {
21 console.count();
22 console.count();
23 }
24 function counterWithLabel() {
25 console.count("console.count() testcounter");
26 }
27 function testLocal() {
28 console.log("start");
29 counterNoLabel();
30 counterNoLabel();
31 countersWithoutLabel();
32 counterWithLabel();
33 counterWithLabel();
34 counterSeperateScriptTag();
35 counterSeperateScriptTag();
36 console.log("end");
37 }
38 function testExternal() {
39 console.log("start");
40 counterExternalFile();
41 counterExternalFile();
42 externalCountersWithoutLabel();
43 console.log("end");
44 }
45 </script>
46 </head>
47 <body>
48 <p>test console.count()</p>
49 <button id="local" onclick="testLocal();">
50 test local console.count() calls
51 </button>
52 <button id="external" onclick="testExternal();">
53 test external console.count() calls
54 </button>
55 </body>
56 </html>