gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/testsuite/actionscript.all MovieClip.as


From: strk
Subject: [Gnash-commit] gnash/testsuite/actionscript.all MovieClip.as
Date: Wed, 15 Feb 2006 10:35:54 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         
Changes by:     strk <address@hidden>   06/02/15 10:35:54

Modified files:
        testsuite/actionscript.all: MovieClip.as 

Log message:
        Skipped block reintroduced, changed checks to act on a movieclip
        reference variable rather then to 'this'. the reference is initialized
        to 'this'

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/testsuite/actionscript.all/MovieClip.as.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gnash/testsuite/actionscript.all/MovieClip.as
diff -u gnash/testsuite/actionscript.all/MovieClip.as:1.1 
gnash/testsuite/actionscript.all/MovieClip.as:1.2
--- gnash/testsuite/actionscript.all/MovieClip.as:1.1   Wed Feb 15 09:40:49 2006
+++ gnash/testsuite/actionscript.all/MovieClip.as       Wed Feb 15 10:35:54 2006
@@ -23,6 +23,10 @@
 
 #include "check.as"
 
+// Get a reference to a MovieClip
+var mc = _root;
+check(typeof(mc)=="movieclip");
+
 // Check some references
 check(this != undefined);
 check(_parent == undefined);
@@ -30,103 +34,110 @@
 check(_root == this);
 
 // Check inheritance
-check(this.__proto__ == MovieClip.prototype);
+check(mc.__proto__ == MovieClip.prototype);
 
-#if 0
 // Check methods existance
-check(this.attachAudio != undefined);
-check(this.attachMovie != undefined);
-check(this.beginFill != undefined);
-check(this.beginGradientFill != undefined);
-check(this.clear != undefined);
-check(this.createEmptyMovieClip != undefined);
-check(this.createTextField != undefined);
-check(this.curveTo != undefined);
-check(this.duplicateMovieClip != undefined);
-check(this.endFill != undefined);
-check(this.getBytesLoaded != undefined);
-check(this.getBytesTotal != undefined);
-check(this.getBounds != undefined);
-check(this.getDepth != undefined);
-#endif
+check(mc.attachAudio != undefined);
+check(mc.attachMovie != undefined);
+check(mc.beginFill != undefined);
+check(mc.beginGradientFill != undefined);
+check(mc.clear != undefined);
+check(mc.createEmptyMovieClip != undefined);
+check(mc.createTextField != undefined);
+check(mc.curveTo != undefined);
+
+// not available ?
+//check(mc.duplicateMovieClip == undefined);
+
+check(mc.endFill != undefined);
+check(mc.getBytesLoaded != undefined);
+check(mc.getBytesTotal != undefined);
+check(mc.getBounds != undefined);
+check(mc.getDepth != undefined);
 
 #if OUTPUT_VERSION >= 7
-check(this.getInstanceAtDepth != undefined);
-check(this.getNextHighestDepth != undefined);
-check(this.getSWFVersion != undefined);
-check(this.getTextSnapshot != undefined);
+check(mc.getInstanceAtDepth != undefined);
+check(mc.getNextHighestDepth != undefined);
+check(mc.getSWFVersion != undefined);
+check(mc.getTextSnapshot != undefined);
 #endif
 
-check(this.getURL != undefined);
-check(this.globalToLocal != undefined);
-check(this.gotoAndPlay != undefined);
-check(this.gotoAndStop != undefined);
-check(this.hitTest != undefined);
-check(this.lineStyle != undefined);
-check(this.lineTo != undefined);
-check(this.loadMovie != undefined);
-check(this.loadVariables != undefined);
-check(this.localToGlobal != undefined);
-check(this.moveTo != undefined);
-check(this.nextFrame != undefined);
-check(this.play != undefined);
-check(this.prevFrame != undefined);
-check(this.removeMovieClip != undefined);
-check(this.setMask != undefined);
-check(this.startDrag != undefined);
-check(this.stop != undefined);
-check(this.stopDrag != undefined);
-check(this.swapDepths != undefined);
-check(this.unloadMovie != undefined);
+check(mc.getURL != undefined);
+check(mc.globalToLocal != undefined);
+check(mc.gotoAndPlay != undefined);
+check(mc.gotoAndStop != undefined);
+check(mc.hitTest != undefined);
+check(mc.lineStyle != undefined);
+check(mc.lineTo != undefined);
+
+check(mc.loadMovie != undefined);
+
+check(mc.loadVariables != undefined);
+check(mc.localToGlobal != undefined);
+check(mc.moveTo != undefined);
+check(mc.nextFrame != undefined);
+check(mc.play != undefined);
+check(mc.prevFrame != undefined);
+check(mc.removeMovieClip != undefined);
+check(mc.setMask != undefined);
+check(mc.startDrag != undefined);
+check(mc.stop != undefined);
+check(mc.stopDrag != undefined);
+check(mc.swapDepths != undefined);
+check(mc.unloadMovie != undefined);
 
 // Check property existance
-check(this.enabled != undefined);
-check(this.focusEnabled != undefined);
-check(this.hitArea != undefined);
-check(this.menu != undefined);
-check(this.onData != undefined);
-check(this.onDragOut != undefined);
-check(this.onDragOver != undefined);
-check(this.onEnterFrame != undefined);
-check(this.onKeyDown != undefined);
-check(this.onKeyUp != undefined);
-check(this.onKillFocus != undefined);
-check(this.onLoad != undefined);
-check(this.onMouseDown != undefined);
-check(this.onMouseMove != undefined);
-check(this.onMouseUp != undefined);
-check(this.onPress != undefined);
-check(this.onRelease != undefined);
-check(this.onReleaseOutside != undefined);
-check(this.onRollOut != undefined);
-check(this.onRollOver != undefined);
-check(this.onSetFocus != undefined);
-check(this.onUnload != undefined);
-check(this.tabChildren != undefined);
-check(this.tabEnabled != undefined);
-check(this.tabIndex != undefined);
-check(this.trackAsMenu != undefined);
-check(this.useHandCursor != undefined);
-check(this._alpha != undefined);
-check(this._currentframe != undefined);
-check(this._droptarget != undefined);
-check(this._focusrect != undefined);
-check(this._framesloaded != undefined);
-check(this._height != undefined);
-check(this._highquality != undefined);
-check(this._y != undefined);
-check(this._ymouse != undefined);
-check(this._yscale != undefined);
-check(this._lockroot != undefined);
-check(this._name != undefined);
-check(this._parent != undefined);
-check(this._rotation != undefined);
-check(this._soundbuftime != undefined);
-check(this._target != undefined);
-check(this._totalframes != undefined);
-check(this._url != undefined);
-check(this._visible != undefined);
-check(this._width != undefined);
-check(this._x != undefined);
-check(this._xmouse != undefined);
-check(this._xscale != undefined);
+check(mc.enabled != undefined);
+check(mc.focusEnabled != undefined);
+check(mc.hitArea != undefined);
+check(mc.menu != undefined);
+check(mc.onData != undefined);
+check(mc.onDragOut != undefined);
+check(mc.onDragOver != undefined);
+check(mc.onEnterFrame != undefined);
+check(mc.onKeyDown != undefined);
+check(mc.onKeyUp != undefined);
+check(mc.onKillFocus != undefined);
+check(mc.onLoad != undefined);
+check(mc.onMouseDown != undefined);
+check(mc.onMouseMove != undefined);
+check(mc.onMouseUp != undefined);
+check(mc.onPress != undefined);
+check(mc.onRelease != undefined);
+check(mc.onReleaseOutside != undefined);
+check(mc.onRollOut != undefined);
+check(mc.onRollOver != undefined);
+check(mc.onSetFocus != undefined);
+check(mc.onUnload != undefined);
+check(mc.tabChildren != undefined);
+check(mc.tabEnabled != undefined);
+check(mc.tabIndex != undefined);
+check(mc.trackAsMenu != undefined);
+check(mc.useHandCursor != undefined);
+check(mc._alpha != undefined);
+check(mc._currentframe != undefined);
+check(mc._droptarget != undefined);
+check(mc._focusrect != undefined);
+check(mc._framesloaded != undefined);
+check(mc._height != undefined);
+check(mc._highquality != undefined);
+check(mc._y != undefined);
+check(mc._ymouse != undefined);
+check(mc._yscale != undefined);
+check(mc._lockroot != undefined);
+check(mc._name != undefined);
+check(mc._parent != undefined);
+check(mc._rotation != undefined);
+check(mc._soundbuftime != undefined);
+check(mc._target != undefined);
+check(mc._totalframes != undefined);
+check(mc._url != undefined);
+check(mc._visible != undefined);
+check(mc._width != undefined);
+check(mc._x != undefined);
+check(mc._xmouse != undefined);
+check(mc._xscale != undefined);
+
+// Test movieclip creation
+var mc2 = createEmptyMovieClip("mc2_mc", 50, 0, 0, 0);
+check(mc2 != undefined);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]