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