Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 38524D9F9 for ; Thu, 1 Nov 2012 10:53:34 +0000 (UTC) Received: (qmail 27040 invoked by uid 500); 1 Nov 2012 10:53:33 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 26956 invoked by uid 500); 1 Nov 2012 10:53:33 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 26388 invoked by uid 500); 1 Nov 2012 10:53:31 -0000 Delivered-To: apmail-incubator-callback-commits@incubator.apache.org Received: (qmail 26321 invoked by uid 99); 1 Nov 2012 10:53:31 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2012 10:53:31 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 3E28251709; Thu, 1 Nov 2012 10:53:31 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: purplecabbage@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [49/51] [abbrv] git commit: update to use cordova-js for 2.2.0 Message-Id: <20121101105331.3E28251709@tyr.zones.apache.org> Date: Thu, 1 Nov 2012 10:53:31 +0000 (UTC) update to use cordova-js for 2.2.0 Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/commit/bf3f632a Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/tree/bf3f632a Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/diff/bf3f632a Branch: refs/heads/master Commit: bf3f632af0ddd2482fadbb9becae11554968da05 Parents: 6df58bc Author: Jesse MacFadyen Authored: Thu Nov 1 02:24:45 2012 -0700 Committer: Jesse MacFadyen Committed: Thu Nov 1 02:24:45 2012 -0700 ---------------------------------------------------------------------- windows8/MetroTestApp/MetroTestApp.jsproj | 4 +- .../MetroTestApp/autotest/tests/capture.tests.js | 6 +- windows8/MetroTestApp/cordova-2.2.0.js | 7704 +++++++++++++++ windows8/MetroTestApp/cordova.js | 2 +- 4 files changed, 7709 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/bf3f632a/windows8/MetroTestApp/MetroTestApp.jsproj ---------------------------------------------------------------------- diff --git a/windows8/MetroTestApp/MetroTestApp.jsproj b/windows8/MetroTestApp/MetroTestApp.jsproj index 892b452..93e9dee 100644 --- a/windows8/MetroTestApp/MetroTestApp.jsproj +++ b/windows8/MetroTestApp/MetroTestApp.jsproj @@ -50,9 +50,6 @@ Designer - - cordova.windows8.js - @@ -98,6 +95,7 @@ + http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/bf3f632a/windows8/MetroTestApp/autotest/tests/capture.tests.js ---------------------------------------------------------------------- diff --git a/windows8/MetroTestApp/autotest/tests/capture.tests.js b/windows8/MetroTestApp/autotest/tests/capture.tests.js index 43dde88..d68e2ab 100644 --- a/windows8/MetroTestApp/autotest/tests/capture.tests.js +++ b/windows8/MetroTestApp/autotest/tests/capture.tests.js @@ -96,7 +96,7 @@ describe('Capture (navigator.device.capture)', function () { describe('Test captureAudio function', function () { it("should capture a audio when the function invoked (w/ duration).", function () { var captureSuccess = jasmine.createSpy().andCallFake(function (mediaFiles) { - expect(mediaFiles.fullPath.substr(0, 3)).toBe("C:\\"); + expect(mediaFiles[0].fullPath.substr(0, 3)).toBe("C:\\"); // TODO: Check the recording result by yourself. //console.log(mediaFiles.fullPath); }) @@ -119,7 +119,7 @@ describe('Capture (navigator.device.capture)', function () { describe('Test captureVideo function', function () { it("should capture a video when the function invoked (w/ duration).", function () { var captureSuccess = jasmine.createSpy().andCallFake(function (mediaFiles) { - expect(mediaFiles.fullPath.substr(0, 3)).toBe("C:\\"); + expect(mediaFiles[0].fullPath.substr(0, 3)).toBe("C:\\"); // TODO: Check the video by yourself. //console.log(mediaFiles.fullPath); }) @@ -142,7 +142,7 @@ describe('Capture (navigator.device.capture)', function () { describe('Test captureImage function', function () { it("should capture a image when the function invoked.", function () { var captureSuccess = jasmine.createSpy().andCallFake(function (mediaFiles) { - expect(mediaFiles.fullPath.substr(0, 3)).toBe("C:\\"); + expect(mediaFiles[0].fullPath.substr(0, 3)).toBe("C:\\"); // TODO: Check the video by yourself. //console.log(mediaFiles.fullPath); })