*
*/
public class PydevConsoleTest extends TestCase {
public void testPydevConsoleColors() throws Exception {
IConsoleStyleProvider provider = new ConsoleStyleProvider();
//foo start yellow bar endyellow xxx
Tuple<List<ScriptStyleRange>, String> tup = provider.createInterpreterErrorStyle(
"foo\u001B[0;33mbar\u001B[0mxxx", 0);
List<ScriptStyleRange> ranges = tup.o1;
assertEquals(3, ranges.size());
assertEquals(null, ranges.get(0).foreground);
assertEquals(ColorManager.dimYellow, ranges.get(1).foreground.getRGB());