cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [1/2] spec commit: CB4662, CB4879 cleanup errors in file tests
Date Fri, 20 Sep 2013 13:48:25 GMT
Updated Branches:
  refs/heads/master c77ae04e7 -> 4cba23f05


CB4662, CB4879 cleanup errors in file tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/dc2f5538
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/dc2f5538
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/dc2f5538

Branch: refs/heads/master
Commit: dc2f5538bdb9eeaa980273cd483a59343508478a
Parents: c77ae04
Author: David Kemp <drkemp@chromium.org>
Authored: Fri Sep 20 08:09:19 2013 -0400
Committer: David Kemp <drkemp@chromium.org>
Committed: Fri Sep 20 08:09:19 2013 -0400

----------------------------------------------------------------------
 autotest/tests/file.tests.js | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/dc2f5538/autotest/tests/file.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/file.tests.js b/autotest/tests/file.tests.js
index 023cb2b..b5c2f96 100644
--- a/autotest/tests/file.tests.js
+++ b/autotest/tests/file.tests.js
@@ -1125,7 +1125,6 @@ describe('File API', function() {
                     expect(fileEntry).toBeDefined();
                     expect(typeof fileEntry.createWriter).toBe('function');
                     expect(typeof fileEntry.file).toBe('function');
-                    expect(fileEntry.file instanceof file).toBe(true);
 
                     // cleanup
                     fileEntry.remove(null, fail);
@@ -3066,7 +3065,7 @@ describe('File API', function() {
             });
         }
 
-        function arrayBufferEqualsString(buf, str) {
+        function arrayBufferEqualsString(ab, str) {
             var buf = new Uint8Array(ab);
             var match = buf.length == str.length;
 
@@ -3638,7 +3637,7 @@ describe('File API', function() {
                 verifier = jasmine.createSpy("verifier").andCallFake(function(outputFileWriter)
{
                     expect(outputFileWriter.length).toBe(dummyFileText.length);
                     expect(outputFileWriter.position).toBe(dummyFileText.length);
-                    deleteFile(fileName);
+                    deleteFile(outputFileName);
                 }),
                 writeFile = function(fileName, fileData, win) {
                     var theWriter,
@@ -3691,7 +3690,7 @@ describe('File API', function() {
                 verifier = jasmine.createSpy("verifier").andCallFake(function(outputFileWriter)
{
                     expect(outputFileWriter.length).toBe(10);
                     expect(outputFileWriter.position).toBe(10);
-                    deleteFile(fileName);
+                    deleteFile(outputFileName);
                 }),
                 writeFile = function(fileName, fileData, win) {
                     var theWriter,
@@ -3755,7 +3754,7 @@ describe('File API', function() {
                     expect(outputFileWriter.position).toBe(length);
 
                     // cleanup
-                    deleteFile(fileName);
+                    deleteFile(outputFileName);
                 }),
                 writeFile = function(fileName, fileData, win) {
                     var theWriter,


Mime
View raw message