diff options
| author | Tim Graham <timograham@gmail.com> | 2016-12-19 12:43:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-19 12:43:47 -0500 |
| commit | 620dcdde6e0e423a9343c63c7bc36d9e4301a2d8 (patch) | |
| tree | 999b2d8c46216a45c074f9b889f916f2fd3b8794 /js_tests/gis/mapwidget.test.js | |
| parent | a85e84212e0c0aa05a7c7ddd3ca81a4228ef013e (diff) | |
Updated to QUnit 2.0.1.
Diffstat (limited to 'js_tests/gis/mapwidget.test.js')
| -rw-r--r-- | js_tests/gis/mapwidget.test.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js_tests/gis/mapwidget.test.js b/js_tests/gis/mapwidget.test.js index 716e6eca8b..9d1daaaafd 100644 --- a/js_tests/gis/mapwidget.test.js +++ b/js_tests/gis/mapwidget.test.js @@ -1,10 +1,10 @@ -/* global module, test, MapWidget */ +/* global QUnit, MapWidget */ /* eslint global-strict: 0, strict: 0 */ 'use strict'; -module('gis.OLMapWidget'); +QUnit.module('gis.OLMapWidget'); -test('MapWidget.featureAdded', function(assert) { +QUnit.test('MapWidget.featureAdded', function(assert) { var options = {id: 'id_point', map_id: 'id_point_map', geom_name: 'Point'}; var widget = new MapWidget(options); assert.equal(widget.layers.vector.features.length, 1); @@ -15,13 +15,13 @@ test('MapWidget.featureAdded', function(assert) { ); }); -test('MapWidget.map_srid', function(assert) { +QUnit.test('MapWidget.map_srid', function(assert) { var options = {id: 'id_point', map_id: 'id_point_map', geom_name: 'Point'}; var widget = new MapWidget(options); assert.equal(widget.options.map_srid, 4326, 'SRID 4326'); }); -test('MapWidget.defaultCenter', function(assert) { +QUnit.test('MapWidget.defaultCenter', function(assert) { var options = {id: 'id_point', map_id: 'id_point_map', geom_name: 'Point'}; var widget = new MapWidget(options); assert.equal(widget.defaultCenter().toString(), 'lon=0,lat=0', 'Default center at 0, 0'); @@ -35,7 +35,7 @@ test('MapWidget.defaultCenter', function(assert) { ); }); -test('MapWidget.getControls', function(assert) { +QUnit.test('MapWidget.getControls', function(assert) { var options = {id: 'id_point', map_id: 'id_point_map', geom_name: 'Point'}; var widget = new MapWidget(options); widget.getControls(widget.layers.vector); @@ -45,7 +45,7 @@ test('MapWidget.getControls', function(assert) { assert.equal(widget.controls[2].displayClass, 'olControlModifyFeature', 'Modify control'); }); -test('MapWidget.IsCollection', function(assert) { +QUnit.test('MapWidget.IsCollection', function(assert) { var options = {id: 'id_point', map_id: 'id_point_map', geom_name: 'Point'}; var widget = new MapWidget(options); assert.notOk(widget.options.is_collection); |
