aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs76
1 files changed, 38 insertions, 38 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs
index 5b9794b..8138117 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/Tests/CoopTerminationTests.cs
@@ -79,7 +79,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
79 m_xEngine.DebugLevel = 1; 79 m_xEngine.DebugLevel = 1;
80 80
81 IniConfigSource configSource = new IniConfigSource(); 81 IniConfigSource configSource = new IniConfigSource();
82 82
83 IConfig startupConfig = configSource.AddConfig("Startup"); 83 IConfig startupConfig = configSource.AddConfig("Startup");
84 startupConfig.Set("DefaultScriptEngine", "XEngine"); 84 startupConfig.Set("DefaultScriptEngine", "XEngine");
85 85
@@ -124,9 +124,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
124 TestHelpers.InMethod(); 124 TestHelpers.InMethod();
125// TestHelpers.EnableLogging(); 125// TestHelpers.EnableLogging();
126 126
127 string script = 127 string script =
128@"default 128@"default
129{ 129{
130 state_entry() 130 state_entry()
131 { 131 {
132 llSay(0, ""Thin Lizzy""); 132 llSay(0, ""Thin Lizzy"");
@@ -143,12 +143,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
143 TestHelpers.InMethod(); 143 TestHelpers.InMethod();
144// TestHelpers.EnableLogging(); 144// TestHelpers.EnableLogging();
145 145
146 string script = 146 string script =
147@"default 147@"default
148{ 148{
149 state_entry() 149 state_entry()
150 { 150 {
151 integer i = 0; 151 integer i = 0;
152 for (i = 0; i <= 1; i++) llSay(0, ""Iter "" + (string)i); 152 for (i = 0; i <= 1; i++) llSay(0, ""Iter "" + (string)i);
153 } 153 }
154}"; 154}";
@@ -162,14 +162,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
162 TestHelpers.InMethod(); 162 TestHelpers.InMethod();
163// TestHelpers.EnableLogging(); 163// TestHelpers.EnableLogging();
164 164
165 string script = 165 string script =
166@"default 166@"default
167{ 167{
168 state_entry() 168 state_entry()
169 { 169 {
170 integer i = 0; 170 integer i = 0;
171 llSay(0, ""Thin Lizzy""); 171 llSay(0, ""Thin Lizzy"");
172 172
173 for (i = 0; i < 2147483647; i++) llSay(0, ""Iter "" + (string)i); 173 for (i = 0; i < 2147483647; i++) llSay(0, ""Iter "" + (string)i);
174 } 174 }
175}"; 175}";
@@ -183,15 +183,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
183 TestHelpers.InMethod(); 183 TestHelpers.InMethod();
184// TestHelpers.EnableLogging(); 184// TestHelpers.EnableLogging();
185 185
186 string script = 186 string script =
187@"default 187@"default
188{ 188{
189 state_entry() 189 state_entry()
190 { 190 {
191 integer i = 0; 191 integer i = 0;
192 llSay(0, ""Thin Lizzy""); 192 llSay(0, ""Thin Lizzy"");
193 193
194 for (i = 0; i < 2147483647; i++) 194 for (i = 0; i < 2147483647; i++)
195 { 195 {
196 llSay(0, ""Iter "" + (string)i); 196 llSay(0, ""Iter "" + (string)i);
197 } 197 }
@@ -207,12 +207,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
207 TestHelpers.InMethod(); 207 TestHelpers.InMethod();
208// TestHelpers.EnableLogging(); 208// TestHelpers.EnableLogging();
209 209
210 string script = 210 string script =
211@"default 211@"default
212{ 212{
213 state_entry() 213 state_entry()
214 { 214 {
215 integer i = 0; 215 integer i = 0;
216 while (i < 2) llSay(0, ""Iter "" + (string)i++); 216 while (i < 2) llSay(0, ""Iter "" + (string)i++);
217 } 217 }
218}"; 218}";
@@ -226,15 +226,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
226 TestHelpers.InMethod(); 226 TestHelpers.InMethod();
227// TestHelpers.EnableLogging(); 227// TestHelpers.EnableLogging();
228 228
229 string script = 229 string script =
230@"default 230@"default
231{ 231{
232 state_entry() 232 state_entry()
233 { 233 {
234 integer i = 0; 234 integer i = 0;
235 llSay(0, ""Thin Lizzy""); 235 llSay(0, ""Thin Lizzy"");
236 236
237 while (1 == 1) 237 while (1 == 1)
238 llSay(0, ""Iter "" + (string)i++); 238 llSay(0, ""Iter "" + (string)i++);
239 } 239 }
240}"; 240}";
@@ -248,15 +248,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
248 TestHelpers.InMethod(); 248 TestHelpers.InMethod();
249// TestHelpers.EnableLogging(); 249// TestHelpers.EnableLogging();
250 250
251 string script = 251 string script =
252@"default 252@"default
253{ 253{
254 state_entry() 254 state_entry()
255 { 255 {
256 integer i = 0; 256 integer i = 0;
257 llSay(0, ""Thin Lizzy""); 257 llSay(0, ""Thin Lizzy"");
258 258
259 while (1 == 1) 259 while (1 == 1)
260 { 260 {
261 llSay(0, ""Iter "" + (string)i++); 261 llSay(0, ""Iter "" + (string)i++);
262 } 262 }
@@ -272,9 +272,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
272 TestHelpers.InMethod(); 272 TestHelpers.InMethod();
273// TestHelpers.EnableLogging(); 273// TestHelpers.EnableLogging();
274 274
275 string script = 275 string script =
276@"default 276@"default
277{ 277{
278 state_entry() 278 state_entry()
279 { 279 {
280 integer i = 0; 280 integer i = 0;
@@ -293,9 +293,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
293 TestHelpers.InMethod(); 293 TestHelpers.InMethod();
294// TestHelpers.EnableLogging(); 294// TestHelpers.EnableLogging();
295 295
296 string script = 296 string script =
297@"default 297@"default
298{ 298{
299 state_entry() 299 state_entry()
300 { 300 {
301 integer i = 0; 301 integer i = 0;
@@ -315,15 +315,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
315 TestHelpers.InMethod(); 315 TestHelpers.InMethod();
316// TestHelpers.EnableLogging(); 316// TestHelpers.EnableLogging();
317 317
318 string script = 318 string script =
319@"default 319@"default
320{ 320{
321 state_entry() 321 state_entry()
322 { 322 {
323 integer i = 0; 323 integer i = 0;
324 llSay(0, ""Thin Lizzy""); 324 llSay(0, ""Thin Lizzy"");
325 325
326 do 326 do
327 { 327 {
328 llSay(0, ""Iter "" + (string)i++); 328 llSay(0, ""Iter "" + (string)i++);
329 } while (1 == 1); 329 } while (1 == 1);
@@ -339,15 +339,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
339 TestHelpers.InMethod(); 339 TestHelpers.InMethod();
340 TestHelpers.EnableLogging(); 340 TestHelpers.EnableLogging();
341 341
342 string script = 342 string script =
343@"default 343@"default
344{ 344{
345 state_entry() 345 state_entry()
346 { 346 {
347 integer i = 0; 347 integer i = 0;
348 llSay(0, ""Thin Lizzy""); 348 llSay(0, ""Thin Lizzy"");
349 349
350 @p1; 350 @p1;
351 llSay(0, ""Iter "" + (string)i++); 351 llSay(0, ""Iter "" + (string)i++);
352 jump p1; 352 jump p1;
353 } 353 }
@@ -364,7 +364,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance.Tests
364 TestHelpers.InMethod(); 364 TestHelpers.InMethod();
365// TestHelpers.EnableLogging(); 365// TestHelpers.EnableLogging();
366 366
367 string script = 367 string script =
368@" 368@"
369integer i = 0; 369integer i = 0;
370 370
@@ -375,7 +375,7 @@ ufn1()
375} 375}
376 376
377default 377default
378{ 378{
379 state_entry() 379 state_entry()
380 { 380 {
381 integer i = 0; 381 integer i = 0;
@@ -396,9 +396,9 @@ default
396 TestHelpers.InMethod(); 396 TestHelpers.InMethod();
397// TestHelpers.EnableLogging(); 397// TestHelpers.EnableLogging();
398 398
399 string script = 399 string script =
400@"default 400@"default
401{ 401{
402 state_entry() 402 state_entry()
403 { 403 {
404 integer i = 0; 404 integer i = 0;
@@ -417,7 +417,7 @@ default
417// UUID objectId = TestHelpers.ParseTail(0x100); 417// UUID objectId = TestHelpers.ParseTail(0x100);
418// UUID itemId = TestHelpers.ParseTail(0x3); 418// UUID itemId = TestHelpers.ParseTail(0x3);
419 419
420 SceneObjectGroup so 420 SceneObjectGroup so
421 = SceneHelpers.CreateSceneObject(1, userId, string.Format("Object for {0}", itemName), 0x100); 421 = SceneHelpers.CreateSceneObject(1, userId, string.Format("Object for {0}", itemName), 0x100);
422 m_scene.AddNewSceneObject(so, true); 422 m_scene.AddNewSceneObject(so, true);
423 423
@@ -505,7 +505,7 @@ default
505 505
506 if (++m_chatMessagesReceived >= m_chatMessagesThreshold) 506 if (++m_chatMessagesReceived >= m_chatMessagesThreshold)
507 { 507 {
508 m_scene.EventManager.OnChatFromWorld -= OnChatFromWorld; 508 m_scene.EventManager.OnChatFromWorld -= OnChatFromWorld;
509 m_chatEvent.Set(); 509 m_chatEvent.Set();
510 } 510 }
511 } 511 }