I forgot to ad the unit tests file in the commit for #2320

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
pgiraud
2010-01-13 10:59:52 +00:00
parent e8d8aa7d47
commit 5c397b8d0c

View File

@@ -0,0 +1,46 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript">
function test_constructor (t) {
t.plan(1);
// set up
var control;
// tests
control = new OpenLayers.Control.PanPanel({slideFactor: 200});
t.ok(control.controls[0].slideFactor == 200 &&
control.controls[1].slideFactor == 200 &&
control.controls[2].slideFactor == 200 &&
control.controls[3].slideFactor == 200,
"ctor sets slideFactor in all Pan controls");
}
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript">
function test_constructor (t) {
t.plan(1);
// set up
var control;
// tests
control = new OpenLayers.Control.PanPanel({slideFactor: 200});
t.ok(control.controls[0].slideFactor == 200 &&
control.controls[1].slideFactor == 200 &&
control.controls[2].slideFactor == 200 &&
control.controls[3].slideFactor == 200,
"ctor sets slideFactor in all Pan controls");
}
</script>
</head>
<body>
</body>
</html>