assertEquals("bb", ((IText)gp.getShapeAt(1)).getText()); //$NON-NLS-1$
assertEquals("cc", ((IText)gp.getShapeAt(2)).getText()); //$NON-NLS-1$
}
@Test public void testText_when2usefontsTheLatestIsUsed1() throws ParseException {
IGroup gp = parser.parsePSTCode("\\usefont{T1}{ptm}{m}{it}\\rput(0.9,0.6){aa}"+ //$NON-NLS-1$
"\\rput(7.4,0.92373){bb}\\usefont{T1}{ptm}{b}{sc}\\rput(1.1121212,0.1244){cc}").get(); //$NON-NLS-1$
assertTrue(PSTParser.errorLogs().isEmpty());
assertEquals(3, gp.getShapes().size());
assertTrue(((IText)gp.getShapeAt(0)).getText().contains("\\it")); //$NON-NLS-1$
assertTrue(((IText)gp.getShapeAt(0)).getText().contains("aa")); //$NON-NLS-1$
assertTrue(((IText)gp.getShapeAt(1)).getText().contains("\\it")); //$NON-NLS-1$
assertTrue(((IText)gp.getShapeAt(1)).getText().contains("bb")); //$NON-NLS-1$
assertTrue(((IText)gp.getShapeAt(2)).getText().contains("\\sc")); //$NON-NLS-1$
assertTrue(((IText)gp.getShapeAt(2)).getText().contains("\\bf")); //$NON-NLS-1$
assertTrue(((IText)gp.getShapeAt(2)).getText().contains("cc")); //$NON-NLS-1$
}