diff --git a/tests/src/tests/animation/JugglerTest.hx b/tests/src/tests/animation/JugglerTest.hx index 40be305e..e9f76053 100644 --- a/tests/src/tests/animation/JugglerTest.hx +++ b/tests/src/tests/animation/JugglerTest.hx @@ -21,7 +21,7 @@ import org.hamcrest.Matchers.closeTo; class JugglerTest extends Test { - private final E:Float = 0.0001; + @:final private var E:Float = 0.0001; public function testModificationWithinCallback():Void { diff --git a/tests/src/tests/animation/TweenTest.hx b/tests/src/tests/animation/TweenTest.hx index 998e2ce0..651b3fb7 100644 --- a/tests/src/tests/animation/TweenTest.hx +++ b/tests/src/tests/animation/TweenTest.hx @@ -22,7 +22,7 @@ import utest.Test; class TweenTest extends Test { - private final E:Float = 0.0001; + @:final private var E:Float = 0.0001; public function testBasicTween():Void { diff --git a/tests/src/tests/display/ButtonTest.hx b/tests/src/tests/display/ButtonTest.hx index d188b40c..7c6e47a7 100644 --- a/tests/src/tests/display/ButtonTest.hx +++ b/tests/src/tests/display/ButtonTest.hx @@ -19,7 +19,7 @@ import tests.utils.MockTexture; class ButtonTest extends StarlingTest { - private static final E:Float = 0.0001; + @:final private static var E:Float = 0.0001; public function testWidthAndHeight():Void diff --git a/tests/src/tests/display/DisplayObjectContainerTest.hx b/tests/src/tests/display/DisplayObjectContainerTest.hx index 8e6a6e8c..1b1921ed 100644 --- a/tests/src/tests/display/DisplayObjectContainerTest.hx +++ b/tests/src/tests/display/DisplayObjectContainerTest.hx @@ -23,7 +23,7 @@ import utest.Test; class DisplayObjectContainerTest extends Test { - private static final E:Float = 0.0001; + @:final private static var E:Float = 0.0001; private var _added:Int; private var _addedToStage:Int; diff --git a/tests/src/tests/display/DisplayObjectTest.hx b/tests/src/tests/display/DisplayObjectTest.hx index b2f11ffe..76fd7d46 100644 --- a/tests/src/tests/display/DisplayObjectTest.hx +++ b/tests/src/tests/display/DisplayObjectTest.hx @@ -24,7 +24,7 @@ import utest.Test; class DisplayObjectTest extends Test { - private static final E:Float = 0.0001; + @:final private static var E:Float = 0.0001; public function testBase():Void diff --git a/tests/src/tests/display/ImageTest.hx b/tests/src/tests/display/ImageTest.hx index 8f3665c5..172e0860 100644 --- a/tests/src/tests/display/ImageTest.hx +++ b/tests/src/tests/display/ImageTest.hx @@ -20,7 +20,7 @@ import utest.Test; class ImageTest extends Test { - private static final E:Float = 0.00001; + @:final private static var E:Float = 0.00001; public function testBindScale9GridToTexture():Void diff --git a/tests/src/tests/display/MeshTest.hx b/tests/src/tests/display/MeshTest.hx index 6624ddd3..2f1a6aff 100644 --- a/tests/src/tests/display/MeshTest.hx +++ b/tests/src/tests/display/MeshTest.hx @@ -83,7 +83,7 @@ class MeshTest extends Test mesh.setVertexAlpha(1, 0.5); mesh.setVertexAlpha(2, 0.8); - final E:Float = 0.02; + var E:Float = 0.02; Helpers.assertThat(mesh.getVertexAlpha(0), closeTo(0.2, E)); Helpers.assertThat(mesh.getVertexAlpha(1), closeTo(0.5, E)); Helpers.assertThat(mesh.getVertexAlpha(2), closeTo(0.8, E)); diff --git a/tests/src/tests/display/MovieClipTest.hx b/tests/src/tests/display/MovieClipTest.hx index 02c145d0..926a52ae 100644 --- a/tests/src/tests/display/MovieClipTest.hx +++ b/tests/src/tests/display/MovieClipTest.hx @@ -21,7 +21,7 @@ import utest.Test; class MovieClipTest extends Test { - private final E:Float = 0.0001; + @:final private var E:Float = 0.0001; public function testFrameManipulation():Void diff --git a/tests/src/tests/display/QuadTest.hx b/tests/src/tests/display/QuadTest.hx index b75a6528..26265a09 100644 --- a/tests/src/tests/display/QuadTest.hx +++ b/tests/src/tests/display/QuadTest.hx @@ -23,7 +23,7 @@ import utest.Test; class QuadTest extends Test { - private static final E:Float = 0.0001; + @:final private static var E:Float = 0.0001; public function testQuad():Void diff --git a/tests/src/tests/events/EventTest.hx b/tests/src/tests/events/EventTest.hx index 35b6ab54..5e117056 100644 --- a/tests/src/tests/events/EventTest.hx +++ b/tests/src/tests/events/EventTest.hx @@ -19,7 +19,7 @@ import utest.Test; class EventTest extends Test { public function testBubbling():Void { - final eventType:String = "test"; + var eventType:String = "test"; var grandParent:Sprite = new Sprite(); var parent:Sprite = new Sprite(); @@ -98,7 +98,7 @@ class EventTest extends Test { public function testStopPropagation():Void { - final eventType:String = "test"; + var eventType:String = "test"; var grandParent:Sprite = new Sprite(); var parent:Sprite = new Sprite(); @@ -228,7 +228,7 @@ class EventTest extends Test { public function testBubbleWithModifiedChain():Void { - final eventType:String = "test"; + var eventType:String = "test"; var grandParent:Sprite = new Sprite(); var parent:Sprite = new Sprite(); @@ -265,7 +265,7 @@ class EventTest extends Test { public function testRedispatch():Void { - final eventType:String = "test"; + var eventType:String = "test"; var grandParent:Sprite = new Sprite(); var parent:Sprite = new Sprite(); @@ -319,7 +319,7 @@ class EventTest extends Test { public function testHasEventListener():Void { - final eventType:String = "event"; + var eventType:String = "event"; var dispatcher:EventDispatcher = new EventDispatcher(); function onEvent():Void {} diff --git a/tests/src/tests/geom/PolygonTest.hx b/tests/src/tests/geom/PolygonTest.hx index dbdbe999..ebdd93b0 100644 --- a/tests/src/tests/geom/PolygonTest.hx +++ b/tests/src/tests/geom/PolygonTest.hx @@ -19,7 +19,7 @@ import utest.Test; class PolygonTest extends Test { - private static final E:Float = 0.0001; + @:final private static var E:Float = 0.0001; public function testConstructorWithPoints():Void diff --git a/tests/src/tests/rendering/VertexDataFormatTest.hx b/tests/src/tests/rendering/VertexDataFormatTest.hx index e6db982c..dc3e814e 100644 --- a/tests/src/tests/rendering/VertexDataFormatTest.hx +++ b/tests/src/tests/rendering/VertexDataFormatTest.hx @@ -16,7 +16,7 @@ import utest.Test; class VertexDataFormatTest extends Test { - private static final STD_FORMAT:String = "position:float2, texCoords:float2, color:bytes4"; + @:final private static var STD_FORMAT:String = "position:float2, texCoords:float2, color:bytes4"; public function testFormatParsing():Void { diff --git a/tests/src/tests/rendering/VertexDataTest.hx b/tests/src/tests/rendering/VertexDataTest.hx index 20b1e7c3..f026622e 100644 --- a/tests/src/tests/rendering/VertexDataTest.hx +++ b/tests/src/tests/rendering/VertexDataTest.hx @@ -25,8 +25,8 @@ import utest.Test; class VertexDataTest extends Test { - private static final E:Float = 0.001; - private static final STD_FORMAT:String = "position:float2, texCoords:float2, color:bytes4"; + @:final private static var E:Float = 0.001; + @:final private static var STD_FORMAT:String = "position:float2, texCoords:float2, color:bytes4"; public function testNumVertices():Void diff --git a/tests/src/tests/text/TextFieldTest.hx b/tests/src/tests/text/TextFieldTest.hx index effd1bb2..3dc6625d 100644 --- a/tests/src/tests/text/TextFieldTest.hx +++ b/tests/src/tests/text/TextFieldTest.hx @@ -24,8 +24,8 @@ import utest.Assert; class TextFieldTest extends StarlingTest { - private static final E:Float = 0.0001; - private static final SUPER_LARGE_TEXT_LENGTH:Float = 3200; + @:final private static var E:Float = 0.0001; + @:final private static var SUPER_LARGE_TEXT_LENGTH:Float = 3200; public function testTextField():Void @@ -80,7 +80,7 @@ class TextFieldTest extends StarlingTest /** Creates a sample text longer than 'leastLength'. */ private function getSampleText(leastLength:Int):String { - final sample:String = "This is a sample String. "; + var sample:String = "This is a sample String. "; var repeat:Int = Math.ceil(leastLength / sample.length); var parts:Vector = new Vector(repeat); diff --git a/tests/src/tests/textures/TextureAtlasTest.hx b/tests/src/tests/textures/TextureAtlasTest.hx index 77976ee4..3f826a56 100644 --- a/tests/src/tests/textures/TextureAtlasTest.hx +++ b/tests/src/tests/textures/TextureAtlasTest.hx @@ -23,7 +23,7 @@ import utest.Test; class TextureAtlasTest extends Test { - private final E:Float = 0.0001; + @:final private var E:Float = 0.0001; public function testXmlParsing():Void { diff --git a/tests/src/tests/textures/TextureTest.hx b/tests/src/tests/textures/TextureTest.hx index a61a0582..590df491 100644 --- a/tests/src/tests/textures/TextureTest.hx +++ b/tests/src/tests/textures/TextureTest.hx @@ -22,7 +22,7 @@ import utest.Assert; class TextureTest extends Test { - private static final E:Float = 0.0001; + @:final private static var E:Float = 0.0001; public function testTextureCoordinates():Void { diff --git a/tests/src/tests/utils/AssetManagerTest.hx b/tests/src/tests/utils/AssetManagerTest.hx index 2c4c768b..225ac4ec 100644 --- a/tests/src/tests/utils/AssetManagerTest.hx +++ b/tests/src/tests/utils/AssetManagerTest.hx @@ -316,7 +316,7 @@ class AssetManagerTest extends StarlingTest public function testTextureAsset():Void { - final NAME:String = "test_texture"; + var NAME:String = "test_texture"; var texture:MockTexture = new MockTexture(); _manager.addAsset(NAME, texture); @@ -334,7 +334,7 @@ class AssetManagerTest extends StarlingTest public function testTextureAtlasAsset():Void { - final NAME:String = "test_textureAtlas"; + var NAME:String = "test_textureAtlas"; var atlas:TextureAtlas = new TextureAtlas(null); _manager.addAsset(NAME, atlas); @@ -350,7 +350,7 @@ class AssetManagerTest extends StarlingTest public function testSoundAsset():Void { - final NAME:String = "test_sound"; + var NAME:String = "test_sound"; var sound:Sound = new Sound(); _manager.addAsset(NAME, sound); @@ -372,7 +372,7 @@ class AssetManagerTest extends StarlingTest public function testXmlAsset():Void { - final NAME:String = "test_xml"; + var NAME:String = "test_xml"; var xml:Xml = Xml.parse(""); _manager.addAsset(NAME, xml); @@ -388,7 +388,7 @@ class AssetManagerTest extends StarlingTest public function testObjectAsset():Void { - final NAME:String = "test_object"; + var NAME:String = "test_object"; var object:Dynamic = {}; _manager.addAsset(NAME, object); @@ -404,7 +404,7 @@ class AssetManagerTest extends StarlingTest public function testByteArrayAsset():Void { - final NAME:String = "test_bytearray"; + var NAME:String = "test_bytearray"; var bytes:ByteArray = new ByteArray(); _manager.addAsset(NAME, bytes); diff --git a/tests/src/tests/utils/ColorTest.hx b/tests/src/tests/utils/ColorTest.hx index 8132851d..f21397b2 100644 --- a/tests/src/tests/utils/ColorTest.hx +++ b/tests/src/tests/utils/ColorTest.hx @@ -17,7 +17,7 @@ import utest.Test; class ColorTest extends Test { - private static final E:Float = 0.004; + @:final private static var E:Float = 0.004; public function testGetElement():Void diff --git a/tests/src/tests/utils/MathUtilTest.hx b/tests/src/tests/utils/MathUtilTest.hx index 519522cb..fcd2b363 100644 --- a/tests/src/tests/utils/MathUtilTest.hx +++ b/tests/src/tests/utils/MathUtilTest.hx @@ -19,7 +19,7 @@ import utest.Test; class MathUtilTest extends Test { - private static final E:Float = 0.0001; + @:final private static var E:Float = 0.0001; public function testNormalizeAngle():Void