Class: TestUtil

TestUtil()

A set of some useful static helper methods.

Constructor

new TestUtil()

Source:

Members

createMap

Creates an ol map.

Source:

createVectorLayer

Creates and returns an empty vector layer.

Source:

generatePointFeature :Object

Returns a point feature with a random position.

Type:
  • Object
Source:

mountComponent

Mounts the given component.

Source:

mountMapDiv

Creates and applies a map

element to the body.

Source:

removeMap

Removes the map.

Source:

simulatePointerEvent

Simulates a browser pointer event on the map viewport. Origin: https://github.com/openlayers/openlayers/blob/master/test/spec/ol/interaction/draw.test.js#L67

Source:

unmountMapDiv

Removes the map div element from the body.

Source: