Package ptolemy.actor.gui.test.junit
Class HTMLAboutJUnitTest
- java.lang.Object
-
- ptolemy.actor.gui.test.junit.HTMLAboutJUnitTest
-
public class HTMLAboutJUnitTest extends java.lang.Object
Test out HTMLAbout by starting vergil with various URLs.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Christopher Brooks
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Constructor Summary
Constructors Constructor Description HTMLAboutJUnitTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_openModel(java.lang.String modelFileName)
Test HTMLAbout by opening a URL that starts with "about:".protected void
_sleep()
Sleep the current thread, which is usually not the Swing Event Dispatch Thread.void
aboutAllCopyrights()
Invoke about:allcopyrights, which pops up a window that lists the copyrights.void
aboutConfiguration()
Invoke about:configuration, which expands the actor tree on the left.void
aboutCopyrights()
Invoke about:copyrights, which pops up a window that lists the copyrights.static void
main(java.lang.String[] args)
Test the HTMLAbout
-
-
-
Method Detail
-
aboutAllCopyrights
public void aboutAllCopyrights() throws java.lang.Exception
Invoke about:allcopyrights, which pops up a window that lists the copyrights.- Throws:
java.lang.Exception
- If there is a problem reading or laying out a model.
-
aboutConfiguration
public void aboutConfiguration() throws java.lang.Exception
Invoke about:configuration, which expands the actor tree on the left.- Throws:
java.lang.Exception
- If there is a problem reading or laying out a model.
-
aboutCopyrights
public void aboutCopyrights() throws java.lang.Exception
Invoke about:copyrights, which pops up a window that lists the copyrights.- Throws:
java.lang.Exception
- If there is a problem reading or laying out a model.
-
main
public static void main(java.lang.String[] args)
Test the HTMLAboutTo run, use:
$PTII/bin/ptinvoke ptolemy.actor.gui.test.junit.HTMLAboutJUnitTest
We use ptinvoke so that the classpath is set to include all the packages used by Ptolemy II.- Parameters:
args
- Ignored.
-
_openModel
protected void _openModel(java.lang.String modelFileName) throws java.lang.Exception
Test HTMLAbout by opening a URL that starts with "about:".This is the main entry point for HTMLAbout tests.
The caller of this method need notbe in the Swing Event Thread.
- Parameters:
modelFileName
- The file name of the test model.- Throws:
java.lang.Exception
- If the file name cannot be read or laid out.
-
_sleep
protected void _sleep()
Sleep the current thread, which is usually not the Swing Event Dispatch Thread.
-
-