[WO-277] load body on incoming message

This commit is contained in:
Tankred Hase 2014-03-12 10:27:42 +01:00
parent 539f034254
commit 431ae8cd89
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,8 @@ define(function(require) {
$scope.synchronize(function() { $scope.synchronize(function() {
// show notification // show notification
notificationForEmail(email); notificationForEmail(email);
// get message body
$scope.getBody($scope.filteredMessages[0]);
}); });
}; };
chrome.notifications.onClicked.addListener(notificationClicked); chrome.notifications.onClicked.addListener(notificationClicked);

View File

@ -148,9 +148,13 @@ define(function(require) {
expect(opts.type).to.equal('basic'); expect(opts.type).to.equal('basic');
expect(opts.message).to.equal('asdasd'); expect(opts.message).to.equal('asdasd');
expect(opts.title).to.equal('asd'); expect(opts.title).to.equal('asd');
};
scope.getBody = function() {
done(); done();
}; };
scope.filteredMessages = [{}];
emailDaoMock.onIncomingMessage(mail); emailDaoMock.onIncomingMessage(mail);
}); });
}); });