チェンジセット 3965: as3/gunyarapaint
- コミット日時:
- 2010/06/06 19:10:13 (3 年前)
- ファイル:
-
- as3/gunyarapaint/branches/gunyarapaint/test/.actionScriptProperties (更新) (2 diffs)
- as3/gunyarapaint/branches/gunyarapaint/test/src/FlexUnitApplication.mxml (削除)
- as3/gunyarapaint/branches/gunyarapaint/test/src/FlexUnitCompilerApplication.mxml (削除)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/BeginFillCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/BezierCurveCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/CompatibilityCommandTest.as (更新) (2 diffs)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/CompositeCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/DrawCircleCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/EndFillComamndTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/FloodFillCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/HorizontalMirrorCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/LineToCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/MoveToCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/PenCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/PixelCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/RedoCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/ResetAllCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/UndoCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/VerticalMirrorCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/MergeLayerCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/MoveLayerCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/RemoveLayerCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/ScaleLayerCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/SetLayerAlphaCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/SetLayerBlendModeCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/SetLayerVisibleCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/SwapLayerCommandTest.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/CircleModuleTest.as (更新) (2 diffs)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/DropperModuleTest.as (更新) (2 diffs)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/EllipseModuleTest.as (更新) (2 diffs)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/FloodFillModuleTest.as (更新) (2 diffs)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/FreeHandModuleTest.as (更新) (2 diffs)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/LineModuleTest.as (更新) (2 diffs)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/ModuleTestUtil.as (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/PixelModuleTest.as (更新) (2 diffs)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/RectModuleTest.as (更新) (2 diffs)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/RoundRectModuleTest.as (更新) (2 diffs)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/TransparentFloodFillTest.as (更新) (4 diffs)
- as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/TransparentLineTest.as (更新) (3 diffs)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/gunyarapaint/branches/gunyarapaint/test/.actionScriptProperties
r3910 r3965 1 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <actionScriptProperties mainApplicationPath=" test.mxml" projectUUID="62604922-e4ec-4c95-a52c-0d54b3a1be75" version="6">2 <actionScriptProperties mainApplicationPath="FlexUnitRunner.mxml" projectUUID="62604922-e4ec-4c95-a52c-0d54b3a1be75" version="6"> 3 3 <compiler additionalCompilerArguments="-locale ja_JP" autoRSLOrdering="true" copyDependentFiles="true" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin-debug" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true"> 4 4 <compilerSourcePath/> … … 10 10 </libraryPathEntry> 11 11 <libraryPathEntry kind="3" linkType="1" path="/framework/bin/framework.swc" useDefaultLinkType="false"/> 12 <libraryPathEntry kind="1" linkType="1" path="${FLEXUNIT_LIB_LOCATION}/version4libs/Common/"/> 13 <libraryPathEntry kind="1" linkType="1" path="${FLEXUNIT_LIB_LOCATION}/version4libs/FlexProject/"/> 14 <libraryPathEntry kind="1" linkType="1" path="${FLEXUNIT_LOCALE_LOCATION}/version4locale/"/> 12 <libraryPathEntry kind="1" linkType="1" path="/Users/hkrn/Library/Flex/FlexUnit4"/> 15 13 </libraryPath> 16 14 <sourceAttachmentPath/> 17 15 </compiler> 18 16 <applications> 19 <application path="FlexUnitApplication.mxml"/> 20 <application path="FlexUnitCompilerApplication.mxml"/> 17 <application path="FlexUnitRunner.mxml"/> 21 18 </applications> 22 19 <modules/> as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/BeginFillCommandTest.as
r3781 r3965 11 11 public class BeginFillCommandTest 12 12 { 13 [Test ]14 public function 塗り開始コマンドの実行():void13 [Test(description="塗り開始コマンドが正しく実行されること")] 14 public function shouldExecuteCorrectly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/BezierCurveCommandTest.as
r3781 r3965 8 8 public final class BezierCurveCommandTest 9 9 { 10 [Test ]11 public function ベジエ曲線描写コマンドの実行():void10 [Test(description="ベジエ曲線描写コマンドが正しく実行されること")] 11 public function shouldExecuteCorrectly():void 12 12 { 13 13 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/CompatibilityCommandTest.as
r3781 r3965 9 9 public class CompatibilityCommandTest 10 10 { 11 [Test ]12 public function 互換性オプションのうちレイヤーのアンドゥを有効にする設定の実行():void11 [Test(description="互換性オプションのうちレイヤーのアンドゥを有効にする設定が正しく実行されること")] 12 public function shouldExecuteUndoLayerCompatibilityCorrectly():void 13 13 { 14 14 // default is false … … 32 32 } 33 33 34 [Test ]35 public function 互換性オプションのうち大きなピクセルを無効にする設定の実行():void34 [Test(description="互換性オプションのうち大きなピクセルを無効にする設定が正しく実行されること")] 35 public function shouldExecuteBigPixelCompatibilityCorrectly():void 36 36 { 37 37 // default is true as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/CompositeCommandTest.as
r3781 r3965 11 11 public class CompositeCommandTest 12 12 { 13 [Test ]14 public function 描写コマンドの実行():void13 [Test(description="描写コマンドが正しく実行されること")] 14 public function shouldExecuteCorrectly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/DrawCircleCommandTest.as
r3781 r3965 11 11 public class DrawCircleCommandTest 12 12 { 13 [Test ]14 public function 円弧を描写するコマンドの実行():void13 [Test(description="円弧を描写するコマンドが正しく実行されること")] 14 public function shouldExecuteCorrctly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/EndFillComamndTest.as
r3781 r3965 11 11 public class EndFillComamndTest 12 12 { 13 [Test ]14 public function 塗り終了コマンドの実行():void13 [Test(description="塗り終了コマンドが正しく実行されること")] 14 public function shouldExecuteCorrectly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/FloodFillCommandTest.as
r3781 r3965 11 11 public class FloodFillCommandTest 12 12 { 13 [Test ]14 public function 塗りつぶしコマンドの実行():void13 [Test(description="塗りつぶしコマンドが正しく実行されること")] 14 public function shouldExecuteCorrectly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/HorizontalMirrorCommandTest.as
r3781 r3965 11 11 public class HorizontalMirrorCommandTest 12 12 { 13 [Test ]14 public function 水平ミラー作成コマンドの実行():void13 [Test(description="水平ミラー作成コマンドが正しく実行されること")] 14 public function shouldExecuteCorrectly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/LineToCommandTest.as
r3781 r3965 11 11 public class LineToCommandTest 12 12 { 13 [Test ]14 public function xまたはyが7ビットを超えているなら圧縮を実行しない():void13 [Test(description="xまたはyが7ビットを超えているなら圧縮しないこと")] 14 public function shouldNotCompressIfArgsHasMoreThanSevenBits():void 15 15 { 16 assert (64, -65);17 assert (-65, 64);16 assertCoordinates(64, -65); 17 assertCoordinates(-65, 64); 18 18 } 19 19 20 [Test ]21 public function xまたはyが7ビット以下であればshortに圧縮():void20 [Test(description="xまたはyが7ビット以下であればshortに圧縮すること")] 21 public function shouldCompressToShortIfArgsHasUnderSevenBits():void 22 22 { 23 assert (63, -64);24 assert (-64, 63);25 assert (4, -5);26 assert (-5, 4);23 assertCoordinates(63, -64); 24 assertCoordinates(-64, 63); 25 assertCoordinates(4, -5); 26 assertCoordinates(-5, 4); 27 27 } 28 28 29 [Test ]30 public function xまたはyが3ビット以下であればbyteに圧縮():void29 [Test(description="xまたはyが3ビット以下であればbyteに圧縮すること")] 30 public function shouldCompressToByteIfArgsHasUnderThreeBits():void 31 31 { 32 assert (3, -4);33 assert (-4, 3);32 assertCoordinates(3, -4); 33 assertCoordinates(-4, 3); 34 34 } 35 35 36 private function assert (x:int, y:int):void36 private function assertCoordinates(x:int, y:int):void 37 37 { 38 38 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/MoveToCommandTest.as
r3781 r3965 10 10 public class MoveToCommandTest 11 11 { 12 [Test ]13 public function xまたはyが7ビットを超えているなら圧縮を実行しない():void12 [Test(description="xまたはyが7ビットを超えているなら圧縮しないこと")] 13 public function shouldNotCompressIfArgsHasMoreThanSevenBits():void 14 14 { 15 assert (64, -65);16 assert (-65, 64);15 assertCoordinates(64, -65); 16 assertCoordinates(-65, 64); 17 17 } 18 18 19 [Test ]20 public function xまたはyが7ビット以下であればshortに圧縮():void19 [Test(description="xまたはyが7ビット以下であればshortに圧縮すること")] 20 public function shouldCompressToShortIfArgsHasUnderSevenBits():void 21 21 { 22 assert (63, -64);23 assert (-64, 63);22 assertCoordinates(63, -64); 23 assertCoordinates(-64, 63); 24 24 } 25 25 26 private function assert (x:int, y:int):void26 private function assertCoordinates(x:int, y:int):void 27 27 { 28 28 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/PenCommandTest.as
r3845 r3965 14 14 public class PenCommandTest 15 15 { 16 [Test ]17 public function ペンの太さを調整():void16 [Test(description="ペンの太さが正しく変更されること")] 17 public function shouldChangeThicknessCorrectly():void 18 18 { 19 19 test(PenCommand.THICKNESS, "thickness", 42); 20 20 } 21 21 22 [Test ]23 public function ペンの色を調整():void22 [Test(description="ペンの色が正しく変更されること")] 23 public function shouldChangeColorCorrectly():void 24 24 { 25 25 test(PenCommand.COLOR, "color", 0xffffffff); 26 26 } 27 27 28 [Test ]29 public function ペンの透明度を調整():void28 [Test(description="ペンの不透明度が正しく変更されること")] 29 public function shouldChangeAlphaCorrectly():void 30 30 { 31 31 test(PenCommand.ALPHA, "alpha", 0.314); 32 32 } 33 33 34 [Test ]35 public function ペンのマイター値を調整():void34 [Test(description="ペンのマイター値が正しく変更されること")] 35 public function shouldChangeMiterLimitCorrectly():void 36 36 { 37 37 test(PenCommand.MITER_LIMIT, "miterLimit", 0.314); 38 38 } 39 39 40 [Test ]41 public function ペンのスケールモードを調整():void40 [Test(description="ペンのスケールモードが正しく変更されること")] 41 public function shouldChangeScaleModeCorrectly():void 42 42 { 43 43 test(PenCommand.SCALE_MODE, "scaleMode", LineScaleMode.VERTICAL); 44 44 } 45 45 46 [Test ]47 public function ペンのキャップを調整():void46 [Test(description="ペンのキャップモードが正しく変更されること")] 47 public function shouldChangeCapsStyleCorrectly():void 48 48 { 49 49 test(PenCommand.CAPS, "capsStyle", CapsStyle.SQUARE); 50 50 } 51 51 52 [Test ]53 public function ペンのジョイントを調整():void52 [Test(description="ペンのジョイントを調整")] 53 public function shouldChangeJointStyleCorrectly():void 54 54 { 55 55 test(PenCommand.JOINTS, "jointStyle", JointStyle.BEVEL); 56 56 } 57 57 58 [Test ]59 public function ペンのピクセルヒンティングを調整():void58 [Test(description="ペンのピクセルヒンティングを調整")] 59 public function shouldChangePixelHintingCorrectly():void 60 60 { 61 61 test(PenCommand.PIXEL_HINTING, "pixelHinting", false); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/PixelCommandTest.as
r3781 r3965 11 11 public class PixelCommandTest 12 12 { 13 [Test ]14 public function ピクセルコマンドの実行():void13 [Test(description="ピクセルコマンドが正しく実行されること")] 14 public function shouldExecuteCorrectly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/RedoCommandTest.as
r3781 r3965 10 10 public class RedoCommandTest 11 11 { 12 [Test ]13 public function やり直しコマンドの実行():void12 [Test(description="やり直しコマンドが正しく実行されること")] 13 public function shouldExecuteCorrectly():void 14 14 { 15 15 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/ResetAllCommandTest.as
r3796 r3965 8 8 public class ResetAllCommandTest 9 9 { 10 [Test ]11 public function 初期化コマンドの実行():void10 [Test(description="初期化コマンドが正しく実行されること")] 11 public function shouldExecuteCorrectly():void 12 12 { 13 13 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/UndoCommandTest.as
r3781 r3965 10 10 public class UndoCommandTest 11 11 { 12 [Test ]13 public function 巻き戻しコマンドの実行():void12 [Test(description="巻き戻しコマンドの実行")] 13 public function shouldExecuteCorrectly():void 14 14 { 15 15 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/VerticalMirrorCommandTest.as
r3781 r3965 11 11 public class VerticalMirrorCommandTest 12 12 { 13 [Test ]14 public function 垂直ミラー作成コマンドの実行():void13 [Test(description="垂直ミラー作成コマンドの実行")] 14 public function shouldExecuteCorrectly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/MergeLayerCommandTest.as
r3781 r3965 11 11 public class MergeLayerCommandTest 12 12 { 13 [Test ]14 public function レイヤー統合コマンドの実行():void13 [Test(description="レイヤー統合コマンドが正しく実行されること")] 14 public function shouldExecuteCorrectly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/MoveLayerCommandTest.as
r3781 r3965 10 10 public final class MoveLayerCommandTest 11 11 { 12 [Test ]13 public function レイヤー移動コマンドの実行():void12 [Test(description="レイヤー移動コマンドが正しく実行されること")] 13 public function shouldExecuteCorrectly():void 14 14 { 15 15 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/RemoveLayerCommandTest.as
r3781 r3965 11 11 public class RemoveLayerCommandTest 12 12 { 13 [Test ]14 public function レイヤー削除コマンドの実行():void13 [Test(description="レイヤー削除コマンドが正しく実行されること")] 14 public function shouldExecuteCorrectly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/ScaleLayerCommandTest.as
r3781 r3965 10 10 public final class ScaleLayerCommandTest 11 11 { 12 [Test ]13 public function レイヤー拡大縮小コマンドの実行():void12 [Test(description="レイヤー拡大縮小コマンドが正しく実行されること")] 13 public function shouldExecuteCorrectly():void 14 14 { 15 15 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/SetLayerAlphaCommandTest.as
r3781 r3965 11 11 public class SetLayerAlphaCommandTest 12 12 { 13 [Test ]14 public function レイヤーの透明度を設定するコマンドの実行():void13 [Test(description="レイヤーの透明度を設定するコマンドが正しく実行されること")] 14 public function shouldExecuteCorrectly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/SetLayerBlendModeCommandTest.as
r3781 r3965 12 12 public class SetLayerBlendModeCommandTest 13 13 { 14 [Test ]15 public function レイヤーのブレンドモードを設定するコマンドの実行():void14 [Test(description="レイヤーのブレンドモードを設定するコマンドが正しく実行されること")] 15 public function shouldExecuteCorrectly():void 16 16 { 17 17 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/SetLayerVisibleCommandTest.as
r3781 r3965 11 11 public class SetLayerVisibleCommandTest 12 12 { 13 [Test ]14 public function レイヤーのインデックスを設定するコマンドの実行():void13 [Test(description="レイヤーのインデックスを設定するコマンドが正しく実行されること")] 14 public function shouldExecuteCorrectly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/commands/layer/SwapLayerCommandTest.as
r3781 r3965 11 11 public class SwapLayerCommandTest 12 12 { 13 [Test ]14 public function レイヤー交換コマンドの実行():void13 [Test(description="レイヤー交換コマンドが正しく実行されること")] 14 public function shouldExecuteCorrectly():void 15 15 { 16 16 var bytes:ByteArray = new ByteArray(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/CircleModuleTest.as
r3845 r3965 22 22 } 23 23 24 [Test ]25 public function CircleModuleであること():void24 [Test(description="CircleModuleであること")] 25 public function shouldBeCircleModule():void 26 26 { 27 27 Assert.assertTrue(m_module is CircleModule); … … 29 29 } 30 30 31 [Test ]32 public function 移動せずに描画すると何も起こらないこと():void31 [Test(description="移動せずに描画すると何も起こらないこと")] 32 public function shouldDoNothingWithoutMoving():void 33 33 { 34 34 m_module.start(1, 1); 35 35 m_module.stop(1, 1); 36 ModuleTestUtil. countCommands(0, m_bytes);36 ModuleTestUtil.assertCommands(0, m_bytes); 37 37 } 38 38 39 [Test ]40 public function 移動して描画すると3つのコマンドが実行されること():void39 [Test(description="移動して描画すると3つのコマンドが実行されること")] 40 public function shouldExecuteThreeCommandsWithMoving():void 41 41 { 42 42 m_module.start(1, 1); 43 43 m_module.move(2, 2); 44 44 m_module.stop(3, 3); 45 ModuleTestUtil. countCommands(3, m_bytes);45 ModuleTestUtil.assertCommands(3, m_bytes); 46 46 } 47 47 48 [Test ]49 public function 移動位置が保存されること():void48 [Test(description="移動位置が保存されること")] 49 public function shouldSaveCoordinates():void 50 50 { 51 ModuleTestUtil. getLineSegment(m_module, true);51 ModuleTestUtil.assertLineSegment(m_module, true); 52 52 } 53 53 as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/DropperModuleTest.as
r3845 r3965 21 21 } 22 22 23 [Test ]24 public function DropperModuleであること():void23 [Test(description="DropperModuleであること")] 24 public function shouldBeDropperModule():void 25 25 { 26 26 Assert.assertTrue(m_module is DropperModule); … … 28 28 } 29 29 30 [Test ]31 public function スポイトを実行すると1つのコマンドが実行されること():void30 [Test(description="スポイトを実行すると1つのコマンドが実行されること")] 31 public function shouldExecuteOneCommand():void 32 32 { 33 33 m_module.start(1, 1); 34 34 m_module.move(2, 2); 35 35 m_module.stop(3, 3); 36 ModuleTestUtil. countCommands(1, m_bytes);36 ModuleTestUtil.assertCommands(1, m_bytes); 37 37 } 38 38 39 [Test ]40 public function 移動位置が保存されること():void39 [Test(description="移動位置が保存されること")] 40 public function shouldSaveCoordinates():void 41 41 { 42 ModuleTestUtil. getLineSegment(m_module, false);42 ModuleTestUtil.assertLineSegment(m_module, false); 43 43 } 44 44 as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/EllipseModuleTest.as
r3917 r3965 21 21 } 22 22 23 [Test ]24 public function EllipseModuleであること():void23 [Test(description="EllipseModuleであること")] 24 public function shouldBeEllipseModule():void 25 25 { 26 26 Assert.assertTrue(m_module is EllipseModule); … … 28 28 } 29 29 30 [Test ]31 public function 移動せずに描画すると何も起こらないこと():void30 [Test(description="移動せずに描画すると何も起こらないこと")] 31 public function shouldDoNothingWithoutMoving():void 32 32 { 33 33 m_module.start(1, 1); 34 34 m_module.stop(1, 1); 35 ModuleTestUtil. countCommands(0, m_bytes);35 ModuleTestUtil.assertCommands(0, m_bytes); 36 36 } 37 37 38 [Test ]39 public function 移動して描画する():void38 [Test(description="移動位置が保存されること")] 39 public function shouldSaveCoordinates():void 40 40 { 41 // TODO: implement this 42 } 43 44 [Test] 45 public function 移動位置が保存されること():void 46 { 47 ModuleTestUtil.getLineSegment(m_module, true); 41 ModuleTestUtil.assertLineSegment(m_module, true); 48 42 } 49 43 as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/FloodFillModuleTest.as
r3845 r3965 21 21 } 22 22 23 [Test ]24 public function FloodFillModuleであること():void23 [Test(description="FloodFillModuleであること")] 24 public function shouldBeFloodFillModule():void 25 25 { 26 26 Assert.assertTrue(m_module is FloodFillModule); … … 28 28 } 29 29 30 [Test ]31 public function 塗潰を実行すると2つのコマンドが実行されること():void30 [Test(description="塗り潰しを実行すると2つのコマンドが実行されること")] 31 public function shouldExecuteTwoCommands():void 32 32 { 33 33 m_module.start(1, 1); 34 34 m_module.move(2, 2); 35 35 m_module.stop(3, 3); 36 ModuleTestUtil. countCommands(2, m_bytes);36 ModuleTestUtil.assertCommands(2, m_bytes); 37 37 } 38 38 39 [Test ]40 public function 移動位置が保存されること():void39 [Test(description="移動位置が保存されること")] 40 public function shouldSaveCoordinates():void 41 41 { 42 ModuleTestUtil. getLineSegment(m_module, false);42 ModuleTestUtil.assertLineSegment(m_module, false); 43 43 } 44 44 as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/FreeHandModuleTest.as
r3845 r3965 21 21 } 22 22 23 [Test ]24 public function FreeHandModuleであること():void23 [Test(description="FreeHandModuleであること")] 24 public function shouldBeFreeHandModule():void 25 25 { 26 26 Assert.assertTrue(m_module is FreeHandModule); … … 28 28 } 29 29 30 [Test ]31 public function 移動せずに描画すると7つのコマンドが実行されること():void30 [Test(description="移動せずに描画すると7つのコマンドが実行されること")] 31 public function shouldExecuteSevenCommandsWithoutMoving():void 32 32 { 33 33 m_module.start(1, 1); 34 34 m_module.stop(1, 1); 35 ModuleTestUtil. countCommands(7, m_bytes);35 ModuleTestUtil.assertCommands(7, m_bytes); 36 36 } 37 37 38 [Test ]39 public function 移動して描画すると3つのコマンドが実行されること():void38 [Test(description="移動して描画すると3つのコマンドが実行されること")] 39 public function shouldExecuteThreeCommandsWithMoving():void 40 40 { 41 41 m_module.start(1, 1); 42 42 m_module.move(2, 2); 43 43 m_module.stop(3, 3); 44 ModuleTestUtil. countCommands(3, m_bytes);44 ModuleTestUtil.assertCommands(3, m_bytes); 45 45 } 46 46 47 [Test ]48 public function 移動位置が保存されること():void47 [Test(description="移動位置が保存されること")] 48 public function shouldSaveCoordinates():void 49 49 { 50 ModuleTestUtil. getLineSegment(m_module, true);50 ModuleTestUtil.assertLineSegment(m_module, true); 51 51 } 52 52 as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/LineModuleTest.as
r3845 r3965 21 21 } 22 22 23 [Test ]24 public function LineModuleであること():void23 [Test(description="LineModuleであること")] 24 public function shouldBeLineModule():void 25 25 { 26 26 Assert.assertTrue(m_module is LineModule); … … 28 28 } 29 29 30 [Test ]31 public function 移動せずに描画すると何も起こらないこと():void30 [Test(description="移動せずに描画すると何も起こらないこと")] 31 public function shouldDoNothingWithoutMoving():void 32 32 { 33 33 m_module.start(1, 1); 34 34 m_module.stop(1, 1); 35 ModuleTestUtil. countCommands(0, m_bytes);35 ModuleTestUtil.assertCommands(0, m_bytes); 36 36 } 37 37 38 [Test ]39 public function 移動して描画すると3つのコマンドが実行されること():void38 [Test(description="移動して描画すると3つのコマンドが実行されること")] 39 public function shouldExecuteThreeCommandsWithMoving():void 40 40 { 41 41 m_module.start(1, 1); 42 42 m_module.move(2, 2); 43 43 m_module.stop(3, 3); 44 ModuleTestUtil. countCommands(3, m_bytes);44 ModuleTestUtil.assertCommands(3, m_bytes); 45 45 } 46 46 47 [Test ]48 public function 移動位置が保存されること():void47 [Test(description="移動位置が保存されること")] 48 public function shouldSaveCoordinates():void 49 49 { 50 ModuleTestUtil. getLineSegment(m_module, true);50 ModuleTestUtil.assertLineSegment(m_module, true); 51 51 } 52 52 as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/ModuleTestUtil.as
r3605 r3965 44 44 } 45 45 46 public static function countCommands(expected:uint, bytes:ByteArray):void46 public static function assertCommands(expected:uint, bytes:ByteArray):void 47 47 { 48 48 Assert.assertEquals(expected, getCommands(bytes).length); 49 49 } 50 50 51 public static function getLineSegment(module:ICanvasModule, checkStart:Boolean):void51 public static function assertLineSegment(module:ICanvasModule, checkStart:Boolean):void 52 52 { 53 53 var start:Point = new Point(); as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/PixelModuleTest.as
r3845 r3965 21 21 } 22 22 23 [Test ]24 public function PixelModuleであること():void23 [Test(description="PixelModuleであること")] 24 public function shouldBePixelModule():void 25 25 { 26 26 Assert.assertTrue(m_module is PixelModule); … … 28 28 } 29 29 30 [Test ]31 public function 移動せずに描画すると1つのコマンドが実行されること():void30 [Test(description="移動せずに描画すると1つのコマンドが実行されること")] 31 public function shouldExecuteOneCommandWithoutMoving():void 32 32 { 33 33 m_module.start(1, 1); 34 34 m_module.stop(1, 1); 35 ModuleTestUtil. countCommands(1, m_bytes);35 ModuleTestUtil.assertCommands(1, m_bytes); 36 36 } 37 37 38 [Test ]39 public function 移動して描画すると2つのコマンドが実行されること():void38 [Test(description="移動して描画すると2つのコマンドが実行されること")] 39 public function shouldExecuteTwoCommandsWithMoving():void 40 40 { 41 41 m_module.start(1, 1); 42 42 m_module.move(2, 2); 43 43 m_module.stop(3, 3); 44 ModuleTestUtil. countCommands(2, m_bytes);44 ModuleTestUtil.assertCommands(2, m_bytes); 45 45 } 46 46 47 [Test ]48 public function 移動位置が保存されること():void47 [Test(description="移動位置が保存されること")] 48 public function shouldSaveCoordinates():void 49 49 { 50 ModuleTestUtil. getLineSegment(m_module, false);50 ModuleTestUtil.assertLineSegment(m_module, false); 51 51 } 52 52 as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/RectModuleTest.as
r3845 r3965 21 21 } 22 22 23 [Test ]24 public function RectModuleであること():void23 [Test(description="RectModuleであること")] 24 public function shouldBeRectModule():void 25 25 { 26 26 Assert.assertTrue(m_module is RectModule); … … 28 28 } 29 29 30 [Test ]31 public function 移動せずに描画すると何も起こらないこと():void30 [Test(description="移動せずに描画すると何も起こらないこと")] 31 public function shouldDoNothingWithoutMoving():void 32 32 { 33 33 m_module.start(1, 1); 34 34 m_module.stop(1, 1); 35 ModuleTestUtil. countCommands(0, m_bytes);35 ModuleTestUtil.assertCommands(0, m_bytes); 36 36 } 37 37 38 [Test ]39 public function 移動して描画すると():void38 [Test(description="移動位置が保存されること")] 39 public function shouldSaveCoordinates():void 40 40 { 41 // TODO: implement this 42 } 43 44 [Test] 45 public function 移動位置が保存されること():void 46 { 47 ModuleTestUtil.getLineSegment(m_module, true); 41 ModuleTestUtil.assertLineSegment(m_module, true); 48 42 } 49 43 as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/RoundRectModuleTest.as
r3845 r3965 21 21 } 22 22 23 [Test ]24 public function RoundRectModuleであること():void23 [Test(description="RoundRectModuleであること")] 24 public function shouldBeRoundRectModule():void 25 25 { 26 26 Assert.assertTrue(m_module is RoundRectModule); … … 28 28 } 29 29 30 [Test ]31 public function 移動せずに描画すると何も起こらないこと():void30 [Test(description="移動せずに描画すると何も起こらないこと")] 31 public function shouldDoNothingWithoutMoving():void 32 32 { 33 33 m_module.start(1, 1); 34 34 m_module.stop(1, 1); 35 ModuleTestUtil. countCommands(0, m_bytes);35 ModuleTestUtil.assertCommands(0, m_bytes); 36 36 } 37 37 38 [Test ]39 public function 移動して描画すると():void38 [Test(description="移動位置が保存されること")] 39 public function shouldSaveCoordinates():void 40 40 { 41 // TODO: implement this 42 } 43 44 [Test] 45 public function 移動位置が保存されること():void 46 { 47 ModuleTestUtil.getLineSegment(m_module, true); 41 ModuleTestUtil.assertLineSegment(m_module, true); 48 42 } 49 43 as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/TransparentFloodFillTest.as
r3845 r3965 21 21 } 22 22 23 [Test ]24 public function TransparentFloodFillModuleであること():void23 [Test(description="TransparentFloodFillModuleであること")] 24 public function shouldBeTransparentFloodFillModule():void 25 25 { 26 26 Assert.assertTrue(m_module is TransparentFloodFill); … … 28 28 } 29 29 30 [Test ]31 public function 透明塗りつぶしを実行すると6つのコマンドが実行された上で色情報が復帰されること():void30 [Test(description="透明塗りつぶしを実行すると6つのコマンドが実行された上で色情報が復帰されること")] 31 public function shouldExecuteSixCommandsAndRestoreColorAndAlpha():void 32 32 { 33 33 var pen:Pen = m_recorder.pen; … … 37 37 m_module.move(2, 2); 38 38 m_module.stop(3, 3); 39 ModuleTestUtil. countCommands(6, m_bytes);39 ModuleTestUtil.assertCommands(6, m_bytes); 40 40 Assert.assertStrictlyEquals(0.5, pen.alpha); 41 41 Assert.assertStrictlyEquals(0x123456, pen.color); 42 42 } 43 43 44 [Test ]45 public function 途中で中断したとしても色情報が復帰されること():void44 [Test(description="途中で中断したとしても色情報が復帰されること")] 45 public function shouldRestoreColorAndAlphaIfInterrupted():void 46 46 { 47 47 var pen:Pen = m_recorder.pen; … … 50 50 m_module.start(1, 1); 51 51 m_module.interrupt(2, 2); 52 ModuleTestUtil. countCommands(6, m_bytes);52 ModuleTestUtil.assertCommands(6, m_bytes); 53 53 Assert.assertStrictlyEquals(0.5, pen.alpha); 54 54 Assert.assertStrictlyEquals(0x123456, pen.color); 55 55 } 56 56 57 [Test ]58 public function 移動位置が保存されること():void57 [Test(description="移動位置が保存されること")] 58 public function shouldSaveCoordinates():void 59 59 { 60 ModuleTestUtil. getLineSegment(m_module, false);60 ModuleTestUtil.assertLineSegment(m_module, false); 61 61 } 62 62 as3/gunyarapaint/branches/gunyarapaint/test/src/org/libspark/gunyarapaint/framework/module/TransparentLineTest.as
r3845 r3965 21 21 } 22 22 23 [Test ]24 public function TransparentLineModuleであること():void23 [Test(description="TransparentLineModuleであること")] 24 public function shouldBeTransparentLineModule():void 25 25 { 26 26 Assert.assertTrue(m_module is TransparentLineModule); … … 28 28 } 29 29 30 [Test ]31 public function 移動せずに描画すると何も起こならないがブレンドモードは復帰されること():void30 [Test(description="移動せずに描画すると何も起こならないがブレンドモードは復帰されること")] 31 public function shouldDoNothingButRestoreBlendModeWithoutMoving():void 32 32 { 33 33 m_recorder.pen.blendMode = BlendMode.ADD; 34 34 m_module.start(1, 1); 35 35 m_module.stop(1, 1); 36 ModuleTestUtil. countCommands(0, m_bytes);36 ModuleTestUtil.assertCommands(0, m_bytes); 37 37 Assert.assertStrictlyEquals(BlendMode.ADD, m_recorder.pen.blendMode); 38 38 } 39 39 40 [Test ]41 public function 移動して描画すると5つのコマンドが実行された上でブレンドモードが復帰されること():void40 [Test(description="移動して描画すると5つのコマンドが実行された上でブレンドモードが復帰されること")] 41 public function shouldExecuteFiveCommandsAndRestoreBlendModeWithMoving():void 42 42 { 43 43 m_recorder.pen.blendMode = BlendMode.DARKEN; … … 45 45 m_module.move(2, 2); 46 46 m_module.stop(3, 3); 47 ModuleTestUtil. countCommands(5, m_bytes);47 ModuleTestUtil.assertCommands(5, m_bytes); 48 48 Assert.assertStrictlyEquals(BlendMode.DARKEN, m_recorder.pen.blendMode); 49 49 } 50 50 51 [Test ]52 public function 移動位置が保存されること():void51 [Test(description="移動位置が保存されること")] 52 public function shouldSaveCoordinates():void 53 53 { 54 ModuleTestUtil. getLineSegment(m_module, true);54 ModuleTestUtil.assertLineSegment(m_module, true); 55 55 } 56 56

