(hoofbeats) Renames library.load to library.scan.
authorSalvatore Iovene <salvatore.iovene@intel.com>
Mon, 21 Jan 2013 08:52:13 +0000 (10:52 +0200)
committerSalvatore Iovene <salvatore.iovene@intel.com>
Mon, 21 Jan 2013 08:52:13 +0000 (10:52 +0200)
examples/hoofbeats/javascripts/library.js
examples/hoofbeats/tests/unit/library.js

index 1f057ff..594dfd9 100644 (file)
@@ -18,7 +18,7 @@ $(function() {
             }
         };
 
-        this.load = function() {
+        this.scan = function() {
             this.initialize()
             if (this.root === undefined) {
                 throw Error("Root directory is not defined");
index 5553e8e..f3fa884 100644 (file)
@@ -17,21 +17,21 @@ $(function() {
         equal(lib.root, s, "root is correctly set");
     });
 
-    test("load when root is not defined", function() {
+    test("scan when root is not defined", function() {
         lib = new HoofbeatsLibrary();
         raises(function() {
-            lib.load();
-        }, Error, "load throws Error");
+            lib.scan();
+        }, Error, "scan throws Error");
     });
 
-    test("load when browser doesn't support file system operations",
+    test("scan when browser doesn't support file system operations",
     function() {
         lib = new HoofbeatsLibrary();
         lib.root = "/";
         window.requestFileSystem = undefined;
         window.webkitRequestFileSystem = undefined;
         raises(function() {
-            lib.load();
-        }, Error, "load throws Error");
+            lib.scan();
+        }, Error, "scan throws Error");
     })
 });