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/10/18 01:27:01 UTC
[25/50] [abbrv] be movin tings rond yo
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/autotest/tests/filetransfer.tests.js
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/autotest/tests/filetransfer.tests.js b/test/MetroTestApp/autotest/tests/filetransfer.tests.js
deleted file mode 100644
index 0779116..0000000
--- a/test/MetroTestApp/autotest/tests/filetransfer.tests.js
+++ /dev/null
@@ -1,407 +0,0 @@
-describe('FileTransfer', function() {
-
- // https://github.com/don/cordova-filetransfer
- var server = "http://cordova-filetransfer.jitsu.com";
-
- // deletes and re-creates the specified content
- var writeFile = function(fileName, fileContent, success, error) {
- var content = fileContent;
- deleteEntry(fileName, function() {
- root.getFile(fileName, {create: true}, function(fileEntry) {
- fileEntry.createWriter(function (writer) {
-
- writer.onwrite = function(evt) {
- success(fileEntry);
- };
-
- writer.onabort = function(evt) {
- error(evt);
- };
-
- writer.error = function(evt) {
- error(evt);
- };
-
- writer.write(content + "\n");
- }, error);
- }, error);
- }, error);
- };
-
- var getMalformedUrl = function() {
- if (device.platform.match(/Android/i)) {
- // bad protocol causes a MalformedUrlException on Android
- return "httpssss://example.com";
- } else {
- // iOS doesn't care about protocol, space in hostname causes error
- return "httpssss://exa mple.com";
- }
- };
-
- // NOTE: copied from file.tests.js
- // deletes specified file or directory
- var deleteEntry = function(name, success, error) {
- // deletes entry, if it exists
- window.resolveLocalFileSystemURI(root.toURL() + '/' + name,
- function(entry) {
- if (entry.isDirectory === true) {
- entry.removeRecursively(success, error);
- } else {
- entry.remove(success, error);
- }
- }, success);
- };
- // deletes and re-creates the specified file
- var createFile = function(fileName, success, error) {
- deleteEntry(fileName, function() {
- root.getFile(fileName, {create: true}, success, error);
- }, error);
- };
- // deletes file, if it exists, then invokes callback
- var deleteFile = function(fileName, callback) {
- root.getFile(fileName, null,
- // remove file system entry
- function(entry) {
- entry.remove(callback, function() { console.log('[ERROR] deleteFile cleanup method invoked fail callback.'); });
- },
- // doesn't exist
- callback);
- };
- // end copied from file.tests.js
-
- it("should exist and be constructable", function() {
- var ft = new FileTransfer();
- expect(ft).toBeDefined();
- });
- it("should contain proper functions", function() {
- var ft = new FileTransfer();
- expect(typeof ft.upload).toBe('function');
- expect(typeof ft.download).toBe('function');
- });
- describe('FileTransferError', function() {
- it("FileTransferError constants should be defined", function() {
- expect(FileTransferError.FILE_NOT_FOUND_ERR).toBe(1);
- expect(FileTransferError.INVALID_URL_ERR).toBe(2);
- expect(FileTransferError.CONNECTION_ERR).toBe(3);
- });
- });
-
- describe('download method', function() {
-
- // NOTE: if download tests are failing, check the white list
- // Android
- // <access origin="httpssss://example.com"/>
- // <access origin="apache.org" subdomains="true" />
- // <access origin="cordova-filetransfer.jitsu.com"/>
- // iOS
- // # Cordova.plist
- // ExternalHosts
- // - Item 1 String cordova-filetransfer.jitsu.com
- // - Item 2 String *.apache.org
-
- it("should be able to download a file", function() {
- var fail = jasmine.createSpy();
- var remoteFile = server + "/robots.txt"
- var localFileName = remoteFile.substring(remoteFile.lastIndexOf('/')+1);
- var downloadWin = jasmine.createSpy().andCallFake(function(entry) {
- expect(entry.name).toBe(localFileName);
- deleteFile(localFileName);
- });
-
- runs(function() {
- var ft = new FileTransfer();
- ft.download(remoteFile, root.fullPath + "/" + localFileName, downloadWin, fail);
- });
-
- waitsFor(function() { return downloadWin.wasCalled; }, "downloadWin", Tests.TEST_TIMEOUT);
-
- runs(function() {
- expect(downloadWin).toHaveBeenCalled();
- expect(fail).not.toHaveBeenCalled();
- });
- });
- it("should get http status on failure", function() {
- var downloadWin = jasmine.createSpy();
-
- var remoteFile = server + "/404";
- var localFileName = remoteFile.substring(remoteFile.lastIndexOf('/')+1);
- var downloadFail = jasmine.createSpy().andCallFake(function(error) {
- expect(error.http_status).toBe(404);
- expect(error.http_status).not.toBe(401, "Ensure " + remoteFile + " is in the white list");
- deleteFile(localFileName);
- });
-
- runs(function() {
- var ft = new FileTransfer();
- ft.download(remoteFile, root.fullPath + "/" + localFileName, downloadWin, downloadFail);
- });
-
- waitsFor(function() { return downloadFail.wasCalled; }, "downloadFail", Tests.TEST_TIMEOUT);
-
- runs(function() {
- expect(downloadFail).toHaveBeenCalled();
- expect(downloadWin).not.toHaveBeenCalled();
- });
- });
- it("should handle malformed urls", function() {
-
- var downloadWin = jasmine.createSpy();
-
- var remoteFile = getMalformedUrl();
- var localFileName = "download_malformed_url.txt";
- var downloadFail = jasmine.createSpy().andCallFake(function(error) {
-
- // Note: Android needs the bad protocol to be added to the access list
- // <access origin=".*"/> won't match because ^https?:// is prepended to the regex
- // The bad protocol must begin with http to avoid automatic prefix
- expect(error.http_status).not.toBe(401, "Ensure " + remoteFile + " is in the white list");
- expect(error.code).toBe(FileTransferError.INVALID_URL_ERR);
- deleteFile(localFileName);
- });
-
- runs(function() {
- var ft = new FileTransfer();
- ft.download(remoteFile, root.fullPath + "/" + localFileName, downloadWin, downloadFail);
- });
-
- waitsFor(function() { return downloadFail.wasCalled; }, "downloadFail", Tests.TEST_TIMEOUT);
-
- runs(function() {
- expect(downloadFail).toHaveBeenCalled();
- expect(downloadWin).not.toHaveBeenCalled();
- });
- });
- it("should handle unknown host", function() {
- var downloadWin = jasmine.createSpy();
-
- var remoteFile = "http://foobar.apache.org/index.html";
- var localFileName = remoteFile.substring(remoteFile.lastIndexOf('/')+1);
- var downloadFail = jasmine.createSpy().andCallFake(function(error) {
- expect(error.code).toBe(FileTransferError.CONNECTION_ERR);
- });
-
- runs(function() {
- var ft = new FileTransfer();
- ft.download(remoteFile, root.fullPath + "/" + localFileName, downloadWin, downloadFail);
- });
-
- waitsFor(function() { return downloadFail.wasCalled; }, "downloadFail", Tests.TEST_TIMEOUT);
-
- runs(function() {
- expect(downloadFail).toHaveBeenCalled();
- expect(downloadWin).not.toHaveBeenCalled();
- });
- });
- it("should handle bad file path", function() {
- var fail = jasmine.createSpy();
- var downloadWin = jasmine.createSpy();
-
- var remoteFile = server;
- var badFilePath = "c:\\54321";
- var downloadFail = jasmine.createSpy().andCallFake(function(error) {
- expect(error.code).toBe(FileTransferError.FILE_NOT_FOUND_ERR);
- });
-
- runs(function() {
- var ft = new FileTransfer();
- ft.download(remoteFile, badFilePath, downloadWin, downloadFail);
- });
-
- waitsFor(function() { return downloadFail.wasCalled; }, "downloadFail", Tests.TEST_TIMEOUT);
-
- runs(function() {
- expect(downloadFail).toHaveBeenCalled();
- expect(downloadWin).not.toHaveBeenCalled();
- expect(fail).not.toHaveBeenCalled();
- });
- });
- });
- describe('upload method', function() {
-
- it("should be able to upload a file", function() {
- var fail = jasmine.createSpy();
- var uploadFail = jasmine.createSpy();
-
- var remoteFile = server + "/upload";
- var localFileName = "upload.txt";
-
- var uploadWin = jasmine.createSpy().andCallFake(function(uploadResult) {
- expect(uploadResult.bytesSent).toBeGreaterThan(0);
- expect(uploadResult.responseCode).toBe(200);
- expect(uploadResult.response).toBeDefined();
- deleteEntry(localFileName);
- });
-
- var fileWin = function(fileEntry) {
- ft = new FileTransfer();
-
- var options = new FileUploadOptions();
- options.fileKey = "file";
- options.fileName = localFileName;
- options.mimeType = "text/plain";
-
- var params = new Object();
- params.value1 = "test";
- params.value2 = "param";
- options.params = params;
-
- // removing options cause Android to timeout
- ft.upload(fileEntry.fullPath, remoteFile, uploadWin, uploadFail, options);
- };
-
- runs(function() {
- writeFile(localFileName, "this file should upload", fileWin, fail);
- });
-
- waitsFor(function() { return uploadWin.wasCalled; }, "uploadWin", Tests.TEST_TIMEOUT);
-
- runs(function() {
- expect(uploadWin).toHaveBeenCalled();
- expect(uploadFail).not.toHaveBeenCalled();
- expect(fail).not.toHaveBeenCalled();
- });
- });
- it("should get http status on failure", function() {
- var fail = jasmine.createSpy();
- var uploadWin = jasmine.createSpy();
-
- var remoteFile = server + "/403";
- var localFileName = "upload_expect_fail.txt";
- var uploadFail = jasmine.createSpy().andCallFake(function(error) {
- expect(error.http_status).toBe(403);
- expect(error.http_status).not.toBe(401, "Ensure " + remoteFile + " is in the white list");
- deleteEntry(localFileName);
- });
-
- var fileWin = function(fileEntry) {
- var ft = new FileTransfer();
-
- var options = new FileUploadOptions();
- options.fileKey="file";
- options.fileName=fileEntry.name;
- options.mimeType="text/plain";
-
- ft.upload(fileEntry.fullPath, remoteFile, uploadWin, uploadFail, options);
- };
-
- runs(function() {
- writeFile(localFileName, "this file should fail to upload", fileWin, fail);
- });
-
- waitsFor(function() { return uploadFail.wasCalled; }, "Expecting file upload to fail", Tests.TEST_TIMEOUT);
-
- runs(function() {
- expect(uploadFail).toHaveBeenCalled();
- expect(uploadWin).not.toHaveBeenCalled();
- expect(fail).not.toHaveBeenCalled();
- });
- });
- it("should handle malformed urls", function() {
- var fail = jasmine.createSpy();
- var uploadWin = jasmine.createSpy();
-
- var remoteFile = getMalformedUrl();
- var localFileName = "malformed_url.txt";
- var uploadFail = jasmine.createSpy().andCallFake(function(error) {
- expect(error.code).toBe(FileTransferError.INVALID_URL_ERR);
- expect(error.http_status).not.toBe(401, "Ensure " + remoteFile + " is in the white list");
- deleteFile(localFileName);
- });
- var fileWin = function(fileEntry) {
- var ft = new FileTransfer();
- ft.upload(fileEntry.fullPath, remoteFile, uploadWin, uploadFail, {});
- };
-
- runs(function() {
- writeFile(localFileName, "Some content", fileWin, fail);
- });
-
- waitsFor(function() { return uploadFail.wasCalled; }, "uploadFail", Tests.TEST_TIMEOUT);
-
- runs(function() {
- expect(uploadFail).toHaveBeenCalled();
- expect(uploadWin).not.toHaveBeenCalled();
- expect(fail).not.toHaveBeenCalled();
- });
- });
- it("should handle unknown host", function() {
- var fail = jasmine.createSpy();
- var uploadWin = jasmine.createSpy();
-
- var remoteFile = "http://foobar.apache.org/robots.txt";
- var localFileName = remoteFile.substring(remoteFile.lastIndexOf('/')+1);
- var uploadFail = jasmine.createSpy().andCallFake(function(error) {
- expect(error.code).toBe(FileTransferError.CONNECTION_ERR);
- expect(error.http_status).not.toBe(401, "Ensure " + remoteFile + " is in the white list");
- deleteFile(localFileName);
- });
- var fileWin = function(fileEntry) {
- var ft = new FileTransfer();
- ft.upload(fileEntry.fullPath, remoteFile, uploadWin, uploadFail, {});
- };
-
- runs(function() {
- writeFile(localFileName, "# allow all", fileWin, fail);
- });
-
- waitsFor(function() { return uploadFail.wasCalled; }, "uploadFail", Tests.TEST_TIMEOUT);
-
- runs(function() {
- expect(uploadFail).toHaveBeenCalled();
- expect(uploadWin).not.toHaveBeenCalled();
- expect(fail).not.toHaveBeenCalled();
- });
- });
- it("should handle missing file", function() {
- var fail = jasmine.createSpy();
- var uploadWin = jasmine.createSpy();
-
- var remoteFile = server + "/upload";
- var localFileName = "does_not_exist.txt";
-
- var uploadFail = jasmine.createSpy().andCallFake(function(error) {
- expect(error.code).toBe(FileTransferError.FILE_NOT_FOUND_ERR);
- expect(error.http_status).not.toBe(401, "Ensure " + remoteFile + " is in the white list");
- });
-
- runs(function() {
- deleteFile(localFileName, function() {
- var ft = new FileTransfer();
- ft.upload(root.fullPath + "/" + localFileName, remoteFile, uploadWin, uploadFail);
- }, fail);
- });
-
- waitsFor(function() { return uploadFail.wasCalled; }, "uploadFail", Tests.TEST_TIMEOUT);
-
- runs(function() {
- expect(uploadFail).toHaveBeenCalled();
- expect(uploadWin).not.toHaveBeenCalled();
- expect(fail).not.toHaveBeenCalled();
- });
- });
- it("should handle bad file path", function() {
- var uploadWin = jasmine.createSpy();
-
- var remoteFile = server + "/upload";
-
- var uploadFail = jasmine.createSpy().andCallFake(function(error) {
- expect(error.code).toBe(FileTransferError.FILE_NOT_FOUND_ERR);
- expect(error.http_status).not.toBe(401, "Ensure " + remoteFile + " is in the white list");
- });
-
- runs(function() {
- var ft = new FileTransfer();
- ft.upload("/usr/local/bad/file/path.txt", remoteFile, uploadWin, uploadFail);
- });
-
- waitsFor(function() { return uploadFail.wasCalled; }, "uploadFail", Tests.TEST_TIMEOUT);
-
- runs(function() {
- expect(uploadFail).toHaveBeenCalled();
- expect(uploadWin).not.toHaveBeenCalled();
- });
-
- });
-
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/autotest/tests/geolocation.tests.js
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/autotest/tests/geolocation.tests.js b/test/MetroTestApp/autotest/tests/geolocation.tests.js
deleted file mode 100644
index 685a7d6..0000000
--- a/test/MetroTestApp/autotest/tests/geolocation.tests.js
+++ /dev/null
@@ -1,142 +0,0 @@
-describe('Geolocation (navigator.geolocation)', function () {
- it("should exist", function() {
- expect(navigator.geolocation).toBeDefined();
- });
-
- it("should contain a getCurrentPosition function", function() {
- expect(typeof navigator.geolocation.getCurrentPosition).toBeDefined();
- expect(typeof navigator.geolocation.getCurrentPosition == 'function').toBe(true);
- });
-
- it("should contain a watchPosition function", function() {
- expect(typeof navigator.geolocation.watchPosition).toBeDefined();
- expect(typeof navigator.geolocation.watchPosition == 'function').toBe(true);
- });
-
- it("should contain a clearWatch function", function() {
- expect(typeof navigator.geolocation.clearWatch).toBeDefined();
- expect(typeof navigator.geolocation.clearWatch == 'function').toBe(true);
- });
-
- describe('getCurrentPosition method', function() {
- describe('error callback', function() {
- it("should be called if we set timeout to 0 and maximumAge to a very small number", function() {
- console.log("Here I am");
- var win = jasmine.createSpy(),
- fail = jasmine.createSpy();
-
- runs(function () {
- navigator.geolocation.getCurrentPosition(win, fail, {
- maximumAge: 0,
- timeout: 0
- });
- });
-
- waitsFor(function () { return fail.wasCalled; }, "fail never called", 250); //small timeout as this should fire very fast
-
- runs(function () {
- expect(win).not.toHaveBeenCalled();
- });
- });
- });
-
- describe('success callback', function() {
- it("should be called with a Position object", function() {
- var win = jasmine.createSpy().andCallFake(function(p) {
- expect(p.coords).toBeDefined();
- expect(p.timestamp).toBeDefined();
- expect(p.timestamp instanceof Date).toBe(true);
- }),
- fail = jasmine.createSpy();
-
- runs(function () {
- navigator.geolocation.getCurrentPosition(win, fail, {
- maximumAge:300000 // 5 minutes maximum age of cached position
- });
- });
-
- waitsFor(function () { return win.wasCalled; }, "win never called", 20000);
-
- runs(function () {
- expect(fail).not.toHaveBeenCalled();
- });
- });
- });
- });
-
- describe('watchPosition method', function() {
- describe('error callback', function() {
- var errorWatch = null;
-
- afterEach(function() {
- navigator.geolocation.clearWatch(errorWatch);
- });
- it("should be called if we set timeout to 0 and maximumAge to a very small number", function() {
- var win = jasmine.createSpy(),
- fail = jasmine.createSpy();
-
- runs(function () {
- errorWatch = navigator.geolocation.watchPosition(win, fail, {
- maximumAge: 0,
- timeout: 0
- });
- });
-
- waitsFor(function () { return fail.wasCalled; }, "fail never called", 250); // small timeout as this hsould fire very quickly
-
- runs(function () {
- expect(win).not.toHaveBeenCalled();
- });
- });
- });
-
- describe('success callback', function() {
- var successWatch = null;
-
- afterEach(function() {
- navigator.geolocation.clearWatch(successWatch);
- });
- it("should be called with a Position object", function() {
- var win = jasmine.createSpy().andCallFake(function(p) {
- expect(p.coords).toBeDefined();
- expect(p.timestamp).toBeDefined();
- expect(p.timestamp instanceof Date).toBe(true);
- }),
- fail = jasmine.createSpy();
-
- runs(function () {
- successWatch = navigator.geolocation.watchPosition(win, fail, {
- maximumAge:300000 // 5 minutes maximum age of cached position
- });
- });
-
- waitsFor(function () { return win.wasCalled; }, "win never called", 20000);
-
- runs(function () {
- expect(fail).not.toHaveBeenCalled();
- });
- });
- });
- });
-
- describe("Geolocation model", function () {
- it("should be able to define a Position object with coords and timestamp properties", function() {
- var pos = new Position({}, new Date());
- expect(pos).toBeDefined();
- expect(pos.coords).toBeDefined();
- expect(pos.timestamp).toBeDefined();
- });
-
- it("should be able to define a Coordinates object with latitude, longitude, accuracy, altitude, heading, speed and altitudeAccuracy properties", function() {
- var coords = new Coordinates(1,2,3,4,5,6,7);
- expect(coords).toBeDefined();
- expect(coords.latitude).toBeDefined();
- expect(coords.longitude).toBeDefined();
- expect(coords.accuracy).toBeDefined();
- expect(coords.altitude).toBeDefined();
- expect(coords.heading).toBeDefined();
- expect(coords.speed).toBeDefined();
- expect(coords.altitudeAccuracy).toBeDefined();
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/autotest/tests/media.tests.js
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/autotest/tests/media.tests.js b/test/MetroTestApp/autotest/tests/media.tests.js
deleted file mode 100644
index d0e6c4f..0000000
--- a/test/MetroTestApp/autotest/tests/media.tests.js
+++ /dev/null
@@ -1,144 +0,0 @@
-describe('Media', function () {
- it("should exist", function() {
- expect(Media).toBeDefined();
- expect(typeof Media).toBe("function");
- });
-
- it("should have the following properties", function() {
- var media1 = new Media("dummy");
- expect(media1.id).toBeDefined();
- expect(media1.src).toBeDefined();
- expect(media1._duration).toBeDefined();
- expect(media1._position).toBeDefined();
- media1.release();
- });
-
- it("should define constants for Media errors", function() {
- expect(MediaError).toBeDefined();
- expect(MediaError.MEDIA_ERR_NONE_ACTIVE).toBe(0);
- expect(MediaError.MEDIA_ERR_ABORTED).toBe(1);
- expect(MediaError.MEDIA_ERR_NETWORK).toBe(2);
- expect(MediaError.MEDIA_ERR_DECODE).toBe(3);
- expect(MediaError.MEDIA_ERR_NONE_SUPPORTED).toBe(4);
- });
-
- it("should contain a play function", function() {
- var media1 = new Media();
- expect(media1.play).toBeDefined();
- expect(typeof media1.play).toBe('function');
- media1.release();
- });
-
- it("should contain a stop function", function() {
- var media1 = new Media();
- expect(media1.stop).toBeDefined();
- expect(typeof media1.stop).toBe('function');
- media1.release();
- });
-
- it("should contain a seekTo function", function() {
- var media1 = new Media();
- expect(media1.seekTo).toBeDefined();
- expect(typeof media1.seekTo).toBe('function');
- media1.release();
- });
-
- it("should contain a pause function", function() {
- var media1 = new Media();
- expect(media1.pause).toBeDefined();
- expect(typeof media1.pause).toBe('function');
- media1.release();
- });
-
- it("should contain a getDuration function", function() {
- var media1 = new Media();
- expect(media1.getDuration).toBeDefined();
- expect(typeof media1.getDuration).toBe('function');
- media1.release();
- });
-
- it("should contain a getCurrentPosition function", function() {
- var media1 = new Media();
- expect(media1.getCurrentPosition).toBeDefined();
- expect(typeof media1.getCurrentPosition).toBe('function');
- media1.release();
- });
-
- it("should contain a startRecord function", function() {
- var media1 = new Media();
- expect(media1.startRecord).toBeDefined();
- expect(typeof media1.startRecord).toBe('function');
- media1.release();
- });
-
- it("should contain a stopRecord function", function() {
- var media1 = new Media();
- expect(media1.stopRecord).toBeDefined();
- expect(typeof media1.stopRecord).toBe('function');
- media1.release();
- });
-
- it("should contain a release function", function() {
- var media1 = new Media();
- expect(media1.release).toBeDefined();
- expect(typeof media1.release).toBe('function');
- media1.release();
- });
-
- it("should contain a setVolume function", function() {
- var media1 = new Media();
- expect(media1.setVolume).toBeDefined();
- expect(typeof media1.setVolume).toBe('function');
- media1.release();
- });
-
- it("should return MediaError for bad filename", function() {
- var badMedia = null,
- win = jasmine.createSpy(),
- fail = jasmine.createSpy().andCallFake(function (result) {
- expect(result).toBeDefined();
- expect(result.code).toBe(MediaError.MEDIA_ERR_ABORTED);
- });
-
- runs(function () {
- badMedia = new Media("invalid.file.name", win,fail);
- badMedia.play();
- });
-
- waitsFor(function () { return fail.wasCalled; }, Tests.TEST_TIMEOUT);
-
- runs(function () {
- expect(win).not.toHaveBeenCalled();
- badMedia.release();
- });
- });
-
- it("position should be set properly", function() {
- var media1 = new Media("http://audio.ibeat.org/content/p1rj1s/p1rj1s_-_rockGuitar.mp3"),
- test = jasmine.createSpy().andCallFake(function(position) {
- console.log("position = " + position);
- expect(position).toBeGreaterThan(0.0);
- media1.stop()
- media1.release();
- });
-
- media1.play();
-
- waits(5000);
-
- runs(function () {
- media1.getCurrentPosition(test, function () {});
- });
-
- waitsFor(function () { return test.wasCalled; }, Tests.TEST_TIMEOUT);
- });
-
- it("duration should be set properly", function() {
- var media1 = new Media("http://audio.ibeat.org/content/p1rj1s/p1rj1s_-_rockGuitar.mp3");
- media1.play();
- waits(5000);
- runs(function () {
- expect(media1.getDuration()).toBeGreaterThan(0.0);
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/autotest/tests/network.tests.js
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/autotest/tests/network.tests.js b/test/MetroTestApp/autotest/tests/network.tests.js
deleted file mode 100644
index 780097f..0000000
--- a/test/MetroTestApp/autotest/tests/network.tests.js
+++ /dev/null
@@ -1,25 +0,0 @@
-describe('Network (navigator.network)', function () {
- it("should exist", function() {
- expect(navigator.network).toBeDefined();
- });
-
- describe('Network Information API', function () {
- it("connection should exist", function() {
- expect(navigator.network.connection).toBeDefined();
- });
-
- it("should contain connection properties", function() {
- expect(navigator.network.connection.type).toBeDefined();
- });
-
- it("should define constants for connection status", function() {
- expect(Connection.UNKNOWN).toBe("unknown");
- expect(Connection.ETHERNET).toBe("ethernet");
- expect(Connection.WIFI).toBe("wifi");
- expect(Connection.CELL_2G).toBe("2g");
- expect(Connection.CELL_3G).toBe("3g");
- expect(Connection.CELL_4G).toBe("4g");
- expect(Connection.NONE).toBe("none");
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/autotest/tests/notification.tests.js
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/autotest/tests/notification.tests.js b/test/MetroTestApp/autotest/tests/notification.tests.js
deleted file mode 100644
index 61c795d..0000000
--- a/test/MetroTestApp/autotest/tests/notification.tests.js
+++ /dev/null
@@ -1,20 +0,0 @@
-describe('Notification (navigator.notification)', function () {
- it("should exist", function() {
- expect(navigator.notification).toBeDefined();
- });
-
- it("should contain a vibrate function", function() {
- expect(typeof navigator.notification.vibrate).toBeDefined();
- expect(typeof navigator.notification.vibrate).toBe("function");
- });
-
- it("should contain a beep function", function() {
- expect(typeof navigator.notification.beep).toBeDefined();
- expect(typeof navigator.notification.beep).toBe("function");
- });
-
- it("should contain a alert function", function() {
- expect(typeof navigator.notification.alert).toBeDefined();
- expect(typeof navigator.notification.alert).toBe("function");
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/autotest/tests/platform.tests.js
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/autotest/tests/platform.tests.js b/test/MetroTestApp/autotest/tests/platform.tests.js
deleted file mode 100644
index cf05356..0000000
--- a/test/MetroTestApp/autotest/tests/platform.tests.js
+++ /dev/null
@@ -1,35 +0,0 @@
-describe('Platform (cordova)', function () {
- it("should exist", function() {
- expect(cordova).toBeDefined();
- });
- describe('Platform (Cordova)', function () {
- it("should exist", function() {
- expect(window.Cordova).toBeDefined();
- });
- });
- describe('Platform (PhoneGap)', function () {
- it("should exist", function() {
- expect(PhoneGap).toBeDefined();
- });
-
- it("exec method should exist", function() {
- expect(PhoneGap.exec).toBeDefined();
- expect(typeof PhoneGap.exec).toBe('function');
- });
-
- it("addPlugin method should exist", function() {
- expect(PhoneGap.addPlugin).toBeDefined();
- expect(typeof PhoneGap.addPlugin).toBe('function');
- });
-
- it("addConstructor method should exist", function() {
- expect(PhoneGap.addConstructor).toBeDefined();
- expect(typeof PhoneGap.addConstructor).toBe('function');
- });
- });
- describe('Platform (window.plugins)', function () {
- it("should exist", function() {
- expect(window.plugins).toBeDefined();
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/autotest/tests/storage.tests.js
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/autotest/tests/storage.tests.js b/test/MetroTestApp/autotest/tests/storage.tests.js
deleted file mode 100644
index a921de3..0000000
--- a/test/MetroTestApp/autotest/tests/storage.tests.js
+++ /dev/null
@@ -1,161 +0,0 @@
-describe("Session Storage", function () {
- it("should exist", function () {
- expect(window.sessionStorage).toBeDefined();
- expect(typeof window.sessionStorage.length).not.toBe('undefined');
- expect(typeof(window.sessionStorage.key)).toBe('function');
- expect(typeof(window.sessionStorage.getItem)).toBe('function');
- expect(typeof(window.sessionStorage.setItem)).toBe('function');
- expect(typeof(window.sessionStorage.removeItem)).toBe('function');
- expect(typeof(window.sessionStorage.clear)).toBe('function');
- });
-
- it("check length", function () {
- expect(window.sessionStorage.length).toBe(0);
- window.sessionStorage.setItem("key","value");
- expect(window.sessionStorage.length).toBe(1);
- window.sessionStorage.removeItem("key");
- expect(window.sessionStorage.length).toBe(0);
- });
-
- it("check key", function () {
- expect(window.sessionStorage.key(0)).toBe(null);
- window.sessionStorage.setItem("test","value");
- expect(window.sessionStorage.key(0)).toBe("test");
- window.sessionStorage.removeItem("test");
- expect(window.sessionStorage.key(0)).toBe(null);
- });
-
- it("check getItem", function() {
- expect(window.sessionStorage.getItem("item")).toBe(null);
- window.sessionStorage.setItem("item","value");
- expect(window.sessionStorage.getItem("item")).toBe("value");
- window.sessionStorage.removeItem("item");
- expect(window.sessionStorage.getItem("item")).toBe(null);
- });
-
- it("check setItem", function() {
- expect(window.sessionStorage.getItem("item")).toBe(null);
- window.sessionStorage.setItem("item","value");
- expect(window.sessionStorage.getItem("item")).toBe("value");
- window.sessionStorage.setItem("item","newval");
- expect(window.sessionStorage.getItem("item")).toBe("newval");
- window.sessionStorage.removeItem("item");
- expect(window.sessionStorage.getItem("item")).toBe(null);
- });
-
- it("can remove an item", function () {
- expect(window.sessionStorage.getItem("item")).toBe(null);
- window.sessionStorage.setItem("item","value");
- expect(window.sessionStorage.getItem("item")).toBe("value");
- window.sessionStorage.removeItem("item");
- expect(window.sessionStorage.getItem("item")).toBe(null);
- });
-
- it("check clear", function() {
- window.sessionStorage.setItem("item1","value");
- window.sessionStorage.setItem("item2","value");
- window.sessionStorage.setItem("item3","value");
- expect(window.sessionStorage.length).toBe(3);
- window.sessionStorage.clear();
- expect(window.sessionStorage.length).toBe(0);
- });
-
- it("check dot notation", function() {
- expect(window.sessionStorage.item).not.toBeDefined();
- window.sessionStorage.item = "value";
- expect(window.sessionStorage.item).toBe("value");
- window.sessionStorage.removeItem("item");
- expect(window.sessionStorage.item).not.toBeDefined();
- });
-
- describe("Local Storage", function () {
- it("should exist", function() {
- expect(window.localStorage).toBeDefined();
- expect(window.localStorage.length).toBeDefined();
- expect(typeof window.localStorage.key).toBe("function");
- expect(typeof window.localStorage.getItem).toBe("function");
- expect(typeof window.localStorage.setItem).toBe("function");
- expect(typeof window.localStorage.removeItem).toBe("function");
- expect(typeof window.localStorage.clear).toBe("function");
- });
-
- it("check length", function() {
- expect(window.localStorage.length).toBe(0);
- window.localStorage.setItem("key","value");
- expect(window.localStorage.length).toBe(1);
- window.localStorage.removeItem("key");
- expect(window.localStorage.length).toBe(0);
- });
-
- it("check key", function() {
- expect(window.localStorage.key(0)).toBe(null);
- window.localStorage.setItem("test","value");
- expect(window.localStorage.key(0)).toBe("test");
- window.localStorage.removeItem("test");
- expect(window.localStorage.key(0)).toBe(null);
- });
-
- it("check getItem", function() {
- expect(window.localStorage.getItem("item")).toBe(null);
- window.localStorage.setItem("item","value");
- expect(window.localStorage.getItem("item")).toBe("value");
- window.localStorage.removeItem("item");
- expect(window.localStorage.getItem("item")).toBe(null);
- });
-
- it("check setItem", function() {
- expect(window.localStorage.getItem("item")).toBe(null);
- window.localStorage.setItem("item","value");
- expect(window.localStorage.getItem("item")).toBe("value");
- window.localStorage.setItem("item","newval");
- expect(window.localStorage.getItem("item")).toBe("newval");
- window.localStorage.removeItem("item");
- expect(window.localStorage.getItem("item")).toBe(null);
- });
-
- it("check removeItem", function() {
- expect(window.localStorage.getItem("item")).toBe(null);
- window.localStorage.setItem("item","value");
- expect(window.localStorage.getItem("item")).toBe("value");
- window.localStorage.removeItem("item");
- expect(window.localStorage.getItem("item")).toBe(null);
- });
-
- it("check clear", function() {
- expect(window.localStorage.getItem("item1")).toBe(null);
- expect(window.localStorage.getItem("item2")).toBe(null);
- expect(window.localStorage.getItem("item3")).toBe(null);
- window.localStorage.setItem("item1","value");
- window.localStorage.setItem("item2","value");
- window.localStorage.setItem("item3","value");
- expect(window.localStorage.getItem("item1")).toBe("value");
- expect(window.localStorage.getItem("item2")).toBe("value");
- expect(window.localStorage.getItem("item3")).toBe("value");
- expect(window.localStorage.length).toBe(3);
- window.localStorage.clear();
- expect(window.localStorage.length).toBe(0);
- expect(window.localStorage.getItem("item1")).toBe(null);
- expect(window.localStorage.getItem("item2")).toBe(null);
- expect(window.localStorage.getItem("item3")).toBe(null);
- });
-
- it("check dot notation", function() {
- expect(window.localStorage.item).not.toBeDefined();
- window.localStorage.item = "value";
- expect(window.localStorage.item).toBe("value");
- window.localStorage.removeItem("item");
- expect(window.localStorage.item).not.toBeDefined();
- });
- });
-
- describe("HTML 5 Storage", function () {
- it("should exist", function() {
- expect(window.openDatabase);
- });
-
- it("Should open a database", function() {
- var db = openDatabase("Database", "1.0", "HTML5 Database API example", 200000);
- expect(db).toBeDefined();
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/battery/index.html
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/battery/index.html b/test/MetroTestApp/battery/index.html
deleted file mode 100644
index c1090fc..0000000
--- a/test/MetroTestApp/battery/index.html
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta name="viewport" content="width=device-width,height=device-height,user-scalable=no,maximum-scale=1.0,initial-scale=1.0" />
- <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- ISO-8859-1 -->
- <title>Cordova Mobile Spec</title>
- <link rel="stylesheet" href="../master.css" type="text/css" media="screen" title="no title" charset="utf-8">
- <script type="text/javascript" charset="utf-8" src="../cordova.js"></script>
- <script type="text/javascript" charset="utf-8" src="../cordova.win8metro.js"></script>
-
-
-<script type="text/javascript" charset="utf-8">
-
- var deviceReady = false;
-
- /**
- * Function called when page has finished loading.
- */
- function init() {
- document.addEventListener("deviceready", function() {
- deviceReady = true;
- console.log("Device="+device.platform+" "+device.version);
- }, false);
- window.setTimeout(function() {
- if (!deviceReady) {
- alert("Error: PhoneGap did not initialize. Demo will not run correctly.");
- }
- },1000);
- }
-
- /* Battery */
- function updateInfo(info) {
- document.getElementById('level').innerText = info.level;
- document.getElementById('isPlugged').innerText = info.isPlugged;
- if (info.level > 5) {
- document.getElementById('crit').innerText = "false";
- }
- if (info.level > 20) {
- document.getElementById('low').innerText = "false";
- }
- }
-
- function batteryLow(info) {
- document.getElementById('low').innerText = "true";
- }
-
- function batteryCritical(info) {
- document.getElementById('crit').innerText = "true";
- }
-
- function addBattery() {
- window.addEventListener("batterystatus", updateInfo, false);
- }
-
- function removeBattery() {
- window.removeEventListener("batterystatus", updateInfo, false);
- }
-
- function addLow() {
- window.addEventListener("batterylow", batteryLow, false);
- }
-
- function removeLow() {
- window.removeEventListener("batterylow", batteryLow, false);
- }
-
- function addCritical() {
- window.addEventListener("batterycritical", batteryCritical, false);
- }
-
- function removeCritical() {
- window.removeEventListener("batterycritical", batteryCritical, false);
- }
-
-</script>
-
- </head>
- <body onload="init();" id="stage" class="theme">
-
- <h1>Battery</h1>
- <div id="info">
- <b>Status:</b> <span id="battery_status"></span><br>
- Level: <span id="level"></span><br/>
- Plugged: <span id="isPlugged"></span><br/>
- Low: <span id="low"></span><br/>
- Critical: <span id="crit"></span><br/>
- </div>
- <h2>Action</h2>
- <div class="btn large" onclick="addBattery();">Add "batterystatus" listener</div>
- <div class="btn large" onclick="removeBattery();">Remove "batterystatus" listener</div>
- <div class="btn large" onclick="addLow();">Add "batterylow" listener</div>
- <div class="btn large" onclick="removeLow();">Remove "batterylow" listener</div>
- <div class="btn large" onclick="addCritical();">Add "batterycritical" listener</div>
- <div class="btn large" onclick="removeCritical();">Remove "batterycritical" listener</div>
- <h2> </h2><div class="backBtn" onclick="backHome();">Back</div>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/bld/Debug/LanguageQualifiers.txt
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/bld/Debug/LanguageQualifiers.txt b/test/MetroTestApp/bld/Debug/LanguageQualifiers.txt
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/bld/Debug/LanguageQualifiers.txt.intermediate
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/bld/Debug/LanguageQualifiers.txt.intermediate b/test/MetroTestApp/bld/Debug/LanguageQualifiers.txt.intermediate
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/bld/Debug/MetroTestApp.jsproj.FileListAbsolute.txt
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/bld/Debug/MetroTestApp.jsproj.FileListAbsolute.txt b/test/MetroTestApp/bld/Debug/MetroTestApp.jsproj.FileListAbsolute.txt
deleted file mode 100644
index ce42707..0000000
--- a/test/MetroTestApp/bld/Debug/MetroTestApp.jsproj.FileListAbsolute.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-C:\Repos\cordova\win8metro\test\MetroTestApp\bin\Debug\resources.pri
-C:\Repos\cordova\win8metro\test\MetroTestApp\bin\Debug\AppxManifest.xml
-C:\Repos\cordova\win8metro\test\MetroTestApp\bin\Debug\MetroTestApp.build.appxrecipe
-C:\Repos\cordova\win8metro\test\MetroTestApp\bld\Debug\priconfig.xml.intermediate
-C:\Repos\cordova\win8metro\test\MetroTestApp\bld\Debug\layout.resfiles.intermediate
-C:\Repos\cordova\win8metro\test\MetroTestApp\bld\Debug\resources.resfiles.intermediate
-C:\Repos\cordova\win8metro\test\MetroTestApp\bld\Debug\pri.resfiles.intermediate
-C:\Repos\cordova\win8metro\test\MetroTestApp\bld\Debug\priconfig.xml
-C:\Repos\cordova\win8metro\test\MetroTestApp\bld\Debug\layout.resfiles
-C:\Repos\cordova\win8metro\test\MetroTestApp\bld\Debug\resources.resfiles
-C:\Repos\cordova\win8metro\test\MetroTestApp\bld\Debug\pri.resfiles
-C:\Repos\cordova\win8metro\test\MetroTestApp\bld\Debug\LanguageQualifiers.txt
-C:\Repos\cordova\win8metro\test\MetroTestApp\bld\Debug\ProjectArchitectures.txt
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/bld/Debug/ProjectArchitectures.txt
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/bld/Debug/ProjectArchitectures.txt b/test/MetroTestApp/bld/Debug/ProjectArchitectures.txt
deleted file mode 100644
index 814d534..0000000
--- a/test/MetroTestApp/bld/Debug/ProjectArchitectures.txt
+++ /dev/null
@@ -1 +0,0 @@
-C:\Repos\cordova\win8metro\test\MetroTestApp\MetroTestApp.jsproj;neutral
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/bld/Debug/layout.resfiles
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/bld/Debug/layout.resfiles b/test/MetroTestApp/bld/Debug/layout.resfiles
deleted file mode 100644
index 0f12d8f..0000000
--- a/test/MetroTestApp/bld/Debug/layout.resfiles
+++ /dev/null
@@ -1,67 +0,0 @@
-cordova.win8metro.js
-accelerometer\index.html
-audio\index.html
-autotest\html\HtmlReporter.js
-autotest\html\HtmlReporterHelpers.js
-autotest\html\ReporterView.js
-autotest\html\SpecView.js
-autotest\html\SuiteView.js
-autotest\html\TrivialReporter.js
-autotest\index.html
-autotest\jasmine.css
-autotest\jasmine.js
-autotest\pages\accelerometer.html
-autotest\pages\all.html
-autotest\pages\battery.html
-autotest\pages\camera.html
-autotest\pages\capture.html
-autotest\pages\compass.html
-autotest\pages\contacts.html
-autotest\pages\device.html
-autotest\pages\file.html
-autotest\pages\filetransfer.html
-autotest\pages\geolocation.html
-autotest\pages\media.html
-autotest\pages\network.html
-autotest\pages\notification.html
-autotest\pages\platform.html
-autotest\pages\storage.html
-autotest\test-runner.js
-autotest\tests\accelerometer.tests.js
-autotest\tests\battery.tests.js
-autotest\tests\camera.tests.js
-autotest\tests\capture.tests.js
-autotest\tests\compass.tests.js
-autotest\tests\contacts.tests.js
-autotest\tests\device.tests.js
-autotest\tests\file.tests.js
-autotest\tests\filetransfer.tests.js
-autotest\tests\geolocation.tests.js
-autotest\tests\media.tests.js
-autotest\tests\network.tests.js
-autotest\tests\notification.tests.js
-autotest\tests\platform.tests.js
-autotest\tests\storage.tests.js
-battery\index.html
-camera\index.html
-compass\index.html
-contacts\index.html
-cordova.js
-css\default.css
-default.html
-default.js
-events\index.html
-images\logo.png
-images\smalllogo.png
-images\splashscreen.png
-images\storelogo.png
-index.html
-location\index.html
-main.js
-master.css
-misc\index.html
-misc\page2.html
-network\index.html
-notification\index.html
-sql\index.html
-storage\index.html
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/bld/Debug/layout.resfiles.intermediate
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/bld/Debug/layout.resfiles.intermediate b/test/MetroTestApp/bld/Debug/layout.resfiles.intermediate
deleted file mode 100644
index 0f12d8f..0000000
--- a/test/MetroTestApp/bld/Debug/layout.resfiles.intermediate
+++ /dev/null
@@ -1,67 +0,0 @@
-cordova.win8metro.js
-accelerometer\index.html
-audio\index.html
-autotest\html\HtmlReporter.js
-autotest\html\HtmlReporterHelpers.js
-autotest\html\ReporterView.js
-autotest\html\SpecView.js
-autotest\html\SuiteView.js
-autotest\html\TrivialReporter.js
-autotest\index.html
-autotest\jasmine.css
-autotest\jasmine.js
-autotest\pages\accelerometer.html
-autotest\pages\all.html
-autotest\pages\battery.html
-autotest\pages\camera.html
-autotest\pages\capture.html
-autotest\pages\compass.html
-autotest\pages\contacts.html
-autotest\pages\device.html
-autotest\pages\file.html
-autotest\pages\filetransfer.html
-autotest\pages\geolocation.html
-autotest\pages\media.html
-autotest\pages\network.html
-autotest\pages\notification.html
-autotest\pages\platform.html
-autotest\pages\storage.html
-autotest\test-runner.js
-autotest\tests\accelerometer.tests.js
-autotest\tests\battery.tests.js
-autotest\tests\camera.tests.js
-autotest\tests\capture.tests.js
-autotest\tests\compass.tests.js
-autotest\tests\contacts.tests.js
-autotest\tests\device.tests.js
-autotest\tests\file.tests.js
-autotest\tests\filetransfer.tests.js
-autotest\tests\geolocation.tests.js
-autotest\tests\media.tests.js
-autotest\tests\network.tests.js
-autotest\tests\notification.tests.js
-autotest\tests\platform.tests.js
-autotest\tests\storage.tests.js
-battery\index.html
-camera\index.html
-compass\index.html
-contacts\index.html
-cordova.js
-css\default.css
-default.html
-default.js
-events\index.html
-images\logo.png
-images\smalllogo.png
-images\splashscreen.png
-images\storelogo.png
-index.html
-location\index.html
-main.js
-master.css
-misc\index.html
-misc\page2.html
-network\index.html
-notification\index.html
-sql\index.html
-storage\index.html
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/bld/Debug/pri.resfiles
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/bld/Debug/pri.resfiles b/test/MetroTestApp/bld/Debug/pri.resfiles
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/bld/Debug/pri.resfiles.intermediate
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/bld/Debug/pri.resfiles.intermediate b/test/MetroTestApp/bld/Debug/pri.resfiles.intermediate
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/bld/Debug/priconfig.xml
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/bld/Debug/priconfig.xml b/test/MetroTestApp/bld/Debug/priconfig.xml
deleted file mode 100644
index 17c8955..0000000
--- a/test/MetroTestApp/bld/Debug/priconfig.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <index root="\" startIndexAt="bld\Debug\layout.resfiles">
- <default>
- <qualifier name="language" value="en-US" />
- </default>
- <indexer-config type="RESFILES" qualifierDelimiter="." />
- </index>
- <index root="\" startIndexAt="bld\Debug\resources.resfiles">
- <default>
- <qualifier name="language" value="en-US" />
- </default>
- <indexer-config type="RESW" convertDotsToSlashes="true" />
- <indexer-config type="RESJSON" />
- <indexer-config type="RESFILES" qualifierDelimiter="." />
- </index>
- <index root="\" startIndexAt="bld\Debug\pri.resfiles">
- <default>
- <qualifier name="language" value="en-US" />
- </default>
- <indexer-config type="PRI" />
- <indexer-config type="RESFILES" qualifierDelimiter="." />
- </index>
-</resources>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/bld/Debug/priconfig.xml.intermediate
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/bld/Debug/priconfig.xml.intermediate b/test/MetroTestApp/bld/Debug/priconfig.xml.intermediate
deleted file mode 100644
index 17c8955..0000000
--- a/test/MetroTestApp/bld/Debug/priconfig.xml.intermediate
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <index root="\" startIndexAt="bld\Debug\layout.resfiles">
- <default>
- <qualifier name="language" value="en-US" />
- </default>
- <indexer-config type="RESFILES" qualifierDelimiter="." />
- </index>
- <index root="\" startIndexAt="bld\Debug\resources.resfiles">
- <default>
- <qualifier name="language" value="en-US" />
- </default>
- <indexer-config type="RESW" convertDotsToSlashes="true" />
- <indexer-config type="RESJSON" />
- <indexer-config type="RESFILES" qualifierDelimiter="." />
- </index>
- <index root="\" startIndexAt="bld\Debug\pri.resfiles">
- <default>
- <qualifier name="language" value="en-US" />
- </default>
- <indexer-config type="PRI" />
- <indexer-config type="RESFILES" qualifierDelimiter="." />
- </index>
-</resources>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/bld/Debug/resources.resfiles
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/bld/Debug/resources.resfiles b/test/MetroTestApp/bld/Debug/resources.resfiles
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/bld/Debug/resources.resfiles.intermediate
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/bld/Debug/resources.resfiles.intermediate b/test/MetroTestApp/bld/Debug/resources.resfiles.intermediate
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/camera/index.html
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/camera/index.html b/test/MetroTestApp/camera/index.html
deleted file mode 100644
index abc3e97..0000000
--- a/test/MetroTestApp/camera/index.html
+++ /dev/null
@@ -1,98 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta name="viewport" content="width=device-width,height=device-height,user-scalable=no,maximum-scale=1.0,initial-scale=1.0" />
- <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- ISO-8859-1 -->
- <title>Cordova Mobile Spec</title>
- <link rel="stylesheet" href="../master.css" type="text/css" media="screen" title="no title" charset="utf-8">
- <script type="text/javascript" charset="utf-8" src="../cordova.js"></script>
- <script type="text/javascript" charset="utf-8" src="../cordova.win8metro.js"></script>
-
-
-
-<script type="text/javascript" charset="utf-8">
-
- var deviceReady = false;
-
- //-------------------------------------------------------------------------
- // Camera
- //-------------------------------------------------------------------------
-
- /**
- * Capture picture
- */
- function getPicture() {
-
- //navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50,
- // destinationType: Camera.DestinationType.FILE_URI, sourceType : Camera.PictureSourceType.CAMERA });
-
- navigator.camera.getPicture(
- function(data) {
- var img = document.getElementById('camera_image');
- img.style.visibility = "visible";
- img.style.display = "block";
- //img.src = "data:image/jpeg;base64," + data;
- img.src = data;
- document.getElementById('camera_status').innerHTML = "Success";
- },
- function(e) {
- console.log("Error getting picture: " + e);
- document.getElementById('camera_status').innerHTML = "Error getting picture.";
- },
- { quality: 50, destinationType:
- Camera.DestinationType.FILE_URI, sourceType : Camera.PictureSourceType.CAMERA});
- };
-
- /**
- * Select image from library
- */
- function getImage() {
- navigator.camera.getPicture(
- function(data) {
- var img = document.getElementById('camera_image');
- img.style.visibility = "visible";
- img.style.display = "block";
- //img.src = "data:image/jpeg;base64," + data;
- img.src = data;
- document.getElementById('camera_status').innerHTML = "Success";
- },
- function(e) {
- console.log("Error getting picture: " + e);
- document.getElementById('camera_status').innerHTML = "Error getting picture.";
- },
- { quality: 50, destinationType:
- Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.PHOTOLIBRARY});
- };
-
-
- /**
- * Function called when page has finished loading.
- */
- function init() {
- document.addEventListener("deviceready", function() {
- deviceReady = true;
- console.log("Device="+device.platform+" "+device.version);
- }, false);
- window.setTimeout(function() {
- if (!deviceReady) {
- alert("Error: PhoneGap did not initialize. Demo will not run correctly.");
- }
- },1000);
- }
-
-</script>
-
- </head>
- <body onload="init();" id="stage" class="theme">
-
- <h1>Camera</h1>
- <div id="info">
- <b>Status:</b> <span id="camera_status"></span><br>
- <img style="width:120px;height:120px;visibility:hidden;display:none;" id="camera_image" src="" />
- </div>
- <h2>Action</h2>
- <div class="btn large" onclick="getPicture();">Take Picture</div>
- <div class="btn large" onclick="getImage();">Select Image from Library</div>
- <h2> </h2><div class="backBtn" onclick="backHome();">Back</div>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/compass/index.html
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/compass/index.html b/test/MetroTestApp/compass/index.html
deleted file mode 100644
index 0de512c..0000000
--- a/test/MetroTestApp/compass/index.html
+++ /dev/null
@@ -1,129 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta name="viewport" content="width=device-width,height=device-height,user-scalable=no,maximum-scale=1.0,initial-scale=1.0" />
- <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- ISO-8859-1 -->
- <title>Cordova Mobile Spec</title>
- <link rel="stylesheet" href="../master.css" type="text/css" media="screen" title="no title" charset="utf-8">
- <script type="text/javascript" charset="utf-8" src="../cordova.js"></script>
- <script type="text/javascript" charset="utf-8" src="../cordova.win8metro.js"></script>
-
-
-<script type="text/javascript" charset="utf-8">
-
- var deviceReady = false;
-
- function roundNumber(num) {
- var dec = 3;
- var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
- return result;
- }
-
- //-------------------------------------------------------------------------
- // Compass
- //-------------------------------------------------------------------------
- var watchCompassId = null;
-
- /**
- * Start watching compass
- */
- var watchCompass = function() {
- console.log("watchCompass()");
-
- // Success callback
- var success = function(a){
- document.getElementById('compassHeading').innerHTML = roundNumber(a.magneticHeading);
- };
-
- // Fail callback
- var fail = function(e){
- console.log("watchCompass fail callback with error code "+e);
- stopCompass();
- setCompassStatus(e);
- };
-
- // Update heading every 1 sec
- var opt = {};
- opt.frequency = 1000;
- watchCompassId = navigator.compass.watchHeading(success, fail, opt);
-
- setCompassStatus("Running");
- };
-
- /**
- * Stop watching the acceleration
- */
- var stopCompass = function() {
- setCompassStatus("Stopped");
- if (watchCompassId) {
- navigator.compass.clearWatch(watchCompassId);
- watchCompassId = null;
- }
- };
-
- /**
- * Get current compass
- */
- var getCompass = function() {
- console.log("getCompass()");
-
- // Stop compass if running
- stopCompass();
-
- // Success callback
- var success = function(a){
- document.getElementById('compassHeading').innerHTML = roundNumber(a.magneticHeading);
- };
-
- // Fail callback
- var fail = function(e){
- console.log("getCompass fail callback with error code "+e);
- setCompassStatus(e);
- };
-
- // Make call
- var opt = {};
- navigator.compass.getCurrentHeading(success, fail, opt);
- };
-
- /**
- * Set compass status
- */
- var setCompassStatus = function(status) {
- document.getElementById('compass_status').innerHTML = status;
- };
-
- /**
- * Function called when page has finished loading.
- */
- function init() {
- document.addEventListener("deviceready", function() {
- deviceReady = true;
- console.log("Device="+device.platform+" "+device.version);
- }, false);
- window.setTimeout(function() {
- if (!deviceReady) {
- alert("Error: PhoneGap did not initialize. Demo will not run correctly.");
- }
- },1000);
- }
-
-</script>
-
- </head>
- <body onload="init();" id="stage" class="theme">
-
- <h1>Compass</h1>
- <div id="info">
- <b>Status:</b> <span id="compass_status">Stopped</span>
- <table width="100%"><tr>
- <td width="33%">Heading: <span id="compassHeading"> </span></td>
- </tr></table>
- </div>
- <h2>Action</h2>
- <div class="btn large" onclick="getCompass();">Get Compass</div>
- <div class="btn large" onclick="watchCompass();">Start Watching Compass</div>
- <div class="btn large" onclick="stopCompass();">Stop Watching Compass</div>
- <h2> </h2><div class="backBtn" onclick="backHome();">Back</div>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/contacts/index.html
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/contacts/index.html b/test/MetroTestApp/contacts/index.html
deleted file mode 100644
index d4961c9..0000000
--- a/test/MetroTestApp/contacts/index.html
+++ /dev/null
@@ -1,113 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta name="viewport" content="width=device-width,height=device-height,user-scalable=no,maximum-scale=1.0,initial-scale=1.0" />
- <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- ISO-8859-1 -->
- <title>Cordova Mobile Spec</title>
- <link rel="stylesheet" href="../master.css" type="text/css" media="screen" title="no title" charset="utf-8">
- <script type="text/javascript" charset="utf-8" src="../cordova.js"></script>
- <script type="text/javascript" charset="utf-8" src="../cordova.win8metro.js"></script>
-
-
-<script type="text/javascript" charset="utf-8">
-
- var deviceReady = false;
-
- //-------------------------------------------------------------------------
- // Contacts
- //-------------------------------------------------------------------------
- function getContacts() {
- obj = new ContactFindOptions();
- obj.filter = "D"; //Brooks";
- obj.multiple = true;
- navigator.contacts.find(
- ["displayName", "name", "phoneNumbers", "emails", "urls", "note"],
- function(contacts) {
- var s = "";
- if (contacts.length == 0) {
- s = "No contacts found";
- }
- else {
- s = "Number of contacts: "+contacts.length+"<br><table width='100%'><tr><th>Name</th><td>Phone</td><td>Email</td></tr>";
- for (var i=0; i<contacts.length; i++) {
- var contact = contacts[i];
- s = s + "<tr><td>" + contact.name.formatted + "</td><td>";
- if (contact.phoneNumbers && contact.phoneNumbers.length > 0) {
- s = s + contact.phoneNumbers[0].value;
- }
- s = s + "</td><td>"
- if (contact.emails && contact.emails.length > 0) {
- s = s + contact.emails[0].value;
- }
- s = s + "</td></tr>";
- }
- s = s + "</table>";
- }
- document.getElementById('contacts_results').innerHTML = s;
- },
- function(e) {
- document.getElementById('contacts_results').innerHTML = "Error: "+e.code;
- },
- obj);
- };
-
- function addContact(){
- console.log("addContact()");
- try{
- var contact = navigator.contacts.create({"displayName": "Dooney Evans"});
- var contactName = {
- formatted: "Dooney Evans",
- familyName: "Evans",
- givenName: "Dooney",
- middleName: ""
- };
-
- contact.name = contactName;
-
- var phoneNumbers = [1];
- phoneNumbers[0] = new ContactField('work', '512-555-1234', true);
- contact.phoneNumbers = phoneNumbers;
-
- contact.save(
- function() { alert("Contact saved.");},
- function(e) { alert("Contact save failed: " + e.code); }
- );
- console.log("you have saved the contact");
- }
- catch (e){
- alert(e);
- }
-
- };
-
- /**
- * Function called when page has finished loading.
- */
- function init() {
- document.addEventListener("deviceready", function() {
- deviceReady = true;
- console.log("Device="+device.platform+" "+device.version);
- }, false);
- window.setTimeout(function() {
- if (!deviceReady) {
- alert("Error: PhoneGap did not initialize. Demo will not run correctly.");
- }
- },1000);
- }
-
-</script>
-
- </head>
- <body onload="init();" id="stage" class="theme">
-
- <h1>Contacts</h1>
- <div id="info">
- <b>Results:</b><br>
- <span id="contacts_results"> </span>
- </div>
- <h2>Action</h2>
- <div class="btn large" onclick="getContacts();">Get phone's contacts</div>
- <div class="btn large" onclick="addContact();">Add a new contact 'Dooney Evans'</div>
- <h2> </h2><div class="backBtn" onclick="backHome();">Back</div>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/cordova.js
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/cordova.js b/test/MetroTestApp/cordova.js
deleted file mode 100644
index b5a2619..0000000
--- a/test/MetroTestApp/cordova.js
+++ /dev/null
@@ -1,16 +0,0 @@
-//var VERSION='';
-//var scripts = document.getElementsByTagName('script');
-//var cordovaPath = scripts[scripts.length - 1].src.replace('cordova.js', 'cordova.win8metro.js');
-
-//document.write('<script type="text/javascript" charset="utf-8" src="' + cordovaPath + '"></script>');
-
-function backHome() {
- if (window.device && device.platform && device.platform.toLowerCase() == 'android') {
- navigator.app.backHistory();
- }
- else {
- window.history.go(-1);
- }
-}
-
-window.alert = window.alert || function (msg, title, btn) { console.log("Alert::" + msg); };
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/css/default.css
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/css/default.css b/test/MetroTestApp/css/default.css
deleted file mode 100644
index da816d5..0000000
--- a/test/MetroTestApp/css/default.css
+++ /dev/null
@@ -1,14 +0,0 @@
-body {
-}
-
-@media screen and (-ms-view-state: fullscreen-landscape) {
-}
-
-@media screen and (-ms-view-state: filled) {
-}
-
-@media screen and (-ms-view-state: snapped) {
-}
-
-@media screen and (-ms-view-state: fullscreen-portrait) {
-}
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/default.html
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/default.html b/test/MetroTestApp/default.html
deleted file mode 100644
index e6418e1..0000000
--- a/test/MetroTestApp/default.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="utf-8" />
- <title>MetroTestApp</title>
-
- <!-- WinJS references -->
- <link href="//Microsoft.WinJS.1.0.RC/css/ui-dark.css" rel="stylesheet" />
- <script src="//Microsoft.WinJS.1.0.RC/js/base.js"></script>
- <script src="//Microsoft.WinJS.1.0.RC/js/ui.js"></script>
-
- <!-- MetroTestApp references -->
- <link href="/css/default.css" rel="stylesheet" />
- <script src="/cordova.win8metro.js"></script>
- <script src="/default.js"></script>
-</head>
-<body>
- <a href="index.html">Go for it</a>
-</body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/default.js
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/default.js b/test/MetroTestApp/default.js
deleted file mode 100644
index a688542..0000000
--- a/test/MetroTestApp/default.js
+++ /dev/null
@@ -1,46 +0,0 @@
-// For an introduction to the Blank template, see the following documentation:
-// http://go.microsoft.com/fwlink/?LinkId=232509
-(function () {
- "use strict";
-
- var app = WinJS.Application;
-
- app.onactivated = function (eventObject) {
- console.log("app activated");
-
- if (eventObject.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {
- if (eventObject.detail.previousExecutionState !== Windows.ApplicationModel.Activation.ApplicationExecutionState.terminated) {
- // TODO: This application has been newly launched. Initialize
- // your application here.
- } else {
- // TODO: This application has been reactivated from suspension.
- // Restore application state here.
- }
- WinJS.UI.processAll();
- }
-
-
- window.alert = window.alert || function (msg) { console.log("ALERT:" + msg); };
-
- };
-
- app.oncheckpoint = function (eventObject) {
- // TODO: This application is about to be suspended. Save any state
- // that needs to persist across suspensions here. You might use the
- // WinJS.Application.sessionState object, which is automatically
- // saved and restored across suspension. If you need to complete an
- // asynchronous operation before your application is suspended, call
- // eventObject.setPromise().
- };
-
- var sensor;
-
- function onDeviceReady() {
- console.log("onDeviceReady");
- sensor = Windows.Devices.Sensors.SimpleOrientationSensor.getDefault();
- }
-
- document.addEventListener("deviceready", onDeviceReady, false);
-
- app.start();
-})();
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/events/index.html
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/events/index.html b/test/MetroTestApp/events/index.html
deleted file mode 100644
index 392c6db..0000000
--- a/test/MetroTestApp/events/index.html
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta name="viewport" content="width=device-width,height=device-height,user-scalable=no,maximum-scale=1.0,initial-scale=1.0" />
- <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- ISO-8859-1 -->
- <title>Cordova Mobile Spec</title>
- <link rel="stylesheet" href="../master.css" type="text/css" media="screen" title="no title" charset="utf-8">
- <script type="text/javascript" charset="utf-8" src="../cordova.js"></script>
- <script type="text/javascript" charset="utf-8" src="../cordova.win8metro.js"></script>
-
-
-<script type="text/javascript" charset="utf-8">
-
- var deviceReady = false;
-
- function interceptBackbutton() {
- eventOutput("Back button intercepted");
- }
- function interceptMenubutton() {
- eventOutput("Menu button intercepted");
- }
- function interceptSearchbutton() {
- eventOutput("Search button intercepted");
- }
- function interceptResume() {
- eventOutput("Resume event intercepted");
- }
- function interceptPause() {
- eventOutput("Pause event intercepted");
- }
- function interceptOnline() {
- eventOutput("Online event intercepted");
- }
- function interceptOffline() {
- eventOutput("Offline event intercepted");
- }
-
- var eventOutput = function(s) {
- var el = document.getElementById("results");
- el.innerHTML = el.innerHTML + s + "<br>";
- };
-
-
- /**
- * Function called when page has finished loading.
- */
- function init() {
- document.addEventListener("deviceready", function() {
- deviceReady = true;
- console.log("Device="+device.platform+" "+device.version);
- eventOutput("deviceready event: "+device.platform+" "+device.version);
- }, false);
- window.setTimeout(function() {
- if (!deviceReady) {
- alert("Error: PhoneGap did not initialize. Demo will not run correctly.");
- }
- },1000);
- }
-
-</script>
-
- </head>
- <body onload="init();" id="stage" class="theme">
-
- <h1>Events</h1>
- <div id="info">
- <b>Results:</b><br>
- <span id="results"></span>
- </div>
-
- <h2>Action</h2>
- <div class="btn large" onclick="document.addEventListener('backbutton', interceptBackbutton, false);">Intercept backbutton</div>
- <div class="btn large" onclick="document.removeEventListener('backbutton', interceptBackbutton, false);">Stop intercept of backbutton</div>
- <div class="btn large" onclick="document.addEventListener('menubutton', interceptMenubutton, false);">Intercept menubutton</div>
- <div class="btn large" onclick="document.removeEventListener('menubutton', interceptMenubutton, false);">Stop intercept of menubutton</div>
- <div class="btn large" onclick="document.addEventListener('searchbutton', interceptSearchbutton, false);">Intercept searchbutton</div>
- <div class="btn large" onclick="document.removeEventListener('searchbutton', interceptSearchbutton, false);">Stop intercept of searchbutton</div>
- <div class="btn large" onclick="document.addEventListener('resume', interceptResume, false);">Intercept resume</div>
- <div class="btn large" onclick="document.removeEventListener('resume', interceptResume, false);">Stop intercept of resume</div>
- <div class="btn large" onclick="document.addEventListener('pause', interceptPause, false);">Intercept pause</div>
- <div class="btn large" onclick="document.removeEventListener('pause', interceptPause, false);">Stop intercept of pause</div>
- <div class="btn large" onclick="document.addEventListener('online', interceptOnline, false);">Intercept online</div>
- <div class="btn large" onclick="document.removeEventListener('online', interceptOnline, false);">Stop intercept of online</div>
- <div class="btn large" onclick="document.addEventListener('offline', interceptOffline, false);">Intercept offline</div>
- <div class="btn large" onclick="document.removeEventListener('offline', interceptOffline, false);">Stop intercept of offline</div>
-
- <h2> </h2><div class="backBtn" onclick="backHome();">Back</div>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/images/logo.png
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/images/logo.png b/test/MetroTestApp/images/logo.png
deleted file mode 100644
index e26771c..0000000
Binary files a/test/MetroTestApp/images/logo.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/images/smalllogo.png
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/images/smalllogo.png b/test/MetroTestApp/images/smalllogo.png
deleted file mode 100644
index 1eb0d9d..0000000
Binary files a/test/MetroTestApp/images/smalllogo.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/images/splashscreen.png
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/images/splashscreen.png b/test/MetroTestApp/images/splashscreen.png
deleted file mode 100644
index c951e03..0000000
Binary files a/test/MetroTestApp/images/splashscreen.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/images/storelogo.png
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/images/storelogo.png b/test/MetroTestApp/images/storelogo.png
deleted file mode 100644
index dcb6727..0000000
Binary files a/test/MetroTestApp/images/storelogo.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/9e7e8549/test/MetroTestApp/index.html
----------------------------------------------------------------------
diff --git a/test/MetroTestApp/index.html b/test/MetroTestApp/index.html
deleted file mode 100644
index 4baae12..0000000
--- a/test/MetroTestApp/index.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta name="viewport" content="width=device-width,height=device-height,user-scalable=no,initial-scale=1.0" />
- <meta http-equiv="Content-type" content="text/html; charset=utf-8">
- <title>Cordova Mobile Spec</title>
- <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title">
- <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
- <script type="text/javascript" charset="utf-8" src="cordova.win8metro.js"></script>
- <script type="text/javascript" charset="utf-8" src="main.js"></script>
-
- </head>
- <body onload="init();" id="stage" class="theme">
- <h1>PhoneGap Tests</h1>
- <div id="info">
- <h4>Platform: <span id="platform"> </span></h4>
- <h4>Version: <span id="version"> </span></h4>
- <h4>UUID: <span id="uuid"> </span></h4>
- <h4>Name: <span id="name"> </span></h4>
- <h4>Width: <span id="width"> </span>, Height: <span id="height">
- </span>, Color Depth: <span id="colorDepth"></span></h4>
- </div>
- <a href="autotest/index.html" class="btn large">Automatic Test</a>
- <a href="accelerometer/index.html" class="btn large">Accelerometer</a>
- <a href="audio/index.html" class="btn large">Audio Play/Record</a>
- <a href="battery/index.html" class="btn large">Battery</a>
- <a href="camera/index.html" class="btn large">Camera</a>
- <a href="compass/index.html" class="btn large">Compass</a>
- <a href="contacts/index.html" class="btn large">Contacts</a>
- <a href="events/index.html" class="btn large">Events</a>
- <a href="location/index.html" class="btn large">Location</a>
- <a href="misc/index.html" class="btn large">Misc Content</a>
- <a href="network/index.html" class="btn large">Network</a>
- <a href="notification/index.html" class="btn large">Notification</a>
- <a href="sql/index.html" class="btn large">Web SQL</a>
- <a href="storage/index.html" class="btn large">Local Storage</a>
- </body>
-</html>