Lines Matching defs:testVisitor
105 TestVisitor testVisitor;
106 wrappedText->visit(&testVisitor);
108 REPORTER_ASSERT(reporter, testVisitor.fTestLines.size() == 5);
109 REPORTER_ASSERT(reporter, testVisitor.fTestRuns.size() == 5);
111 REPORTER_ASSERT(reporter, testVisitor.fTestLines[0].trailingSpaces.width() == 0);
112 REPORTER_ASSERT(reporter, testVisitor.fTestLines[1].trailingSpaces.width() == 4);
113 REPORTER_ASSERT(reporter, testVisitor.fTestLines[2].trailingSpaces.width() == 6);
114 REPORTER_ASSERT(reporter, testVisitor.fTestLines[3].trailingSpaces.width() == 1);
115 REPORTER_ASSERT(reporter, testVisitor.fTestLines[4].trailingSpaces.width() == 0);
120 REPORTER_ASSERT(reporter, testVisitor.fTestLines[0].lineText.width() == break1);
121 REPORTER_ASSERT(reporter, testVisitor.fTestLines[1].lineText.width() == break2 - break1 - 1);
125 for (int lineIndex = 0; lineIndex < testVisitor.fTestLines.size(); ++lineIndex) {
126 auto& line = testVisitor.fTestLines[lineIndex];
129 auto& run = testVisitor.fTestRuns[runIndex];
154 TestVisitor testVisitor;
155 wrappedText->visit(&testVisitor);
157 REPORTER_ASSERT(reporter, testVisitor.fTestLines.size() == 4);
158 REPORTER_ASSERT(reporter, testVisitor.fTestRuns.size() == 4);
160 REPORTER_ASSERT(reporter, testVisitor.fTestLines[0].trailingSpaces.width() == 1);
161 REPORTER_ASSERT(reporter, testVisitor.fTestLines[1].trailingSpaces.width() == 1);
162 REPORTER_ASSERT(reporter, testVisitor.fTestLines[2].trailingSpaces.width() == 1);
163 REPORTER_ASSERT(reporter, testVisitor.fTestLines[3].trailingSpaces.width() == 0);