Add regression TestDetachScriptedAttachmentToInventory()

This currently only does a relatively crude check for a ScriptState node in the serialized xml
This commit is contained in:
Justin Clark-Casey (justincc)
2012-07-11 21:43:35 +01:00
parent 14d05dc2a9
commit fc24563206
9 changed files with 151 additions and 32 deletions

View File

@@ -81,7 +81,7 @@ namespace OpenSim.Tests.Common
public static TaskInventoryItem AddScript(Scene scene, SceneObjectPart part)
{
AssetScriptText ast = new AssetScriptText();
ast.Source = "default { state_entry() {} }";
ast.Source = "default { state_entry() { llSay(0, \"Hello World\"); } }";
ast.Encode();
UUID assetUuid = new UUID("00000000-0000-0000-1000-000000000000");