Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 94F80CE67 for ; Tue, 22 May 2012 19:39:44 +0000 (UTC) Received: (qmail 18969 invoked by uid 500); 22 May 2012 19:39:44 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 18950 invoked by uid 500); 22 May 2012 19:39:44 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 18939 invoked by uid 99); 22 May 2012 19:39:44 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2012 19:39:44 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 15195174C9; Tue, 22 May 2012 19:39:44 +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: spec commit: changed toURI to toURL, toURI is DEPRECATED Message-Id: <20120522193944.15195174C9@tyr.zones.apache.org> Date: Tue, 22 May 2012 19:39:44 +0000 (UTC) Updated Branches: refs/heads/master c90ba5e9a -> 77a6afb9f changed toURI to toURL, toURI is DEPRECATED Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/commit/77a6afb9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/tree/77a6afb9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/diff/77a6afb9 Branch: refs/heads/master Commit: 77a6afb9f10db8b9d4fe4c05252249fd7daf4744 Parents: c90ba5e Author: Jesse MacFadyen Authored: Tue May 22 12:39:05 2012 -0700 Committer: Jesse MacFadyen Committed: Tue May 22 12:39:05 2012 -0700 ---------------------------------------------------------------------- autotest/tests/file.tests.js | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/77a6afb9/autotest/tests/file.tests.js ---------------------------------------------------------------------- diff --git a/autotest/tests/file.tests.js b/autotest/tests/file.tests.js index c622fc1..6c9c3ab 100644 --- a/autotest/tests/file.tests.js +++ b/autotest/tests/file.tests.js @@ -31,7 +31,7 @@ describe('File API', function() { // deletes specified file or directory var deleteEntry = function(name, success, error) { // deletes entry, if it exists - window.resolveLocalFileSystemURI(root.toURI() + '/' + name, + window.resolveLocalFileSystemURI(root.toURL() + '/' + name, function(entry) { if (entry.isDirectory === true) { entry.removeRecursively(success, error); @@ -202,7 +202,7 @@ describe('File API', function() { resolveCallback = jasmine.createSpy().andCallFake(function(entry) { // lookup file system entry runs(function() { - window.resolveLocalFileSystemURI(entry.toURI(), win, fail); + window.resolveLocalFileSystemURI(entry.toURL(), win, fail); }); waitsFor(function() { return win.wasCalled; }, "resolveLocalFileSystemURI callback never called", Tests.TEST_TIMEOUT); @@ -233,7 +233,7 @@ describe('File API', function() { resolveCallback = jasmine.createSpy().andCallFake(function(entry) { // lookup file system entry runs(function() { - window.resolveLocalFileSystemURI(entry.toURI() + "?1234567890", win, fail); + window.resolveLocalFileSystemURI(entry.toURL() + "?1234567890", win, fail); }); waitsFor(function() { return win.wasCalled; }, "resolveLocalFileSystemURI callback never called", Tests.TEST_TIMEOUT); @@ -322,7 +322,7 @@ describe('File API', function() { expect(entry.getMetadata).toBeDefined(); expect(entry.moveTo).toBeDefined(); expect(entry.copyTo).toBeDefined(); - expect(entry.toURI).toBeDefined(); + expect(entry.toURL).toBeDefined(); expect(entry.remove).toBeDefined(); expect(entry.getParent).toBeDefined(); expect(entry.createReader).toBeDefined(); @@ -333,7 +333,7 @@ describe('File API', function() { fail = createFail('FileSystem'); runs(function() { - window.resolveLocalFileSystemURI(root.toURI(), win, fail); + window.resolveLocalFileSystemURI(root.toURL(), win, fail); }); waitsFor(function() { return win.wasCalled; }, "success callback never called", Tests.TEST_TIMEOUT); @@ -568,7 +568,7 @@ describe('File API', function() { var dirName = "de create dir", dirPath = root.fullPath + '/' + dirName, getDir = jasmine.createSpy().andCallFake(function(dirEntry) { - var dirURI = dirEntry.toURI(); + var dirURI = dirEntry.toURL(); // now encode URI and try to resolve runs(function() { window.resolveLocalFileSystemURI(dirURI, win, fail); @@ -604,7 +604,7 @@ describe('File API', function() { var dirName = "de create dir", dirPath = root.fullPath + '/' + dirName, getDir = jasmine.createSpy().andCallFake(function(dirEntry) { - var dirURI = dirEntry.toURI(); + var dirURI = dirEntry.toURL(); // now encode URI and try to resolve runs(function() { window.resolveLocalFileSystemURI(encodeURI(dirURI), win, fail); @@ -1192,7 +1192,7 @@ describe('File API', function() { expect(typeof entry.setMetadata).toBe('function'); expect(typeof entry.moveTo).toBe('function'); expect(typeof entry.copyTo).toBe('function'); - expect(typeof entry.toURI).toBe('function'); + expect(typeof entry.toURL).toBe('function'); expect(typeof entry.remove).toBe('function'); expect(typeof entry.getParent).toBe('function'); expect(typeof entry.createWriter).toBe('function'); @@ -1352,11 +1352,11 @@ describe('File API', function() { expect(fail).not.toHaveBeenCalled(); }); }); - it("Entry.toURI on file", function() { + it("Entry.toURL on file", function() { var fileName = "entry.uri.file", rootPath = root.fullPath, itURI = jasmine.createSpy().andCallFake(function(entry) { - var uri = entry.toURI(); + var uri = entry.toURL(); expect(uri).toBeDefined(); expect(uri.indexOf(rootPath)).not.toBe(-1); @@ -1377,11 +1377,11 @@ describe('File API', function() { expect(fail).not.toHaveBeenCalled(); }); }); - it("Entry.toURI on directory", function() { + it("Entry.toURL on directory", function() { var dirName = "entry.uri.dir", rootPath = root.fullPath, itURI = jasmine.createSpy().andCallFake(function(entry) { - var uri = entry.toURI(); + var uri = entry.toURL(); expect(uri).toBeDefined(); expect(uri.indexOf(rootPath)).not.toBe(-1);