From c7f299f3e9252904d4186b490be22312f71e2bd0 Mon Sep 17 00:00:00 2001 From: bfederle Date: Mon, 5 Mar 2012 12:20:39 -0800 Subject: [PATCH] Add base notification tests --- ui/tests/index.html | 1 + ui/tests/test.notifications.js | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 ui/tests/test.notifications.js diff --git a/ui/tests/index.html b/ui/tests/index.html index d0bad669631..8a3ec5962f6 100644 --- a/ui/tests/index.html +++ b/ui/tests/index.html @@ -77,5 +77,6 @@ + diff --git a/ui/tests/test.notifications.js b/ui/tests/test.notifications.js new file mode 100644 index 00000000000..bcb58763c7b --- /dev/null +++ b/ui/tests/test.notifications.js @@ -0,0 +1,19 @@ +(function($) { + var $notifications; + + module('Notifications', { + setup: function() { + $.fx.off = true; + + $notifications = $('
'); + ok($notifications.notifications(), 'Initialize notifications widget'); + } + }); + + test('Widget setup', function() { + var $notificationBox = $('html body > .notification-box'); + + ok($notifications.hasClass('notifications'), 'Correct styling assigned'); + equal($notificationBox.size(), 1, 'Notification box present'); + }); +}(jQuery));