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

« back to all changes in this revision

Viewing changes to testsuite/misc-ming.all/replace_shapes1test_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
 
62
62
        // FRAME 1 (start)
63
63
 
64
64
        check_equals(root->get_frame_count(), 4);
65
 
        check_equals(root->get_play_state(), MovieClip::PLAY);
 
65
        check_equals(root->getPlayState(), MovieClip::PLAYSTATE_PLAY);
66
66
        check_equals(root->get_current_frame(), 0);
67
67
        check_equals(root->getDisplayList().size(), 1);  // dejagnu clip
68
68
        invalidated = tester.getInvalidatedRanges();
69
69
        check( invalidated.contains(76, 4) ); // the "-xtrace enabled-" label...
70
70
 
71
 
        tester.advance(); // FRAME 2, place character
 
71
        tester.advance(); // FRAME 2, place DisplayObject
72
72
        invalidated = tester.getInvalidatedRanges();
73
73
        
74
 
        check_equals(root->get_play_state(), MovieClip::PLAY);
 
74
        check_equals(root->getPlayState(), MovieClip::PLAYSTATE_PLAY);
75
75
        check_equals(root->get_current_frame(), 1);
76
76
        check_equals(root->getDisplayList().size(), 2); // dejagnu + red char
77
77
 
90
90
        check_pixel(130, 296, 2, white, 2); // Top
91
91
        check_pixel(130, 364, 2, white, 2); // Bottom
92
92
 
93
 
        tester.advance(); // FRAME 3, replace character
 
93
        tester.advance(); // FRAME 3, replace DisplayObject
94
94
        invalidated = tester.getInvalidatedRanges();
95
95
        
96
 
        check_equals(root->get_play_state(), MovieClip::PLAY);
 
96
        check_equals(root->getPlayState(), MovieClip::PLAYSTATE_PLAY);
97
97
        check_equals(root->get_current_frame(), 2);
98
98
        check_equals(root->getDisplayList().size(), 2); // dejagnu + green char 
99
99
 
119
119
        tester.advance(); // FRAME 4, jump to frame 2 and stop
120
120
        invalidated = tester.getInvalidatedRanges();
121
121
 
122
 
        check_equals(root->get_play_state(), MovieClip::STOP);
 
122
        check_equals(root->getPlayState(), MovieClip::PLAYSTATE_STOP);
123
123
        check_equals(root->get_current_frame(), 1);
124
124
        check_equals(root->getDisplayList().size(), 2); // dejagnu + red char 
125
125