Skip to content

Commit da49b8c

Browse files
committed
Debug TimeGraphViewTest
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
1 parent 115594c commit da49b8c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/views

tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/views/TimeGraphViewTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public void testLegend() {
550550
resetTimeRange();
551551
Rectangle bounds = fBounds;
552552

553-
ImageHelper ref = ImageHelper.grabImage(bounds);
553+
ImageHelper ref = ImageHelper.waitForNewImage(bounds, null);
554554

555555
// Set the widths to 0.25
556556

@@ -572,7 +572,7 @@ public void testLegend() {
572572
/* Compare with the original, they should be different */
573573
int refCount = ref.getHistogram().count(fHair);
574574
int skinnyCount = skinny.getHistogram().count(fHair);
575-
assertTrue(String.format("Count of \"\"HAIR\"\" (%s) did not get change despite change of width before: %d after:%d histogram:%s", fHair, refCount, skinnyCount, Multisets.copyHighestCountFirst(skinny.getHistogram())), skinnyCount < refCount);
575+
assertTrue(String.format("Count of \"\"HAIR\"\" (%s) did not get change despite change of width before: %d after:%d ref:%s histogram:%s", fHair, refCount, skinnyCount, Multisets.copyHighestCountFirst(ref.getHistogram()), Multisets.copyHighestCountFirst(skinny.getHistogram())), skinnyCount < refCount);
576576

577577
// reset all
578578
fViewBot.toolbarButton(SHOW_LEGEND).click();

0 commit comments

Comments
 (0)