From 8e266c6162628fc3954c776ea80fa9c6de90412f Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Thu, 5 Apr 2012 14:49:47 -0600 Subject: [PATCH] update front end tests which verify that expected functions are present --- resources/static/test/cases/include.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/resources/static/test/cases/include.js b/resources/static/test/cases/include.js index 42aa6c656..2273cc25c 100644 --- a/resources/static/test/cases/include.js +++ b/resources/static/test/cases/include.js @@ -15,15 +15,21 @@ test("expected public API functions available", function() { _.each([ "get", - "request", - "setLoggedInUser", - "logout", - "addEventListener", - "removeEventListener" + "getVerifiedEmail", + "logout" ], function(item, index) { equal(typeof navigator.id[ item ], "function", "navigator.id." + item + " is available"); }); }); + test("expected experimental API function is available", function() { + _.each([ + "request", + "watch" + ], function(item, index) { + equal(typeof navigator.id.experimental[ item ], "function", "navigator.id." + item + " is available"); + }); + }); + }()); -- GitLab