Unverified Commit f05ab503 authored by Gary Qian's avatar Gary Qian Committed by GitHub

Detect and dump flaky LineMetrics test data (#46213)

parent 9184f4d6
......@@ -745,6 +745,15 @@ void main() {
expect(lines.length, 4);
// TODO(garyq): This data dump is for debugging a test flake. This should
// be removed when it is no longer useful.
if (lines[1].hardBreak == true) {
print('LineMetrics called: ${lines.length}');
for (ui.LineMetrics line in lines) {
print('${line.lineNumber}: ${line.hardBreak}');
}
}
expect(lines[0].hardBreak, true);
expect(lines[1].hardBreak, false);
expect(lines[2].hardBreak, true);
......
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