Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1C8AA200B38 for ; Thu, 23 Jun 2016 09:06:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1B579160A58; Thu, 23 Jun 2016 07:06:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6B339160A59 for ; Thu, 23 Jun 2016 09:06:29 +0200 (CEST) Received: (qmail 90174 invoked by uid 500); 23 Jun 2016 07:06:28 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 90157 invoked by uid 99); 23 Jun 2016 07:06:28 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 07:06:28 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 75EA3E943A; Thu, 23 Jun 2016 07:06:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: an-selm@apache.org To: commits@cordova.apache.org Date: Thu, 23 Jun 2016 07:06:29 -0000 Message-Id: In-Reply-To: <2f516769400c45a996d3e1cbc9f04c91@git.apache.org> References: <2f516769400c45a996d3e1cbc9f04c91@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] cordova-plugin-media git commit: Update spec.24 expectations to be more descriptive archived-at: Thu, 23 Jun 2016 07:06:30 -0000 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 Authored: Wed Jun 22 17:35:49 2016 +0300 Committer: Vladimir Kotikov 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