aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineCrossingTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineCrossingTests.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineCrossingTests.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineCrossingTests.cs b/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineCrossingTests.cs
index c977285..477059f 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineCrossingTests.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/Tests/XEngineCrossingTests.cs
@@ -126,11 +126,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine.Tests
126 OSChatMessage messageReceived = null; 126 OSChatMessage messageReceived = null;
127 sceneA.EventManager.OnChatFromWorld += (s, m) => { messageReceived = m; chatEvent.Set(); }; 127 sceneA.EventManager.OnChatFromWorld += (s, m) => { messageReceived = m; chatEvent.Set(); };
128 128
129 sceneA.RezNewScript(userId, scriptItemSceneA, 129 sceneA.RezNewScript(userId, scriptItemSceneA,
130@"integer c = 0; 130@"integer c = 0;
131 131
132default 132default
133{ 133{
134 state_entry() 134 state_entry()
135 { 135 {
136 llSay(0, ""Script running""); 136 llSay(0, ""Script running"");
@@ -143,7 +143,7 @@ default
143 143
144 touch_start(integer n) 144 touch_start(integer n)
145 { 145 {
146 c = c + 1; 146 c = c + 1;
147 llSay(0, (string)c); 147 llSay(0, (string)c);
148 } 148 }
149}"); 149}");
@@ -151,7 +151,7 @@ default
151 chatEvent.WaitOne(60000); 151 chatEvent.WaitOne(60000);
152 152
153 Assert.That(messageReceived, Is.Not.Null, "No chat message received."); 153 Assert.That(messageReceived, Is.Not.Null, "No chat message received.");
154 Assert.That(messageReceived.Message, Is.EqualTo("Script running")); 154 Assert.That(messageReceived.Message, Is.EqualTo("Script running"));
155 155
156 { 156 {
157 // XXX: Should not be doing this so directly. Should call some variant of EventManager.touch() instead. 157 // XXX: Should not be doing this so directly. Should call some variant of EventManager.touch() instead.
@@ -167,7 +167,7 @@ default
167 xEngineA.PostObjectEvent(soSceneA.LocalId, ep); 167 xEngineA.PostObjectEvent(soSceneA.LocalId, ep);
168 chatEvent.WaitOne(60000); 168 chatEvent.WaitOne(60000);
169 169
170 Assert.That(messageReceived.Message, Is.EqualTo("1")); 170 Assert.That(messageReceived.Message, Is.EqualTo("1"));
171 } 171 }
172 172
173 AutoResetEvent chatEventB = new AutoResetEvent(false); 173 AutoResetEvent chatEventB = new AutoResetEvent(false);
@@ -181,7 +181,7 @@ default
181 chatEventB.WaitOne(60000); 181 chatEventB.WaitOne(60000);
182 Assert.That(messageReceived, Is.Not.Null, "No Changed message received."); 182 Assert.That(messageReceived, Is.Not.Null, "No Changed message received.");
183 Assert.That(messageReceived.Message, Is.Not.Null, "Changed message without content"); 183 Assert.That(messageReceived.Message, Is.Not.Null, "Changed message without content");
184 Assert.That(messageReceived.Message, Is.EqualTo("Changed")); 184 Assert.That(messageReceived.Message, Is.EqualTo("Changed"));
185 185
186 // TEST sending event to moved prim and output 186 // TEST sending event to moved prim and output
187 { 187 {
@@ -202,7 +202,7 @@ default
202 xEngineB.PostObjectEvent(soSceneB.LocalId, ep); 202 xEngineB.PostObjectEvent(soSceneB.LocalId, ep);
203 chatEventB.WaitOne(60000); 203 chatEventB.WaitOne(60000);
204 204
205 Assert.That(messageReceived.Message, Is.EqualTo("2")); 205 Assert.That(messageReceived.Message, Is.EqualTo("2"));
206 } 206 }
207 } 207 }
208 } 208 }