diff options
author | Justin Clark-Casey (justincc) | 2013-12-21 00:08:36 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-12-21 00:08:36 +0000 |
commit | b757ab2586a68e3e79ea364fa2aa944f8431b8c0 (patch) | |
tree | 66b4feeaaf67bea88079d35f5f8ab60ecd0fd61b /OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests | |
parent | Add missing viewer param elements for butt and breast physics. (diff) | |
download | opensim-SC_OLD-b757ab2586a68e3e79ea364fa2aa944f8431b8c0.zip opensim-SC_OLD-b757ab2586a68e3e79ea364fa2aa944f8431b8c0.tar.gz opensim-SC_OLD-b757ab2586a68e3e79ea364fa2aa944f8431b8c0.tar.bz2 opensim-SC_OLD-b757ab2586a68e3e79ea364fa2aa944f8431b8c0.tar.xz |
Add lsl event argument checking for attach and on_rez
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests')
-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); |