aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/CodeTools
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-11-16 03:02:57 +0000
committerJustin Clark-Casey (justincc)2013-11-16 03:02:57 +0000
commitf94d07f2e21e29caf877d1f98e5a9457523e1a70 (patch)
tree5bbc890d8a04dd32f51be17def3409c4bdd62970 /OpenSim/Region/ScriptEngine/Shared/CodeTools
parentAdd syntax checking for no_sensor() no-arg event (diff)
downloadopensim-SC_OLD-f94d07f2e21e29caf877d1f98e5a9457523e1a70.zip
opensim-SC_OLD-f94d07f2e21e29caf877d1f98e5a9457523e1a70.tar.gz
opensim-SC_OLD-f94d07f2e21e29caf877d1f98e5a9457523e1a70.tar.bz2
opensim-SC_OLD-f94d07f2e21e29caf877d1f98e5a9457523e1a70.tar.xz
Add regression test to check that specifying a non-existent event raise a syntax error
This was the case before any of the recent changes
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs
index 81e0ab9..53ce405 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs
@@ -39,6 +39,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
39 CSCodeGenerator m_cg = new CSCodeGenerator(); 39 CSCodeGenerator m_cg = new CSCodeGenerator();
40 40
41 [Test] 41 [Test]
42 public void TestBadEvent()
43 {
44 TestHelpers.InMethod();
45// TestHelpers.EnableLogging();
46
47 TestCompile("default { bad() {} }", true);
48 }
49
50 [Test]
42 public void TestMovingEndEvent() 51 public void TestMovingEndEvent()
43 { 52 {
44 TestHelpers.InMethod(); 53 TestHelpers.InMethod();