@@ -87,6 +87,8 @@ TEST_F(RenderedTargetTest, UpdateMethods)
8787 target.beforeRedraw ();
8888 ASSERT_EQ (target.width (), 4 );
8989 ASSERT_EQ (target.height (), 6 );
90+ ASSERT_EQ (target.costumeWidth (), 1 );
91+ ASSERT_EQ (target.costumeHeight (), 2 );
9092 ASSERT_EQ (target.x (), 263 );
9193 ASSERT_EQ (target.y (), 108 );
9294 ASSERT_EQ (target.z (), 0 );
@@ -125,6 +127,8 @@ TEST_F(RenderedTargetTest, UpdateMethods)
125127
126128 ASSERT_EQ (target.width (), 4 );
127129 ASSERT_EQ (target.height (), 6 );
130+ ASSERT_EQ (target.costumeWidth (), 1 );
131+ ASSERT_EQ (target.costumeHeight (), 2 );
128132 ASSERT_EQ (target.x (), 263 );
129133 ASSERT_EQ (target.y (), 108 );
130134 ASSERT_EQ (target.z (), 3 );
@@ -171,6 +175,8 @@ TEST_F(RenderedTargetTest, UpdateMethods)
171175 target.beforeRedraw ();
172176 ASSERT_EQ (target.width (), 4 );
173177 ASSERT_EQ (target.height (), 6 );
178+ ASSERT_EQ (target.costumeWidth (), 1 );
179+ ASSERT_EQ (target.costumeHeight (), 2 );
174180 ASSERT_EQ (target.x (), 276 );
175181 ASSERT_EQ (target.y (), 184 );
176182 ASSERT_EQ (target.transformOriginPoint ().x (), -23 );
@@ -241,6 +247,8 @@ TEST_F(RenderedTargetTest, UpdateMethods)
241247 target.beforeRedraw ();
242248 ASSERT_EQ (target.width (), 4 );
243249 ASSERT_EQ (target.height (), 6 );
250+ ASSERT_EQ (target.costumeWidth (), 1 );
251+ ASSERT_EQ (target.costumeHeight (), 2 );
244252 ASSERT_EQ (target.x (), 379.5 );
245253 ASSERT_EQ (target.y (), 384 );
246254 ASSERT_EQ (target.transformOriginPoint ().x (), 0 );
@@ -263,6 +271,8 @@ TEST_F(RenderedTargetTest, UpdateMethods)
263271
264272 ASSERT_EQ (target.width (), 26 );
265273 ASSERT_EQ (target.height (), 26 );
274+ ASSERT_EQ (target.costumeWidth (), 13 );
275+ ASSERT_EQ (target.costumeHeight (), 13 );
266276 ASSERT_EQ (target.x (), 329.5 );
267277 ASSERT_EQ (target.y (), 400 );
268278 ASSERT_EQ (target.z (), 3 );
@@ -277,13 +287,17 @@ TEST_F(RenderedTargetTest, UpdateMethods)
277287 ASSERT_TRUE (texture.isValid ());
278288 ASSERT_EQ (texture.width (), 26 );
279289 ASSERT_EQ (texture.height (), 26 );
290+ ASSERT_EQ (target.costumeWidth (), 13 );
291+ ASSERT_EQ (target.costumeHeight (), 13 );
280292
281293 // Stage scale (SVG) - should update width and height
282294 EXPECT_CALL (engine, stageWidth ()).WillOnce (Return (480 ));
283295 EXPECT_CALL (engine, stageHeight ()).WillOnce (Return (360 ));
284296 target.setStageScale (3.5 );
285297 ASSERT_EQ (target.width (), 52 );
286298 ASSERT_EQ (target.height (), 52 );
299+ ASSERT_EQ (target.costumeWidth (), 13 );
300+ ASSERT_EQ (target.costumeHeight (), 13 );
287301
288302 context.doneCurrent ();
289303}
0 commit comments