Add base notification tests

This commit is contained in:
bfederle 2012-03-05 12:20:39 -08:00
parent 1dbd10e5e9
commit c7f299f3e9
2 changed files with 20 additions and 0 deletions

View File

@ -77,5 +77,6 @@
<!-- Tests -->
<script src="test.core.js" type="text/javascript"></script>
<script src="test.cloudBrowser.js" type="text/javascript"></script>
<script src="test.notifications.js" type="text/javascript"></script>
</body>
</html>

View File

@ -0,0 +1,19 @@
(function($) {
var $notifications;
module('Notifications', {
setup: function() {
$.fx.off = true;
$notifications = $('<div>');
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));