You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OMEdit/Testsuite/BrowseMSL/Test.cpp
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -45,11 +45,27 @@ extern "C" {
45
45
46
46
OMEDITTEST_MAIN(Test)
47
47
48
-
void Test::testcase()
48
+
/*!
49
+
* \brief Test::electricalAnalogBasic
50
+
* Browses the Modelica.Electrical.Analog.Basic
51
+
*/
52
+
void Test::electricalAnalogBasic()
53
+
{
54
+
if (!Util::expandLibraryTreeItemParentHierarchy(MainWindow::instance()->getLibraryWidget()->getLibraryTreeModel()->findLibraryTreeItem("Modelica.Electrical.Analog.Basic"))) {
55
+
QFAIL("Expanding to Modelica.Electrical.Analog.Basic failed.");
56
+
}
57
+
MainWindow::instance()->close();
58
+
}
59
+
60
+
/*!
61
+
* \brief Test::mediaAir
62
+
* Browses the Modelica.Media.Air
63
+
*/
64
+
voidTest::mediaAir()
49
65
{
50
66
OMEDITTEST_SKIP("Enable this testcase by removing this line once the ticket#5669 (https://trac.openmodelica.org/OpenModelica/ticket/5669) is fixed.");
51
67
if (!Util::expandLibraryTreeItemParentHierarchy(MainWindow::instance()->getLibraryWidget()->getLibraryTreeModel()->findLibraryTreeItem("Modelica.Media.Air"))) {
Copy file name to clipboardExpand all lines: OMEdit/Testsuite/Diagram/Test.cpp
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -45,10 +45,24 @@ extern "C" {
45
45
46
46
OMEDITTEST_MAIN(Test)
47
47
48
-
void Test::testcase()
48
+
/*!
49
+
* \brief Test::chuaCircuit
50
+
* Browses to Modelica.Electrical.Analog.Examples.ChuaCircuit and loads it diagram view.
51
+
*/
52
+
void Test::chuaCircuit()
49
53
{
50
-
if (!Util::expandLibraryTreeItemParentHierarchy(MainWindow::instance()->getLibraryWidget()->getLibraryTreeModel()->findLibraryTreeItem("Modelica.Electrical.Analog.Basic"))) {
0 commit comments