Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!--https://bugzilla.mozilla.org/show_bug.cgi?id=633602--> |
michael@0 | 4 | <head> |
michael@0 | 5 | <title>Bug 633602</title> |
michael@0 | 6 | <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"> |
michael@0 | 7 | </script> |
michael@0 | 8 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"> |
michael@0 | 9 | </script> |
michael@0 | 10 | <script type="application/javascript" src="pointerlock_utils.js"></script> |
michael@0 | 11 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 12 | </head> |
michael@0 | 13 | <body> |
michael@0 | 14 | <a target="_blank" |
michael@0 | 15 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=633602"> |
michael@0 | 16 | Mozilla Bug 633602 |
michael@0 | 17 | </a> |
michael@0 | 18 | |
michael@0 | 19 | <pre id="test"> |
michael@0 | 20 | <script type="text/javascript"> |
michael@0 | 21 | /* |
michael@0 | 22 | * Test for Bug 633602 |
michael@0 | 23 | * Make sure pointerlockerror event fires. |
michael@0 | 24 | */ |
michael@0 | 25 | |
michael@0 | 26 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 27 | |
michael@0 | 28 | document.addEventListener("mozpointerlockerror", function (e) { |
michael@0 | 29 | ok(true, "pointerlockerror event should fire."); |
michael@0 | 30 | SimpleTest.finish(); |
michael@0 | 31 | }, false); |
michael@0 | 32 | |
michael@0 | 33 | function start() { |
michael@0 | 34 | // element not in the DOM, not fullscreen, should fail to lock |
michael@0 | 35 | div = document.createElement("div"); |
michael@0 | 36 | div.mozRequestPointerLock(); |
michael@0 | 37 | } |
michael@0 | 38 | </script> |
michael@0 | 39 | </pre> |
michael@0 | 40 | </body> |
michael@0 | 41 | </html> |