Search in sources :

Example 1 with SWTBotStyledText

use of org.eclipse.swtbot.swt.finder.widgets.SWTBotStyledText in project linuxtools by eclipse.

the class AbstractStyledTextViewTest method testPerfView.

@Override
protected void testPerfView() {
    SWTWorkbenchBot bot = new SWTWorkbenchBot();
    Matcher<IViewReference> withPartName = withPartName(getViewId());
    SWTBotView view = bot.view(withPartName);
    assertNotNull(view);
    view.setFocus();
    SWTBotStyledText text = bot.styledText();
    assertNotNull(text);
    assertEquals(getExpectedText(), text.getText());
}
Also used : SWTWorkbenchBot(org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot) SWTBotStyledText(org.eclipse.swtbot.swt.finder.widgets.SWTBotStyledText) IViewReference(org.eclipse.ui.IViewReference) SWTBotView(org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView)

Aggregations

SWTWorkbenchBot (org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot)1 SWTBotView (org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView)1 SWTBotStyledText (org.eclipse.swtbot.swt.finder.widgets.SWTBotStyledText)1 IViewReference (org.eclipse.ui.IViewReference)1