I am working on a GIS API that uses OpenLayers. I am testing it using QUnit.

The problem is I need to simulate clicks and trigger some events to be able to test the whole code.

For example, I have a feature to draw a polygon and I want to just trigger the "featureadded" event. Is it possible to trigger OpenLayers events without actually working graphically?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.