svnno****@sourc*****
svnno****@sourc*****
2011年 4月 3日 (日) 17:02:06 JST
Revision: 515 http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=515 Author: yoya Date: 2011-04-03 17:02:05 +0900 (Sun, 03 Apr 2011) Log Message: ----------- getBitmapSize メソッドのテストスクリプト Added Paths: ----------- trunk/src/tests/bitmap001.phpt trunk/src/tests/bitmap002.phpt -------------- next part -------------- Added: trunk/src/tests/bitmap001.phpt =================================================================== --- trunk/src/tests/bitmap001.phpt (rev 0) +++ trunk/src/tests/bitmap001.phpt 2011-04-03 08:02:05 UTC (rev 515) @@ -0,0 +1,21 @@ +--TEST-- +getBitmapSize JPG +--FILE-- +<?php + +$swf_filename = 'tests/saitama.swf'; + +$swfdata = file_get_contents($swf_filename); + +$obj = new SWFEditor(); +$obj->input($swfdata); +$image_id = 1; +foreach ($obj->getBitmapSize($image_id) as $key => $value) { + echo "$key=$value\n"; +} +?> +===DONE=== +--EXPECTF-- +width=108 +height=80 +===DONE=== Added: trunk/src/tests/bitmap002.phpt =================================================================== --- trunk/src/tests/bitmap002.phpt (rev 0) +++ trunk/src/tests/bitmap002.phpt 2011-04-03 08:02:05 UTC (rev 515) @@ -0,0 +1,21 @@ +--TEST-- +getBitmapSize Lossless +--FILE-- +<?php + +$swf_filename = 'tests/negimiku.swf'; + +$swfdata = file_get_contents($swf_filename); + +$obj = new SWFEditor(); +$obj->input($swfdata); +$image_id = 1; +foreach ($obj->getBitmapSize($image_id) as $key => $value) { + echo "$key=$value\n"; +} +?> +===DONE=== +--EXPECTF-- +width=320 +height=240 +===DONE===