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> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>Test explicit original target of dblclick event</title> |
michael@0 | 5 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 6 | <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> |
michael@0 | 7 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 8 | </head> |
michael@0 | 9 | <body> |
michael@0 | 10 | <p id="display">Test explicit original target of dblclick event</p> |
michael@0 | 11 | <div id="content" style="display: none"> |
michael@0 | 12 | |
michael@0 | 13 | </div> |
michael@0 | 14 | <pre id="test"> |
michael@0 | 15 | <script type="application/javascript"> |
michael@0 | 16 | |
michael@0 | 17 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 18 | SimpleTest.waitForFocus(runTests); |
michael@0 | 19 | |
michael@0 | 20 | function runTests() |
michael@0 | 21 | { |
michael@0 | 22 | synthesizeMouse(document.getElementById("display"), 5, 5, { clickCount: 2 }); |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | window.ondblclick = function(event) { |
michael@0 | 26 | is(event.explicitOriginalTarget.nodeType, Node.TEXT_NODE, "explicitOriginalTarget is a text node"); |
michael@0 | 27 | SimpleTest.finish(); |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | </script> |
michael@0 | 31 | </pre> |
michael@0 | 32 | </body> |
michael@0 | 33 | </html> |