[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/misc-mtasc.all level87.as level...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/testsuite/misc-mtasc.all level87.as level... |
Date: |
Tue, 08 Jan 2008 16:46:33 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/01/08 16:46:33
Modified files:
testsuite/misc-mtasc.all: level87.as level99.as
Log message:
Test that onUnload for _level isn't called
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/level87.as?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/level99.as?cvsroot=gnash&r1=1.12&r2=1.13
Patches:
Index: level87.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/level87.as,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- level87.as 8 Jan 2008 16:36:55 -0000 1.1
+++ level87.as 8 Jan 2008 16:46:33 -0000 1.2
@@ -26,6 +26,22 @@
{
static function main(mc)
{
+ mc.createEmptyMovieClip("ch", 1);
+ with(mc.ch)
+ {
+ lineStyle(1, 0x00000);
+ beginFill(0xFFFF00, 80);
+ var x=220;
+ var y=170;
+ var width=100;
+ var height=100;
+ moveTo(x, y);
+ lineTo(x+width, y);
+ lineTo(x+width, y+height);
+ lineTo(x, y+height);
+ lineTo(x, y);
+ endFill();
+ };
check_equals(mc._currentframe, 1);
Index: level99.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/level99.as,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- level99.as 8 Jan 2008 16:36:56 -0000 1.12
+++ level99.as 8 Jan 2008 16:46:33 -0000 1.13
@@ -114,6 +114,9 @@
check_equals(this.l5ref._target, '_level16394');
check_equals(this.l99ref._target,
'_level16414');
+ _level16394.onUnload = function() {
+ check(false); // should not be executed
+ }
_level16394.removeMovieClip();
check_equals(typeof(this.l5ref), 'movieclip');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/testsuite/misc-mtasc.all level87.as level...,
Sandro Santilli <=