Tue, 29 Jan 2008 18:00:45 -0800
changeset 10979 6e65d9a3ce0fe82b0205f096b7725a91da479bb0
parent 8396 a36bea1ef6dbcf825e49ddc767f3e2bfa148ee8d
child 28048 8f7b73d88f6bbedec99c6c8ef48b243ab922d05c
permissions -rw-r--r--
Bug 406807: Remove unneccesary parts of xpinstall. r=bsmedberg, sr=dveditz, a=damons

  <title>Test for Bug 405632</title>
  <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
<a target="_blank" href="">Mozilla Bug 405632</a>
<p id="display"></p>
<div id="content" style="display: none">
<pre id="test">
<script class="testbody" type="text/javascript">

/** Test for Bug 405632 **/

  var me = document.createEvent("mouseevent");
  me.initMouseEvent("foo", false, false, window, 0, 100, 100, 100, 100,
                    false, false, false, false, 0, null);
  ok(me.clientX == me.pageX,
     "mouseEvent.clientX should be the same as mouseEvent.pageX when event is initialized manually");
  ok(me.clientY == me.pageY,
     "mouseEvent.clientY should be the same as mouseEvent.pageY when event is initialized manually");