Skip to content

Commit c7f299f

Browse files
committed
Add base notification tests
1 parent 1dbd10e commit c7f299f

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

ui/tests/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,6 @@ <h2 id="qunit-userAgent"></h2>
7777
<!-- Tests -->
7878
<script src="test.core.js" type="text/javascript"></script>
7979
<script src="test.cloudBrowser.js" type="text/javascript"></script>
80+
<script src="test.notifications.js" type="text/javascript"></script>
8081
</body>
8182
</html>

ui/tests/test.notifications.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
(function($) {
2+
var $notifications;
3+
4+
module('Notifications', {
5+
setup: function() {
6+
$.fx.off = true;
7+
8+
$notifications = $('<div>');
9+
ok($notifications.notifications(), 'Initialize notifications widget');
10+
}
11+
});
12+
13+
test('Widget setup', function() {
14+
var $notificationBox = $('html body > .notification-box');
15+
16+
ok($notifications.hasClass('notifications'), 'Correct styling assigned');
17+
equal($notificationBox.size(), 1, 'Notification box present');
18+
});
19+
}(jQuery));

0 commit comments

Comments
 (0)