[Swfed-svn] swfed-svn [479] purgeUselessContents を使ったテストスクリプト

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 3月 28日 (月) 00:57:08 JST


Revision: 479
          http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=479
Author:   yoya
Date:     2011-03-28 00:57:08 +0900 (Mon, 28 Mar 2011)

Log Message:
-----------
purgeUselessContents を使ったテストスクリプト

Added Paths:
-----------
    trunk/src/tests/movieclip002.phpt


-------------- next part --------------
Added: trunk/src/tests/movieclip002.phpt
===================================================================
--- trunk/src/tests/movieclip002.phpt	                        (rev 0)
+++ trunk/src/tests/movieclip002.phpt	2011-03-27 15:57:08 UTC (rev 479)
@@ -0,0 +1,24 @@
+--TEST--
+replaceGIFData and Purge
+--FILE--
+<?php
+
+$swf_filename = 'tests/negimiku.swf';
+$swf_filename2 = 'tests/saitama3.swf';
+
+$swfdata = file_get_contents($swf_filename);
+$swfdata2 = file_get_contents($swf_filename2);
+$obj = new SWFEditor();
+
+$obj->input($swfdata);
+
+$obj->replaceMovieClip('miku', $swfdata2);
+
+$obj->purgeUselessContents();
+
+echo md5($obj->output())."\n";
+?>
+===DONE===
+--EXPECTF--
+e97cf06492bf9bf7856b83d4bf0aa2a8
+===DONE===



Swfed-svn メーリングリストの案内
Back to archive index