瀏覽代碼

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