cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lorinb...@apache.org
Subject [2/3] [CB-2913] switched sed delimiter to avoid f-up with certain test names
Date Mon, 08 Apr 2013 21:13:09 GMT
http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/8b55270b/autotest/tests/filetransfer.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/filetransfer.tests.js b/autotest/tests/filetransfer.tests.js
index bdc83d9..1759983 100644
--- a/autotest/tests/filetransfer.tests.js
+++ b/autotest/tests/filetransfer.tests.js
@@ -83,17 +83,17 @@ describe('FileTransfer', function() {
         waitsFor(function() { return spy.wasCalled; }, Tests.TEST_TIMEOUT);
     };
 
-    it("should exist and be constructable", function() {
+    it("filetransfer.spec.1 should exist and be constructable", function() {
         var ft = new FileTransfer();
         expect(ft).toBeDefined();
     });
-    it("should contain proper functions", function() {
+    it("filetransfer.spec.2 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() {
+        it("filetransfer.spec.3 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);
@@ -108,7 +108,7 @@ describe('FileTransfer', function() {
         //   <access origin="apache.org" subdomains="true" />
         //   <access origin="cordova-filetransfer.jitsu.com"/>
 
-        it("should be able to download a file using http", function() {
+        it("filetransfer.spec.4 should be able to download a file using http", function() {
             var fail = createDoNotCallSpy('downloadFail');
             var remoteFile = server + "/robots.txt"
             var localFileName = remoteFile.substring(remoteFile.lastIndexOf('/')+1);
@@ -132,7 +132,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, fail);
         });
-        it("should be able to download a file using http basic auth", function() {
+        it("filetransfer.spec.5 should be able to download a file using http basic auth", function() {
             var fail = createDoNotCallSpy('downloadFail');
             var remoteFile = server_with_credentials + "/download_basic_auth"
             var localFileName = remoteFile.substring(remoteFile.lastIndexOf('/')+1);
@@ -156,7 +156,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, fail);
         });
-        it("should get http status on basic auth failure", function() {
+        it("filetransfer.spec.6 should get http status on basic auth failure", function() {
             var downloadWin = createDoNotCallSpy('downloadWin');
 
             var remoteFile = server + "/download_basic_auth";
@@ -176,7 +176,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, downloadFail);
         });        
-        it("should be able to download a file using file:// (when hosted from file://)", function() {
+        it("filetransfer.spec.7 should be able to download a file using file:// (when hosted from file://)", function() {
             var fail = createDoNotCallSpy('downloadFail');
             var remoteFile = window.location.href.replace(/\?.*/, '').replace(/ /g, '%20');
             var localFileName = remoteFile.substring(remoteFile.lastIndexOf('/')+1);
@@ -204,7 +204,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, fail);
         });
-        it("should be able to download a file using https", function() {
+        it("filetransfer.spec.8 should be able to download a file using https", function() {
             var remoteFile = "https://www.apache.org/licenses/";
             var localFileName = 'httpstest.html';
             var downloadFail = createDoNotCallSpy('downloadFail', 'Ensure ' + remoteFile + ' is in the white-list');
@@ -226,7 +226,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(fileWin, downloadFail, fileFail);
         });
-        it("should not leave partial file due to abort", function() {
+        it("filetransfer.spec.9 should not leave partial file due to abort", function() {
             var downloadWin = createDoNotCallSpy('downloadWin');
             var remoteFile = 'http://cordova.apache.org/downloads/BlueZedEx.mp3';
             var localFileName = remoteFile.substring(remoteFile.lastIndexOf('/')+1);
@@ -252,7 +252,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, downloadFail);
         });
-        it("should be stopped by abort() right away", function() {
+        it("filetransfer.spec.10 should be stopped by abort() right away", function() {
             var downloadWin = createDoNotCallSpy('downloadWin');
             var remoteFile = 'http://cordova.apache.org/downloads/BlueZedEx.mp3';
             var localFileName = remoteFile.substring(remoteFile.lastIndexOf('/')+1);
@@ -276,7 +276,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, downloadFail);
         });
-        it("should call the error callback on abort()", function() {
+        it("filetransfer.spec.11 should call the error callback on abort()", function() {
             var downloadWin = createDoNotCallSpy('downloadWin');
            var downloadFail = jasmine.createSpy().andCallFake(function(e) { console.log("Abort called") });
             var remoteFile = 'http://cordova.apache.org/downloads/BlueZedEx.mp3';
@@ -296,7 +296,7 @@ describe('FileTransfer', function() {
                 
             waitsForAny(downloadFail);
         });
-        it("should get http status on failure", function() {
+        it("filetransfer.spec.12 should get http status on failure", function() {
             var downloadWin = createDoNotCallSpy('downloadWin');
 
             var remoteFile = server + "/404";
@@ -316,7 +316,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, downloadFail);
         });
-        it("should get response body on failure", function() {
+        it("filetransfer.spec.13 should get response body on failure", function() {
             var downloadWin = createDoNotCallSpy('downloadWin');
 
             var remoteFile = server + "/404";
@@ -336,7 +336,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, downloadFail);
         });
-        it("should handle malformed urls", function() {
+        it("filetransfer.spec.14 should handle malformed urls", function() {
             var downloadWin = createDoNotCallSpy('downloadWin');
 
             var remoteFile = getMalformedUrl();
@@ -359,7 +359,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, downloadFail);
         });
-        it("should handle unknown host", function() {
+        it("filetransfer.spec.15 should handle unknown host", function() {
             var downloadWin = createDoNotCallSpy('downloadWin');
 
             var remoteFile = "http://foobar.apache.org/index.html";
@@ -375,7 +375,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, downloadFail);
         });
-        it("should handle bad file path", function() {
+        it("filetransfer.spec.16 should handle bad file path", function() {
             var downloadWin = createDoNotCallSpy('downloadWin');
 
             var remoteFile = server;
@@ -391,7 +391,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(downloadWin, downloadFail);
         });
-        it("progress should work with gzip encoding", function() {
+        it("filetransfer.spec.17 progress should work with gzip encoding", function() {
            var downloadFail = createDoNotCallSpy('downloadFail');
            var remoteFile = "http://www.apache.org/";
            var localFileName = "index.html";
@@ -418,7 +418,7 @@ describe('FileTransfer', function() {
         });
     });
     describe('upload method', function() {
-        it("should be able to upload a file", function() {
+        it("filetransfer.spec.18 should be able to upload a file", function() {
             var remoteFile = server + "/upload";
             var localFileName = "upload.txt";
             var fileContents = 'This file should upload';
@@ -469,7 +469,7 @@ describe('FileTransfer', function() {
                 expect(lastProgressEvent).not.toBeNull('expected progress events');
             });
         });
-        it("should be able to upload a file with http basic auth", function() {
+        it("filetransfer.spec.19 should be able to upload a file with http basic auth", function() {
             var remoteFile = server_with_credentials + "/upload_basic_auth";
             var localFileName = "upload.txt";
             var fileContents = 'This file should upload';
@@ -520,7 +520,7 @@ describe('FileTransfer', function() {
                 expect(lastProgressEvent).not.toBeNull('expected progress events');
             });
         });
-        it("should get http status on basic auth failure", function() {
+        it("filetransfer.spec.6 should get http status on basic auth failure", function() {
             var fileFail = createDoNotCallSpy('fileFail');
             var uploadWin = createDoNotCallSpy('uploadWin');
 
@@ -551,7 +551,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(uploadWin, uploadFail, fileFail);
         });
-        it("should be stopped by abort() right away.", function() {
+        it("filetransfer.spec.21 should be stopped by abort() right away.", function() {
             var remoteFile = server + "/upload";
             var localFileName = "upload.txt";
 
@@ -589,7 +589,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(uploadWin, uploadFail, fileFail);
         });
-        it("should get http status on failure", function() {
+        it("filetransfer.spec.12 should get http status on failure", function() {
             var fileFail = createDoNotCallSpy('fileFail');
             var uploadWin = createDoNotCallSpy('uploadWin');
 
@@ -620,7 +620,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(uploadWin, uploadFail, fileFail);
         });
-        it("should handle malformed urls", function() {
+        it("filetransfer.spec.14 should handle malformed urls", function() {
             var fileFail = createDoNotCallSpy('fileFail');
             var uploadWin = createDoNotCallSpy('uploadWin');
 
@@ -644,7 +644,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(uploadWin, uploadFail, fileFail);
         });
-        it("should handle unknown host", function() {
+        it("filetransfer.spec.15 should handle unknown host", function() {
             var fileFail = createDoNotCallSpy('fileFail');
             var uploadWin = createDoNotCallSpy('uploadWin');
 
@@ -668,7 +668,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(uploadWin, uploadFail, fileFail);
         });
-        it("should handle missing file", function() {
+        it("filetransfer.spec.25 should handle missing file", function() {
             var uploadWin = createDoNotCallSpy('uploadWin');
 
             var remoteFile = server + "/upload";
@@ -686,7 +686,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(uploadWin, uploadFail);
         });
-        it("should handle bad file path", function() {
+        it("filetransfer.spec.16 should handle bad file path", function() {
             var uploadWin = createDoNotCallSpy('uploadWin');
 
             var remoteFile = server + "/upload";
@@ -703,7 +703,7 @@ describe('FileTransfer', function() {
 
             waitsForAny(uploadWin, uploadFail);
         });
-        it("should be able to set custom headers", function() {
+        it("filetransfer.spec.27 should be able to set custom headers", function() {
             var remoteFile = "http://whatheaders.com";
             var localFileName = "upload.txt";
 

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/8b55270b/autotest/tests/geolocation.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/geolocation.tests.js b/autotest/tests/geolocation.tests.js
index f2a7d0f..6837f44 100644
--- a/autotest/tests/geolocation.tests.js
+++ b/autotest/tests/geolocation.tests.js
@@ -20,28 +20,28 @@
 */
 
 describe('Geolocation (navigator.geolocation)', function () {
-    it("should exist", function() {
+    it("geolocation.spec.1 should exist", function() {
         expect(navigator.geolocation).toBeDefined();
     });
 
-    it("should contain a getCurrentPosition function", function() {
+    it("geolocation.spec.2 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() {
+    it("geolocation.spec.3 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() {
+    it("geolocation.spec.4 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() {
+            it("geolocation.spec.5 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();
@@ -62,7 +62,7 @@ describe('Geolocation (navigator.geolocation)', function () {
         });
 
         describe('success callback', function() {
-            it("should be called with a Position object", function() {
+            it("geolocation.spec.6 should be called with a Position object", function() {
                 var win = jasmine.createSpy().andCallFake(function(p) {
                           expect(p.coords).toBeDefined();
                           expect(p.timestamp).toBeDefined();
@@ -91,7 +91,7 @@ describe('Geolocation (navigator.geolocation)', function () {
             afterEach(function() {
                 navigator.geolocation.clearWatch(errorWatch);
             });
-            it("should be called if we set timeout to 0 and maximumAge to a very small number", function() {
+            it("geolocation.spec.5 should be called if we set timeout to 0 and maximumAge to a very small number", function() {
                 var win = jasmine.createSpy(),
                     fail = jasmine.createSpy();
 
@@ -116,7 +116,7 @@ describe('Geolocation (navigator.geolocation)', function () {
             afterEach(function() {
                 navigator.geolocation.clearWatch(successWatch);
             });
-            it("should be called with a Position object", function() {
+            it("geolocation.spec.6 should be called with a Position object", function() {
                 var win = jasmine.createSpy().andCallFake(function(p) {
                           expect(p.coords).toBeDefined();
                           expect(p.timestamp).toBeDefined();

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/8b55270b/autotest/tests/globalization.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/globalization.tests.js b/autotest/tests/globalization.tests.js
index 6903aee..bc43b4a 100644
--- a/autotest/tests/globalization.tests.js
+++ b/autotest/tests/globalization.tests.js
@@ -1,14 +1,14 @@
 describe('Globalization (navigator.globalization)', function () {
-    it("should exist", function() {
+    it("globalization.spec.1 should exist", function() {
         expect(navigator.globalization).toBeDefined();
     });
     
     describe("getLocaleName", function() {
-        it("should exist", function() {
+        it("globalization.spec.1 should exist", function() {
             expect(typeof navigator.globalization.getLocaleName).toBeDefined();
             expect(typeof navigator.globalization.getLocaleName == 'function').toBe(true);
         });
-        it("getLocaleName success callback should be called with a Properties object", function() {
+        it("globalization.spec.3 getLocaleName success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -31,11 +31,11 @@ describe('Globalization (navigator.globalization)', function () {
     });
     
     describe("dateToString", function() {
-        it("should exist", function() {
+        it("globalization.spec.1 should exist", function() {
             expect(typeof navigator.globalization.dateToString).toBeDefined();
             expect(typeof navigator.globalization.dateToString == 'function').toBe(true);
         });
-        it("dateToString using default options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.5 dateToString using default options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -55,7 +55,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("dateToString using formatLength=short and selector=date options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.6 dateToString using formatLength=short and selector=date options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -75,7 +75,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("dateToString using formatLength=full and selector=date options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.7 dateToString using formatLength=full and selector=date options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -95,7 +95,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("dateToString using formatLength=medium and selector=date and time(default) options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.8 dateToString using formatLength=medium and selector=date and time(default) options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -115,7 +115,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("dateToString using formatLength=long and selector=date and time(default) options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.9 dateToString using formatLength=long and selector=date and time(default) options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -135,7 +135,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("dateToString using formatLength=full and selector=date and time(default) options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.10 dateToString using formatLength=full and selector=date and time(default) options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -158,11 +158,11 @@ describe('Globalization (navigator.globalization)', function () {
     });
     
     describe("stringToDate", function() {
-        it("should exist", function() {
+        it("globalization.spec.1 should exist", function() {
             expect(typeof navigator.globalization.stringToDate).toBeDefined();
             expect(typeof navigator.globalization.stringToDate == 'function').toBe(true);
         });
-        it("stringToDate using default options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.12 stringToDate using default options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -203,7 +203,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("stringToDate using formatLength=short and selector=date options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.13 stringToDate using formatLength=short and selector=date options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -244,7 +244,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("stringToDate using formatLength=full and selector=date options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.14 stringToDate using formatLength=full and selector=date options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -284,7 +284,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("stringToDate using invalid date, error callback should be called with a GlobalizationError object", function() {
+        it("globalization.spec.15 stringToDate using invalid date, error callback should be called with a GlobalizationError object", function() {
             var win = jasmine.createSpy(),
                 fail = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
@@ -310,11 +310,11 @@ describe('Globalization (navigator.globalization)', function () {
     });
 
     describe("getDatePattern", function() {
-        it("should exist", function() {
+        it("globalization.spec.1 should exist", function() {
             expect(typeof navigator.globalization.getDatePattern).toBeDefined();
             expect(typeof navigator.globalization.getDatePattern == 'function').toBe(true);
         });
-        it("getDatePattern using default options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.17 getDatePattern using default options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -341,7 +341,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("getDatePattern using formatLength=medium and selector=date options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.18 getDatePattern using formatLength=medium and selector=date options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -371,11 +371,11 @@ describe('Globalization (navigator.globalization)', function () {
     });    
 
     describe("getDateNames", function() {
-        it("should exist", function() {
+        it("globalization.spec.1 should exist", function() {
             expect(typeof navigator.globalization.getDateNames).toBeDefined();
             expect(typeof navigator.globalization.getDateNames == 'function').toBe(true);
         });
-        it("getDateNames using default options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.20 getDateNames using default options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -396,7 +396,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("getDateNames using type=narrow and item=days options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.21 getDateNames using type=narrow and item=days options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -417,7 +417,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("getDateNames using type=narrow and item=months options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.22 getDateNames using type=narrow and item=months options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -438,7 +438,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("getDateNames using type=wide and item=days options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.23 getDateNames using type=wide and item=days options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -459,7 +459,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("getDateNames using type=wide and item=months options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.24 getDateNames using type=wide and item=months options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -483,11 +483,11 @@ describe('Globalization (navigator.globalization)', function () {
     });
     
     describe("isDayLightSavingsTime", function() {
-        it("should exist", function() {
+        it("globalization.spec.1 should exist", function() {
             expect(typeof navigator.globalization.isDayLightSavingsTime).toBeDefined();
             expect(typeof navigator.globalization.isDayLightSavingsTime == 'function').toBe(true);
         });
-        it("isDayLightSavingsTime using default options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.26 isDayLightSavingsTime using default options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -509,11 +509,11 @@ describe('Globalization (navigator.globalization)', function () {
     });
     
     describe("getFirstDayOfWeek", function() {
-        it("should exist", function() {
+        it("globalization.spec.1 should exist", function() {
             expect(typeof navigator.globalization.getFirstDayOfWeek).toBeDefined();
             expect(typeof navigator.globalization.getFirstDayOfWeek == 'function').toBe(true);
         });
-        it("getFirstDayOfWeek success callback should be called with a Properties object", function() {
+        it("globalization.spec.28 getFirstDayOfWeek success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -535,11 +535,11 @@ describe('Globalization (navigator.globalization)', function () {
     });
     
     describe("numberToString", function() {
-        it("should exist", function() {
+        it("globalization.spec.1 should exist", function() {
             expect(typeof navigator.globalization.numberToString).toBeDefined();
             expect(typeof navigator.globalization.numberToString == 'function').toBe(true);
         });
-        it("numberToString using default options, should be called with a Properties object", function() {
+        it("globalization.spec.30 numberToString using default options, should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -559,7 +559,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("numberToString using type=percent options, should be called with a Properties object", function() {
+        it("globalization.spec.31 numberToString using type=percent options, should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -579,7 +579,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("numberToString using type=currency options, should be called with a Properties object", function() {
+        it("globalization.spec.32 numberToString using type=currency options, should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -602,11 +602,11 @@ describe('Globalization (navigator.globalization)', function () {
     });
     
     describe("stringToNumber", function() {
-        it("should exist", function() {
+        it("globalization.spec.1 should exist", function() {
             expect(typeof navigator.globalization.stringToNumber).toBeDefined();
             expect(typeof navigator.globalization.stringToNumber == 'function').toBe(true);
         });
-        it("stringToNumber using default options, should be called with a Properties object", function() {
+        it("globalization.spec.34 stringToNumber using default options, should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -630,7 +630,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("stringToNumber using type=percent options, should be called with a Properties object", function() {
+        it("globalization.spec.35 stringToNumber using type=percent options, should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -657,11 +657,11 @@ describe('Globalization (navigator.globalization)', function () {
     });
     
     describe("getNumberPattern", function() {
-        it("should exist", function() {
+        it("globalization.spec.1 should exist", function() {
             expect(typeof navigator.globalization.getNumberPattern).toBeDefined();
             expect(typeof navigator.globalization.getNumberPattern == 'function').toBe(true);
         });
-        it("getNumberPattern using default options, success callback should be called with a Properties object", function() {
+        it("globalization.spec.37 getNumberPattern using default options, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -696,7 +696,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("getNumberPattern using type=percent, success callback should be called with a Properties object", function() {
+        it("globalization.spec.38 getNumberPattern using type=percent, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -731,7 +731,7 @@ describe('Globalization (navigator.globalization)', function () {
                 expect(fail).not.toHaveBeenCalled();
             });
         });
-        it("getNumberPattern using type=currency, success callback should be called with a Properties object", function() {
+        it("globalization.spec.39 getNumberPattern using type=currency, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -769,11 +769,11 @@ describe('Globalization (navigator.globalization)', function () {
     });
     
     describe("getCurrencyPattern", function() {
-        it("should exist", function() {
+        it("globalization.spec.1 should exist", function() {
             expect(typeof navigator.globalization.getCurrencyPattern).toBeDefined();
             expect(typeof navigator.globalization.getCurrencyPattern == 'function').toBe(true);
         });
-        it("getCurrencyPattern using EUR for currency, success callback should be called with a Properties object", function() {
+        it("globalization.spec.41 getCurrencyPattern using EUR for currency, success callback should be called with a Properties object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(typeof a).toBe('object');
@@ -805,4 +805,4 @@ describe('Globalization (navigator.globalization)', function () {
             });
         });
     });
-});
\ No newline at end of file
+});

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/8b55270b/autotest/tests/media.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/media.tests.js b/autotest/tests/media.tests.js
index b143e0a..8e484dc 100644
--- a/autotest/tests/media.tests.js
+++ b/autotest/tests/media.tests.js
@@ -25,7 +25,7 @@ describe('Media', function () {
 		expect(typeof Media).toBe("function");
 	});
 
-    it("should have the following properties", function() {
+    it("media.spec.1 should have the following properties", function() {
         var media1 = new Media("dummy");
         expect(media1.id).toBeDefined();
         expect(media1.src).toBeDefined();
@@ -43,70 +43,70 @@ describe('Media', function () {
 		expect(MediaError.MEDIA_ERR_NONE_SUPPORTED).toBe(4);
 	});
 
-    it("should contain a play function", function() {
+    it("media.spec.2 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() {
+    it("media.spec.3 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() {
+    it("media.spec.4 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() {
+    it("media.spec.5 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() {
+    it("media.spec.6 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() {
+    it("media.spec.7 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() {
+    it("media.spec.8 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() {
+    it("media.spec.9 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() {
+    it("media.spec.10 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() {
+    it("media.spec.11 should contain a setVolume function", function() {
         var media1 = new Media();
         expect(media1.setVolume).toBeDefined();
         expect(typeof media1.setVolume).toBe('function');
@@ -134,7 +134,7 @@ describe('Media', function () {
         });
 	});
 
-    it("position should be set properly", function() {
+    it("media.spec.12 position should be set properly", function() {
         var media1 = new Media("http://cordova.apache.org/downloads/BlueZedEx.mp3"),
             test = jasmine.createSpy().andCallFake(function(position) {
                     console.log("position = " + position);
@@ -154,7 +154,7 @@ describe('Media', function () {
         waitsFor(function () { return test.wasCalled; }, Tests.TEST_TIMEOUT);
     });
 
-    it("duration should be set properly", function() {
+    it("media.spec.13 duration should be set properly", function() {
         var media1 = new Media("http://cordova.apache.org/downloads/BlueZedEx.mp3");
         media1.play();
         waits(5000);

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/8b55270b/autotest/tests/network.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/network.tests.js b/autotest/tests/network.tests.js
index dd93a59..8399b26 100644
--- a/autotest/tests/network.tests.js
+++ b/autotest/tests/network.tests.js
@@ -20,12 +20,12 @@
 */
 
 describe('Network (navigator.connection)', function () {
-    it("should exist", function() {
+    it("network.spec.1 should exist", function() {
         expect(navigator.network && navigator.network.connection).toBeDefined();
         expect(navigator.connection).toBeDefined();
     });
 
-    it("should be set to a valid value", function() {
+    it("network.spec.2 should be set to a valid value", function() {
         var validValues = {
             'unknown': 1,
             'ethernet': 1,
@@ -38,11 +38,11 @@ describe('Network (navigator.connection)', function () {
         expect(validValues[navigator.connection.type]).toBe(1);
     });
 
-    it("should have the same value in deprecated and non-deprecated apis", function() {
+    it("network.spec.3 should have the same value in deprecated and non-deprecated apis", function() {
         expect(navigator.network.connection.type).toBe(navigator.connection.type);
     });
 
-    it("should define constants for connection status", function() {
+    it("network.spec.4 should define constants for connection status", function() {
         expect(Connection.UNKNOWN).toBe("unknown");
         expect(Connection.ETHERNET).toBe("ethernet");
         expect(Connection.WIFI).toBe("wifi");

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/8b55270b/autotest/tests/platform.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/platform.tests.js b/autotest/tests/platform.tests.js
index 0ec7018..4a1c1a4 100644
--- a/autotest/tests/platform.tests.js
+++ b/autotest/tests/platform.tests.js
@@ -20,11 +20,11 @@
 */
 
 describe('Platform (cordova)', function () {
-    it("should exist", function() {
+    it("platform.spec.1 should exist", function() {
         expect(cordova).toBeDefined();
     });
 
-    it("exec method should exist", function() {
+    it("platform.spec.2 exec method should exist", function() {
         expect(cordova.exec).toBeDefined();
         expect(typeof cordova.exec).toBe('function');
     });

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/8b55270b/autotest/tests/storage.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/storage.tests.js b/autotest/tests/storage.tests.js
index a613087..0294063 100644
--- a/autotest/tests/storage.tests.js
+++ b/autotest/tests/storage.tests.js
@@ -20,7 +20,7 @@
 */
 
 describe("Session Storage", function () {
-    it("should exist", function () {
+    it("storage.spec.1 should exist", function () {
         expect(window.sessionStorage).toBeDefined();
         expect(typeof window.sessionStorage.length).not.toBe('undefined');
         expect(typeof(window.sessionStorage.key)).toBe('function');
@@ -30,7 +30,7 @@ describe("Session Storage", function () {
         expect(typeof(window.sessionStorage.clear)).toBe('function');
     });
 
-    it("check length", function () {
+    it("storage.spec.2 check length", function () {
         expect(window.sessionStorage.length).toBe(0);
         window.sessionStorage.setItem("key","value");
         expect(window.sessionStorage.length).toBe(1);
@@ -38,7 +38,7 @@ describe("Session Storage", function () {
         expect(window.sessionStorage.length).toBe(0);
     });
 
-    it("check key", function () {
+    it("storage.spec.3 check key", function () {
         expect(window.sessionStorage.key(0)).toBe(null);
         window.sessionStorage.setItem("test","value");
         expect(window.sessionStorage.key(0)).toBe("test");
@@ -46,7 +46,7 @@ describe("Session Storage", function () {
         expect(window.sessionStorage.key(0)).toBe(null);
     });
 
-    it("check getItem", function() {
+    it("storage.spec.4 check getItem", function() {
         expect(window.sessionStorage.getItem("item")).toBe(null);
         window.sessionStorage.setItem("item","value");
         expect(window.sessionStorage.getItem("item")).toBe("value");
@@ -54,7 +54,7 @@ describe("Session Storage", function () {
         expect(window.sessionStorage.getItem("item")).toBe(null);
     });
 
-    it("check setItem", function() {
+    it("storage.spec.5 check setItem", function() {
         expect(window.sessionStorage.getItem("item")).toBe(null);
         window.sessionStorage.setItem("item","value");
         expect(window.sessionStorage.getItem("item")).toBe("value");
@@ -64,7 +64,7 @@ describe("Session Storage", function () {
         expect(window.sessionStorage.getItem("item")).toBe(null);
     });
 
-    it("can remove an item", function () {
+    it("storage.spec.6 can remove an item", function () {
         expect(window.sessionStorage.getItem("item")).toBe(null);
         window.sessionStorage.setItem("item","value");
         expect(window.sessionStorage.getItem("item")).toBe("value");
@@ -72,7 +72,7 @@ describe("Session Storage", function () {
         expect(window.sessionStorage.getItem("item")).toBe(null);
     });
 
-    it("check clear", function() {
+    it("storage.spec.7 check clear", function() {
         window.sessionStorage.setItem("item1","value");
         window.sessionStorage.setItem("item2","value");
         window.sessionStorage.setItem("item3","value");
@@ -81,7 +81,7 @@ describe("Session Storage", function () {
         expect(window.sessionStorage.length).toBe(0);
     });
 
-    it("check dot notation", function() {
+    it("storage.spec.8 check dot notation", function() {
         expect(window.sessionStorage.item).not.toBeDefined();
         window.sessionStorage.item = "value";
         expect(window.sessionStorage.item).toBe("value");
@@ -90,7 +90,7 @@ describe("Session Storage", function () {
     });
 
     describe("Local Storage", function () {
-        it("should exist", function() {
+        it("storage.spec.9 should exist", function() {
             expect(window.localStorage).toBeDefined();
             expect(window.localStorage.length).toBeDefined();
             expect(typeof window.localStorage.key).toBe("function");
@@ -100,7 +100,7 @@ describe("Session Storage", function () {
             expect(typeof window.localStorage.clear).toBe("function");
         });  
 
-        it("check length", function() {
+        it("storage.spec.10 check length", function() {
             expect(window.localStorage.length).toBe(0);
             window.localStorage.setItem("key","value");
             expect(window.localStorage.length).toBe(1);
@@ -108,7 +108,7 @@ describe("Session Storage", function () {
             expect(window.localStorage.length).toBe(0);
         });
 
-        it("check key", function() {
+        it("storage.spec.11 check key", function() {
             expect(window.localStorage.key(0)).toBe(null);
             window.localStorage.setItem("test","value");
             expect(window.localStorage.key(0)).toBe("test");
@@ -116,7 +116,7 @@ describe("Session Storage", function () {
             expect(window.localStorage.key(0)).toBe(null);
         });
 
-        it("check getItem", function() {
+        it("storage.spec.4 check getItem", function() {
             expect(window.localStorage.getItem("item")).toBe(null);
             window.localStorage.setItem("item","value");
             expect(window.localStorage.getItem("item")).toBe("value");
@@ -124,7 +124,7 @@ describe("Session Storage", function () {
             expect(window.localStorage.getItem("item")).toBe(null);
         });
 
-        it("check setItem", function() {
+        it("storage.spec.5 check setItem", function() {
             expect(window.localStorage.getItem("item")).toBe(null);
             window.localStorage.setItem("item","value");
             expect(window.localStorage.getItem("item")).toBe("value");
@@ -134,7 +134,7 @@ describe("Session Storage", function () {
             expect(window.localStorage.getItem("item")).toBe(null);
         });
 
-        it("check removeItem", function() {
+        it("storage.spec.14 check removeItem", function() {
             expect(window.localStorage.getItem("item")).toBe(null);
             window.localStorage.setItem("item","value");
             expect(window.localStorage.getItem("item")).toBe("value");
@@ -142,7 +142,7 @@ describe("Session Storage", function () {
             expect(window.localStorage.getItem("item")).toBe(null);
         });
 
-        it("check clear", function() {
+        it("storage.spec.7 check clear", function() {
             expect(window.localStorage.getItem("item1")).toBe(null);
             expect(window.localStorage.getItem("item2")).toBe(null);
             expect(window.localStorage.getItem("item3")).toBe(null);
@@ -160,7 +160,7 @@ describe("Session Storage", function () {
             expect(window.localStorage.getItem("item3")).toBe(null);
         });
 
-        it("check dot notation", function() {
+        it("storage.spec.8 check dot notation", function() {
             expect(window.localStorage.item).not.toBeDefined();
             window.localStorage.item = "value";
             expect(window.localStorage.item).toBe("value");
@@ -170,11 +170,11 @@ describe("Session Storage", function () {
     });
 
     describe("HTML 5 Storage", function () {
-        it("should exist", function() {
+        it("storage.spec.9 should exist", function() {
             expect(window.openDatabase);
         });
 
-        it("Should be able to create and drop tables", function() {
+        it("storage.spec.18 Should be able to create and drop tables", function() {
             var win = jasmine.createSpy('win');
             var fail1 = createDoNotCallSpy('fail1');
             var fail2 = createDoNotCallSpy('fail2');

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/8b55270b/bin/toetag
----------------------------------------------------------------------
diff --git a/bin/toetag b/bin/toetag
index 81e8a3d..a1ae2b4 100755
--- a/bin/toetag
+++ b/bin/toetag
@@ -32,7 +32,7 @@ defaultpath="../autotest/tests/"
  # regex
 ##
 # regex for id'ing a spec
-specreg="it(\".*"
+specreg="^[ \t]*it(\".*"
 # regex for id'ing a tagged spec
 tagged=".*spec\.[0-9]*"
 # default suite name
@@ -44,8 +44,8 @@ toetagtargets() {
         echo toetagging $file
         suitename $file
         echo Suite Name: $suitename
-        found=$(grep -c $specreg $defaultpath$file)
-        foundtagged=$(grep -c $tagged $defaultpath$file)
+        found=$(grep -c "$specreg" $defaultpath$file)
+        foundtagged=$(grep -c "$tagged" $defaultpath$file)
         echo found $found specs to toetag
         echo found $foundtagged specs already tagged
         tagcode=0
@@ -54,12 +54,12 @@ toetagtargets() {
         IFS="
 "
         totag=$(grep $specreg $defaultpath$file | grep -v $tagged)
-        echo $totag
         for line in $totag
         do
             tagcode=$tagcode+1
             modline=$(echo "$line" | sed s/it\(\"/it\(\"$suitename.spec.$tagcode\ /)
-            sed -i '.bak' s/'$line'/'$modline'/g $defaultpath$file
+            echo "$line" 
+            sed -i '.bak' s#"$line"#"$modline"# $defaultpath$file
         done
         echo 
         IFS=$temp


Mime
View raw message