From f94d07f2e21e29caf877d1f98e5a9457523e1a70 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Sat, 16 Nov 2013 03:02:57 +0000 Subject: 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 --- .../Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools') 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 CSCodeGenerator m_cg = new CSCodeGenerator(); [Test] + public void TestBadEvent() + { + TestHelpers.InMethod(); +// TestHelpers.EnableLogging(); + + TestCompile("default { bad() {} }", true); + } + + [Test] public void TestMovingEndEvent() { TestHelpers.InMethod(); -- cgit v1.1