Add automated tests on function-type FSCommand parameter passing.
[gnash.git] / testsuite / misc-ming.all / gotoFrame2Test.as
blob5c623fd42892139232d7f07dc17bade8a03b959b
1 // gotoAndPlay() testcase
2 // Source file provided for reference
4 // This code is in frame #2 of a 2-frame file!
6 ++counter;
8 var temp = _currentframe;
10 check_equals(temp, 2);
11 check_equals(counter, 1);
13 // this would emit a function call
14 //this.gotoAndPlay(temp);
16 // this would emit a GOTOFRAME tag
17 //gotoFrame(2);
19 // this emits a GOTOFRAME2 (GOTOEXPRESSION) tag
20 // (only if Ming version is 00040004 or higher)
21 gotoAndPlay(temp);
23 check_equals(_currentframe, temp);
24 check_equals(counter, 1); // gotoFrame(_currentframe) is a no-op
26 totals();
27 stop();