File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ install:
3
3
npm install
4
4
vendors :
5
5
grunt
6
- test :
6
+ testfx :
7
7
firefox test/index.html
8
+ test : node_modules
9
+ @./node_modules/mocha-phantomjs/bin/mocha-phantomjs --view 1024x768 test/index.html
8
10
i18n :
9
11
node node_modules/leaflet-i18n/bin/i18n.js --dir_path=src/js/ --dir_path=reqs/measurable/ --locale_dir_path=src/locale/ --locale_codes=en --mode=json --clean --default_values
10
12
tx_push :
Original file line number Diff line number Diff line change 11
11
"grunt-contrib-concat" : " ^0.4.0" ,
12
12
"grunt-contrib-copy" : " ^0.5.0" ,
13
13
"happen" : " ~0.1.3" ,
14
- "mocha" : " ~1.12.0" ,
14
+ "mocha" : " ^2.3.3" ,
15
+ "mocha-phantomjs" : " ^4.0.1" ,
15
16
"optimist" : " ~0.4.0" ,
17
+ "phantomjs" : " ^1.9.18" ,
16
18
"sinon" : " ^1.10.3" ,
17
19
"uglify-js" : " ~2.2.3"
18
20
},
Original file line number Diff line number Diff line change 32
32
< script src ="../src/js/leaflet.storage.js "> </ script >
33
33
< script src ="../contrib/js/storage.ui.default.js "> </ script >
34
34
< link rel ="stylesheet " href ="../reqs/leaflet/leaflet.css " />
35
- < link rel ="stylesheet " href ="../reqs/draw/leaflet.draw.css " />
36
35
< link rel ="stylesheet " href ="../reqs/minimap/Control.MiniMap.css " />
37
36
< link rel ="stylesheet " href ="../reqs/editinosm/Leaflet.EditInOSM.css " />
38
37
< link rel ="stylesheet " href ="../reqs/markercluster/MarkerCluster.css " />
93
92
< div id ="storage-alert-container "> </ div >
94
93
< div id ="storage-tooltip-container "> </ div >
95
94
< script >
96
- var runner = mocha . run ( function ( failures ) {
95
+ var runner = ( window . mochaPhantomJS || window . mocha ) . run ( function ( failures ) {
97
96
if ( window . location . search . indexOf ( 'debug' ) === - 1 ) qs ( '#mocha' ) . style . display = 'block' ;
98
97
console . log ( failures ) ;
99
98
} ) ;
You can’t perform that action at this time.
0 commit comments