Nicolas Cannasse 19 anni fa
parent
commit
927e896d4e
1 ha cambiato i file con 17 aggiunte e 17 eliminazioni
  1. 17 17
      std/haxe/unit/TestRunner.hx

+ 17 - 17
std/haxe/unit/TestRunner.hx

@@ -32,23 +32,23 @@ class TestRunner {
 	private static function print( v : Dynamic ){
 		#if flash
 		untyped {
-						var root = flash.Lib.current;
-						var tf = root.__trace_txt;
-						if( tf == null ) {
-										root.createTextField("__trace_txt",1048500,0,0,Stage.width,Stage.height);
-										tf = root.__trace_txt;
-										tf.selectable = false;
-										tf.wordWrap = true;
-										root.__trace_lines = new Array<String>();
-						}
-						var s = flash.Boot.__string_rec(v,"");
-						tf.text += s;
-						var lines = tf.text.split("\n");
-						var nlines = Stage.height / 16;
-						if( lines.length > nlines ){
-										lines.splice(0,lines.length-nlines);
-							tf.text = lines.join("\n");
-						}
+			var root : flash.MovieClip = flash.Lib.current;
+			var tf : flash.TextField = root.__trace_txt;
+			if( tf == null ) {
+				root.createTextField("__trace_txt",1048500,0,0,flash.Stage.width,flash.Stage.height);
+				tf = root.__trace_txt;
+				tf.selectable = false;
+				tf.wordWrap = true;
+				root.__trace_lines = new Array<String>();
+			}
+			var s = flash.Boot.__string_rec(v,"");
+			tf.text += s;
+			var lines = tf.text.split("\n");
+			var nlines = flash.Stage.height / 16;
+			if( lines.length > nlines ){
+				lines.splice(0,lines.length-nlines);
+				tf.text = lines.join("\n");
+			}
 		}
 		#else neko
 		untyped __dollar__print(v);