summaryrefslogtreecommitdiffstats
path: root/sigcore/test/TestScript.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-12-27 23:59:40 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-12-27 23:59:40 -0500
commite801b73a2f9cb845913cf546002c8f50eefc473c (patch)
tree050fe2cdae2e7fbb5e81f3364de7cd45a17a5705 /sigcore/test/TestScript.cpp
parent597246bfca4041dd0403b74470c69cf8070cf2ef (diff)
Fixed up the qtscript and javascript tests
Diffstat (limited to 'sigcore/test/TestScript.cpp')
-rw-r--r--sigcore/test/TestScript.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sigcore/test/TestScript.cpp b/sigcore/test/TestScript.cpp
index 2fb3b313..d7352ef3 100644
--- a/sigcore/test/TestScript.cpp
+++ b/sigcore/test/TestScript.cpp
@@ -165,7 +165,7 @@ function slot()\n\
{\n\
object.slot1()\n\
}\n\
-connect(object, \"signal1()\", this, slot)\n\
+connect(object, \"signal1()\", this, \"slot()\")\n\
connect(object, \"signal2()\", object, \"slot2()\")\n\
");
@@ -183,15 +183,15 @@ connect(object, \"signal2()\", object, \"slot2()\")\n\
QCOMPARE(m_value, QString("set"));
}
-void TestScript::qts()
+void TestScript::qtscript()
{
Sigcore::Script script("qtscript", "object.value = \"set\"\n\
function slot()\n\
{\n\
object.slot1()\n\
}\n\
-connect(object, \"signal1()\", this, slot)\n\
-connect(object, \"signal2()\", object, \"slot2()\")\n\
+object.signal1.connect(slot)\n\
+object.signal2.connect(object.slot2)\n\
");
m_action = new Kross::Action(this, "test-script");