Lines Matching refs:pattern
22 SaveClipRectRestore pattern;
25 REPORTER_ASSERT(r, !pattern.match(&record, 0));
29 // Build up a save-clip-restore block. The pattern will match only it's complete.
31 REPORTER_ASSERT(r, !pattern.match(&record, 0));
34 REPORTER_ASSERT(r, !pattern.match(&record, 0));
37 REPORTER_ASSERT(r, pattern.match(&record, 0));
38 REPORTER_ASSERT(r, pattern.first<Save>() != nullptr);
39 REPORTER_ASSERT(r, pattern.second<ClipRect>() != nullptr);
40 REPORTER_ASSERT(r, pattern.third<Restore>() != nullptr);
44 SaveClipRectRestore pattern;
59 REPORTER_ASSERT(r, pattern.match(&record, i) == i + 3);
61 REPORTER_ASSERT(r, !pattern.match(&record, i));
67 SaveClipRectRestore pattern;
77 REPORTER_ASSERT(r, !pattern.match(&record, 0));
81 Pattern<Is<Save>, Greedy<Is<ClipRect>>, Is<Restore>> pattern;
90 REPORTER_ASSERT(r, pattern.match(&record, index));
97 REPORTER_ASSERT(r, pattern.match(&record, index));
105 Is<Restore>> pattern;
115 REPORTER_ASSERT(r, pattern.match(&record, 0) == record.count());
117 REPORTER_ASSERT(r, pattern.search(&record, &begin, &end));
126 REPORTER_ASSERT(r, !pattern.match(&record, start));
128 REPORTER_ASSERT(r, !pattern.search(&record, &begin, &end));
135 REPORTER_ASSERT(r, pattern.match(&record, start) == record.count());
137 REPORTER_ASSERT(r, pattern.search(&record, &begin, &end));
141 REPORTER_ASSERT(r, !pattern.search(&record, &begin, &end));
145 Pattern<IsDraw> pattern;
151 REPORTER_ASSERT(r, !pattern.match(&record, 0));