From: Pawel Andruszkiewicz
Date: Fri, 1 Apr 2016 14:28:31 +0000 (+0200)
Subject: [test] Disabled not support unit test (Media).
X-Git-Tag: submit/tizen/20160404.045623^2~5
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e148048e23a034d26bdb0082e273b4856e945fd4;p=platform%2Fcore%2Fapi%2Fcordova-plugins.git
[test] Disabled not support unit test (Media).
Change-Id: I230d3220abd2be66b16ce6abbbc40d5c59bd0062
Signed-off-by: Pawel Andruszkiewicz
---
diff --git a/test/unittest/tests/media.tests.js b/test/unittest/tests/media.tests.js
index 9af98de..2051014 100644
--- a/test/unittest/tests/media.tests.js
+++ b/test/unittest/tests/media.tests.js
@@ -332,38 +332,38 @@ exports.defineAutoTests = function () {
media1.release();
});
- it("media.spec.19 playback rate should be set properly using setRate", function (done) {
- if (cordova.platformId !== 'ios') {
- expect(true).toFailWithMessage('Platform does not supported this feature');
- pending();
- return;
- }
- var mediaFile = 'http://cordova.apache.org/downloads/BlueZedEx.mp3',
- mediaState = Media.MEDIA_STOPPED,
- successCallback,
- flag = true,
- statusChange = function (statusCode) {
- if (statusCode == Media.MEDIA_RUNNING && flag) {
- //flag variable used to ensure an extra security statement to ensure that the callback is processed only once,
- //in case for some reason the statusChange callback is reached more than one time with the same status code.
- //Some information about this kind of behavior it can be found at JIRA: CB-7099
- flag = false;
- setTimeout(function () {
- media1.getCurrentPosition(function (position) {
- //in four seconds expect position to be two times greater with some degree (1 sec) of accuracy
- expect(position).toBeGreaterThan(7);
- media1.stop();
- media1.release();
- done();
- }, failed.bind(null, done, 'media1.getCurrentPosition - Error getting media current position'));
- }, 4000);
- }
- },
- media1 = new Media(mediaFile, successCallback, failed.bind(null, done, 'media1 = new Media - Error creating Media object. Media file: ' + mediaFile), statusChange);
- //make audio playback two times faster
- media1.setRate(2);
- media1.play();
- }, ACTUAL_PLAYBACK_TEST_TIMEOUT);
+// it("media.spec.19 playback rate should be set properly using setRate", function (done) {
+// if (cordova.platformId !== 'ios') {
+// expect(true).toFailWithMessage('Platform does not supported this feature');
+// pending();
+// return;
+// }
+// var mediaFile = 'http://cordova.apache.org/downloads/BlueZedEx.mp3',
+// mediaState = Media.MEDIA_STOPPED,
+// successCallback,
+// flag = true,
+// statusChange = function (statusCode) {
+// if (statusCode == Media.MEDIA_RUNNING && flag) {
+// //flag variable used to ensure an extra security statement to ensure that the callback is processed only once,
+// //in case for some reason the statusChange callback is reached more than one time with the same status code.
+// //Some information about this kind of behavior it can be found at JIRA: CB-7099
+// flag = false;
+// setTimeout(function () {
+// media1.getCurrentPosition(function (position) {
+// //in four seconds expect position to be two times greater with some degree (1 sec) of accuracy
+// expect(position).toBeGreaterThan(7);
+// media1.stop();
+// media1.release();
+// done();
+// }, failed.bind(null, done, 'media1.getCurrentPosition - Error getting media current position'));
+// }, 4000);
+// }
+// },
+// media1 = new Media(mediaFile, successCallback, failed.bind(null, done, 'media1 = new Media - Error creating Media object. Media file: ' + mediaFile), statusChange);
+// //make audio playback two times faster
+// media1.setRate(2);
+// media1.play();
+// }, ACTUAL_PLAYBACK_TEST_TIMEOUT);
});
};