UnitTest: Strip the carriage returns in IsSourceRangeWithText

The source code can be multi line which would contains end lines. Windows
endline contains '\r' which are not present under unix. To unify the test
we simply remove the 'r'.

Change-Id: Icf78b5188c9a4801ec13e455a49a069b20c64e97
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2016-11-28 14:00:43 +01:00
parent dca3410ee8
commit 99efc96b63

View File

@@ -60,7 +60,7 @@ MATCHER_P5(IsSourceRangeWithText, startLine, startColumn, endLine, endColumn, te
&& arg.start().column() == uint(startColumn)
&& arg.end().line() == uint(endLine)
&& arg.end().column() == uint(endColumn)
&& arg.text() == text;
&& arg.text().toCarriageReturnsStripped() == text;
}