~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to testsuite/misc-ming.all/DefineEditTextVariableNameTest-Runner.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Sindhudweep Narayan Sarkar
  • Date: 2009-10-07 00:06:10 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20091007000610-mj9rwqe774gizn1j
Tags: 0.8.6-0ubuntu1
new upstream release 0.8.6 (LP: #435897)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "MovieTester.h"
24
24
#include "MovieClip.h"
25
 
#include "character.h"
 
25
#include "DisplayObject.h"
26
26
#include "DisplayList.h"
27
27
#include "log.h"
28
28
 
43
43
        assert(root);
44
44
 
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);
48
48
 
49
 
        const character* mc1 = tester.findDisplayItemByName(*root, "mc1");
 
49
        const DisplayObject* mc1 = tester.findDisplayItemByName(*root, "mc1");
50
50
        check(mc1);
51
51
 
52
 
        const character* mc2 = tester.findDisplayItemByName(*root, "mc2");
 
52
        const DisplayObject* mc2 = tester.findDisplayItemByName(*root, "mc2");
53
53
        check(mc2);
54
54
 
55
 
        const character* mc3 = tester.findDisplayItemByName(*root, "mc3");
 
55
        const DisplayObject* mc3 = tester.findDisplayItemByName(*root, "mc3");
56
56
        check(mc3);
57
57
 
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)
60
60
        {
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);
63
63
                tester.advance();
64
64
        }
65
65
 
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);
69
69
 
70
70
}