Commit 1c7fb225 authored by Nikolai Kosjar's avatar Nikolai Kosjar

Clang: Add one more test for SendDocumentTracker

Ensure that the document is not send with initial values. In that case,
the document was just loaded and has not any modified content yet.

Change-Id: I67ee8dcffe20779ef8294cf2668d0974b44f5bbb
Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
parent 1a0c618e
......@@ -133,6 +133,11 @@ TEST_F(SendDocumentTracker, SendRevisionIfRevisionIsDifferent)
ASSERT_TRUE(tracker.shouldSendRevision(21));
}
TEST_F(SendDocumentTracker, DontSendRevisionWithDefaults)
{
ASSERT_FALSE(tracker.shouldSendRevisionWithCompletionPosition(21, 33));
}
TEST_F(SendDocumentTracker, DontSendIfRevisionIsDifferentAndCompletionPositionIsEqualAndNoContentChange)
{
tracker.setLastSentRevision(46);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment