From 5289361f659e99bf0e9a6bcde1579bfce6bca998 Mon Sep 17 00:00:00 2001 From: Joel Brandt Date: Mon, 12 Dec 2011 16:29:14 -0800 Subject: [PATCH 1/5] work on fileio tests --- test/SpecRunner.html | 1 + test/spec/fileIO-test-files/file1 | 1 + test/spec/fileIO-test.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 test/spec/fileIO-test-files/file1 diff --git a/test/SpecRunner.html b/test/SpecRunner.html index 934899d54..0ce06bb1e 100644 --- a/test/SpecRunner.html +++ b/test/SpecRunner.html @@ -25,6 +25,7 @@ + diff --git a/test/spec/fileIO-test-files/file1 b/test/spec/fileIO-test-files/file1 new file mode 100644 index 000000000..296743837 --- /dev/null +++ b/test/spec/fileIO-test-files/file1 @@ -0,0 +1 @@ +Here is file1 diff --git a/test/spec/fileIO-test.js b/test/spec/fileIO-test.js index 143f39fe4..1354c3fcf 100644 --- a/test/spec/fileIO-test.js +++ b/test/spec/fileIO-test.js @@ -4,7 +4,7 @@ describe("FileIO", function(){ it("should run the test", function() { // verify editor content - expect("a").toEqual("a"); + expect("a").toEqual("b"); }); }); }); From 9b566ff28c8d3c340e4a3d86378b6e4ea6cbb1a5 Mon Sep 17 00:00:00 2001 From: Joel Brandt Date: Mon, 12 Dec 2011 17:09:36 -0800 Subject: [PATCH 2/5] renaming unit tests to match rename of API --- .../spec/{fileIO-test-files => NativeFileSystem-test-files}/file1 | 0 test/spec/{fileIO-test.js => NativeFileSystem-test.js} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename test/spec/{fileIO-test-files => NativeFileSystem-test-files}/file1 (100%) rename test/spec/{fileIO-test.js => NativeFileSystem-test.js} (100%) diff --git a/test/spec/fileIO-test-files/file1 b/test/spec/NativeFileSystem-test-files/file1 similarity index 100% rename from test/spec/fileIO-test-files/file1 rename to test/spec/NativeFileSystem-test-files/file1 diff --git a/test/spec/fileIO-test.js b/test/spec/NativeFileSystem-test.js similarity index 100% rename from test/spec/fileIO-test.js rename to test/spec/NativeFileSystem-test.js From f1a005a27fb9d1746c9e56cf527e4e7b3d987968 Mon Sep 17 00:00:00 2001 From: Joel Brandt Date: Mon, 12 Dec 2011 22:30:29 -0800 Subject: [PATCH 3/5] wrote initial unit test for directory reading API --- test/SpecRunner.html | 2 + .../NativeFileSystem-test-files/dir1/file2 | 1 + test/spec/NativeFileSystem-test.js | 59 +++++++++++++++++-- 3 files changed, 56 insertions(+), 6 deletions(-) create mode 100644 test/spec/NativeFileSystem-test-files/dir1/file2 diff --git a/test/SpecRunner.html b/test/SpecRunner.html index 934899d54..1e383df4d 100644 --- a/test/SpecRunner.html +++ b/test/SpecRunner.html @@ -25,12 +25,14 @@ + +