cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject [2/2] cordova-plugin-media git commit: Update spec.24 expectations to be more descriptive
Date Thu, 23 Jun 2016 07:06:29 GMT
Update spec.24 expectations to be more descriptive


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/commit/17fc9f3d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/tree/17fc9f3d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/diff/17fc9f3d

Branch: refs/heads/master
Commit: 17fc9f3dd66970f32f9f474ac00de93b5b060aa1
Parents: cd185ea
Author: Vladimir Kotikov <kotikov.vladimir@gmail.com>
Authored: Wed Jun 22 17:35:49 2016 +0300
Committer: Vladimir Kotikov <kotikov.vladimir@gmail.com>
Committed: Thu Jun 23 10:05:16 2016 +0300

----------------------------------------------------------------------
 tests/tests.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/17fc9f3d/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 0533483..cbf0dcc 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -396,7 +396,8 @@ exports.defineAutoTests = function () {
                             media1.getCurrentPosition(function (position) {
                                 //in four seconds expect position to be between 4 & 10.
Here, the values are chosen to give
                                 //a large enough buffer range for the position to fall in
and are not based on any calculation.
-                                expect(position >= 4 && position < 10).toBeTruthy();
+                                expect(position).not.toBeLessThan(4);
+                                expect(position).toBeLessThan(10);
                                 media1.stop();
                                 media1.release();
                                 done();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message