OSDN Git Service

setActionVariable のテストに、DoActionタグがなくて一から生成するパターンを追加
authoryoya <yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Wed, 8 Jun 2011 04:56:58 +0000 (04:56 +0000)
committeryoya <yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Wed, 8 Jun 2011 04:56:58 +0000 (04:56 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/swfed/trunk@573 7c90b180-03d5-4157-b861-58a559ae9d1e

src/tests/action002.phpt [new file with mode: 0644]
src/tests/textvar-noaction.swf [new file with mode: 0755]

diff --git a/src/tests/action002.phpt b/src/tests/action002.phpt
new file mode 100644 (file)
index 0000000..f36126f
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+setActionVariables() : create doaction
+--FILE--
+<?php
+
+$swfdata = file_get_contents('tests/textvar-noaction.swf');
+$obj = new SWFEditor();
+$obj->input($swfdata);
+$params = array('testvar' => 'dummydummy');
+$obj->setActionVariables($params);
+echo md5($obj->output())."\n";
+?>
+===DONE===
+--EXPECTF--
+e9e1131d19532069b8f1b86a915a05c6
+===DONE===
diff --git a/src/tests/textvar-noaction.swf b/src/tests/textvar-noaction.swf
new file mode 100755 (executable)
index 0000000..3b1b0b0
Binary files /dev/null and b/src/tests/textvar-noaction.swf differ