For PanZoomBar, this fixes the slider behavior. Now the buttonclick listener argument also includes a buttonXY property, and PanZoomPanel does not need an Events instance for the zoombarDiv any more.
For Panel, this fixes events for panels outside the map. Just setting the element on the Events instance was no longer enough after e70569b2bb. Events::attachToElement is now used, and it needed to be modified to also work if the Events instance had no element previously.
Finally, I renamed the button property of the buttonclick listener argument to buttonElement, to not confuse it with the browser event button property, and added some more tests and documentation.
This directory contains unit tests for the OpenLayers library.
Tests use the Test.AnotherWay library from <http://openjsan.org>. The test
runner is 'run-tests.html' and new test files need to be added to
'list-tests.html'.
The following file naming conventions are used:
* A filename that starts with `test_` and has an `.html` extension
contains tests. These should contain tests for a specific class.
* A filename starting with `page_` and has an `.html` extension is a
supporting HTML file used in one or more tests.
* A filename starting with 'data_` is a supporting data file used in one
or more tests.