File tree Expand file tree Collapse file tree 5 files changed +26
-8
lines changed Expand file tree Collapse file tree 5 files changed +26
-8
lines changed Original file line number Diff line number Diff line change
1
+ lib /jquery /**
2
+ lib /qunit /**
3
+ lib /require /**
1
4
node_modules /**
2
5
vendor /**
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ It contains various JavaScript related to the DataValues library.
7
7
8
8
## Release notes
9
9
10
- ### 1.0.0 (dev)
11
- * Removed ` globeCoordinate.Formatter ` .
12
- * Removed the ` globeCoordinate ` utility class.
10
+ ### 0.10.0 (2017-10-06)
13
11
* The library is now a pure JavaScript library.
14
12
* Removed MediaWiki ResourceLoader module definitions.
13
+ * Removed ` globeCoordinate.Formatter ` .
14
+ * Removed the ` globeCoordinate ` utility class.
15
15
16
16
### 0.9.0 (2017-09-06)
17
17
* Removed ` valueFormatters.ValueFormatterStore ` .
Original file line number Diff line number Diff line change 5
5
" datavalues" ,
6
6
" wikidata"
7
7
],
8
+ "version" : " 0.10.0" ,
8
9
"repository" : {
9
10
"type" : " git" ,
10
11
"url" : " https://github.com/wmde/DataValuesJavaScript"
Original file line number Diff line number Diff line change 88
88
*/
89
89
testFormat : function ( assert ) {
90
90
var formatArguments = this . getFormatArguments ( ) ,
91
- formatter = this . getInstance ( ) ;
91
+ formatter = this . getInstance ( ) ,
92
+ requests = [ ] ;
93
+
94
+ // Prevent continuing with subsequent tests until all formatter procedures have
95
+ // finished:
96
+ var done = assert . async ( ) ;
92
97
93
98
$ . each ( formatArguments , function ( i , args ) {
94
99
var formatInput = args [ 0 ] ,
144
149
'Formatting ' + inputDetailMsg + 'failed: ' + errorMessage
145
150
) ;
146
151
} ) ;
147
-
148
- done ( ) ;
152
+ requests . push ( request ) ;
149
153
} ) ;
154
+
155
+ // Only continue with next test after all formatter procedures are finished:
156
+ $ . when . apply ( null , requests ) . always ( done ) ;
150
157
}
151
158
152
159
} ;
Original file line number Diff line number Diff line change 95
95
*/
96
96
testParse : function ( assert ) {
97
97
var parseArguments = this . getParseArguments ( ) ,
98
- parser = this . getInstance ( ) ;
98
+ parser = this . getInstance ( ) ,
99
+ requests = [ ] ;
100
+
101
+ // prevent from going to next test until all parser requests are handled
102
+ var done = assert . async ( ) ;
99
103
100
104
$ . each ( parseArguments , function ( i , args ) {
101
105
var parseInput = args [ 0 ] ,
126
130
assert . ok ( false , 'parsing ' + inputDetailMsg + 'failed: ' + errorMessage ) ;
127
131
} ) ;
128
132
129
- done ( ) ;
133
+ requests . push ( request ) ;
130
134
} ) ;
135
+
136
+ // only start next test after all parser requests are handled
137
+ $ . when . apply ( null , requests ) . always ( done ) ;
131
138
}
132
139
133
140
} ;
You can’t perform that action at this time.
0 commit comments