Commits

paulwoods committed dd88051

More qunit tests

  • Participants
  • Parent commits a37debd

Comments (0)

Files changed (1)

File src/templates/tests/tests.js

 
 module("testMethods", {
       setup: function() {
-          
-         // last two are duplicates 
-                  ok(true, "setup successful");
-            }
+          ok(true, "setup successful");
+      }
 });
 
 test('testBookmarks', function() { 
 
 var createBookmarkTest = function()
 {
+
+    // last two are duplicates 
     testURLs = [
             'https://www.google.com/search?gcx=c&sourceid=chrome&ie=UTF-8&q=divided+highway',
             'dividedhighwayrocks.com/',
           return id != deletedID;
     });
     
-    ok(bookmarkIDs.length === numURLs-1) ;
+    ok(bookmarkIDs.length === numURLs-1);
     getBookmarksTest(bookmarkIDs);
 };
 
-
 var getBookmarksTest = function(bookmarkIDs) {
     expectedURLs = [
     'http://dividedhighwayrocks.com/',
     createCircleTest();
 });
 
-
 var createCircleTest = function() {
     testCircles = [
     'circle1',
 
     stop();
 
-}
-
-test('addBookmarkToCircle', function() { 
-    MAIN.addBookmarkToCircle(bookmarkIDs[0], circleIDs[0]);
-    ok(true);
-});
-
-test('removeBookmarkFromCircle', function() { 
-    MAIN.removeBookmarkFromCircle(bookmarkIDs[0], circleIDs[0]);
-    ok(true);
-});
-
-test('getCircles', function() { 
-    MAIN.getCircles(function(c) {
-    
-    });
-    ok(true);
-});
-
-test('getSuggestions', function() { 
-    MAIN.getCircles(function(s) {
-    
-    });
-    ok(true);
-});
-
-test('recordClick', function() { 
-    MAIN.recordClick(bookmarkIDs[0]);
-    ok(true);
-});
+};
 
 test('getTitleForUrl', function() { 
     expected = 'Google News'
-    MAIN.getTitleForUrl(
+    MAIN.getTitleForURL(
         'http://news.google.com/', function(title) {
             ok(title===expected);
         });
 });
-
-
-/*
-MAIN.getBookmarks(0, function(b) {
-        console.log('called!');
-        returnedBookmarks.push(b.url);
-    });
-
-
-
-*/
-
-
-    //ok(yowattup===7);
-
-    /*
-        $.post("{{ url_for('create_bookmark') }}", {
-             'uri':url,
-         }, function (returned) {
-           ok(returned.type != 'error');
-         });
-
-        */
-
-