1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/generic/test/test_bug290397.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=290397 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 290397</title> 1.11 + <script src="/tests/SimpleTest/SimpleTest.js"></script> 1.12 + <script src="/tests/SimpleTest/EventUtils.js"></script> 1.13 + <link rel="stylesheet" href="/tests/SimpleTest/test.css"> 1.14 +</head> 1.15 +<body> 1.16 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=290397">Mozilla Bug 290397</a> 1.17 +<p id="display"> 1.18 +<map name=a> 1.19 + <area coords=0,0,20,20 href=#pass> 1.20 + <area shape=default href=#fail> 1.21 +</map> 1.22 +<img src=file_Dolske.png usemap=#a id=image> 1.23 +</p> 1.24 +<div id="content" style="display: none"> 1.25 + 1.26 +</div> 1.27 +<pre id="test"> 1.28 +<script> 1.29 +/** Test for Bug 290397 **/ 1.30 +SimpleTest.waitForExplicitFinish(); 1.31 +onhashchange = function() { 1.32 + is(location.hash, "#pass", "Got the wrong area"); 1.33 + SimpleTest.finish(); 1.34 +}; 1.35 +function runTest() { 1.36 + var image = document.getElementById("image"); 1.37 + SimpleTest.waitForFocus(function() synthesizeMouse(image, 10, 10, {})); 1.38 +} 1.39 +addLoadEvent(runTest); 1.40 +</script> 1.41 +</pre> 1.42 +</body> 1.43 +</html>