You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/11/01 11:53:31 UTC
[49/51] [abbrv] git commit: update to use cordova-js for 2.2.0
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 <pu...@gmail.com>
Authored: Thu Nov 1 02:24:45 2012 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
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 @@
<AppxManifest Include="package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
- <Content Include="..\..\..\js\pkg\cordova.windows8.js">
- <Link>cordova.windows8.js</Link>
- </Content>
<Content Include="accelerometer\index.html" />
<Content Include="audio\index.html" />
<Content Include="autotest\html\HtmlReporter.js" />
@@ -98,6 +95,7 @@
<Content Include="camera\index.html" />
<Content Include="compass\index.html" />
<Content Include="contacts\index.html" />
+ <Content Include="cordova-2.2.0.js" />
<Content Include="cordova.js" />
<Content Include="default.html" />
<Content Include="default.js" />
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);
})