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

« back to all changes in this revision

Viewing changes to testsuite/misc-ming.all/loop_test5.c

  • 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:
17
17
 */ 
18
18
 
19
19
/*
20
 
 * Test "Jumping backward to the middle of a character's lifetime after removal and replacement(2)"
 
20
 * Test "Jumping backward to the middle of a DisplayObject's lifetime after removal and replacement(2)"
21
21
 *
22
22
 * Timeline:
23
23
 * 
34
34
 * Description:
35
35
 *
36
36
 *  frame2: 
37
 
 *    a static characters is placed at depth 3 (-16381) [ a red square ]
38
 
 *    a static character is placed at depth 4 (-16380) [ a black square ]
 
37
 *    a static DisplayObjects is placed at depth 3 (-16381) [ a red square ]
 
38
 *    a static DisplayObject is placed at depth 4 (-16380) [ a black square ]
39
39
 *  frame3: nothing new.
40
40
 *  frame4: 
41
 
 *    character at depth 3 is removed;
42
 
 *    character at depth 4 is removed;
 
41
 *    DisplayObject at depth 3 is removed;
 
42
 *    DisplayObject at depth 4 is removed;
43
43
 *  frame5:
44
 
 *    a static character is placed at depth 3 (-16381) with ratio set to 2.0
45
 
 *    a static character is placed at depth 4 (-16380) with ratio set to 0.0
 
44
 *    a static DisplayObject is placed at depth 3 (-16381) with ratio set to 2.0
 
45
 *    a static DisplayObject is placed at depth 4 (-16380) with ratio set to 0.0
46
46
 *          
47
47
 *  frame6: jump to frame 3 and stop.
48
48
 *
49
49
 * Expected behaviour:
50
50
 *
51
 
 *   After jump back, characters in depth 3 placed at frame5 get destroyed, 
52
 
 *   characters in depth 4 placed in frame 5 keeps alive. Their ratio values are different.
 
51
 *   After jump back, DisplayObjects in depth 3 placed at frame5 get destroyed, 
 
52
 *   DisplayObjects in depth 4 placed in frame 5 keeps alive. Their ratio values are different.
53
53
 *
54
54
 * run as ./loop_test5
55
55
 */
100
100
  
101
101
  //
102
102
  // Frame 2: 
103
 
  //   Place red static movieClip1 character at depth 3 (-16381)
104
 
  //   Place black static movieClip1 character at depth 4 (-16380)
 
103
  //   Place red static movieClip1 DisplayObject at depth 3 (-16381)
 
104
  //   Place black static movieClip1 DisplayObject at depth 4 (-16380)
105
105
  //
106
106
  sh1 = make_fill_square (300, 300, 60, 60, 255, 0, 0, 255, 0, 0);
107
107
  mc1 = newSWFMovieClip();
143
143
  
144
144
  //
145
145
  // Frame5: 
146
 
  //   Place red static movieClip3 character at depth 3 (-16381) with ratio set to 2.0
147
 
  //   Place black static movieClip4 character at depth4 (-16380) with ratio set to 0.0
 
146
  //   Place red static movieClip3 DisplayObject at depth 3 (-16381) with ratio set to 2.0
 
147
  //   Place black static movieClip4 DisplayObject at depth4 (-16380) with ratio set to 0.0
148
148
  //
149
149
 
150
150
  it1 = SWFMovie_add(mo, (SWFBlock)mc1);  //add movieClip3 to the _root