diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs | 26 |
1 files changed, 26 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 5dcdf1a..4e27c00 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs | |||
@@ -48,6 +48,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests | |||
48 | } | 48 | } |
49 | 49 | ||
50 | [Test] | 50 | [Test] |
51 | public void TestAttachEvent() | ||
52 | { | ||
53 | TestHelpers.InMethod(); | ||
54 | // TestHelpers.EnableLogging(); | ||
55 | |||
56 | TestKeyArgEvent("attach"); | ||
57 | } | ||
58 | |||
59 | [Test] | ||
60 | public void TestObjectRezEvent() | ||
61 | { | ||
62 | TestHelpers.InMethod(); | ||
63 | // TestHelpers.EnableLogging(); | ||
64 | |||
65 | TestKeyArgEvent("object_rez"); | ||
66 | } | ||
67 | |||
68 | [Test] | ||
51 | public void TestMovingEndEvent() | 69 | public void TestMovingEndEvent() |
52 | { | 70 | { |
53 | TestHelpers.InMethod(); | 71 | TestHelpers.InMethod(); |
@@ -251,6 +269,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests | |||
251 | TestCompile("default { " + eventName + "(integer n, integer o) {{}} }", true); | 269 | TestCompile("default { " + eventName + "(integer n, integer o) {{}} }", true); |
252 | } | 270 | } |
253 | 271 | ||
272 | private void TestKeyArgEvent(string eventName) | ||
273 | { | ||
274 | TestCompile("default { " + eventName + "(key k) {} }", false); | ||
275 | TestCompile("default { " + eventName + "{{}} }", true); | ||
276 | TestCompile("default { " + eventName + "(string s) {{}} }", true); | ||
277 | TestCompile("default { " + eventName + "(key k, key l) {{}} }", true); | ||
278 | } | ||
279 | |||
254 | private void TestVectorArgEvent(string eventName) | 280 | private void TestVectorArgEvent(string eventName) |
255 | { | 281 | { |
256 | TestCompile("default { " + eventName + "(vector v) {} }", false); | 282 | TestCompile("default { " + eventName + "(vector v) {} }", false); |