Debian Codegraph @

test/qunit/basics.js

raw symbols SCIP
1 QUnit.test( "create", function( assert ) {
2 $('#map').geomap();
3
4 assert.equal( $( '.geo-service' ).length, 1, "map created successfully!" );
5
6 });
7
8 QUnit.test( "destroy", function( assert ) {
9 var map = $('#map').geomap();
10
11 map.geomap( 'destroy' );
12
13 assert.equal( $( '.geo-service' ).length, 0, "map gone!" );
14
15 assert.equal( $( 'div', $( "#qunit-fixture" ) ).length, 1, 'everything gone!' );
16 });
17