Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=758179 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>Test for Bug 758179</title> |
michael@0 | 8 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 9 | <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> |
michael@0 | 10 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 11 | <style> |
michael@0 | 12 | #t1 { width:80px; height:60px; background:yellow; } |
michael@0 | 13 | #t1.chosen #i1 { visibility:hidden; } |
michael@0 | 14 | </style> |
michael@0 | 15 | </head> |
michael@0 | 16 | <body> |
michael@0 | 17 | <div id="t1"> |
michael@0 | 18 | <img id="i1" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAyAQMAAACQ%2B%2Bz9AAAAA1BMVEUA%2FwA0XsCoAAAAD0lEQVQoFWNgGAWjYGgCAAK8AAEb3eOQAAAAAElFTkSuQmCC"> |
michael@0 | 19 | </div> |
michael@0 | 20 | |
michael@0 | 21 | <pre id="test"> |
michael@0 | 22 | <script type="application/javascript"> |
michael@0 | 23 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 24 | var selection = window.getSelection(); |
michael@0 | 25 | var t1 = document.getElementById("t1"); |
michael@0 | 26 | |
michael@0 | 27 | function doTest() { |
michael@0 | 28 | t1.addEventListener("mousedown", function() { |
michael@0 | 29 | t1.className = "chosen"; |
michael@0 | 30 | }, false); |
michael@0 | 31 | t1.addEventListener("mouseup", function() { |
michael@0 | 32 | ok(selection.isCollapsed, "checking that selection is collapsed"); |
michael@0 | 33 | }, false); |
michael@0 | 34 | synthesizeMouse(t1, 10, 10, {}); |
michael@0 | 35 | SimpleTest.finish(); |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | SimpleTest.waitForFocus(doTest); |
michael@0 | 39 | </script> |
michael@0 | 40 | </pre> |
michael@0 | 41 | </body> |
michael@0 | 42 | </html> |