@@ -175,7 +175,21 @@ exports.defineAutoTests = function () {
175
175
media1 . release ( ) ;
176
176
} ) ;
177
177
178
- it ( "media.spec.16 should return MediaError for bad filename" , function ( done ) {
178
+ it ( "media.spec.16 should contain a pauseRecord function" , function ( ) {
179
+ var media1 = new Media ( "dummy" ) ;
180
+ expect ( media1 . pauseRecord ) . toBeDefined ( ) ;
181
+ expect ( typeof media1 . pauseRecord ) . toBe ( 'function' ) ;
182
+ media1 . release ( ) ;
183
+ } ) ;
184
+
185
+ it ( "media.spec.17 should contain a resumeRecord function" , function ( ) {
186
+ var media1 = new Media ( "dummy" ) ;
187
+ expect ( media1 . resumeRecord ) . toBeDefined ( ) ;
188
+ expect ( typeof media1 . resumeRecord ) . toBe ( 'function' ) ;
189
+ media1 . release ( ) ;
190
+ } ) ;
191
+
192
+ it ( "media.spec.18 should return MediaError for bad filename" , function ( done ) {
179
193
//bb10 dialog pops up, preventing tests from running
180
194
if ( cordova . platformId === 'blackberry10' ) {
181
195
pending ( ) ;
@@ -210,7 +224,7 @@ exports.defineAutoTests = function () {
210
224
}
211
225
} ) ;
212
226
213
- it ( "media.spec.17 position should be set properly" , function ( done ) {
227
+ it ( "media.spec.19 position should be set properly" , function ( done ) {
214
228
// no audio hardware available
215
229
if ( ! isAudioSupported ) {
216
230
pending ( ) ;
@@ -240,7 +254,7 @@ exports.defineAutoTests = function () {
240
254
media . play ( ) ;
241
255
} , ACTUAL_PLAYBACK_TEST_TIMEOUT ) ;
242
256
243
- it ( "media.spec.18 duration should be set properly" , function ( done ) {
257
+ it ( "media.spec.20 duration should be set properly" , function ( done ) {
244
258
if ( ! isAudioSupported || cordova . platformId === 'blackberry10' ) {
245
259
pending ( ) ;
246
260
}
@@ -269,7 +283,7 @@ exports.defineAutoTests = function () {
269
283
media . play ( ) ;
270
284
} , ACTUAL_PLAYBACK_TEST_TIMEOUT ) ;
271
285
272
- it ( "media.spec.19 should be able to resume playback after pause" , function ( done ) {
286
+ it ( "media.spec.21 should be able to resume playback after pause" , function ( done ) {
273
287
if ( ! isAudioSupported || cordova . platformId === 'blackberry10' ) {
274
288
pending ( ) ;
275
289
}
@@ -312,7 +326,7 @@ exports.defineAutoTests = function () {
312
326
313
327
} , ACTUAL_PLAYBACK_TEST_TIMEOUT ) ;
314
328
315
- it ( "media.spec.20 should be able to seek through file" , function ( done ) {
329
+ it ( "media.spec.22 should be able to seek through file" , function ( done ) {
316
330
if ( ! isAudioSupported || cordova . platformId === 'blackberry10' ) {
317
331
pending ( ) ;
318
332
}
@@ -346,14 +360,14 @@ exports.defineAutoTests = function () {
346
360
} , ACTUAL_PLAYBACK_TEST_TIMEOUT ) ;
347
361
} ) ;
348
362
349
- it ( "media.spec.21 should contain a setRate function" , function ( ) {
363
+ it ( "media.spec.23 should contain a setRate function" , function ( ) {
350
364
var media1 = new Media ( "dummy" ) ;
351
365
expect ( media1 . setRate ) . toBeDefined ( ) ;
352
366
expect ( typeof media1 . setRate ) . toBe ( 'function' ) ;
353
367
media1 . release ( ) ;
354
368
} ) ;
355
369
356
- it ( "media.spec.22 playback rate should be set properly using setRate" , function ( done ) {
370
+ it ( "media.spec.24 playback rate should be set properly using setRate" , function ( done ) {
357
371
if ( cordova . platformId !== 'ios' ) {
358
372
expect ( true ) . toFailWithMessage ( 'Platform does not supported this feature' ) ;
359
373
pending ( ) ;
0 commit comments