summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBruno Jofret <bruno.jofret@scilab.org>2007-06-15 09:48:13 +0000
committerBruno Jofret <bruno.jofret@scilab.org>2007-06-15 09:48:13 +0000
commitb821c58f5a85236504e234be0d764dc2030e97c8 (patch)
treeb69a27a634eefec74bda14989562649d0daeb108 /tests
parent0a5ce74de6a1f378f78904dee0d155edb0c5ea6e (diff)
downloadscilab-b821c58f5a85236504e234be0d764dc2030e97c8.zip
scilab-b821c58f5a85236504e234be0d764dc2030e97c8.tar.gz
Tests related to GUI
Diffstat (limited to 'tests')
-rw-r--r--tests/GUI/ScilabConsoleTest.java25
-rw-r--r--tests/GUI/addmember/AddMemberTest.java22
2 files changed, 23 insertions, 24 deletions
diff --git a/tests/GUI/ScilabConsoleTest.java b/tests/GUI/ScilabConsoleTest.java
index b1117f2..30a5c83 100644
--- a/tests/GUI/ScilabConsoleTest.java
+++ b/tests/GUI/ScilabConsoleTest.java
@@ -1,7 +1,7 @@
1 1
2/* Copyright INRIA 2007 */ 2/* Copyright INRIA 2007 */
3 3
4package fr.scilab.test; 4
5 5
6import java.awt.EventQueue; 6import java.awt.EventQueue;
7 7
@@ -10,16 +10,15 @@ import javax.swing.UIManager;
10 10
11import org.flexdock.docking.DockingManager; 11import org.flexdock.docking.DockingManager;
12import org.flexdock.util.SwingUtility; 12import org.flexdock.util.SwingUtility;
13 13import org.scilab.modules.gui.bridge.SwingScilabConsole;
14import fr.scilab.console.Console; 14import org.scilab.modules.gui.console.Console;
15import fr.scilab.console.ScilabConsole; 15import org.scilab.modules.gui.console.ScilabConsole;
16import fr.scilab.ihm.bridge.swing.SwingScilabConsole; 16import org.scilab.modules.gui.frame.Frame;
17import fr.scilab.ihm.frame.Frame; 17import org.scilab.modules.gui.frame.ScilabFrame;
18import fr.scilab.ihm.frame.ScilabFrame; 18import org.scilab.modules.gui.tab.ScilabTab;
19import fr.scilab.ihm.tab.ScilabTab; 19import org.scilab.modules.gui.tab.Tab;
20import fr.scilab.ihm.tab.Tab; 20import org.scilab.modules.gui.window.ScilabWindow;
21import fr.scilab.ihm.window.ScilabWindow; 21import org.scilab.modules.gui.window.Window;
22import fr.scilab.ihm.window.Window;
23 22
24/** 23/**
25 * Test class for Scilab 5.0 GUIs 24 * Test class for Scilab 5.0 GUIs
@@ -57,7 +56,7 @@ public class ScilabConsoleTest {
57 mainView.addTab(consoleTab); 56 mainView.addTab(consoleTab);
58 mainView.draw(); 57 mainView.draw();
59 System.out.println("Console Tab Title: " + consoleTab.getName()); 58 System.out.println("Console Tab Title: " + consoleTab.getName());
60 System.out.println("-*- Stopping Program -*-"); 59 System.out.println("-*- Stoping Program -*-");
61 60
62 /* Console creation */ 61 /* Console creation */
63 Frame consoleFrame = ScilabFrame.createFrame(); 62 Frame consoleFrame = ScilabFrame.createFrame();
@@ -85,7 +84,7 @@ public class ScilabConsoleTest {
85 JFrame f = new JFrame(); 84 JFrame f = new JFrame();
86 f.setSize(200,200); 85 f.setSize(200,200);
87 SwingScilabConsole content = new SwingScilabConsole(); 86 SwingScilabConsole content = new SwingScilabConsole();
88 f.add(content); 87 //f.add(content);
89 f.setVisible(true); 88 f.setVisible(true);
90 89
91 // JyConsole console = new JyConsole(); 90 // JyConsole console = new JyConsole();
diff --git a/tests/GUI/addmember/AddMemberTest.java b/tests/GUI/addmember/AddMemberTest.java
index a6027f8..560b3e7 100644
--- a/tests/GUI/addmember/AddMemberTest.java
+++ b/tests/GUI/addmember/AddMemberTest.java
@@ -1,19 +1,19 @@
1 1
2/* Copyright INRIA 2007 */ 2/* Copyright INRIA 2007 */
3 3
4package fr.scilab.test.addmember; 4package addmember;
5 5
6import static org.junit.Assert.assertTrue; 6import static org.junit.Assert.assertTrue;
7 7
8import org.junit.Test; 8import org.junit.Test;
9 9
10import fr.scilab.console.Console; 10import org.scilab.modules.gui.bridge.ScilabBridge;
11import fr.scilab.console.ScilabConsole; 11import org.scilab.modules.gui.console.Console;
12import fr.scilab.ihm.ScilabBridge; 12import org.scilab.modules.gui.console.ScilabConsole;
13import fr.scilab.ihm.frame.Frame; 13import org.scilab.modules.gui.frame.Frame;
14import fr.scilab.ihm.frame.ScilabFrame; 14import org.scilab.modules.gui.frame.ScilabFrame;
15import fr.scilab.ihm.tab.ScilabTab; 15import org.scilab.modules.gui.tab.ScilabTab;
16import fr.scilab.ihm.tab.Tab; 16import org.scilab.modules.gui.tab.Tab;
17 17
18/** 18/**
19 * Test class for Scilab 5.0 GUIs 19 * Test class for Scilab 5.0 GUIs
@@ -38,7 +38,7 @@ public class AddMemberTest {
38 // Try to add a Frame in a Tab 38 // Try to add a Frame in a Tab
39 assertTrue("_MUST_ be able to add a Frame in a Tab", tab.addMember(frame) != -1); 39 assertTrue("_MUST_ be able to add a Frame in a Tab", tab.addMember(frame) != -1);
40 assertTrue("_MUST_ be able to add a Frame in a Tab (Through the Bridge)", ScilabBridge.addMember(tab, frame) != -1); 40 assertTrue("_MUST_ be able to add a Frame in a Tab (Through the Bridge)", ScilabBridge.addMember(tab, frame) != -1);
41 System.out.println("-*- Stopping Program -*-"); 41 System.out.println("-*- Stoping Program -*-");
42 } 42 }
43 43
44 /** 44 /**
@@ -57,7 +57,7 @@ public class AddMemberTest {
57 // Try to add a Console in a Frame 57 // Try to add a Console in a Frame
58 assertTrue("_MUST_NOT_ be able to add a Console in a Frame", frame.addMember(console) == -1); 58 assertTrue("_MUST_NOT_ be able to add a Console in a Frame", frame.addMember(console) == -1);
59 assertTrue("_MUST_ be able to add a Console in a Frame (Through the Bridge)", ScilabBridge.addMember(frame, console) != -1); 59 assertTrue("_MUST_ be able to add a Console in a Frame (Through the Bridge)", ScilabBridge.addMember(frame, console) != -1);
60 System.out.println("-*- Stopping Program -*-"); 60 System.out.println("-*- Stoping Program -*-");
61 } 61 }
62 62
63 /** 63 /**
@@ -76,7 +76,7 @@ public class AddMemberTest {
76 // Try to add a Console in a Tab 76 // Try to add a Console in a Tab
77 assertTrue("_MUST_ be able to add a Console in a Tab", tab.addMember(console) != -1); 77 assertTrue("_MUST_ be able to add a Console in a Tab", tab.addMember(console) != -1);
78 assertTrue("_MUST_ be able to add a Console in a Tab(Through the Bridge)", ScilabBridge.addMember(tab, console) != -1); 78 assertTrue("_MUST_ be able to add a Console in a Tab(Through the Bridge)", ScilabBridge.addMember(tab, console) != -1);
79 System.out.println("-*- Stopping Program -*-"); 79 System.out.println("-*- Stoping Program -*-");
80 } 80 }
81 81
82} 82}