diff options
author | Justin Clark-Casey (justincc) | 2012-08-27 23:03:21 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-08-27 23:03:21 +0100 |
commit | 4e26d039d6ffe03ae9509120015b39692bad44f9 (patch) | |
tree | 8391d90009597c07e0def14bae18e9bdd8bee460 /OpenSim/Region | |
parent | Add VectorRenderModuleTests.TestRepeatDrawContainingImage() (diff) | |
download | opensim-SC-4e26d039d6ffe03ae9509120015b39692bad44f9.zip opensim-SC-4e26d039d6ffe03ae9509120015b39692bad44f9.tar.gz opensim-SC-4e26d039d6ffe03ae9509120015b39692bad44f9.tar.bz2 opensim-SC-4e26d039d6ffe03ae9509120015b39692bad44f9.tar.xz |
Add VectorRenderModule.TestRepeatSameDrawDifferentExtraParams()
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/VectorRender/Tests/VectorRenderModuleTests.cs | 34 |
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 | ||