1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/ajax/jquery/test/fix.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,48 @@ 1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 1.5 + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1.6 + 1.7 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.8 + <head> 1.9 + <meta name="generator" 1.10 + content="HTML Tidy, see www.w3.org" /> 1.11 + 1.12 + <title>Tester</title> 1.13 +<style type="text/css"> 1.14 + #container { background:yellow; width:400px; height:400px; } 1.15 + 1.16 +</style> 1.17 +<script type="text/javascript" src="../dist/jquery.js"> 1.18 +</script> 1.19 +<script type="text/javascript"> 1.20 + function doIt() { 1.21 + $("#adiv").text("click!"); 1.22 + $("#adiv").trigger("acustom.atype"); 1.23 + } 1.24 + 1.25 + function showMouse(e) { 1.26 + $("#adiv").text("( " + e.pageX + ", " + e.pageY + " )"); 1.27 + } 1.28 + 1.29 + $(function () { 1.30 + $("#doit").bind('click.mine', doIt); 1.31 + $("#container").mousemove(showMouse); 1.32 + $("#adiv").bind("acustom.atype", function () { 1.33 + //console.log("custom"); 1.34 + }); 1.35 + }); 1.36 + 1.37 +</script> 1.38 + </head> 1.39 + 1.40 + <body> 1.41 + <button id="doit">Do It</button> 1.42 + 1.43 + <div id="container"> 1.44 + Hi 1.45 + </div> 1.46 + 1.47 + <div id="adiv"> 1.48 + </div> 1.49 + </body> 1.50 +</html> 1.51 +