45
45
check_equals(root->get_frame_count(), 14);
46
check_equals(root->get_play_state(), MovieClip::PLAY);
46
check_equals(root->getPlayState(), MovieClip::PLAYSTATE_PLAY);
47
47
check_equals(root->get_current_frame(), 0);
49
const character* mc1 = tester.findDisplayItemByName(*root, "mc1");
49
const DisplayObject* mc1 = tester.findDisplayItemByName(*root, "mc1");
52
const character* mc2 = tester.findDisplayItemByName(*root, "mc2");
52
const DisplayObject* mc2 = tester.findDisplayItemByName(*root, "mc2");
55
const character* mc3 = tester.findDisplayItemByName(*root, "mc3");
55
const DisplayObject* mc3 = tester.findDisplayItemByName(*root, "mc3");
58
58
check_equals(root->get_current_frame(), 0);
59
59
for (unsigned f=root->get_current_frame(); f<root->get_frame_count()-1; ++f)
61
61
check_equals(root->get_current_frame(), f);
62
check_equals(root->get_play_state(), MovieClip::PLAY);
62
check_equals(root->getPlayState(), MovieClip::PLAYSTATE_PLAY);
66
66
// does stop() on last frame
67
check_equals(root->get_play_state(), MovieClip::STOP);
67
check_equals(root->getPlayState(), MovieClip::PLAYSTATE_STOP);
68
68
check_equals(root->get_current_frame(), root->get_frame_count()-1);