mirror of https://github.com/apache/cloudstack.git
Add base notification tests
This commit is contained in:
parent
1dbd10e5e9
commit
c7f299f3e9
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
Loading…
Reference in New Issue