Преглед изворни кода

unspecified haxe.Template for Flash8 (not working)

Simon Krajewski пре 12 година
родитељ
комит
8daae1ea62
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      tests/unit/unitstd/haxe/Template.unit.hx

+ 3 - 1
tests/unit/unitstd/haxe/Template.unit.hx

@@ -1,3 +1,4 @@
+#if !flash8
 // normal
 var tpl = new haxe.Template("My name is <strong>::name::</strong> and I'm <em>::age::</em> years old.");
 var output = tpl.execute( { name : "John", age : 33 } );
@@ -18,4 +19,5 @@ function myfun( resolve : String -> Dynamic, title : String, p : Int ) {
 }
 var t1 = new haxe.Template("Call macro : $$myfun(Hello,::param::)");
 var str = t1.execute({ param : 55, mult : 2 },{ myfun : myfun });
-str == "Call macro : [Hello=110]";
+str == "Call macro : [Hello=110]";
+#end