Files
openlayers/master/examples/Tooltip_mouse_quirks.html
Éric Lemoine 5d14b9e2d4 Updated
2013-02-20 10:38:25 +01:00

56 lines
1.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>doh.robot Tooltip Mouse Quirks Test</title>
<style>
@import "../../../util/doh/robot/robot.css";
</style>
<!-- required: dojo.js -->
<script type="text/javascript" src="../../../dojo/dojo.js"
djConfig="isDebug: true"></script>
<!-- functions to help test -->
<script type="text/javascript" src="../helpers.js"></script>
<script type="text/javascript">
dojo.require("dijit.robotx");
dojo.ready(function(){
doh.robot.initRobot("../quirks.html?file=test_Tooltip.html");
doh.register("dijit.Tooltip mouse quirks tests", [
// Test that BackgroundIFrame has right proportions; this used to fail in quirks mode
// because the BackgroundIFrame would overlap the calendar, blocking clicks on elements on the right.
{
name: "BackgroundIframe",
timeout: 4000,
runTest: function(){
var d = new doh.Deferred();
doh.robot.mouseMoveAt(dojo.query(".dijitArrowButton", dijit.byId("dtb").domNode)[0], 500);
doh.robot.mouseClick({left: true}, 500);
// Click Dec 4, 2010
doh.robot.mouseMoveAt(function(){
return dojo.query(".dijitCalendarDateLabel", dijit.byId("dtb_popup").domNode)[6];
} , 1000);
doh.robot.mouseClick({left: true}, 500);
doh.robot.sequence(d.getTestCallback(function(){
doh.is("12/4/2010", dijit.byId("dtb").get("displayedValue"));
}), 500);
return d;
}
}
]);
doh.run();
});
</script>
</head>
</html>