diff options
author | David Laban <david.laban@collabora.co.uk> | 2011-05-26 16:22:41 -0400 |
---|---|---|
committer | David Laban <david.laban@collabora.co.uk> | 2011-05-26 18:21:57 -0400 |
commit | b23d47176efaf88878972f1d39a4fdde90596679 (patch) | |
tree | 8a0ab1694dfd8c38bf70f8e3b1f91347799f670c /tests/dbus | |
parent | 945c4ec3bc883d9ed11fddd042240a0cc6602e82 (diff) |
Revert "Update tests to use original-timestamp"
This reverts commit 31411d5c9d19678ff862e07c508ff3cf78cbf40a.
Diffstat (limited to 'tests/dbus')
-rw-r--r-- | tests/dbus/test-tpl-log-store-xml.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/dbus/test-tpl-log-store-xml.c b/tests/dbus/test-tpl-log-store-xml.c index fd70ee9..41bd676 100644 --- a/tests/dbus/test-tpl-log-store-xml.c +++ b/tests/dbus/test-tpl-log-store-xml.c @@ -523,9 +523,8 @@ test_add_superseding_event (XmlTestCaseFixture *fixture, "account", account, "sender", me, "receiver", contact, - "timestamp", timestamp + 2, + "timestamp", timestamp, /* TplTextEvent */ - "original-timestamp", timestamp, "message-token", "OMGCOMPLETELYRANDOMSTRING2", "supersedes-token", "OMGCOMPLETELYRANDOMSTRING1", "message-type", TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL, @@ -554,9 +553,8 @@ test_add_superseding_event (XmlTestCaseFixture *fixture, "account", account, "sender", me, "receiver", contact, - "timestamp", timestamp + 3, + "timestamp", timestamp, /* TplTextEvent */ - "original-timestamp", timestamp, "message-token", "OMGCOMPLETELYRANDOMSTRING3", "supersedes-token", "OMGCOMPLETELYRANDOMSTRING1", "message-type", TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL, @@ -590,15 +588,14 @@ test_add_superseding_event (XmlTestCaseFixture *fixture, g_list_foreach (events, (GFunc) g_object_unref, NULL); g_list_free (events); - /* 4. Edit comes in with the wrong original-timestamp. */ + /* 4. Edit comes in with the wrong timestamp. */ late_event = g_object_new (TPL_TYPE_TEXT_EVENT, /* TplEvent */ "account", account, "sender", me, "receiver", contact, - "timestamp", timestamp + 4, + "timestamp", timestamp + (60 * 60 * 24), /* TplTextEvent */ - "original-timestamp", timestamp + (60 * 60 * 24), "message-token", "OMGCOMPLETELYRANDOMSTRING4", "supersedes-token", "OMGCOMPLETELYRANDOMSTRING1", "message-type", TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL, @@ -638,9 +635,8 @@ test_add_superseding_event (XmlTestCaseFixture *fixture, "account", account, "sender", me, "receiver", contact, - "timestamp", timestamp + 5, + "timestamp", timestamp - (60 * 60 * 24), /* TplTextEvent */ - "original-timestamp", timestamp - (60 * 60 * 24), "message-token", "OMGCOMPLETELYRANDOMSTRING5", "supersedes-token", "OMGCOMPLETELYRANDOMSTRING1", "message-type", TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL, |