Permalink
Browse files

Merge pull request #287 from asutherland/delbody-putback

Bug 972514 - test clause got left out. [B2G][Email]Flagged Hotmail emails do not display the changed on or off flag indicator when synced from the server to the device using ActiveSync. r=mcav
  • Loading branch information...
2 parents 8f2996a + 6344432 commit 10f1c905d41b7a5e34e9b3aa40c1559da603aac7 @asutherland asutherland committed Feb 25, 2014
Showing with 13 additions and 0 deletions.
  1. +13 −0 test/unit/test_sync_server_changes.js
@@ -81,6 +81,19 @@ TD.commonCase('detect server changes', function(T) {
expectedRefreshChanges,
{ top: true, bottom: true, grow: false, newCount: 0 });
+
+ T.group('fail to get the message body for a deleted message');
+ T.action(eSync, 'request deleted message body from',
+ testFolder.storageActor, function() {
+ eSync.expect_namedValue('bodyInfo', null);
+ testFolder.storageActor.expect_bodyNotFound();
+ var deletedHeader = expectedRefreshChanges.deletions[0];
+ deletedHeader.getBody(function(bodyInfo) {
+ eSync.namedValue('bodyInfo', bodyInfo);
+ // it's null so we don't call bodyInfo.die(), but if it wasn't...!
+ });
+ });
+
T.group('cleanup');
testAccount.do_closeFolderView(checkView);
});

0 comments on commit 10f1c90

Please sign in to comment.