aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-08-27 23:03:21 +0100
committerJustin Clark-Casey (justincc)2012-08-31 16:29:22 +0100
commit8d1d314f49038b209b341ae87d4e99cb035c0832 (patch)
tree2a358f260fa9b608e5b3d88ae81b7012f30b9ef8 /OpenSim
parentAdd VectorRenderModuleTests.TestRepeatDrawContainingImage() (diff)
downloadopensim-SC_OLD-8d1d314f49038b209b341ae87d4e99cb035c0832.zip
opensim-SC_OLD-8d1d314f49038b209b341ae87d4e99cb035c0832.tar.gz
opensim-SC_OLD-8d1d314f49038b209b341ae87d4e99cb035c0832.tar.bz2
opensim-SC_OLD-8d1d314f49038b209b341ae87d4e99cb035c0832.tar.xz
Add VectorRenderModule.TestRepeatSameDrawDifferentExtraParams()
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs34
1 files changed, 32 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs b/OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs
index 21e1d54..180ea9f 100644
--- a/OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs
+++ b/OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs
@@ -80,7 +80,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender.Tests
80 } 80 }
81 81
82 [Test] 82 [Test]
83 public void TestRepeatDraw() 83 public void TestRepeatSameDraw()
84 { 84 {
85 TestHelpers.InMethod(); 85 TestHelpers.InMethod();
86 86
@@ -110,7 +110,37 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender.Tests
110 } 110 }
111 111
112 [Test] 112 [Test]
113 public void TestRepeatDrawContainingImage() 113 public void TestRepeatSameDrawDifferentExtraParams()
114 {
115 TestHelpers.InMethod();
116
117 string dtText = "PenColour BLACK; MoveTo 40,220; FontSize 32; Text Hello World;";
118
119 SceneObjectGroup so = SceneHelpers.AddSceneObject(m_scene);
120
121 m_dtm.AddDynamicTextureData(
122 m_scene.RegionInfo.RegionID,
123 so.UUID,
124 m_vrm.GetContentType(),
125 dtText,
126 "",
127 0);
128
129 UUID firstDynamicTextureID = so.RootPart.Shape.Textures.GetFace(0).TextureID;
130
131 m_dtm.AddDynamicTextureData(
132 m_scene.RegionInfo.RegionID,
133 so.UUID,
134 m_vrm.GetContentType(),
135 dtText,
136 "alpha:250",
137 0);
138
139 Assert.That(firstDynamicTextureID, Is.Not.EqualTo(so.RootPart.Shape.Textures.GetFace(0).TextureID));
140 }
141
142 [Test]
143 public void TestRepeatSameDrawContainingImage()
114 { 144 {
115 TestHelpers.InMethod(); 145 TestHelpers.InMethod();
116 146