--- /dev/null
+package org.simantics.scl.ui.console;\r
+\r
+import org.eclipse.swt.SWT;\r
+import org.eclipse.swt.layout.FillLayout;\r
+import org.eclipse.swt.widgets.Display;\r
+import org.eclipse.swt.widgets.Shell;\r
+import org.junit.Test;\r
+\r
+public class TestSCLConsole {\r
+\r
+ @Test\r
+ public void testConsole() throws Exception {\r
+ Display display = new Display();\r
+ Shell shell = new Shell(display);\r
+ shell.setSize(640, 480);\r
+ \r
+ FillLayout layout = new FillLayout();\r
+ shell.setLayout(layout);\r
+ \r
+ // Test console\r
+ new SCLConsole(shell, SWT.NONE);\r
+ \r
+ // Open shell\r
+ shell.open();\r
+ while (!shell.isDisposed()) {\r
+ if (!display.readAndDispatch()) \r
+ display.sleep();\r
+ }\r
+ display.dispose();\r
+ }\r
+}
\ No newline at end of file