[Swfdec-commits] 4 commits - configure.ac test/gnash test/Makefile.am
Pekka Lampila
medar at kemper.freedesktop.org
Thu Jul 3 16:41:05 PDT 2008
configure.ac | 3
test/Makefile.am | 2
test/gnash/COPYING | 676 ++++
test/gnash/Makefile.am | 5
test/gnash/README | 5
test/gnash/actionscript.all/AsBroadcaster-5.swf |binary
test/gnash/actionscript.all/AsBroadcaster-5.swf.trace | 5
test/gnash/actionscript.all/AsBroadcaster-6.swf |binary
test/gnash/actionscript.all/AsBroadcaster-6.swf.trace | 109
test/gnash/actionscript.all/AsBroadcaster-7.swf |binary
test/gnash/actionscript.all/AsBroadcaster-7.swf.trace | 109
test/gnash/actionscript.all/AsBroadcaster-8.swf |binary
test/gnash/actionscript.all/AsBroadcaster-8.swf.trace | 109
test/gnash/actionscript.all/AsBroadcaster.as | 308 ++
test/gnash/actionscript.all/AsBroadcaster.as.original | 309 ++
test/gnash/actionscript.all/ContextMenu-5.swf |binary
test/gnash/actionscript.all/ContextMenu-5.swf.trace | 2
test/gnash/actionscript.all/ContextMenu-6.swf |binary
test/gnash/actionscript.all/ContextMenu-6.swf.trace | 2
test/gnash/actionscript.all/ContextMenu-7.swf |binary
test/gnash/actionscript.all/ContextMenu-7.swf.trace | 19
test/gnash/actionscript.all/ContextMenu-8.swf |binary
test/gnash/actionscript.all/ContextMenu-8.swf.trace | 19
test/gnash/actionscript.all/ContextMenu.as | 81
test/gnash/actionscript.all/Error-5.swf |binary
test/gnash/actionscript.all/Error-5.swf.trace | 21
test/gnash/actionscript.all/Error-6.swf |binary
test/gnash/actionscript.all/Error-6.swf.trace | 24
test/gnash/actionscript.all/Error-7.swf |binary
test/gnash/actionscript.all/Error-7.swf.trace | 24
test/gnash/actionscript.all/Error-8.swf |binary
test/gnash/actionscript.all/Error-8.swf.trace | 24
test/gnash/actionscript.all/Error.as | 79
test/gnash/actionscript.all/Key-5.swf |binary
test/gnash/actionscript.all/Key-5.swf.trace | 46
test/gnash/actionscript.all/Key-6.swf |binary
test/gnash/actionscript.all/Key-6.swf.trace | 50
test/gnash/actionscript.all/Key-7.swf |binary
test/gnash/actionscript.all/Key-7.swf.trace | 50
test/gnash/actionscript.all/Key-8.swf |binary
test/gnash/actionscript.all/Key-8.swf.trace | 50
test/gnash/actionscript.all/Key.as | 99
test/gnash/actionscript.all/Makefile.am | 167 +
test/gnash/actionscript.all/Mouse-5.swf |binary
test/gnash/actionscript.all/Mouse-5.swf.trace | 8
test/gnash/actionscript.all/Mouse-6.swf |binary
test/gnash/actionscript.all/Mouse-6.swf.trace | 16
test/gnash/actionscript.all/Mouse-7.swf |binary
test/gnash/actionscript.all/Mouse-7.swf.trace | 16
test/gnash/actionscript.all/Mouse-8.swf |binary
test/gnash/actionscript.all/Mouse-8.swf.trace | 16
test/gnash/actionscript.all/Mouse.as | 62
test/gnash/actionscript.all/Point-5.swf |binary
test/gnash/actionscript.all/Point-5.swf.trace | 2
test/gnash/actionscript.all/Point-6.swf |binary
test/gnash/actionscript.all/Point-6.swf.trace | 2
test/gnash/actionscript.all/Point-7.swf |binary
test/gnash/actionscript.all/Point-7.swf.trace | 2
test/gnash/actionscript.all/Point-8.swf |binary
test/gnash/actionscript.all/Point-8.swf.trace | 187 +
test/gnash/actionscript.all/Point.as | 513 +++
test/gnash/actionscript.all/README | 18
test/gnash/actionscript.all/REMOVED | 7
test/gnash/actionscript.all/Random-5.swf |binary
test/gnash/actionscript.all/Random-5.swf.trace | 24
test/gnash/actionscript.all/Random-6.swf |binary
test/gnash/actionscript.all/Random-6.swf.trace | 24
test/gnash/actionscript.all/Random-7.swf |binary
test/gnash/actionscript.all/Random-7.swf.trace | 24
test/gnash/actionscript.all/Random-8.swf |binary
test/gnash/actionscript.all/Random-8.swf.trace | 24
test/gnash/actionscript.all/Random.as | 137
test/gnash/actionscript.all/Random.as.original | 151 +
test/gnash/actionscript.all/Rectangle-5.swf |binary
test/gnash/actionscript.all/Rectangle-5.swf.trace | 2
test/gnash/actionscript.all/Rectangle-6.swf |binary
test/gnash/actionscript.all/Rectangle-6.swf.trace | 2
test/gnash/actionscript.all/Rectangle-7.swf |binary
test/gnash/actionscript.all/Rectangle-7.swf.trace | 2
test/gnash/actionscript.all/Rectangle-8.swf |binary
test/gnash/actionscript.all/Rectangle-8.swf.trace | 97
test/gnash/actionscript.all/Rectangle.as | 281 +
test/gnash/actionscript.all/Selection-5.swf |binary
test/gnash/actionscript.all/Selection-5.swf.trace | 9
test/gnash/actionscript.all/Selection-6.swf |binary
test/gnash/actionscript.all/Selection-6.swf.trace | 15
test/gnash/actionscript.all/Selection-7.swf |binary
test/gnash/actionscript.all/Selection-7.swf.trace | 15
test/gnash/actionscript.all/Selection-8.swf |binary
test/gnash/actionscript.all/Selection-8.swf.trace | 15
test/gnash/actionscript.all/Selection.as | 69
test/gnash/actionscript.all/TextFormat-5.swf |binary
test/gnash/actionscript.all/TextFormat-5.swf.trace | 64
test/gnash/actionscript.all/TextFormat-6.swf |binary
test/gnash/actionscript.all/TextFormat-6.swf.trace | 64
test/gnash/actionscript.all/TextFormat-7.swf |binary
test/gnash/actionscript.all/TextFormat-7.swf.trace | 64
test/gnash/actionscript.all/TextFormat-8.swf |binary
test/gnash/actionscript.all/TextFormat-8.swf.trace | 64
test/gnash/actionscript.all/TextFormat.as | 107
test/gnash/actionscript.all/TextSnapshot-5.swf |binary
test/gnash/actionscript.all/TextSnapshot-5.swf.trace | 1
test/gnash/actionscript.all/TextSnapshot-6.swf |binary
test/gnash/actionscript.all/TextSnapshot-6.swf.trace | 11
test/gnash/actionscript.all/TextSnapshot-7.swf |binary
test/gnash/actionscript.all/TextSnapshot-7.swf.trace | 11
test/gnash/actionscript.all/TextSnapshot-8.swf |binary
test/gnash/actionscript.all/TextSnapshot-8.swf.trace | 11
test/gnash/actionscript.all/TextSnapshot.as | 61
test/gnash/actionscript.all/Try-5.swf |binary
test/gnash/actionscript.all/Try-5.swf.trace | 12
test/gnash/actionscript.all/Try-6.swf |binary
test/gnash/actionscript.all/Try-6.swf.trace | 12
test/gnash/actionscript.all/Try-7.swf |binary
test/gnash/actionscript.all/Try-7.swf.trace | 12
test/gnash/actionscript.all/Try-8.swf |binary
test/gnash/actionscript.all/Try-8.swf.trace | 12
test/gnash/actionscript.all/Try.as | 188 +
test/gnash/actionscript.all/UPDATED | 1
test/gnash/actionscript.all/Video-5.swf |binary
test/gnash/actionscript.all/Video-5.swf.trace | 2
test/gnash/actionscript.all/Video-6.swf |binary
test/gnash/actionscript.all/Video-6.swf.trace | 22
test/gnash/actionscript.all/Video-7.swf |binary
test/gnash/actionscript.all/Video-7.swf.trace | 22
test/gnash/actionscript.all/Video-8.swf |binary
test/gnash/actionscript.all/Video-8.swf.trace | 22
test/gnash/actionscript.all/Video.as | 64
test/gnash/actionscript.all/XMLNode-5.swf |binary
test/gnash/actionscript.all/XMLNode-5.swf.trace | 31
test/gnash/actionscript.all/XMLNode-6.swf |binary
test/gnash/actionscript.all/XMLNode-6.swf.trace | 31
test/gnash/actionscript.all/XMLNode-7.swf |binary
test/gnash/actionscript.all/XMLNode-7.swf.trace | 31
test/gnash/actionscript.all/XMLNode-8.swf |binary
test/gnash/actionscript.all/XMLNode-8.swf.trace | 31
test/gnash/actionscript.all/XMLNode.as | 113
test/gnash/actionscript.all/check.as | 89
test/gnash/actionscript.all/check.as.original | 125
test/gnash/actionscript.all/default.stas | 54
test/gnash/actionscript.all/default.sts |binary
test/gnash/actionscript.all/delete-5.swf |binary
test/gnash/actionscript.all/delete-5.swf.trace | 28
test/gnash/actionscript.all/delete-6.swf |binary
test/gnash/actionscript.all/delete-6.swf.trace | 28
test/gnash/actionscript.all/delete-7.swf |binary
test/gnash/actionscript.all/delete-7.swf.trace | 28
test/gnash/actionscript.all/delete-8.swf |binary
test/gnash/actionscript.all/delete-8.swf.trace | 28
test/gnash/actionscript.all/delete.as | 77
test/gnash/actionscript.all/enumerate-5.swf |binary
test/gnash/actionscript.all/enumerate-5.swf.trace | 1
test/gnash/actionscript.all/enumerate-6.swf |binary
test/gnash/actionscript.all/enumerate-6.swf.trace | 19
test/gnash/actionscript.all/enumerate-7.swf |binary
test/gnash/actionscript.all/enumerate-7.swf.trace | 19
test/gnash/actionscript.all/enumerate-8.swf |binary
test/gnash/actionscript.all/enumerate-8.swf.trace | 19
test/gnash/actionscript.all/enumerate.as | 102
test/gnash/actionscript.all/pending/BitmapData-5.swf |binary
test/gnash/actionscript.all/pending/BitmapData-5.swf.trace | 2
test/gnash/actionscript.all/pending/BitmapData-6.swf |binary
test/gnash/actionscript.all/pending/BitmapData-6.swf.trace | 2
test/gnash/actionscript.all/pending/BitmapData-7.swf |binary
test/gnash/actionscript.all/pending/BitmapData-7.swf.trace | 2
test/gnash/actionscript.all/pending/BitmapData-8.swf |binary
test/gnash/actionscript.all/pending/BitmapData-8.swf.trace | 78
test/gnash/actionscript.all/pending/BitmapData.as | 192 +
test/gnash/actionscript.all/pending/Boolean-5.swf |binary
test/gnash/actionscript.all/pending/Boolean-5.swf.trace | 32
test/gnash/actionscript.all/pending/Boolean-6.swf |binary
test/gnash/actionscript.all/pending/Boolean-6.swf.trace | 32
test/gnash/actionscript.all/pending/Boolean-7.swf |binary
test/gnash/actionscript.all/pending/Boolean-7.swf.trace | 32
test/gnash/actionscript.all/pending/Boolean-8.swf |binary
test/gnash/actionscript.all/pending/Boolean-8.swf.trace | 32
test/gnash/actionscript.all/pending/Boolean.as | 108
test/gnash/actionscript.all/pending/Camera-5.swf |binary
test/gnash/actionscript.all/pending/Camera-5.swf.trace | 2
test/gnash/actionscript.all/pending/Camera-6.swf |binary
test/gnash/actionscript.all/pending/Camera-6.swf.trace | 15
test/gnash/actionscript.all/pending/Camera-7.swf |binary
test/gnash/actionscript.all/pending/Camera-7.swf.trace | 15
test/gnash/actionscript.all/pending/Camera-8.swf |binary
test/gnash/actionscript.all/pending/Camera-8.swf.trace | 15
test/gnash/actionscript.all/pending/Camera.as | 68
test/gnash/actionscript.all/pending/Function-5.swf |binary
test/gnash/actionscript.all/pending/Function-5.swf.trace | 150 +
test/gnash/actionscript.all/pending/Function-6.swf |binary
test/gnash/actionscript.all/pending/Function-6.swf.trace | 210 +
test/gnash/actionscript.all/pending/Function-7.swf |binary
test/gnash/actionscript.all/pending/Function-7.swf.trace | 211 +
test/gnash/actionscript.all/pending/Function-8.swf |binary
test/gnash/actionscript.all/pending/Function-8.swf.trace | 211 +
test/gnash/actionscript.all/pending/Function.as | 925 ++++++
test/gnash/actionscript.all/pending/LoadVars-5.swf |binary
test/gnash/actionscript.all/pending/LoadVars-5.swf.trace | 3
test/gnash/actionscript.all/pending/LoadVars-6.swf |binary
test/gnash/actionscript.all/pending/LoadVars-6.swf.trace | 75
test/gnash/actionscript.all/pending/LoadVars-7.swf |binary
test/gnash/actionscript.all/pending/LoadVars-7.swf.trace | 75
test/gnash/actionscript.all/pending/LoadVars-8.swf |binary
test/gnash/actionscript.all/pending/LoadVars-8.swf.trace | 75
test/gnash/actionscript.all/pending/LoadVars.as | 222 +
test/gnash/actionscript.all/pending/LocalConnection-5.swf |binary
test/gnash/actionscript.all/pending/LocalConnection-5.swf.trace | 2
test/gnash/actionscript.all/pending/LocalConnection-6.swf |binary
test/gnash/actionscript.all/pending/LocalConnection-6.swf.trace | 23
test/gnash/actionscript.all/pending/LocalConnection-7.swf |binary
test/gnash/actionscript.all/pending/LocalConnection-7.swf.trace | 23
test/gnash/actionscript.all/pending/LocalConnection-8.swf |binary
test/gnash/actionscript.all/pending/LocalConnection-8.swf.trace | 23
test/gnash/actionscript.all/pending/LocalConnection.as | 114
test/gnash/actionscript.all/pending/Matrix-5.swf |binary
test/gnash/actionscript.all/pending/Matrix-5.swf.trace | 2
test/gnash/actionscript.all/pending/Matrix-6.swf |binary
test/gnash/actionscript.all/pending/Matrix-6.swf.trace | 2
test/gnash/actionscript.all/pending/Matrix-7.swf |binary
test/gnash/actionscript.all/pending/Matrix-7.swf.trace | 2
test/gnash/actionscript.all/pending/Matrix-8.swf |binary
test/gnash/actionscript.all/pending/Matrix-8.swf.trace | 163 +
test/gnash/actionscript.all/pending/Matrix.as | 399 ++
test/gnash/actionscript.all/pending/Microphone-5.swf |binary
test/gnash/actionscript.all/pending/Microphone-5.swf.trace | 1
test/gnash/actionscript.all/pending/Microphone-6.swf |binary
test/gnash/actionscript.all/pending/Microphone-6.swf.trace | 84
test/gnash/actionscript.all/pending/Microphone-7.swf |binary
test/gnash/actionscript.all/pending/Microphone-7.swf.trace | 84
test/gnash/actionscript.all/pending/Microphone-8.swf |binary
test/gnash/actionscript.all/pending/Microphone-8.swf.trace | 84
test/gnash/actionscript.all/pending/Microphone.as | 184 +
test/gnash/actionscript.all/pending/MovieClipLoader-5.swf |binary
test/gnash/actionscript.all/pending/MovieClipLoader-5.swf.trace | 1
test/gnash/actionscript.all/pending/MovieClipLoader-6.swf |binary
test/gnash/actionscript.all/pending/MovieClipLoader-6.swf.trace | 1
test/gnash/actionscript.all/pending/MovieClipLoader-7.swf |binary
test/gnash/actionscript.all/pending/MovieClipLoader-7.swf.trace | 147 +
test/gnash/actionscript.all/pending/MovieClipLoader-8.swf |binary
test/gnash/actionscript.all/pending/MovieClipLoader-8.swf.trace | 147 +
test/gnash/actionscript.all/pending/MovieClipLoader.as | 347 ++
test/gnash/actionscript.all/pending/MovieClipLoader.as.original | 347 ++
test/gnash/actionscript.all/pending/NetConnection-5.swf |binary
test/gnash/actionscript.all/pending/NetConnection-5.swf.trace | 2
test/gnash/actionscript.all/pending/NetConnection-6.swf |binary
test/gnash/actionscript.all/pending/NetConnection-6.swf.trace | 10
test/gnash/actionscript.all/pending/NetConnection-7.swf |binary
test/gnash/actionscript.all/pending/NetConnection-7.swf.trace | 10
test/gnash/actionscript.all/pending/NetConnection-8.swf |binary
test/gnash/actionscript.all/pending/NetConnection-8.swf.trace | 10
test/gnash/actionscript.all/pending/NetConnection.as | 62
test/gnash/actionscript.all/pending/NetStream-5.swf |binary
test/gnash/actionscript.all/pending/NetStream-5.swf.trace | 1
test/gnash/actionscript.all/pending/NetStream-6.swf |binary
test/gnash/actionscript.all/pending/NetStream-6.swf.trace | 61
test/gnash/actionscript.all/pending/NetStream-7.swf |binary
test/gnash/actionscript.all/pending/NetStream-7.swf.trace | 61
test/gnash/actionscript.all/pending/NetStream-8.swf |binary
test/gnash/actionscript.all/pending/NetStream-8.swf.trace | 61
test/gnash/actionscript.all/pending/NetStream.as | 205 +
test/gnash/actionscript.all/pending/Number-5.swf |binary
test/gnash/actionscript.all/pending/Number-5.swf.trace | 214 +
test/gnash/actionscript.all/pending/Number-6.swf |binary
test/gnash/actionscript.all/pending/Number-6.swf.trace | 207 +
test/gnash/actionscript.all/pending/Number-7.swf |binary
test/gnash/actionscript.all/pending/Number-7.swf.trace | 205 +
test/gnash/actionscript.all/pending/Number-8.swf |binary
test/gnash/actionscript.all/pending/Number-8.swf.trace | 205 +
test/gnash/actionscript.all/pending/Number.as | 585 ++++
test/gnash/actionscript.all/pending/Object-5.swf |binary
test/gnash/actionscript.all/pending/Object-5.swf.trace | 84
test/gnash/actionscript.all/pending/Object-6.swf |binary
test/gnash/actionscript.all/pending/Object-6.swf.trace | 263 +
test/gnash/actionscript.all/pending/Object-7.swf |binary
test/gnash/actionscript.all/pending/Object-7.swf.trace | 263 +
test/gnash/actionscript.all/pending/Object-8.swf |binary
test/gnash/actionscript.all/pending/Object-8.swf.trace | 263 +
test/gnash/actionscript.all/pending/Object.as | 854 +++++
test/gnash/actionscript.all/pending/SharedObject-5.swf |binary
test/gnash/actionscript.all/pending/SharedObject-5.swf.trace | 4
test/gnash/actionscript.all/pending/SharedObject-6.swf |binary
test/gnash/actionscript.all/pending/SharedObject-6.swf.trace | 42
test/gnash/actionscript.all/pending/SharedObject-7.swf |binary
test/gnash/actionscript.all/pending/SharedObject-7.swf.trace | 42
test/gnash/actionscript.all/pending/SharedObject-8.swf |binary
test/gnash/actionscript.all/pending/SharedObject-8.swf.trace | 42
test/gnash/actionscript.all/pending/SharedObject.as | 144
test/gnash/actionscript.all/pending/Sound-5.swf |binary
test/gnash/actionscript.all/pending/Sound-5.swf.trace | 95
test/gnash/actionscript.all/pending/Sound-6.swf |binary
test/gnash/actionscript.all/pending/Sound-6.swf.trace | 95
test/gnash/actionscript.all/pending/Sound-7.swf |binary
test/gnash/actionscript.all/pending/Sound-7.swf.trace | 95
test/gnash/actionscript.all/pending/Sound-8.swf |binary
test/gnash/actionscript.all/pending/Sound-8.swf.trace | 95
test/gnash/actionscript.all/pending/Sound.as | 231 +
test/gnash/actionscript.all/pending/String-5.swf |binary
test/gnash/actionscript.all/pending/String-5.swf.trace | 259 +
test/gnash/actionscript.all/pending/String-6.swf |binary
test/gnash/actionscript.all/pending/String-6.swf.trace | 275 +
test/gnash/actionscript.all/pending/String-7.swf |binary
test/gnash/actionscript.all/pending/String-7.swf.trace | 275 +
test/gnash/actionscript.all/pending/String-8.swf |binary
test/gnash/actionscript.all/pending/String-8.swf.trace | 275 +
test/gnash/actionscript.all/pending/String.as | 905 ++++++
test/gnash/actionscript.all/pending/TextField-5.swf |binary
test/gnash/actionscript.all/pending/TextField-5.swf.trace | 1
test/gnash/actionscript.all/pending/TextField-6.swf |binary
test/gnash/actionscript.all/pending/TextField-6.swf.trace | 420 ++
test/gnash/actionscript.all/pending/TextField-7.swf |binary
test/gnash/actionscript.all/pending/TextField-7.swf.trace | 420 ++
test/gnash/actionscript.all/pending/TextField-8.swf |binary
test/gnash/actionscript.all/pending/TextField-8.swf.trace | 421 ++
test/gnash/actionscript.all/pending/TextField.as | 908 ++++++
test/gnash/actionscript.all/pending/array-5.swf |binary
test/gnash/actionscript.all/pending/array-5.swf.trace | 485 +++
test/gnash/actionscript.all/pending/array-6.swf |binary
test/gnash/actionscript.all/pending/array-6.swf.trace | 546 +++
test/gnash/actionscript.all/pending/array-7.swf |binary
test/gnash/actionscript.all/pending/array-7.swf.trace | 556 +++
test/gnash/actionscript.all/pending/array-8.swf |binary
test/gnash/actionscript.all/pending/array-8.swf.trace | 556 +++
test/gnash/actionscript.all/pending/array.as | 1449 ++++++++++
test/gnash/actionscript.all/pending/case-5.swf |binary
test/gnash/actionscript.all/pending/case-5.swf.trace | 24
test/gnash/actionscript.all/pending/case-6.swf |binary
test/gnash/actionscript.all/pending/case-6.swf.trace | 58
test/gnash/actionscript.all/pending/case-7.swf |binary
test/gnash/actionscript.all/pending/case-7.swf.trace | 52
test/gnash/actionscript.all/pending/case-8.swf |binary
test/gnash/actionscript.all/pending/case-8.swf.trace | 52
test/gnash/actionscript.all/pending/case.as | 333 ++
test/gnash/actionscript.all/pending/getvariable-5.swf |binary
test/gnash/actionscript.all/pending/getvariable-5.swf.trace | 53
test/gnash/actionscript.all/pending/getvariable-6.swf |binary
test/gnash/actionscript.all/pending/getvariable-6.swf.trace | 58
test/gnash/actionscript.all/pending/getvariable-7.swf |binary
test/gnash/actionscript.all/pending/getvariable-7.swf.trace | 58
test/gnash/actionscript.all/pending/getvariable-8.swf |binary
test/gnash/actionscript.all/pending/getvariable-8.swf.trace | 58
test/gnash/actionscript.all/pending/getvariable.as | 700 ++++
test/gnash/actionscript.all/pending/ops-5.swf |binary
test/gnash/actionscript.all/pending/ops-5.swf.trace | 240 +
test/gnash/actionscript.all/pending/ops-6.swf |binary
test/gnash/actionscript.all/pending/ops-6.swf.trace | 240 +
test/gnash/actionscript.all/pending/ops-7.swf |binary
test/gnash/actionscript.all/pending/ops-7.swf.trace | 242 +
test/gnash/actionscript.all/pending/ops-8.swf |binary
test/gnash/actionscript.all/pending/ops-8.swf.trace | 242 +
test/gnash/actionscript.all/pending/ops.as | 812 +++++
test/gnash/actionscript.all/pending/targetPath-5.swf |binary
test/gnash/actionscript.all/pending/targetPath-5.swf.trace | 7
test/gnash/actionscript.all/pending/targetPath-6.swf |binary
test/gnash/actionscript.all/pending/targetPath-6.swf.trace | 18
test/gnash/actionscript.all/pending/targetPath-7.swf |binary
test/gnash/actionscript.all/pending/targetPath-7.swf.trace | 18
test/gnash/actionscript.all/pending/targetPath-8.swf |binary
test/gnash/actionscript.all/pending/targetPath-8.swf.trace | 18
test/gnash/actionscript.all/pending/targetPath.as | 165 +
test/gnash/actionscript.all/pending/toString_valueOf-5.swf |binary
test/gnash/actionscript.all/pending/toString_valueOf-5.swf.trace | 127
test/gnash/actionscript.all/pending/toString_valueOf-6.swf |binary
test/gnash/actionscript.all/pending/toString_valueOf-6.swf.trace | 145 +
test/gnash/actionscript.all/pending/toString_valueOf-7.swf |binary
test/gnash/actionscript.all/pending/toString_valueOf-7.swf.trace | 145 +
test/gnash/actionscript.all/pending/toString_valueOf-8.swf |binary
test/gnash/actionscript.all/pending/toString_valueOf-8.swf.trace | 145 +
test/gnash/actionscript.all/pending/toString_valueOf.as | 485 +++
test/gnash/actionscript.all/pending/with-5.swf |binary
test/gnash/actionscript.all/pending/with-5.swf.trace | 42
test/gnash/actionscript.all/pending/with-6.swf |binary
test/gnash/actionscript.all/pending/with-6.swf.trace | 100
test/gnash/actionscript.all/pending/with-7.swf |binary
test/gnash/actionscript.all/pending/with-7.swf.trace | 100
test/gnash/actionscript.all/pending/with-8.swf |binary
test/gnash/actionscript.all/pending/with-8.swf.trace | 100
test/gnash/actionscript.all/pending/with.as | 548 +++
test/gnash/actionscript.all/swap-5.swf |binary
test/gnash/actionscript.all/swap-5.swf.trace | 2
test/gnash/actionscript.all/swap-6.swf |binary
test/gnash/actionscript.all/swap-6.swf.trace | 2
test/gnash/actionscript.all/swap-7.swf |binary
test/gnash/actionscript.all/swap-7.swf.trace | 2
test/gnash/actionscript.all/swap-8.swf |binary
test/gnash/actionscript.all/swap-8.swf.trace | 2
test/gnash/actionscript.all/swap.as | 46
test/gnash/actionscript.all/utils.as | 49
test/gnash/media/Bitstream-Vera-Sans.COPYRIGHT | 124
test/gnash/media/Bitstream-Vera-Sans.fdb |binary
test/gnash/media/Makefile.am | 22
test/gnash/media/README | 67
test/gnash/media/default.orc | 15
test/gnash/media/gnash.xml |binary
test/gnash/media/green.jpg |binary
test/gnash/media/green.swf |binary
test/gnash/media/lynch.jpg |binary
test/gnash/media/lynch.swf |binary
test/gnash/media/majorscale.sco | 20
test/gnash/media/offspring.jpg |binary
test/gnash/media/offspring.swf |binary
test/gnash/media/sound1.mp3 |binary
test/gnash/media/sound1.wav |binary
test/gnash/media/square.flv |binary
test/gnash/media/square.ogg |binary
test/gnash/media/vars.txt | 35
test/gnash/media/vars2.txt | 1
405 files changed, 28815 insertions(+), 1 deletion(-)
New commits:
commit 1a331bdaad473bda6bdb7cc2d3337e813679967f
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Fri Jul 4 02:33:14 2008 +0300
Import actionscript.all/MovieClipLoader.as test from Gnash. Doesn't pass yet
Removed _url from note () calls, so the output doesn't depend on file location
diff --git a/test/gnash/actionscript.all/pending/MovieClipLoader-5.swf b/test/gnash/actionscript.all/pending/MovieClipLoader-5.swf
new file mode 100644
index 0000000..7cdf5d8
Binary files /dev/null and b/test/gnash/actionscript.all/pending/MovieClipLoader-5.swf differ
diff --git a/test/gnash/actionscript.all/pending/MovieClipLoader-5.swf.trace b/test/gnash/actionscript.all/pending/MovieClipLoader-5.swf.trace
new file mode 100644
index 0000000..abd55c7
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/MovieClipLoader-5.swf.trace
@@ -0,0 +1 @@
+totals
diff --git a/test/gnash/actionscript.all/pending/MovieClipLoader-6.swf b/test/gnash/actionscript.all/pending/MovieClipLoader-6.swf
new file mode 100644
index 0000000..7458758
Binary files /dev/null and b/test/gnash/actionscript.all/pending/MovieClipLoader-6.swf differ
diff --git a/test/gnash/actionscript.all/pending/MovieClipLoader-6.swf.trace b/test/gnash/actionscript.all/pending/MovieClipLoader-6.swf.trace
new file mode 100644
index 0000000..abd55c7
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/MovieClipLoader-6.swf.trace
@@ -0,0 +1 @@
+totals
diff --git a/test/gnash/actionscript.all/pending/MovieClipLoader-7.swf b/test/gnash/actionscript.all/pending/MovieClipLoader-7.swf
new file mode 100644
index 0000000..2ac75a0
Binary files /dev/null and b/test/gnash/actionscript.all/pending/MovieClipLoader-7.swf differ
diff --git a/test/gnash/actionscript.all/pending/MovieClipLoader-7.swf.trace b/test/gnash/actionscript.all/pending/MovieClipLoader-7.swf.trace
new file mode 100644
index 0000000..c130054
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/MovieClipLoader-7.swf.trace
@@ -0,0 +1,147 @@
+PASSED: typeOf(MovieClipLoader) == 'function' [MovieClipLoader.as:33]
+PASSED: typeOf(MovieClipLoader.prototype) == 'object' [MovieClipLoader.as:34]
+PASSED: MovieClipLoader.prototype.hasOwnProperty('loadClip') [MovieClipLoader.as:35]
+PASSED: MovieClipLoader.prototype.hasOwnProperty('unloadClip') [MovieClipLoader.as:36]
+PASSED: MovieClipLoader.prototype.hasOwnProperty('getProgress') [MovieClipLoader.as:37]
+PASSED: MovieClipLoader.prototype.hasOwnProperty('addListener') [MovieClipLoader.as:38]
+PASSED: MovieClipLoader.prototype.hasOwnProperty('removeListener') [MovieClipLoader.as:39]
+PASSED: MovieClipLoader.prototype.hasOwnProperty('broadcastMessage') [MovieClipLoader.as:40]
+PASSED: typeOf(MovieClipLoader._listeners) == 'undefined' [MovieClipLoader.as:41]
+PASSED: typeOf(mcl) == 'object' [MovieClipLoader.as:44]
+PASSED: mcl instanceOf MovieClipLoader [MovieClipLoader.as:45]
+PASSED: typeOf(mcl.loadClip) == 'function' [MovieClipLoader.as:47]
+PASSED: !mcl.hasOwnProperty('loadClip') [MovieClipLoader.as:48]
+PASSED: typeOf(mcl.unloadClip) == 'function' [MovieClipLoader.as:50]
+PASSED: !mcl.hasOwnProperty('unloadClip') [MovieClipLoader.as:51]
+PASSED: typeOf(mcl.getProgress) == 'function' [MovieClipLoader.as:53]
+PASSED: !mcl.hasOwnProperty('getProgress') [MovieClipLoader.as:54]
+PASSED: typeOf(mcl.addListener) == 'function' [MovieClipLoader.as:56]
+PASSED: !mcl.hasOwnProperty('addListener') [MovieClipLoader.as:57]
+PASSED: typeOf(mcl.removeListener) == 'function' [MovieClipLoader.as:59]
+PASSED: !mcl.hasOwnProperty('removeListener') [MovieClipLoader.as:60]
+PASSED: typeOf(mcl.broadcastMessage) == 'function' [MovieClipLoader.as:62]
+PASSED: !mcl.hasOwnProperty('broadcastMessage') [MovieClipLoader.as:63]
+PASSED: typeOf(mcl._listeners) == 'object' [MovieClipLoader.as:65]
+PASSED: mcl.hasOwnProperty('_listeners') [MovieClipLoader.as:66]
+PASSED: mcl._listeners.length == 1 [MovieClipLoader.as:67]
+PASSED: mcl._listeners[0] == mcl [MovieClipLoader.as:68]
+PASSED: ! mcl.loadClip() [MovieClipLoader.as:272]
+PASSED: ! mcl.loadClip( MEDIA(vars.txt) ) [MovieClipLoader.as:273]
+PASSED: ! mcl.loadClip( MEDIA(vars.txt), 'unexistent' ) [MovieClipLoader.as:275]
+PASSED: mcl.loadClip( MEDIA(unexistent), 'loadtarget' ) [MovieClipLoader.as:282]
+PASSED: arguments.length == 3 [MovieClipLoader.as:164]
+PASSED: target == expected.target [MovieClipLoader.as:165]
+NOTE: onLoadError called (URLNotFound)
+PASSED: mcl.loadClip( MEDIA(vars.txt), 'loadtarget' ) [MovieClipLoader.as:290]
+PASSED: arguments.length == 1 [MovieClipLoader.as:173]
+PASSED: target+"" != "" [MovieClipLoader.as:177]
+PASSED: target == expected.target [MovieClipLoader.as:178]
+NOTE: onLoadStart(_level0.loadtarget, ...) called
+PASSED: arguments.length == 3 [MovieClipLoader.as:188]
+PASSED: target == expected.target [MovieClipLoader.as:189]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:190]
+PASSED: typeof(bytesLoaded) == 'number' [MovieClipLoader.as:191]
+PASSED: typeof(bytesTotal) == 'number' [MovieClipLoader.as:192]
+PASSED: bytesTotal <= bytesTotal [MovieClipLoader.as:193]
+PASSED: this == mcl [MovieClipLoader.as:195]
+PASSED: typeof(tmp) == 'undefined' [MovieClipLoader.as:198]
+PASSED: typeof(prog) == 'object' [MovieClipLoader.as:201]
+PASSED: prog.__proto__ == undefined [MovieClipLoader.as:202]
+PASSED: prog.bytesLoaded == bytesLoaded [MovieClipLoader.as:203]
+PASSED: prog.bytesTotal == bytesTotal [MovieClipLoader.as:204]
+PASSED: progcount == 2 [MovieClipLoader.as:207]
+PASSED: progcopy.bytesLoaded == bytesLoaded [MovieClipLoader.as:208]
+PASSED: progcopy.bytesTotal == bytesTotal [MovieClipLoader.as:209]
+PASSED: arguments.length == 3 [MovieClipLoader.as:188]
+PASSED: target == expected.target [MovieClipLoader.as:189]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:190]
+PASSED: typeof(bytesLoaded) == 'number' [MovieClipLoader.as:191]
+PASSED: typeof(bytesTotal) == 'number' [MovieClipLoader.as:192]
+PASSED: bytesTotal <= bytesTotal [MovieClipLoader.as:193]
+PASSED: this == mcl [MovieClipLoader.as:195]
+PASSED: typeof(tmp) == 'undefined' [MovieClipLoader.as:198]
+PASSED: typeof(prog) == 'object' [MovieClipLoader.as:201]
+PASSED: prog.__proto__ == undefined [MovieClipLoader.as:202]
+PASSED: prog.bytesLoaded == bytesLoaded [MovieClipLoader.as:203]
+PASSED: prog.bytesTotal == bytesTotal [MovieClipLoader.as:204]
+PASSED: progcount == 2 [MovieClipLoader.as:207]
+PASSED: progcopy.bytesLoaded == bytesLoaded [MovieClipLoader.as:208]
+PASSED: progcopy.bytesTotal == bytesTotal [MovieClipLoader.as:209]
+NOTE: onLoadComplete(_level0.loadtarget, ...) called
+PASSED: arguments.length == 2 [MovieClipLoader.as:219]
+PASSED: target == expected.target [MovieClipLoader.as:220]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:221]
+PASSED: state.onLoadProgressCalls > 0 [MovieClipLoader.as:222]
+PASSED: typeof(n) == 'number' [MovieClipLoader.as:223]
+NOTE: onLoadComplete second arg is 0 (number)
+NOTE: onLoadInit(_level0.loadtarget, ...) called
+PASSED: arguments.length == 1 [MovieClipLoader.as:232]
+PASSED: target == expected.target [MovieClipLoader.as:233]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:234]
+PASSED: state.onLoadProgressCalls > 0 [MovieClipLoader.as:235]
+PASSED: state.onLoadCompleteCalls == 1 [MovieClipLoader.as:236]
+PASSED: this == mcl [MovieClipLoader.as:239]
+PASSED: typeof(prog) == 'object' [MovieClipLoader.as:298]
+PASSED: prog.__proto__ == undefined [MovieClipLoader.as:299]
+PASSED: prog.bytesLoaded == prog.bytesTotal [MovieClipLoader.as:300]
+PASSED: prog.bytesTotal == _level0.getBytesTotal() [MovieClipLoader.as:301]
+PASSED: mcl.loadClip( MEDIA(green.jpg), 'loadtarget' ) [MovieClipLoader.as:332]
+PASSED: arguments.length == 1 [MovieClipLoader.as:173]
+PASSED: target+"" != "" [MovieClipLoader.as:177]
+PASSED: target == expected.target [MovieClipLoader.as:178]
+NOTE: onLoadStart(_level0.loadtarget, ...) called
+PASSED: arguments.length == 3 [MovieClipLoader.as:188]
+PASSED: target == expected.target [MovieClipLoader.as:189]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:190]
+PASSED: typeof(bytesLoaded) == 'number' [MovieClipLoader.as:191]
+PASSED: typeof(bytesTotal) == 'number' [MovieClipLoader.as:192]
+PASSED: bytesTotal <= bytesTotal [MovieClipLoader.as:193]
+PASSED: this == mcl [MovieClipLoader.as:195]
+PASSED: typeof(tmp) == 'undefined' [MovieClipLoader.as:198]
+PASSED: typeof(prog) == 'object' [MovieClipLoader.as:201]
+PASSED: prog.__proto__ == undefined [MovieClipLoader.as:202]
+PASSED: prog.bytesLoaded == bytesLoaded [MovieClipLoader.as:203]
+PASSED: prog.bytesTotal == bytesTotal [MovieClipLoader.as:204]
+PASSED: progcount == 2 [MovieClipLoader.as:207]
+PASSED: progcopy.bytesLoaded == bytesLoaded [MovieClipLoader.as:208]
+PASSED: progcopy.bytesTotal == bytesTotal [MovieClipLoader.as:209]
+PASSED: arguments.length == 3 [MovieClipLoader.as:188]
+PASSED: target == expected.target [MovieClipLoader.as:189]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:190]
+PASSED: typeof(bytesLoaded) == 'number' [MovieClipLoader.as:191]
+PASSED: typeof(bytesTotal) == 'number' [MovieClipLoader.as:192]
+PASSED: bytesTotal <= bytesTotal [MovieClipLoader.as:193]
+PASSED: this == mcl [MovieClipLoader.as:195]
+PASSED: typeof(tmp) == 'undefined' [MovieClipLoader.as:198]
+PASSED: typeof(prog) == 'object' [MovieClipLoader.as:201]
+PASSED: prog.__proto__ == undefined [MovieClipLoader.as:202]
+PASSED: prog.bytesLoaded == bytesLoaded [MovieClipLoader.as:203]
+PASSED: prog.bytesTotal == bytesTotal [MovieClipLoader.as:204]
+PASSED: progcount == 2 [MovieClipLoader.as:207]
+PASSED: progcopy.bytesLoaded == bytesLoaded [MovieClipLoader.as:208]
+PASSED: progcopy.bytesTotal == bytesTotal [MovieClipLoader.as:209]
+NOTE: onLoadComplete(_level0.loadtarget, ...) called
+PASSED: arguments.length == 2 [MovieClipLoader.as:219]
+PASSED: target == expected.target [MovieClipLoader.as:220]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:221]
+PASSED: state.onLoadProgressCalls > 0 [MovieClipLoader.as:222]
+PASSED: typeof(n) == 'number' [MovieClipLoader.as:223]
+NOTE: onLoadComplete second arg is 0 (number)
+NOTE: onLoadInit(_level0.loadtarget, ...) called
+PASSED: arguments.length == 1 [MovieClipLoader.as:232]
+PASSED: target == expected.target [MovieClipLoader.as:233]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:234]
+PASSED: state.onLoadProgressCalls > 0 [MovieClipLoader.as:235]
+PASSED: state.onLoadCompleteCalls == 1 [MovieClipLoader.as:236]
+PASSED: this == mcl [MovieClipLoader.as:239]
+NOTE: _lockroot: false
+NOTE: ---- Target's root is _level0
+PASSED: _root == _level0 [MovieClipLoader.as:253]
+PASSED: _root == _level0.loadtarget [MovieClipLoader.as:255]
+NOTE: ---- After setting _lockroot to true, target's root is _level0.loadtarget
+PASSED: _root == _level0 [MovieClipLoader.as:258]
+NOTE: ---- After setting _lockroot to false, target's root is _level0
+PASSED: target._width == 170 [MovieClipLoader.as:263]
+PASSED: target._height == 170 [MovieClipLoader.as:264]
+NOTE: Number of onLoadProgress runs: 4 - tests: 60
+xcheck_totals: expected.totals + progCallbackTests
diff --git a/test/gnash/actionscript.all/pending/MovieClipLoader-8.swf b/test/gnash/actionscript.all/pending/MovieClipLoader-8.swf
new file mode 100644
index 0000000..8e96262
Binary files /dev/null and b/test/gnash/actionscript.all/pending/MovieClipLoader-8.swf differ
diff --git a/test/gnash/actionscript.all/pending/MovieClipLoader-8.swf.trace b/test/gnash/actionscript.all/pending/MovieClipLoader-8.swf.trace
new file mode 100644
index 0000000..c130054
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/MovieClipLoader-8.swf.trace
@@ -0,0 +1,147 @@
+PASSED: typeOf(MovieClipLoader) == 'function' [MovieClipLoader.as:33]
+PASSED: typeOf(MovieClipLoader.prototype) == 'object' [MovieClipLoader.as:34]
+PASSED: MovieClipLoader.prototype.hasOwnProperty('loadClip') [MovieClipLoader.as:35]
+PASSED: MovieClipLoader.prototype.hasOwnProperty('unloadClip') [MovieClipLoader.as:36]
+PASSED: MovieClipLoader.prototype.hasOwnProperty('getProgress') [MovieClipLoader.as:37]
+PASSED: MovieClipLoader.prototype.hasOwnProperty('addListener') [MovieClipLoader.as:38]
+PASSED: MovieClipLoader.prototype.hasOwnProperty('removeListener') [MovieClipLoader.as:39]
+PASSED: MovieClipLoader.prototype.hasOwnProperty('broadcastMessage') [MovieClipLoader.as:40]
+PASSED: typeOf(MovieClipLoader._listeners) == 'undefined' [MovieClipLoader.as:41]
+PASSED: typeOf(mcl) == 'object' [MovieClipLoader.as:44]
+PASSED: mcl instanceOf MovieClipLoader [MovieClipLoader.as:45]
+PASSED: typeOf(mcl.loadClip) == 'function' [MovieClipLoader.as:47]
+PASSED: !mcl.hasOwnProperty('loadClip') [MovieClipLoader.as:48]
+PASSED: typeOf(mcl.unloadClip) == 'function' [MovieClipLoader.as:50]
+PASSED: !mcl.hasOwnProperty('unloadClip') [MovieClipLoader.as:51]
+PASSED: typeOf(mcl.getProgress) == 'function' [MovieClipLoader.as:53]
+PASSED: !mcl.hasOwnProperty('getProgress') [MovieClipLoader.as:54]
+PASSED: typeOf(mcl.addListener) == 'function' [MovieClipLoader.as:56]
+PASSED: !mcl.hasOwnProperty('addListener') [MovieClipLoader.as:57]
+PASSED: typeOf(mcl.removeListener) == 'function' [MovieClipLoader.as:59]
+PASSED: !mcl.hasOwnProperty('removeListener') [MovieClipLoader.as:60]
+PASSED: typeOf(mcl.broadcastMessage) == 'function' [MovieClipLoader.as:62]
+PASSED: !mcl.hasOwnProperty('broadcastMessage') [MovieClipLoader.as:63]
+PASSED: typeOf(mcl._listeners) == 'object' [MovieClipLoader.as:65]
+PASSED: mcl.hasOwnProperty('_listeners') [MovieClipLoader.as:66]
+PASSED: mcl._listeners.length == 1 [MovieClipLoader.as:67]
+PASSED: mcl._listeners[0] == mcl [MovieClipLoader.as:68]
+PASSED: ! mcl.loadClip() [MovieClipLoader.as:272]
+PASSED: ! mcl.loadClip( MEDIA(vars.txt) ) [MovieClipLoader.as:273]
+PASSED: ! mcl.loadClip( MEDIA(vars.txt), 'unexistent' ) [MovieClipLoader.as:275]
+PASSED: mcl.loadClip( MEDIA(unexistent), 'loadtarget' ) [MovieClipLoader.as:282]
+PASSED: arguments.length == 3 [MovieClipLoader.as:164]
+PASSED: target == expected.target [MovieClipLoader.as:165]
+NOTE: onLoadError called (URLNotFound)
+PASSED: mcl.loadClip( MEDIA(vars.txt), 'loadtarget' ) [MovieClipLoader.as:290]
+PASSED: arguments.length == 1 [MovieClipLoader.as:173]
+PASSED: target+"" != "" [MovieClipLoader.as:177]
+PASSED: target == expected.target [MovieClipLoader.as:178]
+NOTE: onLoadStart(_level0.loadtarget, ...) called
+PASSED: arguments.length == 3 [MovieClipLoader.as:188]
+PASSED: target == expected.target [MovieClipLoader.as:189]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:190]
+PASSED: typeof(bytesLoaded) == 'number' [MovieClipLoader.as:191]
+PASSED: typeof(bytesTotal) == 'number' [MovieClipLoader.as:192]
+PASSED: bytesTotal <= bytesTotal [MovieClipLoader.as:193]
+PASSED: this == mcl [MovieClipLoader.as:195]
+PASSED: typeof(tmp) == 'undefined' [MovieClipLoader.as:198]
+PASSED: typeof(prog) == 'object' [MovieClipLoader.as:201]
+PASSED: prog.__proto__ == undefined [MovieClipLoader.as:202]
+PASSED: prog.bytesLoaded == bytesLoaded [MovieClipLoader.as:203]
+PASSED: prog.bytesTotal == bytesTotal [MovieClipLoader.as:204]
+PASSED: progcount == 2 [MovieClipLoader.as:207]
+PASSED: progcopy.bytesLoaded == bytesLoaded [MovieClipLoader.as:208]
+PASSED: progcopy.bytesTotal == bytesTotal [MovieClipLoader.as:209]
+PASSED: arguments.length == 3 [MovieClipLoader.as:188]
+PASSED: target == expected.target [MovieClipLoader.as:189]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:190]
+PASSED: typeof(bytesLoaded) == 'number' [MovieClipLoader.as:191]
+PASSED: typeof(bytesTotal) == 'number' [MovieClipLoader.as:192]
+PASSED: bytesTotal <= bytesTotal [MovieClipLoader.as:193]
+PASSED: this == mcl [MovieClipLoader.as:195]
+PASSED: typeof(tmp) == 'undefined' [MovieClipLoader.as:198]
+PASSED: typeof(prog) == 'object' [MovieClipLoader.as:201]
+PASSED: prog.__proto__ == undefined [MovieClipLoader.as:202]
+PASSED: prog.bytesLoaded == bytesLoaded [MovieClipLoader.as:203]
+PASSED: prog.bytesTotal == bytesTotal [MovieClipLoader.as:204]
+PASSED: progcount == 2 [MovieClipLoader.as:207]
+PASSED: progcopy.bytesLoaded == bytesLoaded [MovieClipLoader.as:208]
+PASSED: progcopy.bytesTotal == bytesTotal [MovieClipLoader.as:209]
+NOTE: onLoadComplete(_level0.loadtarget, ...) called
+PASSED: arguments.length == 2 [MovieClipLoader.as:219]
+PASSED: target == expected.target [MovieClipLoader.as:220]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:221]
+PASSED: state.onLoadProgressCalls > 0 [MovieClipLoader.as:222]
+PASSED: typeof(n) == 'number' [MovieClipLoader.as:223]
+NOTE: onLoadComplete second arg is 0 (number)
+NOTE: onLoadInit(_level0.loadtarget, ...) called
+PASSED: arguments.length == 1 [MovieClipLoader.as:232]
+PASSED: target == expected.target [MovieClipLoader.as:233]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:234]
+PASSED: state.onLoadProgressCalls > 0 [MovieClipLoader.as:235]
+PASSED: state.onLoadCompleteCalls == 1 [MovieClipLoader.as:236]
+PASSED: this == mcl [MovieClipLoader.as:239]
+PASSED: typeof(prog) == 'object' [MovieClipLoader.as:298]
+PASSED: prog.__proto__ == undefined [MovieClipLoader.as:299]
+PASSED: prog.bytesLoaded == prog.bytesTotal [MovieClipLoader.as:300]
+PASSED: prog.bytesTotal == _level0.getBytesTotal() [MovieClipLoader.as:301]
+PASSED: mcl.loadClip( MEDIA(green.jpg), 'loadtarget' ) [MovieClipLoader.as:332]
+PASSED: arguments.length == 1 [MovieClipLoader.as:173]
+PASSED: target+"" != "" [MovieClipLoader.as:177]
+PASSED: target == expected.target [MovieClipLoader.as:178]
+NOTE: onLoadStart(_level0.loadtarget, ...) called
+PASSED: arguments.length == 3 [MovieClipLoader.as:188]
+PASSED: target == expected.target [MovieClipLoader.as:189]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:190]
+PASSED: typeof(bytesLoaded) == 'number' [MovieClipLoader.as:191]
+PASSED: typeof(bytesTotal) == 'number' [MovieClipLoader.as:192]
+PASSED: bytesTotal <= bytesTotal [MovieClipLoader.as:193]
+PASSED: this == mcl [MovieClipLoader.as:195]
+PASSED: typeof(tmp) == 'undefined' [MovieClipLoader.as:198]
+PASSED: typeof(prog) == 'object' [MovieClipLoader.as:201]
+PASSED: prog.__proto__ == undefined [MovieClipLoader.as:202]
+PASSED: prog.bytesLoaded == bytesLoaded [MovieClipLoader.as:203]
+PASSED: prog.bytesTotal == bytesTotal [MovieClipLoader.as:204]
+PASSED: progcount == 2 [MovieClipLoader.as:207]
+PASSED: progcopy.bytesLoaded == bytesLoaded [MovieClipLoader.as:208]
+PASSED: progcopy.bytesTotal == bytesTotal [MovieClipLoader.as:209]
+PASSED: arguments.length == 3 [MovieClipLoader.as:188]
+PASSED: target == expected.target [MovieClipLoader.as:189]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:190]
+PASSED: typeof(bytesLoaded) == 'number' [MovieClipLoader.as:191]
+PASSED: typeof(bytesTotal) == 'number' [MovieClipLoader.as:192]
+PASSED: bytesTotal <= bytesTotal [MovieClipLoader.as:193]
+PASSED: this == mcl [MovieClipLoader.as:195]
+PASSED: typeof(tmp) == 'undefined' [MovieClipLoader.as:198]
+PASSED: typeof(prog) == 'object' [MovieClipLoader.as:201]
+PASSED: prog.__proto__ == undefined [MovieClipLoader.as:202]
+PASSED: prog.bytesLoaded == bytesLoaded [MovieClipLoader.as:203]
+PASSED: prog.bytesTotal == bytesTotal [MovieClipLoader.as:204]
+PASSED: progcount == 2 [MovieClipLoader.as:207]
+PASSED: progcopy.bytesLoaded == bytesLoaded [MovieClipLoader.as:208]
+PASSED: progcopy.bytesTotal == bytesTotal [MovieClipLoader.as:209]
+NOTE: onLoadComplete(_level0.loadtarget, ...) called
+PASSED: arguments.length == 2 [MovieClipLoader.as:219]
+PASSED: target == expected.target [MovieClipLoader.as:220]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:221]
+PASSED: state.onLoadProgressCalls > 0 [MovieClipLoader.as:222]
+PASSED: typeof(n) == 'number' [MovieClipLoader.as:223]
+NOTE: onLoadComplete second arg is 0 (number)
+NOTE: onLoadInit(_level0.loadtarget, ...) called
+PASSED: arguments.length == 1 [MovieClipLoader.as:232]
+PASSED: target == expected.target [MovieClipLoader.as:233]
+PASSED: state.onLoadStartCalls == 1 [MovieClipLoader.as:234]
+PASSED: state.onLoadProgressCalls > 0 [MovieClipLoader.as:235]
+PASSED: state.onLoadCompleteCalls == 1 [MovieClipLoader.as:236]
+PASSED: this == mcl [MovieClipLoader.as:239]
+NOTE: _lockroot: false
+NOTE: ---- Target's root is _level0
+PASSED: _root == _level0 [MovieClipLoader.as:253]
+PASSED: _root == _level0.loadtarget [MovieClipLoader.as:255]
+NOTE: ---- After setting _lockroot to true, target's root is _level0.loadtarget
+PASSED: _root == _level0 [MovieClipLoader.as:258]
+NOTE: ---- After setting _lockroot to false, target's root is _level0
+PASSED: target._width == 170 [MovieClipLoader.as:263]
+PASSED: target._height == 170 [MovieClipLoader.as:264]
+NOTE: Number of onLoadProgress runs: 4 - tests: 60
+xcheck_totals: expected.totals + progCallbackTests
diff --git a/test/gnash/actionscript.all/pending/MovieClipLoader.as b/test/gnash/actionscript.all/pending/MovieClipLoader.as
new file mode 100644
index 0000000..7f00552
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/MovieClipLoader.as
@@ -0,0 +1,347 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+//
+
+// Test case for MovieClipLoader ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: MovieClipLoader.as,v 1.19 2008/03/11 19:31:47 strk Exp $";
+#include "check.as"
+
+//#define MEDIA(x) x
+
+// MovieClipLoader was added in player7
+#if OUTPUT_VERSION >= 7
+
+check_equals(typeOf(MovieClipLoader), 'function');
+check_equals(typeOf(MovieClipLoader.prototype), 'object');
+check(MovieClipLoader.prototype.hasOwnProperty('loadClip'));
+check(MovieClipLoader.prototype.hasOwnProperty('unloadClip'));
+check(MovieClipLoader.prototype.hasOwnProperty('getProgress'));
+check(MovieClipLoader.prototype.hasOwnProperty('addListener'));
+check(MovieClipLoader.prototype.hasOwnProperty('removeListener'));
+check(MovieClipLoader.prototype.hasOwnProperty('broadcastMessage'));
+check_equals(typeOf(MovieClipLoader._listeners), 'undefined');
+
+var mcl = new MovieClipLoader();
+check_equals(typeOf(mcl), 'object');
+check(mcl instanceOf MovieClipLoader);
+
+check_equals(typeOf(mcl.loadClip), 'function');
+check(!mcl.hasOwnProperty('loadClip'));
+
+check_equals(typeOf(mcl.unloadClip), 'function');
+check(!mcl.hasOwnProperty('unloadClip'));
+
+check_equals(typeOf(mcl.getProgress), 'function');
+check(!mcl.hasOwnProperty('getProgress'));
+
+check_equals(typeOf(mcl.addListener), 'function');
+check(!mcl.hasOwnProperty('addListener'));
+
+check_equals(typeOf(mcl.removeListener), 'function');
+check(!mcl.hasOwnProperty('removeListener'));
+
+check_equals(typeOf(mcl.broadcastMessage), 'function');
+check(!mcl.hasOwnProperty('broadcastMessage'));
+
+check_equals(typeOf(mcl._listeners), 'object');
+check(mcl.hasOwnProperty('_listeners'));
+check_equals(mcl._listeners.length, 1);
+check_equals(mcl._listeners[0], mcl);
+
+MovieClipLoader.prototype.bm = MovieClipLoader.prototype.broadcastMessage;
+MovieClipLoader.prototype.broadcastMessage = function(arg1, arg2, arg3, arg4)
+{
+ //note("Broadcasting "+arg1);
+ //this.bm(arg1, arg2, arg3, arg4);
+ this.bm.apply(this, arguments);
+};
+
+//---------------------------------------------------------
+// Test loadClip and events
+//---------------------------------------------------------
+//
+// TODO: test even handlers (actionscript.all framework
+// not enough for this)
+//
+// Invoked when a file loaded with MovieClipLoader.loadClip() has failed to load.
+// MovieClipLoader.onLoadError
+//
+// Invoked when a call to MovieClipLoader.loadClip() has successfully begun to download a file.
+// MovieClipLoader.onLoadStart
+//
+// Invoked every time the loading content is written to disk during the loading process.
+// MovieClipLoader.onLoadProgress
+//
+// Invoked when a file loaded with MovieClipLoader.loadClip() has completely downloaded.
+// MovieClipLoader.onLoadComplete
+//
+// Invoked when the actions on the first frame of the loaded clip have been executed.
+// MovieClipLoader.onLoadInit
+//
+//---------------------------------------------------------
+
+dumpObj = function(o, lvl)
+{
+ if ( typeof(lvl) == 'undefined' ) lvl=0;
+ for (var i in o)
+ {
+ note(lvl+' - '+i+': '+o[i]+' ('+typeof(o[i])+')');
+ if ( typeof(o[i]) == 'object' ) dumpObj(o[i], lvl+1);
+ }
+};
+
+
+createEmptyMovieClip("loadtarget", 10);
+
+expected = {
+ target: undefined
+};
+
+resetState = function()
+{
+ state = {
+ onLoadStartCalls:0,
+ onLoadErrorCalls:0,
+ onLoadProgressCalls:0,
+ onLoadCompleteCalls:0,
+ onLoadInitCalls:0
+ };
+};
+totalProgressCalls=0;
+
+nextTestOrEnd = function()
+{
+ //note("nextTestOrEnd");
+ if ( state.nextFunction == undefined )
+ {
+ // we don't know how many times onLoadProgress will be called
+ // so we have that handler increment a totalProgressCalls and
+ // we use that value to figure out how many tests to expect to
+ // be run (6 tests each onLoadProgress call).
+ // Note that if we miss to call onLoadProgress at all we'd catch
+ // the bug from supposedly subsequent callbacks, which check for
+ // a local flag set by the onLoadProgress handler.
+ //
+ var testsPerProgressCallback = 15;
+ progCallbackTests = totalProgressCalls*testsPerProgressCallback;
+ note("Number of onLoadProgress runs: "+totalProgressCalls+" - tests: "+progCallbackTests);
+ if ( expected.failtotals ) {
+ // this is failing due to vars.txt not being loaded
+ // (how could it?)
+ xcheck_totals(expected.totals + progCallbackTests);
+ } else {
+ check_totals(expected.totals + progCallbackTests);
+ }
+ play();
+ }
+ else
+ {
+ state.nextFunction();
+ }
+};
+
+mcl.onLoadError = function(target, msg, n)
+{
+ check_equals(arguments.length, 3);
+ check_equals(target, expected.target);
+ note("onLoadError called ("+msg+")");
+ nextTestOrEnd();
+ //dumpObj(arguments);
+};
+
+mcl.onLoadStart = function(target)
+{
+ check_equals(arguments.length, 1);
+ // a bug in Gnash made softrefs always convert
+ // to the empty string when not pointing to
+ // their original target...
+ check(target+"" != "");
+ check_equals(target, expected.target);
+ state.onLoadStartCalls++;
+ note("onLoadStart("+target+", ...) called");
+ //note("onLoadStart called with "+arguments.length+" args:"); dumpObj(arguments);
+};
+
+mcl.onLoadProgress = function(target, bytesLoaded, bytesTotal)
+{
+ //note("onLoadProgress("+target+", "+target._url+") called");
+
+ check_equals(arguments.length, 3);
+ check_equals(target, expected.target);
+ check_equals(state.onLoadStartCalls, 1);
+ check_equals(typeof(bytesLoaded), 'number')
+ check_equals(typeof(bytesTotal), 'number')
+ check(bytesTotal <= bytesTotal);
+
+ check_equals(this, mcl);
+
+ var tmp = this.getProgress();
+ check_equals(typeof(tmp), 'undefined');
+
+ var prog = this.getProgress(target);
+ check_equals(typeof(prog), 'object');
+ check_equals(prog.__proto__, undefined);
+ check_equals(prog.bytesLoaded, bytesLoaded);
+ check_equals(prog.bytesTotal, bytesTotal);
+ var progcopy = {}; var progcount=0;
+ for (var i in prog) { progcopy[i] = prog[i]; progcount++; }
+ check_equals(progcount, 2);
+ check_equals(progcopy.bytesLoaded, bytesLoaded);
+ check_equals(progcopy.bytesTotal, bytesTotal);
+
+ ++state.onLoadProgressCalls;
+ ++totalProgressCalls;
+ //note("onLoadProgress called with "+arguments.length+" args:"); dumpObj(arguments);
+};
+
+mcl.onLoadComplete = function(target, n)
+{
+ note("onLoadComplete("+target+", ...) called");
+ check_equals(arguments.length, 2);
+ check_equals(target, expected.target);
+ check_equals(state.onLoadStartCalls, 1);
+ check(state.onLoadProgressCalls > 0);
+ check_equals(typeof(n), 'number'); // what is this ?
+ state.onLoadCompleteCalls++;
+
+ note("onLoadComplete second arg is "+n+" ("+typeof(n)+")");
+};
+
+mcl.onLoadInit = function(target)
+{
+ note("onLoadInit("+target+", ...) called");
+ check_equals(arguments.length, 1);
+ check_equals(target, expected.target);
+ check_equals(state.onLoadStartCalls, 1);
+ check(state.onLoadProgressCalls > 0);
+ check_equals(state.onLoadCompleteCalls, 1);
+ state.onLoadInitCalls++;
+
+ check_equals(this, mcl);
+
+ // At onLoadInit time the _url parameter is the url of
+ // old target with appended url of new target (?)
+ // So we test if it ends with it instead
+ var indexOfGreenJpeg = target._url.indexOf('green.jpg');
+ var isGreenJpeg = ( (target._url.length - indexOfGreenJpeg) == 9 );
+ if ( isGreenJpeg )
+ {
+ //trace("It's the jpeg go !");
+ with (target)
+ {
+ note("_lockroot: "+_lockroot);
+ note("---- Target's root is "+_root);
+ check_equals(_root, _level0);
+ _lockroot = true;
+ check_equals(_root, _level0.loadtarget);
+ note("---- After setting _lockroot to true, target's root is "+_root);
+ _lockroot = false;
+ check_equals(_root, _level0);
+ note("---- After setting _lockroot to false, target's root is "+_root);
+ }
+ // NOTE: these two tests show the bug preventing
+ // YouTube active_sharing.swf movie from working
+ check_equals(target._width, 170);
+ check_equals(target._height, 170);
+ }
+
+ //note("target.var1: "+target.var1);
+ //note("onLoadInit called with "+arguments.length+" args:"); dumpObj(arguments);
+ nextTestOrEnd();
+};
+
+check( ! mcl.loadClip() );
+check( ! mcl.loadClip( MEDIA(vars.txt) ) );
+
+check( ! mcl.loadClip( MEDIA(vars.txt), 'unexistent' ) );
+
+function test1()
+{
+ resetState();
+ state.nextFunction = test2;
+ expected.target = _root.loadtarget;
+ check( mcl.loadClip( MEDIA(unexistent), 'loadtarget' ) );
+}
+
+function test2()
+{
+ resetState();
+ state.nextFunction = test3;
+ expected.target = _root.loadtarget;
+ check( mcl.loadClip( MEDIA(vars.txt), 'loadtarget' ) );
+}
+
+function test3()
+{
+ // getProgress can be called using *any* target
+ // and will return the target's actual size
+ var prog = mcl.getProgress(_level0);
+ check_equals(typeof(prog), 'object');
+ check_equals(prog.__proto__, undefined);
+ check_equals(prog.bytesLoaded, prog.bytesTotal);
+ check_equals(prog.bytesTotal, _level0.getBytesTotal());
+
+ resetState();
+ state.nextFunction = undefined;
+ expected.target = _root.loadtarget;
+
+ // set expected.totals when willing to end the test
+ // we don't know how many times onLoadProgress will be called
+ // so we only count the tests we can determine.
+ // The onLoadInit function will do the rest, by checking the actual
+ // number of times onLoadProgress was called and add to our expected
+ // count (appropriately multiplied to count *every* test in the
+ // onLoadProgress)
+ //
+ // subtract the number of progress callback runs reported when playing from the totals to get the correct number
+ // BUT MAKE SURE nextTestOrEnd CONTAINS THE CORRECT testsPerProgressCallback INFO !!
+ //
+ expected.totals = 72;
+ // gnash doesn't call onLoadInit if the data at the url is not an SWF or JPG
+ // (or whatever else can become a movie_instance), while the PP does.
+ // So in this testcase, the attempt to load vars.txt is invalid for Gnash
+ // (triggers onLoadError)
+ // TODO: fix gnash to be compatible and find out if there's anything
+ // actually dont for loadVariable-like data
+ //
+ expected.failtotals = true;
+
+
+ loadtarget._y = 200;
+ loadtarget._x = 200;
+ loadtarget._alpha = 20;
+ check( mcl.loadClip( MEDIA(green.jpg), 'loadtarget' ) );
+
+}
+
+// Due to a bug in Gnash we must stop() before calling test1.
+// This is because Gnash's version of loadClip is blocking !!
+// TODO: fix it !
+stop();
+
+test1();
+
+#else // OUTPUT_VERSION < 7
+
+totals();
+
+#endif
diff --git a/test/gnash/actionscript.all/pending/MovieClipLoader.as.original b/test/gnash/actionscript.all/pending/MovieClipLoader.as.original
new file mode 100644
index 0000000..a5eeb62
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/MovieClipLoader.as.original
@@ -0,0 +1,347 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+//
+
+// Test case for MovieClipLoader ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: MovieClipLoader.as,v 1.19 2008/03/11 19:31:47 strk Exp $";
+#include "check.as"
+
+//#define MEDIA(x) x
+
+// MovieClipLoader was added in player7
+#if OUTPUT_VERSION >= 7
+
+check_equals(typeOf(MovieClipLoader), 'function');
+check_equals(typeOf(MovieClipLoader.prototype), 'object');
+check(MovieClipLoader.prototype.hasOwnProperty('loadClip'));
+check(MovieClipLoader.prototype.hasOwnProperty('unloadClip'));
+check(MovieClipLoader.prototype.hasOwnProperty('getProgress'));
+check(MovieClipLoader.prototype.hasOwnProperty('addListener'));
+check(MovieClipLoader.prototype.hasOwnProperty('removeListener'));
+check(MovieClipLoader.prototype.hasOwnProperty('broadcastMessage'));
+check_equals(typeOf(MovieClipLoader._listeners), 'undefined');
+
+var mcl = new MovieClipLoader();
+check_equals(typeOf(mcl), 'object');
+check(mcl instanceOf MovieClipLoader);
+
+check_equals(typeOf(mcl.loadClip), 'function');
+check(!mcl.hasOwnProperty('loadClip'));
+
+check_equals(typeOf(mcl.unloadClip), 'function');
+check(!mcl.hasOwnProperty('unloadClip'));
+
+check_equals(typeOf(mcl.getProgress), 'function');
+check(!mcl.hasOwnProperty('getProgress'));
+
+check_equals(typeOf(mcl.addListener), 'function');
+check(!mcl.hasOwnProperty('addListener'));
+
+check_equals(typeOf(mcl.removeListener), 'function');
+check(!mcl.hasOwnProperty('removeListener'));
+
+check_equals(typeOf(mcl.broadcastMessage), 'function');
+check(!mcl.hasOwnProperty('broadcastMessage'));
+
+check_equals(typeOf(mcl._listeners), 'object');
+check(mcl.hasOwnProperty('_listeners'));
+check_equals(mcl._listeners.length, 1);
+check_equals(mcl._listeners[0], mcl);
+
+MovieClipLoader.prototype.bm = MovieClipLoader.prototype.broadcastMessage;
+MovieClipLoader.prototype.broadcastMessage = function(arg1, arg2, arg3, arg4)
+{
+ //note("Broadcasting "+arg1);
+ //this.bm(arg1, arg2, arg3, arg4);
+ this.bm.apply(this, arguments);
+};
+
+//---------------------------------------------------------
+// Test loadClip and events
+//---------------------------------------------------------
+//
+// TODO: test even handlers (actionscript.all framework
+// not enough for this)
+//
+// Invoked when a file loaded with MovieClipLoader.loadClip() has failed to load.
+// MovieClipLoader.onLoadError
+//
+// Invoked when a call to MovieClipLoader.loadClip() has successfully begun to download a file.
+// MovieClipLoader.onLoadStart
+//
+// Invoked every time the loading content is written to disk during the loading process.
+// MovieClipLoader.onLoadProgress
+//
+// Invoked when a file loaded with MovieClipLoader.loadClip() has completely downloaded.
+// MovieClipLoader.onLoadComplete
+//
+// Invoked when the actions on the first frame of the loaded clip have been executed.
+// MovieClipLoader.onLoadInit
+//
+//---------------------------------------------------------
+
+dumpObj = function(o, lvl)
+{
+ if ( typeof(lvl) == 'undefined' ) lvl=0;
+ for (var i in o)
+ {
+ note(lvl+' - '+i+': '+o[i]+' ('+typeof(o[i])+')');
+ if ( typeof(o[i]) == 'object' ) dumpObj(o[i], lvl+1);
+ }
+};
+
+
+createEmptyMovieClip("loadtarget", 10);
+
+expected = {
+ target: undefined
+};
+
+resetState = function()
+{
+ state = {
+ onLoadStartCalls:0,
+ onLoadErrorCalls:0,
+ onLoadProgressCalls:0,
+ onLoadCompleteCalls:0,
+ onLoadInitCalls:0
+ };
+};
+totalProgressCalls=0;
+
+nextTestOrEnd = function()
+{
+ //note("nextTestOrEnd");
+ if ( state.nextFunction == undefined )
+ {
+ // we don't know how many times onLoadProgress will be called
+ // so we have that handler increment a totalProgressCalls and
+ // we use that value to figure out how many tests to expect to
+ // be run (6 tests each onLoadProgress call).
+ // Note that if we miss to call onLoadProgress at all we'd catch
+ // the bug from supposedly subsequent callbacks, which check for
+ // a local flag set by the onLoadProgress handler.
+ //
+ var testsPerProgressCallback = 15;
+ progCallbackTests = totalProgressCalls*testsPerProgressCallback;
+ note("Number of onLoadProgress runs: "+totalProgressCalls+" - tests: "+progCallbackTests);
+ if ( expected.failtotals ) {
+ // this is failing due to vars.txt not being loaded
+ // (how could it?)
+ xcheck_totals(expected.totals + progCallbackTests);
+ } else {
+ check_totals(expected.totals + progCallbackTests);
+ }
+ play();
+ }
+ else
+ {
+ state.nextFunction();
+ }
+};
+
+mcl.onLoadError = function(target, msg, n)
+{
+ check_equals(arguments.length, 3);
+ check_equals(target, expected.target);
+ note("onLoadError called ("+msg+")");
+ nextTestOrEnd();
+ //dumpObj(arguments);
+};
+
+mcl.onLoadStart = function(target)
+{
+ check_equals(arguments.length, 1);
+ // a bug in Gnash made softrefs always convert
+ // to the empty string when not pointing to
+ // their original target...
+ check(target+"" != "");
+ check_equals(target, expected.target);
+ state.onLoadStartCalls++;
+ note("onLoadStart("+target+", "+target._url+") called");
+ //note("onLoadStart called with "+arguments.length+" args:"); dumpObj(arguments);
+};
+
+mcl.onLoadProgress = function(target, bytesLoaded, bytesTotal)
+{
+ //note("onLoadProgress("+target+", "+target._url+") called");
+
+ check_equals(arguments.length, 3);
+ check_equals(target, expected.target);
+ check_equals(state.onLoadStartCalls, 1);
+ check_equals(typeof(bytesLoaded), 'number')
+ check_equals(typeof(bytesTotal), 'number')
+ check(bytesTotal <= bytesTotal);
+
+ check_equals(this, mcl);
+
+ var tmp = this.getProgress();
+ check_equals(typeof(tmp), 'undefined');
+
+ var prog = this.getProgress(target);
+ check_equals(typeof(prog), 'object');
+ check_equals(prog.__proto__, undefined);
+ check_equals(prog.bytesLoaded, bytesLoaded);
+ check_equals(prog.bytesTotal, bytesTotal);
+ var progcopy = {}; var progcount=0;
+ for (var i in prog) { progcopy[i] = prog[i]; progcount++; }
+ check_equals(progcount, 2);
+ check_equals(progcopy.bytesLoaded, bytesLoaded);
+ check_equals(progcopy.bytesTotal, bytesTotal);
+
+ ++state.onLoadProgressCalls;
+ ++totalProgressCalls;
+ //note("onLoadProgress called with "+arguments.length+" args:"); dumpObj(arguments);
+};
+
+mcl.onLoadComplete = function(target, n)
+{
+ note("onLoadComplete("+target+", "+target._url+") called");
+ check_equals(arguments.length, 2);
+ check_equals(target, expected.target);
+ check_equals(state.onLoadStartCalls, 1);
+ check(state.onLoadProgressCalls > 0);
+ check_equals(typeof(n), 'number'); // what is this ?
+ state.onLoadCompleteCalls++;
+
+ note("onLoadComplete second arg is "+n+" ("+typeof(n)+")");
+};
+
+mcl.onLoadInit = function(target)
+{
+ note("onLoadInit("+target+", "+target._url+") called");
+ check_equals(arguments.length, 1);
+ check_equals(target, expected.target);
+ check_equals(state.onLoadStartCalls, 1);
+ check(state.onLoadProgressCalls > 0);
+ check_equals(state.onLoadCompleteCalls, 1);
+ state.onLoadInitCalls++;
+
+ check_equals(this, mcl);
+
+ // At onLoadInit time the _url parameter is the url of
+ // old target with appended url of new target (?)
+ // So we test if it ends with it instead
+ var indexOfGreenJpeg = target._url.indexOf('green.jpg');
+ var isGreenJpeg = ( (target._url.length - indexOfGreenJpeg) == 9 );
+ if ( isGreenJpeg )
+ {
+ //trace("It's the jpeg go !");
+ with (target)
+ {
+ note("_lockroot: "+_lockroot);
+ note("---- Target's root is "+_root);
+ check_equals(_root, _level0);
+ _lockroot = true;
+ check_equals(_root, _level0.loadtarget);
+ note("---- After setting _lockroot to true, target's root is "+_root);
+ _lockroot = false;
+ check_equals(_root, _level0);
+ note("---- After setting _lockroot to false, target's root is "+_root);
+ }
+ // NOTE: these two tests show the bug preventing
+ // YouTube active_sharing.swf movie from working
+ check_equals(target._width, 170);
+ check_equals(target._height, 170);
+ }
+
+ //note("target.var1: "+target.var1);
+ //note("onLoadInit called with "+arguments.length+" args:"); dumpObj(arguments);
+ nextTestOrEnd();
+};
+
+check( ! mcl.loadClip() );
+check( ! mcl.loadClip( MEDIA(vars.txt) ) );
+
+check( ! mcl.loadClip( MEDIA(vars.txt), 'unexistent' ) );
+
+function test1()
+{
+ resetState();
+ state.nextFunction = test2;
+ expected.target = _root.loadtarget;
+ check( mcl.loadClip( MEDIA(unexistent), 'loadtarget' ) );
+}
+
+function test2()
+{
+ resetState();
+ state.nextFunction = test3;
+ expected.target = _root.loadtarget;
+ check( mcl.loadClip( MEDIA(vars.txt), 'loadtarget' ) );
+}
+
+function test3()
+{
+ // getProgress can be called using *any* target
+ // and will return the target's actual size
+ var prog = mcl.getProgress(_level0);
+ check_equals(typeof(prog), 'object');
+ check_equals(prog.__proto__, undefined);
+ check_equals(prog.bytesLoaded, prog.bytesTotal);
+ check_equals(prog.bytesTotal, _level0.getBytesTotal());
+
+ resetState();
+ state.nextFunction = undefined;
+ expected.target = _root.loadtarget;
+
+ // set expected.totals when willing to end the test
+ // we don't know how many times onLoadProgress will be called
+ // so we only count the tests we can determine.
+ // The onLoadInit function will do the rest, by checking the actual
+ // number of times onLoadProgress was called and add to our expected
+ // count (appropriately multiplied to count *every* test in the
+ // onLoadProgress)
+ //
+ // subtract the number of progress callback runs reported when playing from the totals to get the correct number
+ // BUT MAKE SURE nextTestOrEnd CONTAINS THE CORRECT testsPerProgressCallback INFO !!
+ //
+ expected.totals = 72;
+ // gnash doesn't call onLoadInit if the data at the url is not an SWF or JPG
+ // (or whatever else can become a movie_instance), while the PP does.
+ // So in this testcase, the attempt to load vars.txt is invalid for Gnash
+ // (triggers onLoadError)
+ // TODO: fix gnash to be compatible and find out if there's anything
+ // actually dont for loadVariable-like data
+ //
+ expected.failtotals = true;
+
+
+ loadtarget._y = 200;
+ loadtarget._x = 200;
+ loadtarget._alpha = 20;
+ check( mcl.loadClip( MEDIA(green.jpg), 'loadtarget' ) );
+
+}
+
+// Due to a bug in Gnash we must stop() before calling test1.
+// This is because Gnash's version of loadClip is blocking !!
+// TODO: fix it !
+stop();
+
+test1();
+
+#else // OUTPUT_VERSION < 7
+
+totals();
+
+#endif
commit 7bb6824e49123ead3f16bb896c865a68a8b578e0
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Fri Jul 4 02:17:33 2008 +0300
Import actionscript.all/XMLNode.as test from Gnash
diff --git a/test/gnash/actionscript.all/Makefile.am b/test/gnash/actionscript.all/Makefile.am
index fec9b91..2ee7dd1 100644
--- a/test/gnash/actionscript.all/Makefile.am
+++ b/test/gnash/actionscript.all/Makefile.am
@@ -155,4 +155,13 @@ EXTRA_DIST = \
Video-7.swf.trace \
Video-8.swf \
Video-8.swf.trace \
- Video.as
+ Video.as \
+ XMLNode-5.swf \
+ XMLNode-5.swf.trace \
+ XMLNode-6.swf \
+ XMLNode-6.swf.trace \
+ XMLNode-7.swf \
+ XMLNode-7.swf.trace \
+ XMLNode-8.swf \
+ XMLNode-8.swf.trace \
+ XMLNode.as
diff --git a/test/gnash/actionscript.all/XMLNode-5.swf b/test/gnash/actionscript.all/XMLNode-5.swf
new file mode 100644
index 0000000..ec2e987
Binary files /dev/null and b/test/gnash/actionscript.all/XMLNode-5.swf differ
diff --git a/test/gnash/actionscript.all/XMLNode-5.swf.trace b/test/gnash/actionscript.all/XMLNode-5.swf.trace
new file mode 100644
index 0000000..082edef
--- /dev/null
+++ b/test/gnash/actionscript.all/XMLNode-5.swf.trace
@@ -0,0 +1,31 @@
+PASSED: doc [XMLNode.as:30]
+PASSED: typeOf(textnode) == 'object' [XMLNode.as:32]
+PASSED: textnode.appendChild [XMLNode.as:43]
+PASSED: textnode.cloneNode [XMLNode.as:44]
+PASSED: textnode.hasChildNodes [XMLNode.as:45]
+PASSED: textnode.insertBefore [XMLNode.as:46]
+PASSED: textnode.removeNode [XMLNode.as:47]
+PASSED: textnode.toString [XMLNode.as:48]
+PASSED: textnode.nodeName == "foo" [XMLNode.as:53]
+PASSED: textnode.nodeValue == "text content" [XMLNode.as:55]
+PASSED: textnode.nodeValue == "bar" [XMLNode.as:57]
+PASSED: textnode.hasChildNodes() == false [XMLNode.as:61]
+PASSED: typeof(textnode.firstChild) == 'null' [XMLNode.as:62]
+PASSED: typeof(textnode.lastChild) == 'null' [XMLNode.as:63]
+PASSED: typeof(textnode.parentNode) == 'null' [XMLNode.as:64]
+PASSED: typeof(textnode.nextSibling) == 'null' [XMLNode.as:65]
+PASSED: typeof(textnode.previousSibling) == 'null' [XMLNode.as:66]
+PASSED: textnode1.nodeType == 3 [XMLNode.as:75]
+PASSED: node1.hasChildNodes() == true [XMLNode.as:79]
+PASSED: node1.firstChild.nodeValue == "first text node" [XMLNode.as:81]
+PASSED: typeof(node1.lastChild.nodeValue) == 'null' [XMLNode.as:82]
+PASSED: node2.lastChild.toString() == "second text node" [XMLNode.as:83]
+===========================================
+PASSED: node1.firstChild.nodeValue == "first text node" [XMLNode.as:95]
+PASSED: typeof(node1.lastChild.nodeValue) == 'null' [XMLNode.as:96]
+<node2>second text node</node2>
+<node2>second text node</node2>
+PASSED: typeof(node1.firstChild.nodeName) == "null" [XMLNode.as:101]
+PASSED: node1.lastChild.nodeName == "node3" [XMLNode.as:102]
+PASSED: node2.previousSibling.nodeValue == "first text node" [XMLNode.as:104]
+check_totals: 27
diff --git a/test/gnash/actionscript.all/XMLNode-6.swf b/test/gnash/actionscript.all/XMLNode-6.swf
new file mode 100644
index 0000000..833c2b9
Binary files /dev/null and b/test/gnash/actionscript.all/XMLNode-6.swf differ
diff --git a/test/gnash/actionscript.all/XMLNode-6.swf.trace b/test/gnash/actionscript.all/XMLNode-6.swf.trace
new file mode 100644
index 0000000..082edef
--- /dev/null
+++ b/test/gnash/actionscript.all/XMLNode-6.swf.trace
@@ -0,0 +1,31 @@
+PASSED: doc [XMLNode.as:30]
+PASSED: typeOf(textnode) == 'object' [XMLNode.as:32]
+PASSED: textnode.appendChild [XMLNode.as:43]
+PASSED: textnode.cloneNode [XMLNode.as:44]
+PASSED: textnode.hasChildNodes [XMLNode.as:45]
+PASSED: textnode.insertBefore [XMLNode.as:46]
+PASSED: textnode.removeNode [XMLNode.as:47]
+PASSED: textnode.toString [XMLNode.as:48]
+PASSED: textnode.nodeName == "foo" [XMLNode.as:53]
+PASSED: textnode.nodeValue == "text content" [XMLNode.as:55]
+PASSED: textnode.nodeValue == "bar" [XMLNode.as:57]
+PASSED: textnode.hasChildNodes() == false [XMLNode.as:61]
+PASSED: typeof(textnode.firstChild) == 'null' [XMLNode.as:62]
+PASSED: typeof(textnode.lastChild) == 'null' [XMLNode.as:63]
+PASSED: typeof(textnode.parentNode) == 'null' [XMLNode.as:64]
+PASSED: typeof(textnode.nextSibling) == 'null' [XMLNode.as:65]
+PASSED: typeof(textnode.previousSibling) == 'null' [XMLNode.as:66]
+PASSED: textnode1.nodeType == 3 [XMLNode.as:75]
+PASSED: node1.hasChildNodes() == true [XMLNode.as:79]
+PASSED: node1.firstChild.nodeValue == "first text node" [XMLNode.as:81]
+PASSED: typeof(node1.lastChild.nodeValue) == 'null' [XMLNode.as:82]
+PASSED: node2.lastChild.toString() == "second text node" [XMLNode.as:83]
+===========================================
+PASSED: node1.firstChild.nodeValue == "first text node" [XMLNode.as:95]
+PASSED: typeof(node1.lastChild.nodeValue) == 'null' [XMLNode.as:96]
+<node2>second text node</node2>
+<node2>second text node</node2>
+PASSED: typeof(node1.firstChild.nodeName) == "null" [XMLNode.as:101]
+PASSED: node1.lastChild.nodeName == "node3" [XMLNode.as:102]
+PASSED: node2.previousSibling.nodeValue == "first text node" [XMLNode.as:104]
+check_totals: 27
diff --git a/test/gnash/actionscript.all/XMLNode-7.swf b/test/gnash/actionscript.all/XMLNode-7.swf
new file mode 100644
index 0000000..a63b685
Binary files /dev/null and b/test/gnash/actionscript.all/XMLNode-7.swf differ
diff --git a/test/gnash/actionscript.all/XMLNode-7.swf.trace b/test/gnash/actionscript.all/XMLNode-7.swf.trace
new file mode 100644
index 0000000..082edef
--- /dev/null
+++ b/test/gnash/actionscript.all/XMLNode-7.swf.trace
@@ -0,0 +1,31 @@
+PASSED: doc [XMLNode.as:30]
+PASSED: typeOf(textnode) == 'object' [XMLNode.as:32]
+PASSED: textnode.appendChild [XMLNode.as:43]
+PASSED: textnode.cloneNode [XMLNode.as:44]
+PASSED: textnode.hasChildNodes [XMLNode.as:45]
+PASSED: textnode.insertBefore [XMLNode.as:46]
+PASSED: textnode.removeNode [XMLNode.as:47]
+PASSED: textnode.toString [XMLNode.as:48]
+PASSED: textnode.nodeName == "foo" [XMLNode.as:53]
+PASSED: textnode.nodeValue == "text content" [XMLNode.as:55]
+PASSED: textnode.nodeValue == "bar" [XMLNode.as:57]
+PASSED: textnode.hasChildNodes() == false [XMLNode.as:61]
+PASSED: typeof(textnode.firstChild) == 'null' [XMLNode.as:62]
+PASSED: typeof(textnode.lastChild) == 'null' [XMLNode.as:63]
+PASSED: typeof(textnode.parentNode) == 'null' [XMLNode.as:64]
+PASSED: typeof(textnode.nextSibling) == 'null' [XMLNode.as:65]
+PASSED: typeof(textnode.previousSibling) == 'null' [XMLNode.as:66]
+PASSED: textnode1.nodeType == 3 [XMLNode.as:75]
+PASSED: node1.hasChildNodes() == true [XMLNode.as:79]
+PASSED: node1.firstChild.nodeValue == "first text node" [XMLNode.as:81]
+PASSED: typeof(node1.lastChild.nodeValue) == 'null' [XMLNode.as:82]
+PASSED: node2.lastChild.toString() == "second text node" [XMLNode.as:83]
+===========================================
+PASSED: node1.firstChild.nodeValue == "first text node" [XMLNode.as:95]
+PASSED: typeof(node1.lastChild.nodeValue) == 'null' [XMLNode.as:96]
+<node2>second text node</node2>
+<node2>second text node</node2>
+PASSED: typeof(node1.firstChild.nodeName) == "null" [XMLNode.as:101]
+PASSED: node1.lastChild.nodeName == "node3" [XMLNode.as:102]
+PASSED: node2.previousSibling.nodeValue == "first text node" [XMLNode.as:104]
+check_totals: 27
diff --git a/test/gnash/actionscript.all/XMLNode-8.swf b/test/gnash/actionscript.all/XMLNode-8.swf
new file mode 100644
index 0000000..65f0b41
Binary files /dev/null and b/test/gnash/actionscript.all/XMLNode-8.swf differ
diff --git a/test/gnash/actionscript.all/XMLNode-8.swf.trace b/test/gnash/actionscript.all/XMLNode-8.swf.trace
new file mode 100644
index 0000000..082edef
--- /dev/null
+++ b/test/gnash/actionscript.all/XMLNode-8.swf.trace
@@ -0,0 +1,31 @@
+PASSED: doc [XMLNode.as:30]
+PASSED: typeOf(textnode) == 'object' [XMLNode.as:32]
+PASSED: textnode.appendChild [XMLNode.as:43]
+PASSED: textnode.cloneNode [XMLNode.as:44]
+PASSED: textnode.hasChildNodes [XMLNode.as:45]
+PASSED: textnode.insertBefore [XMLNode.as:46]
+PASSED: textnode.removeNode [XMLNode.as:47]
+PASSED: textnode.toString [XMLNode.as:48]
+PASSED: textnode.nodeName == "foo" [XMLNode.as:53]
+PASSED: textnode.nodeValue == "text content" [XMLNode.as:55]
+PASSED: textnode.nodeValue == "bar" [XMLNode.as:57]
+PASSED: textnode.hasChildNodes() == false [XMLNode.as:61]
+PASSED: typeof(textnode.firstChild) == 'null' [XMLNode.as:62]
+PASSED: typeof(textnode.lastChild) == 'null' [XMLNode.as:63]
+PASSED: typeof(textnode.parentNode) == 'null' [XMLNode.as:64]
+PASSED: typeof(textnode.nextSibling) == 'null' [XMLNode.as:65]
+PASSED: typeof(textnode.previousSibling) == 'null' [XMLNode.as:66]
+PASSED: textnode1.nodeType == 3 [XMLNode.as:75]
+PASSED: node1.hasChildNodes() == true [XMLNode.as:79]
+PASSED: node1.firstChild.nodeValue == "first text node" [XMLNode.as:81]
+PASSED: typeof(node1.lastChild.nodeValue) == 'null' [XMLNode.as:82]
+PASSED: node2.lastChild.toString() == "second text node" [XMLNode.as:83]
+===========================================
+PASSED: node1.firstChild.nodeValue == "first text node" [XMLNode.as:95]
+PASSED: typeof(node1.lastChild.nodeValue) == 'null' [XMLNode.as:96]
+<node2>second text node</node2>
+<node2>second text node</node2>
+PASSED: typeof(node1.firstChild.nodeName) == "null" [XMLNode.as:101]
+PASSED: node1.lastChild.nodeName == "node3" [XMLNode.as:102]
+PASSED: node2.previousSibling.nodeValue == "first text node" [XMLNode.as:104]
+check_totals: 27
diff --git a/test/gnash/actionscript.all/XMLNode.as b/test/gnash/actionscript.all/XMLNode.as
new file mode 100644
index 0000000..e6667b2
--- /dev/null
+++ b/test/gnash/actionscript.all/XMLNode.as
@@ -0,0 +1,113 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+// Test case for XML ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: XMLNode.as,v 1.17 2008/03/11 19:31:48 strk Exp $";
+#include "check.as"
+//#include "dejagnu.as"
+
+var doc = new XML();
+
+check(doc);
+var textnode = doc.createTextNode("text content");
+check_equals(typeOf(textnode), 'object');
+
+// test the XMLNode constuctor
+//dejagnu(node, "XMLNode::XMLNode()");
+
+//note("Test the existance of all the methods");
+
+//check_equals(typeOf(myXML.createElement), 'function');
+
+
+
+check(textnode.appendChild);
+check(textnode.cloneNode);
+check(textnode.hasChildNodes);
+check(textnode.insertBefore);
+check(textnode.removeNode);
+check(textnode.toString);
+
+//note("Now test the functionality of the properties");
+
+textnode.nodeName = "foo";
+check_equals(textnode.nodeName, "foo");
+
+check_equals (textnode.nodeValue, "text content");
+textnode.nodeValue = "bar";
+check_equals (textnode.nodeValue, "bar");
+
+// The read only properties. These should all return NULL, because
+// there are no children.
+check_equals(textnode.hasChildNodes(), false);
+check_equals(typeof(textnode.firstChild), 'null');
+check_equals(typeof(textnode.lastChild), 'null');
+check_equals(typeof(textnode.parentNode), 'null');
+check_equals(typeof(textnode.nextSibling), 'null');
+check_equals(typeof(textnode.previousSibling), 'null');
+
+//note("Now test the functionality of the methods");
+
+
+var node1 = doc.createElement("node1");
+var node2 = doc.createElement("node2");
+var textnode1 = doc.createTextNode("first text node");
+var textnode2 = doc.createTextNode("second text node");
+check_equals(textnode1.nodeType, 3);
+node1.appendChild(textnode1);
+node2.appendChild(textnode2);
+node1.appendChild(node2);
+check_equals(node1.hasChildNodes(), true);
+
+check_equals(node1.firstChild.nodeValue, "first text node");
+check_equals(typeof(node1.lastChild.nodeValue), 'null');
+check_equals(node2.lastChild.toString(), "second text node");
+
+var node3 = doc.createElement("node3");
+var textnode3 = doc.createTextNode("third text node");
+node3.appendChild(textnode3);
+node1.appendChild(node3);
+
+// trace(node1.toString());
+trace("===========================================");
+
+// trace(node1.firstChild.nodeValue);
+// trace(node1.lastChild.nodeValue);
+check_equals(node1.firstChild.nodeValue, "first text node");
+check_equals(typeof(node1.lastChild.nodeValue), 'null');
+
+trace(node1.lastChild.previousSibling);
+trace(node1.firstChild.nextSibling);
+
+check_equals(typeof(node1.firstChild.nodeName), "null");
+check_equals(node1.lastChild.nodeName, "node3");
+
+check_equals(node2.previousSibling.nodeValue, "first text node");
+
+// TODO: test removeNode, insertNode
+
+// for (var aNode = node1.firstChild; node1 != null; aNode = node1.nextSibling) {
+// trace(aNode);
+// }
+
+
+check_totals(27);
commit 2cc95eb4d4ac432303576f165121e5b3153485e5
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Fri Jul 4 02:09:37 2008 +0300
Import actionscript.all/Random.as test from Gnash
Removed note calls from it, so the trace output is predictable
diff --git a/test/gnash/actionscript.all/Makefile.am b/test/gnash/actionscript.all/Makefile.am
index 238e23a..fec9b91 100644
--- a/test/gnash/actionscript.all/Makefile.am
+++ b/test/gnash/actionscript.all/Makefile.am
@@ -82,6 +82,16 @@ EXTRA_DIST = \
Point-8.swf \
Point-8.swf.trace \
Point.as \
+ Random-5.swf \
+ Random-5.swf.trace \
+ Random-6.swf \
+ Random-6.swf.trace \
+ Random-7.swf \
+ Random-7.swf.trace \
+ Random-8.swf \
+ Random-8.swf.trace \
+ Random.as \
+ Random.as.original \
Rectangle-5.swf \
Rectangle-5.swf.trace \
Rectangle-6.swf \
diff --git a/test/gnash/actionscript.all/Random-5.swf b/test/gnash/actionscript.all/Random-5.swf
new file mode 100644
index 0000000..795d6ce
Binary files /dev/null and b/test/gnash/actionscript.all/Random-5.swf differ
diff --git a/test/gnash/actionscript.all/Random-5.swf.trace b/test/gnash/actionscript.all/Random-5.swf.trace
new file mode 100644
index 0000000..7d89d1b
--- /dev/null
+++ b/test/gnash/actionscript.all/Random-5.swf.trace
@@ -0,0 +1,24 @@
+PASSED: tally[0] > (max / 10) [Random.as:56]
+PASSED: tally[1] > (max / 10) [Random.as:57]
+PASSED: tally[2] > (max / 10) [Random.as:58]
+PASSED: tally[3] > (max / 10) [Random.as:59]
+PASSED: typeof(tally[4]) == "undefined" [Random.as:61]
+PASSED: tally[0] > (max / 10) [Random.as:75]
+PASSED: tally[1] > (max / 10) [Random.as:76]
+PASSED: tally[2] > (max / 10) [Random.as:77]
+PASSED: tally[3] > (max / 10) [Random.as:78]
+PASSED: typeof(tally[4]) == "undefined" [Random.as:80]
+PASSED: tally[0] == max / 5 [Random.as:92]
+PASSED: typeof(tally[1]) == "undefined" [Random.as:93]
+PASSED: typeof(tally[0]) == "undefined" [Random.as:114]
+PASSED: tally[1] > (max / 20) [Random.as:116]
+PASSED: tally[2] > (max / 20) [Random.as:118]
+PASSED: tally[3] > (max / 20) [Random.as:120]
+PASSED: tally[4] > (max / 20) [Random.as:122]
+PASSED: tally[5] > (max / 20) [Random.as:124]
+PASSED: tally[7] > (max / 20) [Random.as:126]
+PASSED: tally[8] > (max / 20) [Random.as:128]
+PASSED: tally[9] > (max / 20) [Random.as:130]
+PASSED: tally[10] > (max / 20) [Random.as:132]
+PASSED: typeof(tally[11]) == "undefined" [Random.as:134]
+check_totals: 24
diff --git a/test/gnash/actionscript.all/Random-6.swf b/test/gnash/actionscript.all/Random-6.swf
new file mode 100644
index 0000000..a1401e3
Binary files /dev/null and b/test/gnash/actionscript.all/Random-6.swf differ
diff --git a/test/gnash/actionscript.all/Random-6.swf.trace b/test/gnash/actionscript.all/Random-6.swf.trace
new file mode 100644
index 0000000..7d89d1b
--- /dev/null
+++ b/test/gnash/actionscript.all/Random-6.swf.trace
@@ -0,0 +1,24 @@
+PASSED: tally[0] > (max / 10) [Random.as:56]
+PASSED: tally[1] > (max / 10) [Random.as:57]
+PASSED: tally[2] > (max / 10) [Random.as:58]
+PASSED: tally[3] > (max / 10) [Random.as:59]
+PASSED: typeof(tally[4]) == "undefined" [Random.as:61]
+PASSED: tally[0] > (max / 10) [Random.as:75]
+PASSED: tally[1] > (max / 10) [Random.as:76]
+PASSED: tally[2] > (max / 10) [Random.as:77]
+PASSED: tally[3] > (max / 10) [Random.as:78]
+PASSED: typeof(tally[4]) == "undefined" [Random.as:80]
+PASSED: tally[0] == max / 5 [Random.as:92]
+PASSED: typeof(tally[1]) == "undefined" [Random.as:93]
+PASSED: typeof(tally[0]) == "undefined" [Random.as:114]
+PASSED: tally[1] > (max / 20) [Random.as:116]
+PASSED: tally[2] > (max / 20) [Random.as:118]
+PASSED: tally[3] > (max / 20) [Random.as:120]
+PASSED: tally[4] > (max / 20) [Random.as:122]
+PASSED: tally[5] > (max / 20) [Random.as:124]
+PASSED: tally[7] > (max / 20) [Random.as:126]
+PASSED: tally[8] > (max / 20) [Random.as:128]
+PASSED: tally[9] > (max / 20) [Random.as:130]
+PASSED: tally[10] > (max / 20) [Random.as:132]
+PASSED: typeof(tally[11]) == "undefined" [Random.as:134]
+check_totals: 24
diff --git a/test/gnash/actionscript.all/Random-7.swf b/test/gnash/actionscript.all/Random-7.swf
new file mode 100644
index 0000000..d0c9126
Binary files /dev/null and b/test/gnash/actionscript.all/Random-7.swf differ
diff --git a/test/gnash/actionscript.all/Random-7.swf.trace b/test/gnash/actionscript.all/Random-7.swf.trace
new file mode 100644
index 0000000..7d89d1b
--- /dev/null
+++ b/test/gnash/actionscript.all/Random-7.swf.trace
@@ -0,0 +1,24 @@
+PASSED: tally[0] > (max / 10) [Random.as:56]
+PASSED: tally[1] > (max / 10) [Random.as:57]
+PASSED: tally[2] > (max / 10) [Random.as:58]
+PASSED: tally[3] > (max / 10) [Random.as:59]
+PASSED: typeof(tally[4]) == "undefined" [Random.as:61]
+PASSED: tally[0] > (max / 10) [Random.as:75]
+PASSED: tally[1] > (max / 10) [Random.as:76]
+PASSED: tally[2] > (max / 10) [Random.as:77]
+PASSED: tally[3] > (max / 10) [Random.as:78]
+PASSED: typeof(tally[4]) == "undefined" [Random.as:80]
+PASSED: tally[0] == max / 5 [Random.as:92]
+PASSED: typeof(tally[1]) == "undefined" [Random.as:93]
+PASSED: typeof(tally[0]) == "undefined" [Random.as:114]
+PASSED: tally[1] > (max / 20) [Random.as:116]
+PASSED: tally[2] > (max / 20) [Random.as:118]
+PASSED: tally[3] > (max / 20) [Random.as:120]
+PASSED: tally[4] > (max / 20) [Random.as:122]
+PASSED: tally[5] > (max / 20) [Random.as:124]
+PASSED: tally[7] > (max / 20) [Random.as:126]
+PASSED: tally[8] > (max / 20) [Random.as:128]
+PASSED: tally[9] > (max / 20) [Random.as:130]
+PASSED: tally[10] > (max / 20) [Random.as:132]
+PASSED: typeof(tally[11]) == "undefined" [Random.as:134]
+check_totals: 24
diff --git a/test/gnash/actionscript.all/Random-8.swf b/test/gnash/actionscript.all/Random-8.swf
new file mode 100644
index 0000000..51d6a6e
Binary files /dev/null and b/test/gnash/actionscript.all/Random-8.swf differ
diff --git a/test/gnash/actionscript.all/Random-8.swf.trace b/test/gnash/actionscript.all/Random-8.swf.trace
new file mode 100644
index 0000000..7d89d1b
--- /dev/null
+++ b/test/gnash/actionscript.all/Random-8.swf.trace
@@ -0,0 +1,24 @@
+PASSED: tally[0] > (max / 10) [Random.as:56]
+PASSED: tally[1] > (max / 10) [Random.as:57]
+PASSED: tally[2] > (max / 10) [Random.as:58]
+PASSED: tally[3] > (max / 10) [Random.as:59]
+PASSED: typeof(tally[4]) == "undefined" [Random.as:61]
+PASSED: tally[0] > (max / 10) [Random.as:75]
+PASSED: tally[1] > (max / 10) [Random.as:76]
+PASSED: tally[2] > (max / 10) [Random.as:77]
+PASSED: tally[3] > (max / 10) [Random.as:78]
+PASSED: typeof(tally[4]) == "undefined" [Random.as:80]
+PASSED: tally[0] == max / 5 [Random.as:92]
+PASSED: typeof(tally[1]) == "undefined" [Random.as:93]
+PASSED: typeof(tally[0]) == "undefined" [Random.as:114]
+PASSED: tally[1] > (max / 20) [Random.as:116]
+PASSED: tally[2] > (max / 20) [Random.as:118]
+PASSED: tally[3] > (max / 20) [Random.as:120]
+PASSED: tally[4] > (max / 20) [Random.as:122]
+PASSED: tally[5] > (max / 20) [Random.as:124]
+PASSED: tally[7] > (max / 20) [Random.as:126]
+PASSED: tally[8] > (max / 20) [Random.as:128]
+PASSED: tally[9] > (max / 20) [Random.as:130]
+PASSED: tally[10] > (max / 20) [Random.as:132]
+PASSED: typeof(tally[11]) == "undefined" [Random.as:134]
+check_totals: 24
diff --git a/test/gnash/actionscript.all/Random.as b/test/gnash/actionscript.all/Random.as
new file mode 100644
index 0000000..e976b1f
--- /dev/null
+++ b/test/gnash/actionscript.all/Random.as
@@ -0,0 +1,137 @@
+//
+// Copyright (C) 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+//
+// Tests for random behaviour. This tests only the randomness of the output
+// and the range of results. Tests for Math.random() actionscript correctness
+// are in Math.as.
+//
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+// For obvious reasons, tests of randomness can fail even if there is
+// nothing wrong (though with carefully-designed pseudo-randomness this
+// is very unlikely). The chance of a failure is very small if Gnash
+// is working correctly.
+
+rcsid="$Id: Random.as,v 1.5 2008/03/11 19:31:48 strk Exp $";
+#include "check.as"
+
+// Number of random numbers to generate.
+var max = 1000;
+
+/*
+Tests for random(n).
+
+This AS function should return an integer from 0 up to but not
+including n.
+*/
+
+// With n = integer (how it should be used...)
+var tally = new Array();
+
+for (var i = 0; i < max; i++)
+{
+ rnd = random(4);
+ if (typeof(tally[rnd]) == "undefined") { tally[rnd] = 0; }
+ tally[rnd] += 1;
+}
+
+// Check proportion of each number exceeds 10%; should be about
+// 25%.
+check (tally[0] > (max / 10));
+check (tally[1] > (max / 10));
+check (tally[2] > (max / 10));
+check (tally[3] > (max / 10));
+
+check_equals(typeof(tally[4]), "undefined"); // Should not exist
+
+// With n = non-integer
+
+var tally = new Array();
+for (var i = 0; i < max; i++)
+{
+ rnd = random(4.5);
+ if (typeof(tally[rnd]) == "undefined") { tally[rnd] = 0; }
+ tally[rnd] += 1;
+}
+
+// Check proportion of each number exceeds 10%; should be about
+// 25%.
+check (tally[0] > (max / 10));
+check (tally[1] > (max / 10));
+check (tally[2] > (max / 10));
+check (tally[3] > (max / 10));
+
+check_equals(typeof(tally[4]), "undefined"); // Should not exist
+
+// With n = negative number
+
+var tally = new Array();
+for (var i = 0; i < max / 5; i++)
+{
+ rnd = random(-1);
+ if (typeof(tally[rnd]) == "undefined") { tally[rnd] = 0; }
+ tally[rnd] += 1;
+}
+
+check_equals (tally[0], max / 5 );
+check_equals(typeof(tally[1]), "undefined"); // Should not exist
+
+/*
+
+Tests for Math.random()
+
+Returns double n where 0 <= n < 1.
+
+*/
+
+
+// Note: test also relies on Math.round()!
+var tally = new Array();
+
+for (i = 0; i < max; i++)
+{
+ rnd = Math.round(Math.random() * 10 + 0.5);
+ if (typeof(tally[rnd]) == "undefined") { tally[rnd] = 0; }
+ tally[rnd] += 1;
+}
+
+check_equals(typeof(tally[0]), "undefined"); // Should not exist
+
+check (tally[1] > (max / 20));
+
+check (tally[2] > (max / 20));
+
+check (tally[3] > (max / 20));
+
+check (tally[4] > (max / 20));
+
+check (tally[5] > (max / 20));
+
+check (tally[7] > (max / 20));
+
+check (tally[8] > (max / 20));
+
+check (tally[9] > (max / 20));
+
+check (tally[10] > (max / 20));
+
+check_equals(typeof(tally[11]), "undefined"); // Should not exist
+
+/* End of tests */
+check_totals(24);
diff --git a/test/gnash/actionscript.all/Random.as.original b/test/gnash/actionscript.all/Random.as.original
new file mode 100644
index 0000000..1506f4a
--- /dev/null
+++ b/test/gnash/actionscript.all/Random.as.original
@@ -0,0 +1,151 @@
+//
+// Copyright (C) 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+//
+// Tests for random behaviour. This tests only the randomness of the output
+// and the range of results. Tests for Math.random() actionscript correctness
+// are in Math.as.
+//
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+// For obvious reasons, tests of randomness can fail even if there is
+// nothing wrong (though with carefully-designed pseudo-randomness this
+// is very unlikely). The chance of a failure is very small if Gnash
+// is working correctly.
+
+rcsid="$Id: Random.as,v 1.5 2008/03/11 19:31:48 strk Exp $";
+#include "check.as"
+
+// Number of random numbers to generate.
+var max = 1000;
+
+/*
+Tests for random(n).
+
+This AS function should return an integer from 0 up to but not
+including n.
+*/
+
+// With n = integer (how it should be used...)
+var tally = new Array();
+
+for (var i = 0; i < max; i++)
+{
+ rnd = random(4);
+ if (typeof(tally[rnd]) == "undefined") { tally[rnd] = 0; }
+ tally[rnd] += 1;
+}
+
+// Check proportion of each number exceeds 10%; should be about
+// 25%.
+check (tally[0] > (max / 10));
+check (tally[1] > (max / 10));
+check (tally[2] > (max / 10));
+check (tally[3] > (max / 10));
+
+check_equals(typeof(tally[4]), "undefined"); // Should not exist
+
+// With n = non-integer
+
+var tally = new Array();
+for (var i = 0; i < max; i++)
+{
+ rnd = random(4.5);
+ if (typeof(tally[rnd]) == "undefined") { tally[rnd] = 0; }
+ tally[rnd] += 1;
+}
+
+// Check proportion of each number exceeds 10%; should be about
+// 25%.
+check (tally[0] > (max / 10));
+check (tally[1] > (max / 10));
+check (tally[2] > (max / 10));
+check (tally[3] > (max / 10));
+
+check_equals(typeof(tally[4]), "undefined"); // Should not exist
+
+// With n = negative number
+
+var tally = new Array();
+for (var i = 0; i < max / 5; i++)
+{
+ rnd = random(-1);
+ if (typeof(tally[rnd]) == "undefined") { tally[rnd] = 0; }
+ tally[rnd] += 1;
+}
+
+check_equals (tally[0], max / 5 );
+check_equals(typeof(tally[1]), "undefined"); // Should not exist
+
+/*
+
+Tests for Math.random()
+
+Returns double n where 0 <= n < 1.
+
+*/
+
+
+// Note: test also relies on Math.round()!
+var tally = new Array();
+
+for (i = 0; i < max; i++)
+{
+ rnd = Math.round(Math.random() * 10 + 0.5);
+ if (typeof(tally[rnd]) == "undefined") { tally[rnd] = 0; }
+ tally[rnd] += 1;
+}
+
+check_equals(typeof(tally[0]), "undefined"); // Should not exist
+note(tally[0]);
+
+check (tally[1] > (max / 20));
+note(tally[1]);
+
+check (tally[2] > (max / 20));
+note(tally[2]);
+
+check (tally[3] > (max / 20));
+note(tally[3]);
+
+check (tally[4] > (max / 20));
+note(tally[4]);
+
+check (tally[5] > (max / 20));
+note(tally[5]);
+
+check (tally[6] > (max / 20));
+note(tally[6]);
+
+check (tally[7] > (max / 20));
+note(tally[7]);
+
+check (tally[8] > (max / 20));
+note(tally[8]);
+
+check (tally[9] > (max / 20));
+note(tally[9]);
+
+check (tally[10] > (max / 20));
+note(tally[10]);
+
+check_equals(typeof(tally[11]), "undefined"); // Should not exist
+note(tally[11]);
+
+/* End of tests */
+check_totals(24);
commit 13bee9b9543f353451c83ee00e4bc7370ba33abb
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Fri Jul 4 02:06:22 2008 +0300
Import some Gnash tests for the test suite. Licensed under GPLv3+
See test/gnash/actionscript.all/README for more information
diff --git a/configure.ac b/configure.ac
index dc68eae..c37afc6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -292,6 +292,9 @@ swfdec-gtk/Makefile
player/Makefile
test/Makefile
test/custom/Makefile
+test/gnash/Makefile
+test/gnash/media/Makefile
+test/gnash/actionscript.all/Makefile
test/image/Makefile
test/sound/Makefile
test/trace/Makefile
diff --git a/test/Makefile.am b/test/Makefile.am
index 0da14f9..886f980 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = custom image sound trace various
+SUBDIRS = custom image sound trace various gnash
noinst_PROGRAMS = swfdec-test
diff --git a/test/gnash/COPYING b/test/gnash/COPYING
new file mode 100644
index 0000000..4432540
--- /dev/null
+++ b/test/gnash/COPYING
@@ -0,0 +1,676 @@
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
+
diff --git a/test/gnash/Makefile.am b/test/gnash/Makefile.am
new file mode 100644
index 0000000..f5e0f73
--- /dev/null
+++ b/test/gnash/Makefile.am
@@ -0,0 +1,5 @@
+SUBDIRS = actionscript.all media
+
+EXTRA_DIST = \
+ COPYING \
+ README
diff --git a/test/gnash/README b/test/gnash/README
new file mode 100644
index 0000000..aeade00
--- /dev/null
+++ b/test/gnash/README
@@ -0,0 +1,5 @@
+This directory contains test cases imported from the Gnash project
+(http://www.gnu.org/software/gnash)
+
+All the tests are licensed under the GNU General Public License version 3 or
+newer, unless otherwise mentioned. See COPYING
diff --git a/test/gnash/actionscript.all/AsBroadcaster-5.swf b/test/gnash/actionscript.all/AsBroadcaster-5.swf
new file mode 100644
index 0000000..53cdcce
Binary files /dev/null and b/test/gnash/actionscript.all/AsBroadcaster-5.swf differ
diff --git a/test/gnash/actionscript.all/AsBroadcaster-5.swf.trace b/test/gnash/actionscript.all/AsBroadcaster-5.swf.trace
new file mode 100644
index 0000000..bbe9f68
--- /dev/null
+++ b/test/gnash/actionscript.all/AsBroadcaster-5.swf.trace
@@ -0,0 +1,5 @@
+NOTE: AsBroadcaster exists but doesn't provide any 'prototype' or 'initialize' for SWF < 6
+PASSED: typeof(AsBroadcaster) == 'function' [AsBroadcaster.as:30]
+XPASSED: typeof(AsBroadcaster.prototype) == 'undefined' [AsBroadcaster.as:31]
+PASSED: typeof(AsBroadcaster.initialize) == 'undefined' [AsBroadcaster.as:32]
+check_totals: 3
diff --git a/test/gnash/actionscript.all/AsBroadcaster-6.swf b/test/gnash/actionscript.all/AsBroadcaster-6.swf
new file mode 100644
index 0000000..e8c70ef
Binary files /dev/null and b/test/gnash/actionscript.all/AsBroadcaster-6.swf differ
diff --git a/test/gnash/actionscript.all/AsBroadcaster-6.swf.trace b/test/gnash/actionscript.all/AsBroadcaster-6.swf.trace
new file mode 100644
index 0000000..a717fb6
--- /dev/null
+++ b/test/gnash/actionscript.all/AsBroadcaster-6.swf.trace
@@ -0,0 +1,109 @@
+PASSED: typeof(AsBroadcaster) == 'function' [AsBroadcaster.as:38]
+PASSED: typeof(AsBroadcaster.prototype) == 'object' [AsBroadcaster.as:39]
+PASSED: AsBroadcaster.__proto__ == Function.prototype [AsBroadcaster.as:40]
+PASSED: typeof(AsBroadcaster.initialize) == 'function' [AsBroadcaster.as:41]
+PASSED: AsBroadcaster.hasOwnProperty('initialize') [AsBroadcaster.as:42]
+PASSED: !AsBroadcaster.prototype.hasOwnProperty('initialize') [AsBroadcaster.as:43]
+PASSED: typeof(AsBroadcaster.addListener) == 'function' [AsBroadcaster.as:49]
+PASSED: AsBroadcaster.hasOwnProperty('addListener') [AsBroadcaster.as:50]
+PASSED: typeof(AsBroadcaster.removeListener) == 'function' [AsBroadcaster.as:51]
+PASSED: AsBroadcaster.hasOwnProperty('removeListener') [AsBroadcaster.as:52]
+PASSED: typeof(AsBroadcaster.broadcastMessage) == 'function' [AsBroadcaster.as:53]
+PASSED: AsBroadcaster.hasOwnProperty('broadcastMessage') [AsBroadcaster.as:54]
+PASSED: typeof(bc) == 'object' [AsBroadcaster.as:57]
+PASSED: bc instanceof AsBroadcaster [AsBroadcaster.as:58]
+PASSED: bc instanceof Object [AsBroadcaster.as:59]
+PASSED: typeof(bc.addListener) == 'undefined' [AsBroadcaster.as:60]
+PASSED: typeof(bc.removeListener) == 'undefined' [AsBroadcaster.as:61]
+PASSED: typeof(bc.broadcastMessage) == 'undefined' [AsBroadcaster.as:62]
+PASSED: typeof(bc.initialize) == 'undefined' [AsBroadcaster.as:63]
+PASSED: typeof(bcast._listeners) == 'undefined' [AsBroadcaster.as:67]
+PASSED: typeof(bcast.addListener) == 'undefined' [AsBroadcaster.as:68]
+PASSED: typeof(bcast.removeListener) == 'undefined' [AsBroadcaster.as:69]
+PASSED: typeof(bcast.broadcastMessage) == 'undefined' [AsBroadcaster.as:70]
+PASSED: typeof(bcast._listeners) == 'object' [AsBroadcaster.as:74]
+PASSED: bcast._listeners instanceof Array [AsBroadcaster.as:75]
+PASSED: bcast._listeners.length == 0 [AsBroadcaster.as:76]
+PASSED: typeof(bcast.addListener) == 'function' [AsBroadcaster.as:77]
+PASSED: typeof(bcast.removeListener) == 'function' [AsBroadcaster.as:78]
+PASSED: typeof(bcast.broadcastMessage) == 'function' [AsBroadcaster.as:79]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:86]
+PASSED: ret == true [AsBroadcaster.as:87]
+PASSED: bcast._listeners.length == 1 [AsBroadcaster.as:88]
+PASSED: bcast._listeners.length == 1 [AsBroadcaster.as:91]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:94]
+PASSED: ret == true [AsBroadcaster.as:95]
+PASSED: bcast._listeners.length == 2 [AsBroadcaster.as:96]
+PASSED: bcast._listeners.length == 2 [AsBroadcaster.as:99]
+PASSED: bcast._listeners.length == 3 [AsBroadcaster.as:101]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:104]
+PASSED: ret == true [AsBroadcaster.as:105]
+PASSED: bcast._listeners.length == 2 [AsBroadcaster.as:106]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:109]
+PASSED: ret == true [AsBroadcaster.as:110]
+PASSED: bcast._listeners.length == 1 [AsBroadcaster.as:111]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:114]
+PASSED: ret == true [AsBroadcaster.as:115]
+PASSED: bcast._listeners.length == 0 [AsBroadcaster.as:116]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:119]
+PASSED: ret == false [AsBroadcaster.as:120]
+PASSED: bcast._listeners.length == 1 [AsBroadcaster.as:124]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:126]
+PASSED: ret == true [AsBroadcaster.as:127]
+PASSED: bcast._listeners.length == 0 [AsBroadcaster.as:128]
+PASSED: typeof(o._listeners) == 'undefined' [AsBroadcaster.as:131]
+PASSED: typeof(o.removeListenerCalled) == 'undefined' [AsBroadcaster.as:132]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:134]
+PASSED: ret == true [AsBroadcaster.as:135]
+PASSED: typeof(o._listeners) == 'undefined' [AsBroadcaster.as:136]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:140]
+PASSED: ret == true [AsBroadcaster.as:141]
+PASSED: typeof(o._listeners) == 'undefined' [AsBroadcaster.as:142]
+PASSED: typeof(o.removeListenerCalled) == 'boolean' [AsBroadcaster.as:143]
+PASSED: o.removeListenerCalled == true [AsBroadcaster.as:144]
+PASSED: o._listeners.pushCalled == true [AsBroadcaster.as:154]
+PASSED: o._listeners.length == 2 [AsBroadcaster.as:155]
+PASSED: o._listeners.spliceCalled == true [AsBroadcaster.as:156]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:175]
+PASSED: ret == true [AsBroadcaster.as:176]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:178]
+PASSED: ret == true [AsBroadcaster.as:179]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:182]
+PASSED: ret == true [AsBroadcaster.as:183]
+PASSED: a.order == 1 [AsBroadcaster.as:184]
+PASSED: b.order == 2 [AsBroadcaster.as:185]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:188]
+PASSED: ret == true [AsBroadcaster.as:189]
+PASSED: a.order == 3 [AsBroadcaster.as:192]
+PASSED: b.order == 4 [AsBroadcaster.as:193]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:196]
+PASSED: ret == true [AsBroadcaster.as:197]
+PASSED: b.order == 5 [AsBroadcaster.as:200]
+PASSED: a.order == 6 [AsBroadcaster.as:201]
+PASSED: b.order == 7 [AsBroadcaster.as:206]
+PASSED: a.order == 9 [AsBroadcaster.as:207]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:212]
+PASSED: ret == true [AsBroadcaster.as:213]
+PASSED: b.order == 10 [AsBroadcaster.as:214]
+PASSED: a.order == 12 [AsBroadcaster.as:215]
+PASSED: b.order == 16 [AsBroadcaster.as:220]
+PASSED: a.order == 15 [AsBroadcaster.as:221]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:224]
+PASSED: ret == true [AsBroadcaster.as:225]
+PASSED: a.order == 18 [AsBroadcaster.as:228]
+PASSED: b.order == 20 [AsBroadcaster.as:229]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:232]
+PASSED: ret == true [AsBroadcaster.as:233]
+PASSED: bcast._listeners.length == 3 [AsBroadcaster.as:234]
+PASSED: a.order == 22 [AsBroadcaster.as:236]
+PASSED: b.order == 23 [AsBroadcaster.as:237]
+PASSED: ret == true [AsBroadcaster.as:240]
+PASSED: typeof(ret) == 'undefined' [AsBroadcaster.as:243]
+PASSED: _root.total == 3 [AsBroadcaster.as:267]
+PASSED: _root.total == 5 [AsBroadcaster.as:269]
+PASSED: _root.total == 10 [AsBroadcaster.as:271]
+PASSED: _root.total == 36 [AsBroadcaster.as:273]
+PASSED: _root.total == '0onetwothree' [AsBroadcaster.as:275]
+PASSED: o.msg == "AB" [AsBroadcaster.as:290]
+PASSED: o.msg == "AB" [AsBroadcaster.as:296]
+check_totals: 108
diff --git a/test/gnash/actionscript.all/AsBroadcaster-7.swf b/test/gnash/actionscript.all/AsBroadcaster-7.swf
new file mode 100644
index 0000000..f6a20da
Binary files /dev/null and b/test/gnash/actionscript.all/AsBroadcaster-7.swf differ
diff --git a/test/gnash/actionscript.all/AsBroadcaster-7.swf.trace b/test/gnash/actionscript.all/AsBroadcaster-7.swf.trace
new file mode 100644
index 0000000..a717fb6
--- /dev/null
+++ b/test/gnash/actionscript.all/AsBroadcaster-7.swf.trace
@@ -0,0 +1,109 @@
+PASSED: typeof(AsBroadcaster) == 'function' [AsBroadcaster.as:38]
+PASSED: typeof(AsBroadcaster.prototype) == 'object' [AsBroadcaster.as:39]
+PASSED: AsBroadcaster.__proto__ == Function.prototype [AsBroadcaster.as:40]
+PASSED: typeof(AsBroadcaster.initialize) == 'function' [AsBroadcaster.as:41]
+PASSED: AsBroadcaster.hasOwnProperty('initialize') [AsBroadcaster.as:42]
+PASSED: !AsBroadcaster.prototype.hasOwnProperty('initialize') [AsBroadcaster.as:43]
+PASSED: typeof(AsBroadcaster.addListener) == 'function' [AsBroadcaster.as:49]
+PASSED: AsBroadcaster.hasOwnProperty('addListener') [AsBroadcaster.as:50]
+PASSED: typeof(AsBroadcaster.removeListener) == 'function' [AsBroadcaster.as:51]
+PASSED: AsBroadcaster.hasOwnProperty('removeListener') [AsBroadcaster.as:52]
+PASSED: typeof(AsBroadcaster.broadcastMessage) == 'function' [AsBroadcaster.as:53]
+PASSED: AsBroadcaster.hasOwnProperty('broadcastMessage') [AsBroadcaster.as:54]
+PASSED: typeof(bc) == 'object' [AsBroadcaster.as:57]
+PASSED: bc instanceof AsBroadcaster [AsBroadcaster.as:58]
+PASSED: bc instanceof Object [AsBroadcaster.as:59]
+PASSED: typeof(bc.addListener) == 'undefined' [AsBroadcaster.as:60]
+PASSED: typeof(bc.removeListener) == 'undefined' [AsBroadcaster.as:61]
+PASSED: typeof(bc.broadcastMessage) == 'undefined' [AsBroadcaster.as:62]
+PASSED: typeof(bc.initialize) == 'undefined' [AsBroadcaster.as:63]
+PASSED: typeof(bcast._listeners) == 'undefined' [AsBroadcaster.as:67]
+PASSED: typeof(bcast.addListener) == 'undefined' [AsBroadcaster.as:68]
+PASSED: typeof(bcast.removeListener) == 'undefined' [AsBroadcaster.as:69]
+PASSED: typeof(bcast.broadcastMessage) == 'undefined' [AsBroadcaster.as:70]
+PASSED: typeof(bcast._listeners) == 'object' [AsBroadcaster.as:74]
+PASSED: bcast._listeners instanceof Array [AsBroadcaster.as:75]
+PASSED: bcast._listeners.length == 0 [AsBroadcaster.as:76]
+PASSED: typeof(bcast.addListener) == 'function' [AsBroadcaster.as:77]
+PASSED: typeof(bcast.removeListener) == 'function' [AsBroadcaster.as:78]
+PASSED: typeof(bcast.broadcastMessage) == 'function' [AsBroadcaster.as:79]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:86]
+PASSED: ret == true [AsBroadcaster.as:87]
+PASSED: bcast._listeners.length == 1 [AsBroadcaster.as:88]
+PASSED: bcast._listeners.length == 1 [AsBroadcaster.as:91]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:94]
+PASSED: ret == true [AsBroadcaster.as:95]
+PASSED: bcast._listeners.length == 2 [AsBroadcaster.as:96]
+PASSED: bcast._listeners.length == 2 [AsBroadcaster.as:99]
+PASSED: bcast._listeners.length == 3 [AsBroadcaster.as:101]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:104]
+PASSED: ret == true [AsBroadcaster.as:105]
+PASSED: bcast._listeners.length == 2 [AsBroadcaster.as:106]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:109]
+PASSED: ret == true [AsBroadcaster.as:110]
+PASSED: bcast._listeners.length == 1 [AsBroadcaster.as:111]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:114]
+PASSED: ret == true [AsBroadcaster.as:115]
+PASSED: bcast._listeners.length == 0 [AsBroadcaster.as:116]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:119]
+PASSED: ret == false [AsBroadcaster.as:120]
+PASSED: bcast._listeners.length == 1 [AsBroadcaster.as:124]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:126]
+PASSED: ret == true [AsBroadcaster.as:127]
+PASSED: bcast._listeners.length == 0 [AsBroadcaster.as:128]
+PASSED: typeof(o._listeners) == 'undefined' [AsBroadcaster.as:131]
+PASSED: typeof(o.removeListenerCalled) == 'undefined' [AsBroadcaster.as:132]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:134]
+PASSED: ret == true [AsBroadcaster.as:135]
+PASSED: typeof(o._listeners) == 'undefined' [AsBroadcaster.as:136]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:140]
+PASSED: ret == true [AsBroadcaster.as:141]
+PASSED: typeof(o._listeners) == 'undefined' [AsBroadcaster.as:142]
+PASSED: typeof(o.removeListenerCalled) == 'boolean' [AsBroadcaster.as:143]
+PASSED: o.removeListenerCalled == true [AsBroadcaster.as:144]
+PASSED: o._listeners.pushCalled == true [AsBroadcaster.as:154]
+PASSED: o._listeners.length == 2 [AsBroadcaster.as:155]
+PASSED: o._listeners.spliceCalled == true [AsBroadcaster.as:156]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:175]
+PASSED: ret == true [AsBroadcaster.as:176]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:178]
+PASSED: ret == true [AsBroadcaster.as:179]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:182]
+PASSED: ret == true [AsBroadcaster.as:183]
+PASSED: a.order == 1 [AsBroadcaster.as:184]
+PASSED: b.order == 2 [AsBroadcaster.as:185]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:188]
+PASSED: ret == true [AsBroadcaster.as:189]
+PASSED: a.order == 3 [AsBroadcaster.as:192]
+PASSED: b.order == 4 [AsBroadcaster.as:193]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:196]
+PASSED: ret == true [AsBroadcaster.as:197]
+PASSED: b.order == 5 [AsBroadcaster.as:200]
+PASSED: a.order == 6 [AsBroadcaster.as:201]
+PASSED: b.order == 7 [AsBroadcaster.as:206]
+PASSED: a.order == 9 [AsBroadcaster.as:207]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:212]
+PASSED: ret == true [AsBroadcaster.as:213]
+PASSED: b.order == 10 [AsBroadcaster.as:214]
+PASSED: a.order == 12 [AsBroadcaster.as:215]
+PASSED: b.order == 16 [AsBroadcaster.as:220]
+PASSED: a.order == 15 [AsBroadcaster.as:221]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:224]
+PASSED: ret == true [AsBroadcaster.as:225]
+PASSED: a.order == 18 [AsBroadcaster.as:228]
+PASSED: b.order == 20 [AsBroadcaster.as:229]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:232]
+PASSED: ret == true [AsBroadcaster.as:233]
+PASSED: bcast._listeners.length == 3 [AsBroadcaster.as:234]
+PASSED: a.order == 22 [AsBroadcaster.as:236]
+PASSED: b.order == 23 [AsBroadcaster.as:237]
+PASSED: ret == true [AsBroadcaster.as:240]
+PASSED: typeof(ret) == 'undefined' [AsBroadcaster.as:243]
+PASSED: _root.total == 3 [AsBroadcaster.as:267]
+PASSED: _root.total == 5 [AsBroadcaster.as:269]
+PASSED: _root.total == 10 [AsBroadcaster.as:271]
+PASSED: _root.total == 36 [AsBroadcaster.as:273]
+PASSED: _root.total == '0onetwothree' [AsBroadcaster.as:275]
+PASSED: o.msg == "AB" [AsBroadcaster.as:290]
+PASSED: o.msg == "AB" [AsBroadcaster.as:296]
+check_totals: 108
diff --git a/test/gnash/actionscript.all/AsBroadcaster-8.swf b/test/gnash/actionscript.all/AsBroadcaster-8.swf
new file mode 100644
index 0000000..73dfb58
Binary files /dev/null and b/test/gnash/actionscript.all/AsBroadcaster-8.swf differ
diff --git a/test/gnash/actionscript.all/AsBroadcaster-8.swf.trace b/test/gnash/actionscript.all/AsBroadcaster-8.swf.trace
new file mode 100644
index 0000000..a717fb6
--- /dev/null
+++ b/test/gnash/actionscript.all/AsBroadcaster-8.swf.trace
@@ -0,0 +1,109 @@
+PASSED: typeof(AsBroadcaster) == 'function' [AsBroadcaster.as:38]
+PASSED: typeof(AsBroadcaster.prototype) == 'object' [AsBroadcaster.as:39]
+PASSED: AsBroadcaster.__proto__ == Function.prototype [AsBroadcaster.as:40]
+PASSED: typeof(AsBroadcaster.initialize) == 'function' [AsBroadcaster.as:41]
+PASSED: AsBroadcaster.hasOwnProperty('initialize') [AsBroadcaster.as:42]
+PASSED: !AsBroadcaster.prototype.hasOwnProperty('initialize') [AsBroadcaster.as:43]
+PASSED: typeof(AsBroadcaster.addListener) == 'function' [AsBroadcaster.as:49]
+PASSED: AsBroadcaster.hasOwnProperty('addListener') [AsBroadcaster.as:50]
+PASSED: typeof(AsBroadcaster.removeListener) == 'function' [AsBroadcaster.as:51]
+PASSED: AsBroadcaster.hasOwnProperty('removeListener') [AsBroadcaster.as:52]
+PASSED: typeof(AsBroadcaster.broadcastMessage) == 'function' [AsBroadcaster.as:53]
+PASSED: AsBroadcaster.hasOwnProperty('broadcastMessage') [AsBroadcaster.as:54]
+PASSED: typeof(bc) == 'object' [AsBroadcaster.as:57]
+PASSED: bc instanceof AsBroadcaster [AsBroadcaster.as:58]
+PASSED: bc instanceof Object [AsBroadcaster.as:59]
+PASSED: typeof(bc.addListener) == 'undefined' [AsBroadcaster.as:60]
+PASSED: typeof(bc.removeListener) == 'undefined' [AsBroadcaster.as:61]
+PASSED: typeof(bc.broadcastMessage) == 'undefined' [AsBroadcaster.as:62]
+PASSED: typeof(bc.initialize) == 'undefined' [AsBroadcaster.as:63]
+PASSED: typeof(bcast._listeners) == 'undefined' [AsBroadcaster.as:67]
+PASSED: typeof(bcast.addListener) == 'undefined' [AsBroadcaster.as:68]
+PASSED: typeof(bcast.removeListener) == 'undefined' [AsBroadcaster.as:69]
+PASSED: typeof(bcast.broadcastMessage) == 'undefined' [AsBroadcaster.as:70]
+PASSED: typeof(bcast._listeners) == 'object' [AsBroadcaster.as:74]
+PASSED: bcast._listeners instanceof Array [AsBroadcaster.as:75]
+PASSED: bcast._listeners.length == 0 [AsBroadcaster.as:76]
+PASSED: typeof(bcast.addListener) == 'function' [AsBroadcaster.as:77]
+PASSED: typeof(bcast.removeListener) == 'function' [AsBroadcaster.as:78]
+PASSED: typeof(bcast.broadcastMessage) == 'function' [AsBroadcaster.as:79]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:86]
+PASSED: ret == true [AsBroadcaster.as:87]
+PASSED: bcast._listeners.length == 1 [AsBroadcaster.as:88]
+PASSED: bcast._listeners.length == 1 [AsBroadcaster.as:91]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:94]
+PASSED: ret == true [AsBroadcaster.as:95]
+PASSED: bcast._listeners.length == 2 [AsBroadcaster.as:96]
+PASSED: bcast._listeners.length == 2 [AsBroadcaster.as:99]
+PASSED: bcast._listeners.length == 3 [AsBroadcaster.as:101]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:104]
+PASSED: ret == true [AsBroadcaster.as:105]
+PASSED: bcast._listeners.length == 2 [AsBroadcaster.as:106]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:109]
+PASSED: ret == true [AsBroadcaster.as:110]
+PASSED: bcast._listeners.length == 1 [AsBroadcaster.as:111]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:114]
+PASSED: ret == true [AsBroadcaster.as:115]
+PASSED: bcast._listeners.length == 0 [AsBroadcaster.as:116]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:119]
+PASSED: ret == false [AsBroadcaster.as:120]
+PASSED: bcast._listeners.length == 1 [AsBroadcaster.as:124]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:126]
+PASSED: ret == true [AsBroadcaster.as:127]
+PASSED: bcast._listeners.length == 0 [AsBroadcaster.as:128]
+PASSED: typeof(o._listeners) == 'undefined' [AsBroadcaster.as:131]
+PASSED: typeof(o.removeListenerCalled) == 'undefined' [AsBroadcaster.as:132]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:134]
+PASSED: ret == true [AsBroadcaster.as:135]
+PASSED: typeof(o._listeners) == 'undefined' [AsBroadcaster.as:136]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:140]
+PASSED: ret == true [AsBroadcaster.as:141]
+PASSED: typeof(o._listeners) == 'undefined' [AsBroadcaster.as:142]
+PASSED: typeof(o.removeListenerCalled) == 'boolean' [AsBroadcaster.as:143]
+PASSED: o.removeListenerCalled == true [AsBroadcaster.as:144]
+PASSED: o._listeners.pushCalled == true [AsBroadcaster.as:154]
+PASSED: o._listeners.length == 2 [AsBroadcaster.as:155]
+PASSED: o._listeners.spliceCalled == true [AsBroadcaster.as:156]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:175]
+PASSED: ret == true [AsBroadcaster.as:176]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:178]
+PASSED: ret == true [AsBroadcaster.as:179]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:182]
+PASSED: ret == true [AsBroadcaster.as:183]
+PASSED: a.order == 1 [AsBroadcaster.as:184]
+PASSED: b.order == 2 [AsBroadcaster.as:185]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:188]
+PASSED: ret == true [AsBroadcaster.as:189]
+PASSED: a.order == 3 [AsBroadcaster.as:192]
+PASSED: b.order == 4 [AsBroadcaster.as:193]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:196]
+PASSED: ret == true [AsBroadcaster.as:197]
+PASSED: b.order == 5 [AsBroadcaster.as:200]
+PASSED: a.order == 6 [AsBroadcaster.as:201]
+PASSED: b.order == 7 [AsBroadcaster.as:206]
+PASSED: a.order == 9 [AsBroadcaster.as:207]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:212]
+PASSED: ret == true [AsBroadcaster.as:213]
+PASSED: b.order == 10 [AsBroadcaster.as:214]
+PASSED: a.order == 12 [AsBroadcaster.as:215]
+PASSED: b.order == 16 [AsBroadcaster.as:220]
+PASSED: a.order == 15 [AsBroadcaster.as:221]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:224]
+PASSED: ret == true [AsBroadcaster.as:225]
+PASSED: a.order == 18 [AsBroadcaster.as:228]
+PASSED: b.order == 20 [AsBroadcaster.as:229]
+PASSED: typeof(ret) == 'boolean' [AsBroadcaster.as:232]
+PASSED: ret == true [AsBroadcaster.as:233]
+PASSED: bcast._listeners.length == 3 [AsBroadcaster.as:234]
+PASSED: a.order == 22 [AsBroadcaster.as:236]
+PASSED: b.order == 23 [AsBroadcaster.as:237]
+PASSED: ret == true [AsBroadcaster.as:240]
+PASSED: typeof(ret) == 'undefined' [AsBroadcaster.as:243]
+PASSED: _root.total == 3 [AsBroadcaster.as:267]
+PASSED: _root.total == 5 [AsBroadcaster.as:269]
+PASSED: _root.total == 10 [AsBroadcaster.as:271]
+PASSED: _root.total == 36 [AsBroadcaster.as:273]
+PASSED: _root.total == '0onetwothree' [AsBroadcaster.as:275]
+PASSED: o.msg == "AB" [AsBroadcaster.as:290]
+PASSED: o.msg == "AB" [AsBroadcaster.as:296]
+check_totals: 108
diff --git a/test/gnash/actionscript.all/AsBroadcaster.as b/test/gnash/actionscript.all/AsBroadcaster.as
new file mode 100644
index 0000000..661ced5
--- /dev/null
+++ b/test/gnash/actionscript.all/AsBroadcaster.as
@@ -0,0 +1,308 @@
+//
+// Copyright (C) 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+// Test case for TextField ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: AsBroadcaster.as,v 1.10 2008/06/17 18:05:42 strk Exp $";
+#include "check.as"
+
+#if OUTPUT_VERSION < 6
+
+note("AsBroadcaster exists but doesn't provide any 'prototype' or 'initialize' for SWF < 6");
+
+check_equals(typeof(AsBroadcaster), 'function'); // ???
+xcheck_equals(typeof(AsBroadcaster.prototype), 'undefined');
+check_equals(typeof(AsBroadcaster.initialize), 'undefined');
+
+check_totals(3);
+
+#else // OUTPUT_VERSION >= 6
+
+check_equals(typeof(AsBroadcaster), 'function'); // ???
+check_equals(typeof(AsBroadcaster.prototype), 'object');
+check_equals(AsBroadcaster.__proto__, Function.prototype);
+check_equals(typeof(AsBroadcaster.initialize), 'function');
+check(AsBroadcaster.hasOwnProperty('initialize'));
+check(!AsBroadcaster.prototype.hasOwnProperty('initialize'));
+
+// These functions are available as AsBroadcaster "statics"
+// and a lookup should be issued by 'initalize' so that overridden
+// functions are attached to the initialized object rather then
+// the original one (from swfdec/test/trace/asbroadcaster-override.as)
+check_equals(typeof(AsBroadcaster.addListener), 'function');
+check(AsBroadcaster.hasOwnProperty('addListener'));
+check_equals(typeof(AsBroadcaster.removeListener), 'function');
+check(AsBroadcaster.hasOwnProperty('removeListener'));
+check_equals(typeof(AsBroadcaster.broadcastMessage), 'function');
+check(AsBroadcaster.hasOwnProperty('broadcastMessage'));
+
+bc = new AsBroadcaster;
+check_equals(typeof(bc), 'object');
+check(bc instanceof AsBroadcaster);
+check(bc instanceof Object);
+check_equals(typeof(bc.addListener), 'undefined');
+check_equals(typeof(bc.removeListener), 'undefined');
+check_equals(typeof(bc.broadcastMessage), 'undefined');
+check_equals(typeof(bc.initialize), 'undefined');
+
+bcast = new Object;
+
+check_equals(typeof(bcast._listeners), 'undefined');
+check_equals(typeof(bcast.addListener), 'undefined');
+check_equals(typeof(bcast.removeListener), 'undefined');
+check_equals(typeof(bcast.broadcastMessage), 'undefined');
+
+AsBroadcaster.initialize(bcast);
+
+check_equals(typeof(bcast._listeners), 'object');
+check(bcast._listeners instanceof Array);
+check_equals(bcast._listeners.length, 0);
+check_equals(typeof(bcast.addListener), 'function');
+check_equals(typeof(bcast.removeListener), 'function');
+check_equals(typeof(bcast.broadcastMessage), 'function');
+
+//--------------------------------
+// Some insane calls...
+//--------------------------------
+
+ret = bcast.addListener();
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 1); // !!
+
+ret = bcast.addListener();
+check_equals(bcast._listeners.length, 1); // undefined was already there as an element...
+
+ret = bcast.addListener(2);
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 2); // !!
+
+ret = bcast.addListener(2);
+check_equals(bcast._listeners.length, 2); // 2 was already there as an element ...
+ret = bcast.addListener(3);
+check_equals(bcast._listeners.length, 3); // 3 is a new element
+
+ret = bcast.removeListener(); // will remove the undefined value !
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 2); // element 'undefined' was removed
+
+ret = bcast.removeListener(2); // will remove the element number:2 !
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 1); // element '2' was removed
+
+ret = bcast.removeListener(3); // will remove the element number:3 !
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 0); // element '3' was removed
+
+ret = bcast.removeListener(); // no such element ?
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, false);
+
+o = new Object; o.valueOf = function() { return 'yes I am'; };
+bcast.addListener(o);
+check_equals(bcast._listeners.length, 1);
+ret = bcast.removeListener('yes I am'); // valueOf invoked
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 0); // element '3' was removed
+
+o.addListener = bcast.addListener;
+check_equals(typeof(o._listeners), 'undefined');
+check_equals(typeof(o.removeListenerCalled), 'undefined');
+ret = o.addListener(); // automatically attempts to call o.removeListener()
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(typeof(o._listeners), 'undefined');
+
+o.removeListener = function() { this.removeListenerCalled = true; };
+ret = o.addListener(); // automatically calls o.removeListener()
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(typeof(o._listeners), 'undefined');
+check_equals(typeof(o.removeListenerCalled), 'boolean');
+check_equals(o.removeListenerCalled, true);
+
+o.removeListener = bcast.removeListener;
+o._listeners = new Object();
+o._listeners.push = function() { this.pushCalled = true; this.length++; };
+o._listeners.splice = function() { this.spliceCalled = true; };
+o._listeners.length = 1;
+o._listeners['0'] = 5;
+ret = o.addListener(5); // automatically calls o._listeners.splice and o._listeners.push
+// Gnash fails as it gives up if _listeners isn't an array
+check_equals(o._listeners.pushCalled, true);
+check_equals(o._listeners.length, 2);
+check_equals(o._listeners.spliceCalled, true);
+
+
+//--------------------------------
+// A bit more sane calls...
+//--------------------------------
+
+counter = 0;
+
+onTest = function()
+{
+ //note(" Called "+this.name+".onTest (order "+this.order+"->"+(counter+1)+")");
+ this.order = ++counter;
+};
+
+a = new Object; a.name = 'a'; a.onTest = onTest;
+b = new Object; b.name = 'b'; b.onTest = onTest;
+
+ret = bcast.addListener(a);
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+ret = bcast.addListener(b);
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+//note("Broadcasting");
+ret = bcast.broadcastMessage('onTest');
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(a.order, 1);
+check_equals(b.order, 2);
+
+ret = bcast.addListener(b); // b is not added again
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+//note("Broadcasting");
+bcast.broadcastMessage('onTest');
+check_equals(a.order, 3);
+check_equals(b.order, 4);
+
+ret = bcast.addListener(a); // listener a is moved from first to last position to _listeners
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+//note("Broadcasting");
+bcast.broadcastMessage('onTest');
+check_equals(b.order, 5);
+check_equals(a.order, 6);
+
+bcast._listeners.push(a); // force double a listener
+//note("Broadcasting");
+bcast.broadcastMessage('onTest');
+check_equals(b.order, 7);
+check_equals(a.order, 9); // a.order was set twice
+
+bcast.addListener(a); // first a is moved from first to last position to _listeners
+//note("Broadcasting");
+ret = bcast.broadcastMessage('onTest');
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(b.order, 10);
+check_equals(a.order, 12); // a is still set twice
+
+bcast._listeners.push(b); // force double b, order should now be: b,a,a,b
+//note("Broadcasting");
+bcast.broadcastMessage('onTest');
+check_equals(b.order, 16);
+check_equals(a.order, 15);
+
+ret = bcast.addListener(b); // *first* b is removed, another one added, new order is a,a,b,b
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+//note("Broadcasting");
+bcast.broadcastMessage('onTest');
+check_equals(a.order, 18);
+check_equals(b.order, 20);
+
+ret = bcast.removeListener(b); // only first is removed
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 3); // expect: a,a,b
+bcast.broadcastMessage('onTest');
+check_equals(a.order, 22);
+check_equals(b.order, 23);
+
+ret = bcast.broadcastMessage('onUnexistent');
+check_equals(ret, true);
+bcast._listeners.length=0;
+ret = bcast.broadcastMessage('onUnexistent');
+check_equals(typeof(ret), 'undefined');
+
+//--------------------------------
+// broadcastMessage with args
+//--------------------------------
+
+_root.total = 0;
+o = {};
+o.addThis = function(what)
+{
+ //note("Arg0 is "+what);
+ _root.total += what;
+};
+o.setSum = function()
+{
+ _root.total = 0;
+ for (var i=0; i< arguments.length; ++i)
+ {
+ //note("Arg "+i+" is "+arguments[i]);
+ _root.total += arguments[i];
+ }
+};
+bcast.addListener(o);
+bcast.broadcastMessage('addThis', 3);
+check_equals(_root.total, 3);
+bcast.broadcastMessage('addThis', 2);
+check_equals(_root.total, 5);
+bcast.broadcastMessage('setSum', 1, 2, 3, 4);
+check_equals(_root.total, 10);
+bcast.broadcastMessage('setSum', 1, 2, 3, 4, 5, 6, 7, 8);
+check_equals(_root.total, 36);
+bcast.broadcastMessage('setSum', 'one', 'two', 'three');
+check_equals(_root.total, '0onetwothree');
+
+//--------------------------------
+// event handlers calling super
+//--------------------------------
+
+function A1() {}
+A1.prototype.add = function(o) { o.msg += 'A'; };
+function B1() {}
+B1.prototype = new A1;
+B1.prototype.add = function(o) { super.add(o); o.msg += 'B'; };
+
+bobj = new B1;
+o = { msg:'' };
+bobj.add(o);
+check_equals(o.msg, "AB");
+o.msg = '';
+
+bcast._listeners.length=0;
+bcast.addListener(bobj);
+bcast.broadcastMessage('add', o);
+check_equals(o.msg, "AB");
+
+//-----------------------------------------------------------------------------------
+// TODO: test override of AsBroadcaster.{addListener,removeListener,broadcastMessage}
+// swfdec contains tests for this, which should now be pretty succeeding except for
+// not-directly related checks which trigger failure due to all-or-nothing nature of
+// the swfdec testsuite.
+// See swfdec/test/trace/asbroadcaster-override.as for more info
+//-----------------------------------------------------------------------------------
+
+check_totals(108);
+
+#endif // OUTPUT_VERSION < 6
diff --git a/test/gnash/actionscript.all/AsBroadcaster.as.original b/test/gnash/actionscript.all/AsBroadcaster.as.original
new file mode 100644
index 0000000..223aaec
--- /dev/null
+++ b/test/gnash/actionscript.all/AsBroadcaster.as.original
@@ -0,0 +1,309 @@
+//
+// Copyright (C) 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+// Test case for TextField ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: AsBroadcaster.as,v 1.10 2008/06/17 18:05:42 strk Exp $";
+#include "check.as"
+
+#if OUTPUT_VERSION < 6
+
+note();
+note("AsBroadcaster exists but doesn't provide any 'prototype' or 'initialize' for SWF < 6");
+
+check_equals(typeof(AsBroadcaster), 'function'); // ???
+xcheck_equals(typeof(AsBroadcaster.prototype), 'undefined');
+check_equals(typeof(AsBroadcaster.initialize), 'undefined');
+
+check_totals(3);
+
+#else // OUTPUT_VERSION >= 6
+
+check_equals(typeof(AsBroadcaster), 'function'); // ???
+check_equals(typeof(AsBroadcaster.prototype), 'object');
+check_equals(AsBroadcaster.__proto__, Function.prototype);
+check_equals(typeof(AsBroadcaster.initialize), 'function');
+check(AsBroadcaster.hasOwnProperty('initialize'));
+check(!AsBroadcaster.prototype.hasOwnProperty('initialize'));
+
+// These functions are available as AsBroadcaster "statics"
+// and a lookup should be issued by 'initalize' so that overridden
+// functions are attached to the initialized object rather then
+// the original one (from swfdec/test/trace/asbroadcaster-override.as)
+check_equals(typeof(AsBroadcaster.addListener), 'function');
+check(AsBroadcaster.hasOwnProperty('addListener'));
+check_equals(typeof(AsBroadcaster.removeListener), 'function');
+check(AsBroadcaster.hasOwnProperty('removeListener'));
+check_equals(typeof(AsBroadcaster.broadcastMessage), 'function');
+check(AsBroadcaster.hasOwnProperty('broadcastMessage'));
+
+bc = new AsBroadcaster;
+check_equals(typeof(bc), 'object');
+check(bc instanceof AsBroadcaster);
+check(bc instanceof Object);
+check_equals(typeof(bc.addListener), 'undefined');
+check_equals(typeof(bc.removeListener), 'undefined');
+check_equals(typeof(bc.broadcastMessage), 'undefined');
+check_equals(typeof(bc.initialize), 'undefined');
+
+bcast = new Object;
+
+check_equals(typeof(bcast._listeners), 'undefined');
+check_equals(typeof(bcast.addListener), 'undefined');
+check_equals(typeof(bcast.removeListener), 'undefined');
+check_equals(typeof(bcast.broadcastMessage), 'undefined');
+
+AsBroadcaster.initialize(bcast);
+
+check_equals(typeof(bcast._listeners), 'object');
+check(bcast._listeners instanceof Array);
+check_equals(bcast._listeners.length, 0);
+check_equals(typeof(bcast.addListener), 'function');
+check_equals(typeof(bcast.removeListener), 'function');
+check_equals(typeof(bcast.broadcastMessage), 'function');
+
+//--------------------------------
+// Some insane calls...
+//--------------------------------
+
+ret = bcast.addListener();
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 1); // !!
+
+ret = bcast.addListener();
+check_equals(bcast._listeners.length, 1); // undefined was already there as an element...
+
+ret = bcast.addListener(2);
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 2); // !!
+
+ret = bcast.addListener(2);
+check_equals(bcast._listeners.length, 2); // 2 was already there as an element ...
+ret = bcast.addListener(3);
+check_equals(bcast._listeners.length, 3); // 3 is a new element
+
+ret = bcast.removeListener(); // will remove the undefined value !
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 2); // element 'undefined' was removed
+
+ret = bcast.removeListener(2); // will remove the element number:2 !
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 1); // element '2' was removed
+
+ret = bcast.removeListener(3); // will remove the element number:3 !
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 0); // element '3' was removed
+
+ret = bcast.removeListener(); // no such element ?
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, false);
+
+o = new Object; o.valueOf = function() { return 'yes I am'; };
+bcast.addListener(o);
+check_equals(bcast._listeners.length, 1);
+ret = bcast.removeListener('yes I am'); // valueOf invoked
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 0); // element '3' was removed
+
+o.addListener = bcast.addListener;
+check_equals(typeof(o._listeners), 'undefined');
+check_equals(typeof(o.removeListenerCalled), 'undefined');
+ret = o.addListener(); // automatically attempts to call o.removeListener()
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(typeof(o._listeners), 'undefined');
+
+o.removeListener = function() { this.removeListenerCalled = true; };
+ret = o.addListener(); // automatically calls o.removeListener()
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(typeof(o._listeners), 'undefined');
+check_equals(typeof(o.removeListenerCalled), 'boolean');
+check_equals(o.removeListenerCalled, true);
+
+o.removeListener = bcast.removeListener;
+o._listeners = new Object();
+o._listeners.push = function() { this.pushCalled = true; this.length++; };
+o._listeners.splice = function() { this.spliceCalled = true; };
+o._listeners.length = 1;
+o._listeners['0'] = 5;
+ret = o.addListener(5); // automatically calls o._listeners.splice and o._listeners.push
+// Gnash fails as it gives up if _listeners isn't an array
+check_equals(o._listeners.pushCalled, true);
+check_equals(o._listeners.length, 2);
+check_equals(o._listeners.spliceCalled, true);
+
+
+//--------------------------------
+// A bit more sane calls...
+//--------------------------------
+
+counter = 0;
+
+onTest = function()
+{
+ //note(" Called "+this.name+".onTest (order "+this.order+"->"+(counter+1)+")");
+ this.order = ++counter;
+};
+
+a = new Object; a.name = 'a'; a.onTest = onTest;
+b = new Object; b.name = 'b'; b.onTest = onTest;
+
+ret = bcast.addListener(a);
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+ret = bcast.addListener(b);
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+//note("Broadcasting");
+ret = bcast.broadcastMessage('onTest');
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(a.order, 1);
+check_equals(b.order, 2);
+
+ret = bcast.addListener(b); // b is not added again
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+//note("Broadcasting");
+bcast.broadcastMessage('onTest');
+check_equals(a.order, 3);
+check_equals(b.order, 4);
+
+ret = bcast.addListener(a); // listener a is moved from first to last position to _listeners
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+//note("Broadcasting");
+bcast.broadcastMessage('onTest');
+check_equals(b.order, 5);
+check_equals(a.order, 6);
+
+bcast._listeners.push(a); // force double a listener
+//note("Broadcasting");
+bcast.broadcastMessage('onTest');
+check_equals(b.order, 7);
+check_equals(a.order, 9); // a.order was set twice
+
+bcast.addListener(a); // first a is moved from first to last position to _listeners
+//note("Broadcasting");
+ret = bcast.broadcastMessage('onTest');
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(b.order, 10);
+check_equals(a.order, 12); // a is still set twice
+
+bcast._listeners.push(b); // force double b, order should now be: b,a,a,b
+//note("Broadcasting");
+bcast.broadcastMessage('onTest');
+check_equals(b.order, 16);
+check_equals(a.order, 15);
+
+ret = bcast.addListener(b); // *first* b is removed, another one added, new order is a,a,b,b
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+//note("Broadcasting");
+bcast.broadcastMessage('onTest');
+check_equals(a.order, 18);
+check_equals(b.order, 20);
+
+ret = bcast.removeListener(b); // only first is removed
+check_equals(typeof(ret), 'boolean');
+check_equals(ret, true);
+check_equals(bcast._listeners.length, 3); // expect: a,a,b
+bcast.broadcastMessage('onTest');
+check_equals(a.order, 22);
+check_equals(b.order, 23);
+
+ret = bcast.broadcastMessage('onUnexistent');
+check_equals(ret, true);
+bcast._listeners.length=0;
+ret = bcast.broadcastMessage('onUnexistent');
+check_equals(typeof(ret), 'undefined');
+
+//--------------------------------
+// broadcastMessage with args
+//--------------------------------
+
+_root.total = 0;
+o = {};
+o.addThis = function(what)
+{
+ //note("Arg0 is "+what);
+ _root.total += what;
+};
+o.setSum = function()
+{
+ _root.total = 0;
+ for (var i=0; i< arguments.length; ++i)
+ {
+ //note("Arg "+i+" is "+arguments[i]);
+ _root.total += arguments[i];
+ }
+};
+bcast.addListener(o);
+bcast.broadcastMessage('addThis', 3);
+check_equals(_root.total, 3);
+bcast.broadcastMessage('addThis', 2);
+check_equals(_root.total, 5);
+bcast.broadcastMessage('setSum', 1, 2, 3, 4);
+check_equals(_root.total, 10);
+bcast.broadcastMessage('setSum', 1, 2, 3, 4, 5, 6, 7, 8);
+check_equals(_root.total, 36);
+bcast.broadcastMessage('setSum', 'one', 'two', 'three');
+check_equals(_root.total, '0onetwothree');
+
+//--------------------------------
+// event handlers calling super
+//--------------------------------
+
+function A1() {}
+A1.prototype.add = function(o) { o.msg += 'A'; };
+function B1() {}
+B1.prototype = new A1;
+B1.prototype.add = function(o) { super.add(o); o.msg += 'B'; };
+
+bobj = new B1;
+o = { msg:'' };
+bobj.add(o);
+check_equals(o.msg, "AB");
+o.msg = '';
+
+bcast._listeners.length=0;
+bcast.addListener(bobj);
+bcast.broadcastMessage('add', o);
+check_equals(o.msg, "AB");
+
+//-----------------------------------------------------------------------------------
+// TODO: test override of AsBroadcaster.{addListener,removeListener,broadcastMessage}
+// swfdec contains tests for this, which should now be pretty succeeding except for
+// not-directly related checks which trigger failure due to all-or-nothing nature of
+// the swfdec testsuite.
+// See swfdec/test/trace/asbroadcaster-override.as for more info
+//-----------------------------------------------------------------------------------
+
+check_totals(108);
+
+#endif // OUTPUT_VERSION < 6
diff --git a/test/gnash/actionscript.all/ContextMenu-5.swf b/test/gnash/actionscript.all/ContextMenu-5.swf
new file mode 100644
index 0000000..4ab701a
Binary files /dev/null and b/test/gnash/actionscript.all/ContextMenu-5.swf differ
diff --git a/test/gnash/actionscript.all/ContextMenu-5.swf.trace b/test/gnash/actionscript.all/ContextMenu-5.swf.trace
new file mode 100644
index 0000000..583e92a
--- /dev/null
+++ b/test/gnash/actionscript.all/ContextMenu-5.swf.trace
@@ -0,0 +1,2 @@
+NOTE: You can't rely on availability of ContextMenu class with an SWF < 7
+totals
diff --git a/test/gnash/actionscript.all/ContextMenu-6.swf b/test/gnash/actionscript.all/ContextMenu-6.swf
new file mode 100644
index 0000000..228bcd8
Binary files /dev/null and b/test/gnash/actionscript.all/ContextMenu-6.swf differ
diff --git a/test/gnash/actionscript.all/ContextMenu-6.swf.trace b/test/gnash/actionscript.all/ContextMenu-6.swf.trace
new file mode 100644
index 0000000..583e92a
--- /dev/null
+++ b/test/gnash/actionscript.all/ContextMenu-6.swf.trace
@@ -0,0 +1,2 @@
+NOTE: You can't rely on availability of ContextMenu class with an SWF < 7
+totals
diff --git a/test/gnash/actionscript.all/ContextMenu-7.swf b/test/gnash/actionscript.all/ContextMenu-7.swf
new file mode 100644
index 0000000..abc66bb
Binary files /dev/null and b/test/gnash/actionscript.all/ContextMenu-7.swf differ
diff --git a/test/gnash/actionscript.all/ContextMenu-7.swf.trace b/test/gnash/actionscript.all/ContextMenu-7.swf.trace
new file mode 100644
index 0000000..de4f759
--- /dev/null
+++ b/test/gnash/actionscript.all/ContextMenu-7.swf.trace
@@ -0,0 +1,19 @@
+PASSED: typeof(ContextMenu) == 'function' [ContextMenu.as:35]
+PASSED: typeof(contextmenuObj) == 'object' [ContextMenu.as:40]
+PASSED: typeof(contextmenuObj.copy) == 'function' [ContextMenu.as:43]
+PASSED: typeof(contextmenuObj.hideBuiltInItems) == 'function' [ContextMenu.as:46]
+XPASSED: typeof(contextmenuObj.builtInItems) == 'object' [ContextMenu.as:49]
+PASSED: ! contextmenuObj.builtInItems instanceOf Array [ContextMenu.as:50]
+PASSED: typeof(contextmenuObj.builtInItems.length) == 'undefined' [ContextMenu.as:51]
+XPASSED: typeof(contextmenuObj.customItems) == 'object' [ContextMenu.as:54]
+PASSED: ! contextmenuObj.builtInItems instanceOf Array [ContextMenu.as:55]
+XPASSED: typeof(contextmenuObj.customItems.length) == 'number' [ContextMenu.as:56]
+PASSED: typeof(contextmenuObj.onSelect) == 'undefined' [ContextMenu.as:59]
+PASSED: typeof(contextMenuObj2.onSelect) == 'function' [ContextMenu.as:67]
+PASSED: contextMenuObj2.onSelect == callback [ContextMenu.as:68]
+PASSED: typeof(contextMenuObj2.onSelect) == 'function' [ContextMenu.as:71]
+PASSED: contextMenuObj2.onSelect == callback2 [ContextMenu.as:72]
+PASSED: typeof(contextMenuObj2.onSelect) == 'null' [ContextMenu.as:74]
+PASSED: typeof(contextMenuObj2.onSelect) == 'undefined' [ContextMenu.as:76]
+PASSED: typeof(contextMenuObj2.onSelect) == 'number' [ContextMenu.as:78]
+totals
diff --git a/test/gnash/actionscript.all/ContextMenu-8.swf b/test/gnash/actionscript.all/ContextMenu-8.swf
new file mode 100644
index 0000000..019902d
Binary files /dev/null and b/test/gnash/actionscript.all/ContextMenu-8.swf differ
diff --git a/test/gnash/actionscript.all/ContextMenu-8.swf.trace b/test/gnash/actionscript.all/ContextMenu-8.swf.trace
new file mode 100644
index 0000000..de4f759
--- /dev/null
+++ b/test/gnash/actionscript.all/ContextMenu-8.swf.trace
@@ -0,0 +1,19 @@
+PASSED: typeof(ContextMenu) == 'function' [ContextMenu.as:35]
+PASSED: typeof(contextmenuObj) == 'object' [ContextMenu.as:40]
+PASSED: typeof(contextmenuObj.copy) == 'function' [ContextMenu.as:43]
+PASSED: typeof(contextmenuObj.hideBuiltInItems) == 'function' [ContextMenu.as:46]
+XPASSED: typeof(contextmenuObj.builtInItems) == 'object' [ContextMenu.as:49]
+PASSED: ! contextmenuObj.builtInItems instanceOf Array [ContextMenu.as:50]
+PASSED: typeof(contextmenuObj.builtInItems.length) == 'undefined' [ContextMenu.as:51]
+XPASSED: typeof(contextmenuObj.customItems) == 'object' [ContextMenu.as:54]
+PASSED: ! contextmenuObj.builtInItems instanceOf Array [ContextMenu.as:55]
+XPASSED: typeof(contextmenuObj.customItems.length) == 'number' [ContextMenu.as:56]
+PASSED: typeof(contextmenuObj.onSelect) == 'undefined' [ContextMenu.as:59]
+PASSED: typeof(contextMenuObj2.onSelect) == 'function' [ContextMenu.as:67]
+PASSED: contextMenuObj2.onSelect == callback [ContextMenu.as:68]
+PASSED: typeof(contextMenuObj2.onSelect) == 'function' [ContextMenu.as:71]
+PASSED: contextMenuObj2.onSelect == callback2 [ContextMenu.as:72]
+PASSED: typeof(contextMenuObj2.onSelect) == 'null' [ContextMenu.as:74]
+PASSED: typeof(contextMenuObj2.onSelect) == 'undefined' [ContextMenu.as:76]
+PASSED: typeof(contextMenuObj2.onSelect) == 'number' [ContextMenu.as:78]
+totals
diff --git a/test/gnash/actionscript.all/ContextMenu.as b/test/gnash/actionscript.all/ContextMenu.as
new file mode 100644
index 0000000..70694aa
--- /dev/null
+++ b/test/gnash/actionscript.all/ContextMenu.as
@@ -0,0 +1,81 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+
+// Test case for ContextMenu ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: ContextMenu.as,v 1.14 2008/03/11 19:31:47 strk Exp $";
+#include "check.as"
+
+#if OUTPUT_VERSION < 7
+
+note("You can't rely on availability of ContextMenu class with an SWF < 7");
+
+#else // OUTPUT_VERSION >= 7
+
+// there was no ContextMenu before SWF7
+check_equals(typeof(ContextMenu), 'function');
+
+var contextmenuObj = new ContextMenu;
+
+// test the ContextMenu constuctor
+check_equals (typeof(contextmenuObj), 'object');
+
+// test the ContextMenu::copy method
+check_equals (typeof(contextmenuObj.copy), 'function');
+
+// test the ContextMenu::hideBuiltinItems method
+check_equals (typeof(contextmenuObj.hideBuiltInItems), 'function');
+
+// test existance of ContextMenu::builtInItems object
+xcheck_equals (typeof(contextmenuObj.builtInItems), 'object');
+check ( ! contextmenuObj.builtInItems instanceOf Array );
+check_equals (typeof(contextmenuObj.builtInItems.length), 'undefined');
+
+// test existance of ContextMenu::customItems object
+xcheck_equals (typeof(contextmenuObj.customItems), 'object');
+check ( ! contextmenuObj.builtInItems instanceOf Array );
+xcheck_equals (typeof(contextmenuObj.customItems.length), 'number');
+
+// test existance of ContextMenu::onSelect object
+check_equals (typeof(contextmenuObj.onSelect), 'undefined');
+
+//----------------------------------------------
+// Test onSelect
+//----------------------------------------------
+
+function callback() { }
+var contextMenuObj2 = new ContextMenu(callback);
+check_equals(typeof(contextMenuObj2.onSelect), 'function');
+check_equals(contextMenuObj2.onSelect, callback);
+function callback2() { }
+contextMenuObj2.onSelect = callback2;
+check_equals(typeof(contextMenuObj2.onSelect), 'function');
+check_equals(contextMenuObj2.onSelect, callback2);
+contextMenuObj2.onSelect = null;
+check_equals(typeof(contextMenuObj2.onSelect), 'null');
+contextMenuObj2.onSelect = undefined;
+check_equals(typeof(contextMenuObj2.onSelect), 'undefined');
+contextMenuObj2.onSelect = 4;
+check_equals(typeof(contextMenuObj2.onSelect), 'number');
+
+#endif
+totals();
diff --git a/test/gnash/actionscript.all/Error-5.swf b/test/gnash/actionscript.all/Error-5.swf
new file mode 100644
index 0000000..c39f75d
Binary files /dev/null and b/test/gnash/actionscript.all/Error-5.swf differ
diff --git a/test/gnash/actionscript.all/Error-5.swf.trace b/test/gnash/actionscript.all/Error-5.swf.trace
new file mode 100644
index 0000000..9251781
--- /dev/null
+++ b/test/gnash/actionscript.all/Error-5.swf.trace
@@ -0,0 +1,21 @@
+XPASSED: typeof(Error.prototype.message) == "string" [Error.as:34]
+XPASSED: typeof(Error.prototype.name) == "string" [Error.as:35]
+PASSED: typeof(errorObj) == 'object' [Error.as:40]
+PASSED: typeof(errorObj.toString) == 'function' [Error.as:43]
+PASSED: e.toString() == "Error" [Error.as:47]
+PASSED: e.message == "Error" [Error.as:48]
+PASSED: e.name == "Error" [Error.as:49]
+PASSED: e.toString() == "NameOfError" [Error.as:52]
+PASSED: e.name == "Error" [Error.as:53]
+PASSED: e.message == "NameOfError" [Error.as:54]
+PASSED: e.toString() == "7.8898" [Error.as:58]
+PASSED: e.name == "Error" [Error.as:59]
+PASSED: e.message == "7.8898" [Error.as:60]
+XPASSED: typeof(e.toString()) == "object" [Error.as:65]
+PASSED: e.toString().toString() == "[object Object]" [Error.as:66]
+PASSED: e.name == "Error" [Error.as:67]
+XPASSED: typeof(e.message) == "object" [Error.as:68]
+PASSED: e.name == "ANewName" [Error.as:71]
+PASSED: e.message == "New message" [Error.as:73]
+XPASSED: typeof(e) == "undefined" [Error.as:77]
+totals
diff --git a/test/gnash/actionscript.all/Error-6.swf b/test/gnash/actionscript.all/Error-6.swf
new file mode 100644
index 0000000..9c754a3
Binary files /dev/null and b/test/gnash/actionscript.all/Error-6.swf differ
diff --git a/test/gnash/actionscript.all/Error-6.swf.trace b/test/gnash/actionscript.all/Error-6.swf.trace
new file mode 100644
index 0000000..a5b4bfd
--- /dev/null
+++ b/test/gnash/actionscript.all/Error-6.swf.trace
@@ -0,0 +1,24 @@
+PASSED: Error.prototype.hasOwnProperty("name") [Error.as:29]
+PASSED: Error.prototype.hasOwnProperty("toString") [Error.as:30]
+PASSED: Error.prototype.hasOwnProperty("message") [Error.as:31]
+XPASSED: typeof(Error.prototype.message) == "string" [Error.as:34]
+XPASSED: typeof(Error.prototype.name) == "string" [Error.as:35]
+PASSED: typeof(errorObj) == 'object' [Error.as:40]
+PASSED: typeof(errorObj.toString) == 'function' [Error.as:43]
+PASSED: e.toString() == "Error" [Error.as:47]
+PASSED: e.message == "Error" [Error.as:48]
+PASSED: e.name == "Error" [Error.as:49]
+PASSED: e.toString() == "NameOfError" [Error.as:52]
+PASSED: e.name == "Error" [Error.as:53]
+PASSED: e.message == "NameOfError" [Error.as:54]
+PASSED: e.toString() == "7.8898" [Error.as:58]
+PASSED: e.name == "Error" [Error.as:59]
+PASSED: e.message == "7.8898" [Error.as:60]
+XPASSED: typeof(e.toString()) == "object" [Error.as:65]
+PASSED: e.toString().toString() == "[object Object]" [Error.as:66]
+PASSED: e.name == "Error" [Error.as:67]
+XPASSED: typeof(e.message) == "object" [Error.as:68]
+PASSED: e.name == "ANewName" [Error.as:71]
+PASSED: e.message == "New message" [Error.as:73]
+XPASSED: typeof(e) == "undefined" [Error.as:77]
+totals
diff --git a/test/gnash/actionscript.all/Error-7.swf b/test/gnash/actionscript.all/Error-7.swf
new file mode 100644
index 0000000..b23142a
Binary files /dev/null and b/test/gnash/actionscript.all/Error-7.swf differ
diff --git a/test/gnash/actionscript.all/Error-7.swf.trace b/test/gnash/actionscript.all/Error-7.swf.trace
new file mode 100644
index 0000000..a5b4bfd
--- /dev/null
+++ b/test/gnash/actionscript.all/Error-7.swf.trace
@@ -0,0 +1,24 @@
+PASSED: Error.prototype.hasOwnProperty("name") [Error.as:29]
+PASSED: Error.prototype.hasOwnProperty("toString") [Error.as:30]
+PASSED: Error.prototype.hasOwnProperty("message") [Error.as:31]
+XPASSED: typeof(Error.prototype.message) == "string" [Error.as:34]
+XPASSED: typeof(Error.prototype.name) == "string" [Error.as:35]
+PASSED: typeof(errorObj) == 'object' [Error.as:40]
+PASSED: typeof(errorObj.toString) == 'function' [Error.as:43]
+PASSED: e.toString() == "Error" [Error.as:47]
+PASSED: e.message == "Error" [Error.as:48]
+PASSED: e.name == "Error" [Error.as:49]
+PASSED: e.toString() == "NameOfError" [Error.as:52]
+PASSED: e.name == "Error" [Error.as:53]
+PASSED: e.message == "NameOfError" [Error.as:54]
+PASSED: e.toString() == "7.8898" [Error.as:58]
+PASSED: e.name == "Error" [Error.as:59]
+PASSED: e.message == "7.8898" [Error.as:60]
+XPASSED: typeof(e.toString()) == "object" [Error.as:65]
+PASSED: e.toString().toString() == "[object Object]" [Error.as:66]
+PASSED: e.name == "Error" [Error.as:67]
+XPASSED: typeof(e.message) == "object" [Error.as:68]
+PASSED: e.name == "ANewName" [Error.as:71]
+PASSED: e.message == "New message" [Error.as:73]
+XPASSED: typeof(e) == "undefined" [Error.as:77]
+totals
diff --git a/test/gnash/actionscript.all/Error-8.swf b/test/gnash/actionscript.all/Error-8.swf
new file mode 100644
index 0000000..2c6b48f
Binary files /dev/null and b/test/gnash/actionscript.all/Error-8.swf differ
diff --git a/test/gnash/actionscript.all/Error-8.swf.trace b/test/gnash/actionscript.all/Error-8.swf.trace
new file mode 100644
index 0000000..a5b4bfd
--- /dev/null
+++ b/test/gnash/actionscript.all/Error-8.swf.trace
@@ -0,0 +1,24 @@
+PASSED: Error.prototype.hasOwnProperty("name") [Error.as:29]
+PASSED: Error.prototype.hasOwnProperty("toString") [Error.as:30]
+PASSED: Error.prototype.hasOwnProperty("message") [Error.as:31]
+XPASSED: typeof(Error.prototype.message) == "string" [Error.as:34]
+XPASSED: typeof(Error.prototype.name) == "string" [Error.as:35]
+PASSED: typeof(errorObj) == 'object' [Error.as:40]
+PASSED: typeof(errorObj.toString) == 'function' [Error.as:43]
+PASSED: e.toString() == "Error" [Error.as:47]
+PASSED: e.message == "Error" [Error.as:48]
+PASSED: e.name == "Error" [Error.as:49]
+PASSED: e.toString() == "NameOfError" [Error.as:52]
+PASSED: e.name == "Error" [Error.as:53]
+PASSED: e.message == "NameOfError" [Error.as:54]
+PASSED: e.toString() == "7.8898" [Error.as:58]
+PASSED: e.name == "Error" [Error.as:59]
+PASSED: e.message == "7.8898" [Error.as:60]
+XPASSED: typeof(e.toString()) == "object" [Error.as:65]
+PASSED: e.toString().toString() == "[object Object]" [Error.as:66]
+PASSED: e.name == "Error" [Error.as:67]
+XPASSED: typeof(e.message) == "object" [Error.as:68]
+PASSED: e.name == "ANewName" [Error.as:71]
+PASSED: e.message == "New message" [Error.as:73]
+XPASSED: typeof(e) == "undefined" [Error.as:77]
+totals
diff --git a/test/gnash/actionscript.all/Error.as b/test/gnash/actionscript.all/Error.as
new file mode 100644
index 0000000..178280c
--- /dev/null
+++ b/test/gnash/actionscript.all/Error.as
@@ -0,0 +1,79 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+
+// Test case for Error ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: Error.as,v 1.14 2008/06/17 08:45:36 bwy Exp $";
+#include "check.as"
+
+#if OUTPUT_VERSION > 5
+check(Error.prototype.hasOwnProperty("name"));
+check(Error.prototype.hasOwnProperty("toString"));
+check(Error.prototype.hasOwnProperty("message"));
+#endif
+
+xcheck_equals(typeof(Error.prototype.message), "string");
+xcheck_equals(typeof(Error.prototype.name), "string");
+
+var errorObj = new Error;
+
+// test the Error constuctor
+check_equals (typeof(errorObj), 'object');
+
+// test the Error::tostring method
+check_equals (typeof(errorObj.toString), 'function');
+
+
+e = new Error;
+check_equals(e.toString(), "Error");
+check_equals(e.message, "Error");
+check_equals(e.name, "Error");
+
+e = new Error("NameOfError");
+check_equals(e.toString(), "NameOfError");
+check_equals(e.name, "Error");
+check_equals(e.message, "NameOfError");
+
+
+e = new Error(7.8898);
+check_equals(e.toString(), "7.8898");
+check_equals(e.name, "Error");
+check_equals(e.message, "7.8898");
+
+
+// Is there any sense in this?
+e = new Error(new Color);
+xcheck_equals(typeof(e.toString()), "object");
+check_equals(e.toString().toString(), "[object Object]");
+check_equals(e.name, "Error");
+xcheck_equals(typeof(e.message), "object");
+
+e.name = "ANewName";
+check_equals(e.name, "ANewName");
+e.message = "New message";
+check_equals(e.message, "New message");
+
+
+e = Error("NameOfSecondError");
+xcheck_equals(typeof(e), "undefined");
+
+totals();
diff --git a/test/gnash/actionscript.all/Key-5.swf b/test/gnash/actionscript.all/Key-5.swf
new file mode 100644
index 0000000..7f3152e
Binary files /dev/null and b/test/gnash/actionscript.all/Key-5.swf differ
diff --git a/test/gnash/actionscript.all/Key-5.swf.trace b/test/gnash/actionscript.all/Key-5.swf.trace
new file mode 100644
index 0000000..3d15b15
--- /dev/null
+++ b/test/gnash/actionscript.all/Key-5.swf.trace
@@ -0,0 +1,46 @@
+PASSED: typeof(Key) == 'object' [Key.as:27]
+PASSED: typeof(keyObj) == 'undefined' [Key.as:30]
+PASSED: Key.__proto__ == Object.prototype [Key.as:32]
+PASSED: typeof(Key.addListener) == 'undefined' [Key.as:48]
+PASSED: typeof(Key.removeListener) == 'undefined' [Key.as:49]
+PASSED: typeof(Key.getAscii) == 'function' [Key.as:53]
+PASSED: typeof(Key.getCode) == 'function' [Key.as:54]
+PASSED: typeof(Key.isDown) == 'function' [Key.as:55]
+PASSED: typeof(Key.isToggled) == 'function' [Key.as:56]
+PASSED: typeof(Key.CAPSLOCK) == 'number' [Key.as:59]
+PASSED: Key.CAPSLOCK == 20 [Key.as:60]
+PASSED: typeof(Key.TAB) == 'number' [Key.as:61]
+PASSED: Key.TAB == 9 [Key.as:62]
+PASSED: typeof(Key.CONTROL) == 'number' [Key.as:63]
+PASSED: Key.CONTROL == 17 [Key.as:64]
+PASSED: typeof(Key.SHIFT) == 'number' [Key.as:65]
+PASSED: Key.SHIFT == 16 [Key.as:66]
+PASSED: typeof(Key.DELETEKEY) == 'number' [Key.as:67]
+PASSED: Key.DELETEKEY == 46 [Key.as:68]
+PASSED: typeof(Key.INSERT) == 'number' [Key.as:69]
+PASSED: Key.INSERT == 45 [Key.as:70]
+PASSED: typeof(Key.BACKSPACE) == 'number' [Key.as:71]
+PASSED: Key.BACKSPACE == 8 [Key.as:72]
+PASSED: typeof(Key.LEFT) == 'number' [Key.as:73]
+PASSED: Key.LEFT == 37 [Key.as:74]
+PASSED: typeof(Key.UP) == 'number' [Key.as:75]
+PASSED: Key.UP == 38 [Key.as:76]
+PASSED: typeof(Key.RIGHT) == 'number' [Key.as:77]
+PASSED: Key.RIGHT == 39 [Key.as:78]
+PASSED: typeof(Key.DOWN) == 'number' [Key.as:79]
+PASSED: Key.DOWN == 40 [Key.as:80]
+PASSED: typeof(Key.HOME) == 'number' [Key.as:81]
+PASSED: Key.HOME == 36 [Key.as:82]
+PASSED: typeof(Key.END) == 'number' [Key.as:83]
+PASSED: Key.END == 35 [Key.as:84]
+PASSED: typeof(Key.ENTER) == 'number' [Key.as:85]
+PASSED: Key.ENTER == 13 [Key.as:86]
+PASSED: typeof(Key.ESCAPE) == 'number' [Key.as:87]
+PASSED: Key.ESCAPE == 27 [Key.as:88]
+PASSED: typeof(Key.PGDN) == 'number' [Key.as:89]
+PASSED: Key.PGDN == 34 [Key.as:90]
+PASSED: typeof(Key.PGUP) == 'number' [Key.as:91]
+PASSED: Key.PGUP == 33 [Key.as:92]
+PASSED: typeof(Key.SPACE) == 'number' [Key.as:93]
+PASSED: Key.SPACE == 32 [Key.as:94]
+totals
diff --git a/test/gnash/actionscript.all/Key-6.swf b/test/gnash/actionscript.all/Key-6.swf
new file mode 100644
index 0000000..b7d7ed3
Binary files /dev/null and b/test/gnash/actionscript.all/Key-6.swf differ
diff --git a/test/gnash/actionscript.all/Key-6.swf.trace b/test/gnash/actionscript.all/Key-6.swf.trace
new file mode 100644
index 0000000..eaddf4d
--- /dev/null
+++ b/test/gnash/actionscript.all/Key-6.swf.trace
@@ -0,0 +1,50 @@
+PASSED: typeof(Key) == 'object' [Key.as:27]
+PASSED: typeof(keyObj) == 'undefined' [Key.as:30]
+PASSED: Key.__proto__ == Object.prototype [Key.as:32]
+PASSED: typeof(Key.addListener) == 'function' [Key.as:39]
+PASSED: typeof(Key.removeListener) == 'function' [Key.as:40]
+PASSED: typeof(Key.broadcastMessage) == 'function' [Key.as:41]
+PASSED: Key.hasOwnProperty("_listeners") [Key.as:42]
+PASSED: typeof(Key._listeners) == 'object' [Key.as:43]
+PASSED: Key._listeners instanceof Array [Key.as:44]
+PASSED: typeof(Key.getAscii) == 'function' [Key.as:53]
+PASSED: typeof(Key.getCode) == 'function' [Key.as:54]
+PASSED: typeof(Key.isDown) == 'function' [Key.as:55]
+PASSED: typeof(Key.isToggled) == 'function' [Key.as:56]
+PASSED: typeof(Key.CAPSLOCK) == 'number' [Key.as:59]
+PASSED: Key.CAPSLOCK == 20 [Key.as:60]
+PASSED: typeof(Key.TAB) == 'number' [Key.as:61]
+PASSED: Key.TAB == 9 [Key.as:62]
+PASSED: typeof(Key.CONTROL) == 'number' [Key.as:63]
+PASSED: Key.CONTROL == 17 [Key.as:64]
+PASSED: typeof(Key.SHIFT) == 'number' [Key.as:65]
+PASSED: Key.SHIFT == 16 [Key.as:66]
+PASSED: typeof(Key.DELETEKEY) == 'number' [Key.as:67]
+PASSED: Key.DELETEKEY == 46 [Key.as:68]
+PASSED: typeof(Key.INSERT) == 'number' [Key.as:69]
+PASSED: Key.INSERT == 45 [Key.as:70]
+PASSED: typeof(Key.BACKSPACE) == 'number' [Key.as:71]
+PASSED: Key.BACKSPACE == 8 [Key.as:72]
+PASSED: typeof(Key.LEFT) == 'number' [Key.as:73]
+PASSED: Key.LEFT == 37 [Key.as:74]
+PASSED: typeof(Key.UP) == 'number' [Key.as:75]
+PASSED: Key.UP == 38 [Key.as:76]
+PASSED: typeof(Key.RIGHT) == 'number' [Key.as:77]
+PASSED: Key.RIGHT == 39 [Key.as:78]
+PASSED: typeof(Key.DOWN) == 'number' [Key.as:79]
+PASSED: Key.DOWN == 40 [Key.as:80]
+PASSED: typeof(Key.HOME) == 'number' [Key.as:81]
+PASSED: Key.HOME == 36 [Key.as:82]
+PASSED: typeof(Key.END) == 'number' [Key.as:83]
+PASSED: Key.END == 35 [Key.as:84]
+PASSED: typeof(Key.ENTER) == 'number' [Key.as:85]
+PASSED: Key.ENTER == 13 [Key.as:86]
+PASSED: typeof(Key.ESCAPE) == 'number' [Key.as:87]
+PASSED: Key.ESCAPE == 27 [Key.as:88]
+PASSED: typeof(Key.PGDN) == 'number' [Key.as:89]
+PASSED: Key.PGDN == 34 [Key.as:90]
+PASSED: typeof(Key.PGUP) == 'number' [Key.as:91]
+PASSED: Key.PGUP == 33 [Key.as:92]
+PASSED: typeof(Key.SPACE) == 'number' [Key.as:93]
+PASSED: Key.SPACE == 32 [Key.as:94]
+totals
diff --git a/test/gnash/actionscript.all/Key-7.swf b/test/gnash/actionscript.all/Key-7.swf
new file mode 100644
index 0000000..65e9544
Binary files /dev/null and b/test/gnash/actionscript.all/Key-7.swf differ
diff --git a/test/gnash/actionscript.all/Key-7.swf.trace b/test/gnash/actionscript.all/Key-7.swf.trace
new file mode 100644
index 0000000..eaddf4d
--- /dev/null
+++ b/test/gnash/actionscript.all/Key-7.swf.trace
@@ -0,0 +1,50 @@
+PASSED: typeof(Key) == 'object' [Key.as:27]
+PASSED: typeof(keyObj) == 'undefined' [Key.as:30]
+PASSED: Key.__proto__ == Object.prototype [Key.as:32]
+PASSED: typeof(Key.addListener) == 'function' [Key.as:39]
+PASSED: typeof(Key.removeListener) == 'function' [Key.as:40]
+PASSED: typeof(Key.broadcastMessage) == 'function' [Key.as:41]
+PASSED: Key.hasOwnProperty("_listeners") [Key.as:42]
+PASSED: typeof(Key._listeners) == 'object' [Key.as:43]
+PASSED: Key._listeners instanceof Array [Key.as:44]
+PASSED: typeof(Key.getAscii) == 'function' [Key.as:53]
+PASSED: typeof(Key.getCode) == 'function' [Key.as:54]
+PASSED: typeof(Key.isDown) == 'function' [Key.as:55]
+PASSED: typeof(Key.isToggled) == 'function' [Key.as:56]
+PASSED: typeof(Key.CAPSLOCK) == 'number' [Key.as:59]
+PASSED: Key.CAPSLOCK == 20 [Key.as:60]
+PASSED: typeof(Key.TAB) == 'number' [Key.as:61]
+PASSED: Key.TAB == 9 [Key.as:62]
+PASSED: typeof(Key.CONTROL) == 'number' [Key.as:63]
+PASSED: Key.CONTROL == 17 [Key.as:64]
+PASSED: typeof(Key.SHIFT) == 'number' [Key.as:65]
+PASSED: Key.SHIFT == 16 [Key.as:66]
+PASSED: typeof(Key.DELETEKEY) == 'number' [Key.as:67]
+PASSED: Key.DELETEKEY == 46 [Key.as:68]
+PASSED: typeof(Key.INSERT) == 'number' [Key.as:69]
+PASSED: Key.INSERT == 45 [Key.as:70]
+PASSED: typeof(Key.BACKSPACE) == 'number' [Key.as:71]
+PASSED: Key.BACKSPACE == 8 [Key.as:72]
+PASSED: typeof(Key.LEFT) == 'number' [Key.as:73]
+PASSED: Key.LEFT == 37 [Key.as:74]
+PASSED: typeof(Key.UP) == 'number' [Key.as:75]
+PASSED: Key.UP == 38 [Key.as:76]
+PASSED: typeof(Key.RIGHT) == 'number' [Key.as:77]
+PASSED: Key.RIGHT == 39 [Key.as:78]
+PASSED: typeof(Key.DOWN) == 'number' [Key.as:79]
+PASSED: Key.DOWN == 40 [Key.as:80]
+PASSED: typeof(Key.HOME) == 'number' [Key.as:81]
+PASSED: Key.HOME == 36 [Key.as:82]
+PASSED: typeof(Key.END) == 'number' [Key.as:83]
+PASSED: Key.END == 35 [Key.as:84]
+PASSED: typeof(Key.ENTER) == 'number' [Key.as:85]
+PASSED: Key.ENTER == 13 [Key.as:86]
+PASSED: typeof(Key.ESCAPE) == 'number' [Key.as:87]
+PASSED: Key.ESCAPE == 27 [Key.as:88]
+PASSED: typeof(Key.PGDN) == 'number' [Key.as:89]
+PASSED: Key.PGDN == 34 [Key.as:90]
+PASSED: typeof(Key.PGUP) == 'number' [Key.as:91]
+PASSED: Key.PGUP == 33 [Key.as:92]
+PASSED: typeof(Key.SPACE) == 'number' [Key.as:93]
+PASSED: Key.SPACE == 32 [Key.as:94]
+totals
diff --git a/test/gnash/actionscript.all/Key-8.swf b/test/gnash/actionscript.all/Key-8.swf
new file mode 100644
index 0000000..afceb1b
Binary files /dev/null and b/test/gnash/actionscript.all/Key-8.swf differ
diff --git a/test/gnash/actionscript.all/Key-8.swf.trace b/test/gnash/actionscript.all/Key-8.swf.trace
new file mode 100644
index 0000000..eaddf4d
--- /dev/null
+++ b/test/gnash/actionscript.all/Key-8.swf.trace
@@ -0,0 +1,50 @@
+PASSED: typeof(Key) == 'object' [Key.as:27]
+PASSED: typeof(keyObj) == 'undefined' [Key.as:30]
+PASSED: Key.__proto__ == Object.prototype [Key.as:32]
+PASSED: typeof(Key.addListener) == 'function' [Key.as:39]
+PASSED: typeof(Key.removeListener) == 'function' [Key.as:40]
+PASSED: typeof(Key.broadcastMessage) == 'function' [Key.as:41]
+PASSED: Key.hasOwnProperty("_listeners") [Key.as:42]
+PASSED: typeof(Key._listeners) == 'object' [Key.as:43]
+PASSED: Key._listeners instanceof Array [Key.as:44]
+PASSED: typeof(Key.getAscii) == 'function' [Key.as:53]
+PASSED: typeof(Key.getCode) == 'function' [Key.as:54]
+PASSED: typeof(Key.isDown) == 'function' [Key.as:55]
+PASSED: typeof(Key.isToggled) == 'function' [Key.as:56]
+PASSED: typeof(Key.CAPSLOCK) == 'number' [Key.as:59]
+PASSED: Key.CAPSLOCK == 20 [Key.as:60]
+PASSED: typeof(Key.TAB) == 'number' [Key.as:61]
+PASSED: Key.TAB == 9 [Key.as:62]
+PASSED: typeof(Key.CONTROL) == 'number' [Key.as:63]
+PASSED: Key.CONTROL == 17 [Key.as:64]
+PASSED: typeof(Key.SHIFT) == 'number' [Key.as:65]
+PASSED: Key.SHIFT == 16 [Key.as:66]
+PASSED: typeof(Key.DELETEKEY) == 'number' [Key.as:67]
+PASSED: Key.DELETEKEY == 46 [Key.as:68]
+PASSED: typeof(Key.INSERT) == 'number' [Key.as:69]
+PASSED: Key.INSERT == 45 [Key.as:70]
+PASSED: typeof(Key.BACKSPACE) == 'number' [Key.as:71]
+PASSED: Key.BACKSPACE == 8 [Key.as:72]
+PASSED: typeof(Key.LEFT) == 'number' [Key.as:73]
+PASSED: Key.LEFT == 37 [Key.as:74]
+PASSED: typeof(Key.UP) == 'number' [Key.as:75]
+PASSED: Key.UP == 38 [Key.as:76]
+PASSED: typeof(Key.RIGHT) == 'number' [Key.as:77]
+PASSED: Key.RIGHT == 39 [Key.as:78]
+PASSED: typeof(Key.DOWN) == 'number' [Key.as:79]
+PASSED: Key.DOWN == 40 [Key.as:80]
+PASSED: typeof(Key.HOME) == 'number' [Key.as:81]
+PASSED: Key.HOME == 36 [Key.as:82]
+PASSED: typeof(Key.END) == 'number' [Key.as:83]
+PASSED: Key.END == 35 [Key.as:84]
+PASSED: typeof(Key.ENTER) == 'number' [Key.as:85]
+PASSED: Key.ENTER == 13 [Key.as:86]
+PASSED: typeof(Key.ESCAPE) == 'number' [Key.as:87]
+PASSED: Key.ESCAPE == 27 [Key.as:88]
+PASSED: typeof(Key.PGDN) == 'number' [Key.as:89]
+PASSED: Key.PGDN == 34 [Key.as:90]
+PASSED: typeof(Key.PGUP) == 'number' [Key.as:91]
+PASSED: Key.PGUP == 33 [Key.as:92]
+PASSED: typeof(Key.SPACE) == 'number' [Key.as:93]
+PASSED: Key.SPACE == 32 [Key.as:94]
+totals
diff --git a/test/gnash/actionscript.all/Key.as b/test/gnash/actionscript.all/Key.as
new file mode 100644
index 0000000..27287ee
--- /dev/null
+++ b/test/gnash/actionscript.all/Key.as
@@ -0,0 +1,99 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+// Test case for Stage ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: Key.as,v 1.7 2008/03/11 19:31:47 strk Exp $";
+#include "check.as"
+
+check_equals (typeof(Key), 'object');
+
+var keyObj = new Key;
+check_equals (typeof(keyObj), 'undefined');
+
+check_equals(Key.__proto__, Object.prototype);
+
+// Methods
+#if OUTPUT_VERSION > 5
+
+ // Key was implicitly initialized by ASBroadcaster.initialize !
+ // See http://www.senocular.com/flash/tutorials/listenersasbroadcaster/?page=2
+ check_equals(typeof(Key.addListener), 'function');
+ check_equals(typeof(Key.removeListener), 'function');
+ check_equals(typeof(Key.broadcastMessage), 'function');
+ check(Key.hasOwnProperty("_listeners"));
+ check_equals(typeof(Key._listeners), 'object');
+ check(Key._listeners instanceof Array);
+
+#else // OUTPUT_VERSION <= 5
+
+ check_equals(typeof(Key.addListener), 'undefined');
+ check_equals(typeof(Key.removeListener), 'undefined');
+
+#endif // OUTPUT_VERSION <= 5
+
+check_equals(typeof(Key.getAscii), 'function');
+check_equals(typeof(Key.getCode), 'function');
+check_equals(typeof(Key.isDown), 'function');
+check_equals(typeof(Key.isToggled), 'function');
+
+// Properties
+check_equals(typeof(Key.CAPSLOCK), 'number');
+check_equals(Key.CAPSLOCK, 20);
+check_equals(typeof(Key.TAB), 'number');
+check_equals(Key.TAB, 9);
+check_equals(typeof(Key.CONTROL), 'number');
+check_equals(Key.CONTROL, 17);
+check_equals(typeof(Key.SHIFT), 'number');
+check_equals(Key.SHIFT, 16);
+check_equals(typeof(Key.DELETEKEY), 'number');
+check_equals(Key.DELETEKEY, 46);
+check_equals(typeof(Key.INSERT), 'number');
+check_equals(Key.INSERT, 45);
+check_equals(typeof(Key.BACKSPACE), 'number');
+check_equals(Key.BACKSPACE, 8);
+check_equals(typeof(Key.LEFT), 'number');
+check_equals(Key.LEFT, 37);
+check_equals(typeof(Key.UP), 'number');
+check_equals(Key.UP, 38);
+check_equals(typeof(Key.RIGHT), 'number');
+check_equals(Key.RIGHT, 39);
+check_equals(typeof(Key.DOWN), 'number');
+check_equals(Key.DOWN, 40);
+check_equals(typeof(Key.HOME), 'number');
+check_equals(Key.HOME, 36);
+check_equals(typeof(Key.END), 'number');
+check_equals(Key.END, 35);
+check_equals(typeof(Key.ENTER), 'number');
+check_equals(Key.ENTER, 13);
+check_equals(typeof(Key.ESCAPE), 'number');
+check_equals(Key.ESCAPE, 27);
+check_equals(typeof(Key.PGDN), 'number');
+check_equals(Key.PGDN, 34);
+check_equals(typeof(Key.PGUP), 'number');
+check_equals(Key.PGUP, 33);
+check_equals(typeof(Key.SPACE), 'number');
+check_equals(Key.SPACE, 32);
+
+// Event handlers are:
+// onKeyUp
+// onKeyDown
+totals();
diff --git a/test/gnash/actionscript.all/Makefile.am b/test/gnash/actionscript.all/Makefile.am
new file mode 100644
index 0000000..238e23a
--- /dev/null
+++ b/test/gnash/actionscript.all/Makefile.am
@@ -0,0 +1,148 @@
+check-local: ../../swfdec-test
+ ../../swfdec-test --script $(srcdir)/default.sts $(srcdir)/*.swf
+
+EXTRA_DIST = \
+ README \
+ REMOVED \
+ UPDATED \
+ AsBroadcaster-5.swf \
+ AsBroadcaster-5.swf.trace \
+ AsBroadcaster-6.swf \
+ AsBroadcaster-6.swf.trace \
+ AsBroadcaster-7.swf \
+ AsBroadcaster-7.swf.trace \
+ AsBroadcaster-8.swf \
+ AsBroadcaster-8.swf.trace \
+ AsBroadcaster.as \
+ AsBroadcaster.as.original \
+ check.as \
+ check.as.original \
+ ContextMenu-5.swf \
+ ContextMenu-5.swf.trace \
+ ContextMenu-6.swf \
+ ContextMenu-6.swf.trace \
+ ContextMenu-7.swf \
+ ContextMenu-7.swf.trace \
+ ContextMenu-8.swf \
+ ContextMenu-8.swf.trace \
+ ContextMenu.as \
+ default.sts \
+ default.stas \
+ delete-5.swf \
+ delete-5.swf.trace \
+ delete-6.swf \
+ delete-6.swf.trace \
+ delete-7.swf \
+ delete-7.swf.trace \
+ delete-8.swf \
+ delete-8.swf.trace \
+ delete.as \
+ enumerate-5.swf \
+ enumerate-5.swf.trace \
+ enumerate-6.swf \
+ enumerate-6.swf.trace \
+ enumerate-7.swf \
+ enumerate-7.swf.trace \
+ enumerate-8.swf \
+ enumerate-8.swf.trace \
+ enumerate.as \
+ Error-5.swf \
+ Error-5.swf.trace \
+ Error-6.swf \
+ Error-6.swf.trace \
+ Error-7.swf \
+ Error-7.swf.trace \
+ Error-8.swf \
+ Error-8.swf.trace \
+ Error.as \
+ Key-5.swf \
+ Key-5.swf.trace \
+ Key-6.swf \
+ Key-6.swf.trace \
+ Key-7.swf \
+ Key-7.swf.trace \
+ Key-8.swf \
+ Key-8.swf.trace \
+ Key.as \
+ Mouse-5.swf \
+ Mouse-5.swf.trace \
+ Mouse-6.swf \
+ Mouse-6.swf.trace \
+ Mouse-7.swf \
+ Mouse-7.swf.trace \
+ Mouse-8.swf \
+ Mouse-8.swf.trace \
+ Mouse.as \
+ Point-5.swf \
+ Point-5.swf.trace \
+ Point-6.swf \
+ Point-6.swf.trace \
+ Point-7.swf \
+ Point-7.swf.trace \
+ Point-8.swf \
+ Point-8.swf.trace \
+ Point.as \
+ Rectangle-5.swf \
+ Rectangle-5.swf.trace \
+ Rectangle-6.swf \
+ Rectangle-6.swf.trace \
+ Rectangle-7.swf \
+ Rectangle-7.swf.trace \
+ Rectangle-8.swf \
+ Rectangle-8.swf.trace \
+ Rectangle.as \
+ Selection-5.swf \
+ Selection-5.swf.trace \
+ Selection-6.swf \
+ Selection-6.swf.trace \
+ Selection-7.swf \
+ Selection-7.swf.trace \
+ Selection-8.swf \
+ Selection-8.swf.trace \
+ Selection.as \
+ swap-5.swf \
+ swap-5.swf.trace \
+ swap-6.swf \
+ swap-6.swf.trace \
+ swap-7.swf \
+ swap-7.swf.trace \
+ swap-8.swf \
+ swap-8.swf.trace \
+ swap.as \
+ TextFormat-5.swf \
+ TextFormat-5.swf.trace \
+ TextFormat-6.swf \
+ TextFormat-6.swf.trace \
+ TextFormat-7.swf \
+ TextFormat-7.swf.trace \
+ TextFormat-8.swf \
+ TextFormat-8.swf.trace \
+ TextFormat.as \
+ TextSnapshot-5.swf \
+ TextSnapshot-5.swf.trace \
+ TextSnapshot-6.swf \
+ TextSnapshot-6.swf.trace \
+ TextSnapshot-7.swf \
+ TextSnapshot-7.swf.trace \
+ TextSnapshot-8.swf \
+ TextSnapshot-8.swf.trace \
+ TextSnapshot.as \
+ Try-5.swf \
+ Try-5.swf.trace \
+ Try-6.swf \
+ Try-6.swf.trace \
+ Try-7.swf \
+ Try-7.swf.trace \
+ Try-8.swf \
+ Try-8.swf.trace \
+ Try.as \
+ utils.as \
+ Video-5.swf \
+ Video-5.swf.trace \
+ Video-6.swf \
+ Video-6.swf.trace \
+ Video-7.swf \
+ Video-7.swf.trace \
+ Video-8.swf \
+ Video-8.swf.trace \
+ Video.as
diff --git a/test/gnash/actionscript.all/Mouse-5.swf b/test/gnash/actionscript.all/Mouse-5.swf
new file mode 100644
index 0000000..ad54f1d
Binary files /dev/null and b/test/gnash/actionscript.all/Mouse-5.swf differ
diff --git a/test/gnash/actionscript.all/Mouse-5.swf.trace b/test/gnash/actionscript.all/Mouse-5.swf.trace
new file mode 100644
index 0000000..a5e3b93
--- /dev/null
+++ b/test/gnash/actionscript.all/Mouse-5.swf.trace
@@ -0,0 +1,8 @@
+PASSED: typeof(Mouse) == 'object' [Mouse.as:27]
+PASSED: mouseObj == undefined [Mouse.as:31]
+PASSED: typeof(Mouse.__proto__) == 'object' [Mouse.as:33]
+PASSED: Mouse.__proto__ == Object.prototype [Mouse.as:34]
+PASSED: typeof(Mouse.hide) == 'function' [Mouse.as:37]
+PASSED: typeof(Mouse.show) == 'function' [Mouse.as:38]
+PASSED: typeof(Mouse.show) == 'function' [Mouse.as:57]
+check_totals: 7
diff --git a/test/gnash/actionscript.all/Mouse-6.swf b/test/gnash/actionscript.all/Mouse-6.swf
new file mode 100644
index 0000000..15540a1
Binary files /dev/null and b/test/gnash/actionscript.all/Mouse-6.swf differ
diff --git a/test/gnash/actionscript.all/Mouse-6.swf.trace b/test/gnash/actionscript.all/Mouse-6.swf.trace
new file mode 100644
index 0000000..4c78f3b
--- /dev/null
+++ b/test/gnash/actionscript.all/Mouse-6.swf.trace
@@ -0,0 +1,16 @@
+PASSED: typeof(Mouse) == 'object' [Mouse.as:27]
+PASSED: mouseObj == undefined [Mouse.as:31]
+PASSED: typeof(Mouse.__proto__) == 'object' [Mouse.as:33]
+PASSED: Mouse.__proto__ == Object.prototype [Mouse.as:34]
+PASSED: typeof(Mouse.hide) == 'function' [Mouse.as:37]
+PASSED: typeof(Mouse.show) == 'function' [Mouse.as:38]
+PASSED: typeof(Mouse.removeListener) == 'function' [Mouse.as:43]
+PASSED: typeof(Mouse.addListener) == 'function' [Mouse.as:44]
+PASSED: typeof(Mouse.broadcastMessage) == 'function' [Mouse.as:45]
+PASSED: Mouse.hasOwnProperty("_listeners") [Mouse.as:46]
+PASSED: typeof(Mouse._listeners) == 'object' [Mouse.as:47]
+PASSED: Mouse._listeners instanceof Array [Mouse.as:48]
+PASSED: Mouse.hasOwnProperty("hide") [Mouse.as:50]
+PASSED: Mouse.hasOwnProperty("show") [Mouse.as:51]
+PASSED: typeof(Mouse.show) == 'function' [Mouse.as:57]
+check_totals: 15
diff --git a/test/gnash/actionscript.all/Mouse-7.swf b/test/gnash/actionscript.all/Mouse-7.swf
new file mode 100644
index 0000000..3c16f3b
Binary files /dev/null and b/test/gnash/actionscript.all/Mouse-7.swf differ
diff --git a/test/gnash/actionscript.all/Mouse-7.swf.trace b/test/gnash/actionscript.all/Mouse-7.swf.trace
new file mode 100644
index 0000000..4c78f3b
--- /dev/null
+++ b/test/gnash/actionscript.all/Mouse-7.swf.trace
@@ -0,0 +1,16 @@
+PASSED: typeof(Mouse) == 'object' [Mouse.as:27]
+PASSED: mouseObj == undefined [Mouse.as:31]
+PASSED: typeof(Mouse.__proto__) == 'object' [Mouse.as:33]
+PASSED: Mouse.__proto__ == Object.prototype [Mouse.as:34]
+PASSED: typeof(Mouse.hide) == 'function' [Mouse.as:37]
+PASSED: typeof(Mouse.show) == 'function' [Mouse.as:38]
+PASSED: typeof(Mouse.removeListener) == 'function' [Mouse.as:43]
+PASSED: typeof(Mouse.addListener) == 'function' [Mouse.as:44]
+PASSED: typeof(Mouse.broadcastMessage) == 'function' [Mouse.as:45]
+PASSED: Mouse.hasOwnProperty("_listeners") [Mouse.as:46]
+PASSED: typeof(Mouse._listeners) == 'object' [Mouse.as:47]
+PASSED: Mouse._listeners instanceof Array [Mouse.as:48]
+PASSED: Mouse.hasOwnProperty("hide") [Mouse.as:50]
+PASSED: Mouse.hasOwnProperty("show") [Mouse.as:51]
+PASSED: typeof(Mouse.show) == 'function' [Mouse.as:57]
+check_totals: 15
diff --git a/test/gnash/actionscript.all/Mouse-8.swf b/test/gnash/actionscript.all/Mouse-8.swf
new file mode 100644
index 0000000..448807a
Binary files /dev/null and b/test/gnash/actionscript.all/Mouse-8.swf differ
diff --git a/test/gnash/actionscript.all/Mouse-8.swf.trace b/test/gnash/actionscript.all/Mouse-8.swf.trace
new file mode 100644
index 0000000..4c78f3b
--- /dev/null
+++ b/test/gnash/actionscript.all/Mouse-8.swf.trace
@@ -0,0 +1,16 @@
+PASSED: typeof(Mouse) == 'object' [Mouse.as:27]
+PASSED: mouseObj == undefined [Mouse.as:31]
+PASSED: typeof(Mouse.__proto__) == 'object' [Mouse.as:33]
+PASSED: Mouse.__proto__ == Object.prototype [Mouse.as:34]
+PASSED: typeof(Mouse.hide) == 'function' [Mouse.as:37]
+PASSED: typeof(Mouse.show) == 'function' [Mouse.as:38]
+PASSED: typeof(Mouse.removeListener) == 'function' [Mouse.as:43]
+PASSED: typeof(Mouse.addListener) == 'function' [Mouse.as:44]
+PASSED: typeof(Mouse.broadcastMessage) == 'function' [Mouse.as:45]
+PASSED: Mouse.hasOwnProperty("_listeners") [Mouse.as:46]
+PASSED: typeof(Mouse._listeners) == 'object' [Mouse.as:47]
+PASSED: Mouse._listeners instanceof Array [Mouse.as:48]
+PASSED: Mouse.hasOwnProperty("hide") [Mouse.as:50]
+PASSED: Mouse.hasOwnProperty("show") [Mouse.as:51]
+PASSED: typeof(Mouse.show) == 'function' [Mouse.as:57]
+check_totals: 15
diff --git a/test/gnash/actionscript.all/Mouse.as b/test/gnash/actionscript.all/Mouse.as
new file mode 100644
index 0000000..6f86db1
--- /dev/null
+++ b/test/gnash/actionscript.all/Mouse.as
@@ -0,0 +1,62 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+// Test case for Mouse ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: Mouse.as,v 1.19 2008/04/16 11:16:34 bwy Exp $";
+#include "check.as"
+
+check_equals ( typeof(Mouse), 'object' );
+
+// Mouse object can't be instanciated !
+var mouseObj = new Mouse;
+check_equals(mouseObj, undefined);
+
+check_equals (typeof(Mouse.__proto__), 'object');
+check_equals (Mouse.__proto__, Object.prototype);
+
+// test the Mouse::hide method
+check_equals ( typeof(Mouse.hide), 'function' );
+check_equals ( typeof(Mouse.show), 'function' );
+#if OUTPUT_VERSION > 5
+
+ // Mouse was implicitly initialized by ASBroadcaster.initialize !
+ // See http://www.senocular.com/flash/tutorials/listenersasbroadcaster/?page=2
+ check_equals ( typeof(Mouse.removeListener), 'function' );
+ check_equals ( typeof(Mouse.addListener), 'function' );
+ check_equals( typeof(Mouse.broadcastMessage), 'function' );
+ check(Mouse.hasOwnProperty("_listeners"));
+ check_equals(typeof(Mouse._listeners), 'object');
+ check(Mouse._listeners instanceof Array);
+
+ check(Mouse.hasOwnProperty("hide"));
+ check(Mouse.hasOwnProperty("show"));
+
+#endif // OUTPUT_VERSION > 5
+
+
+// test the Mouse::show method
+check_equals ( typeof(Mouse.show), 'function' );
+#if OUTPUT_VERSION > 5
+check_totals(15);
+#else
+check_totals(7);
+#endif
diff --git a/test/gnash/actionscript.all/Point-5.swf b/test/gnash/actionscript.all/Point-5.swf
new file mode 100644
index 0000000..a37f9ea
Binary files /dev/null and b/test/gnash/actionscript.all/Point-5.swf differ
diff --git a/test/gnash/actionscript.all/Point-5.swf.trace b/test/gnash/actionscript.all/Point-5.swf.trace
new file mode 100644
index 0000000..0b94f57
--- /dev/null
+++ b/test/gnash/actionscript.all/Point-5.swf.trace
@@ -0,0 +1,2 @@
+PASSED: typeof(flash) == 'undefined' [Point.as:29]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/Point-6.swf b/test/gnash/actionscript.all/Point-6.swf
new file mode 100644
index 0000000..57dc617
Binary files /dev/null and b/test/gnash/actionscript.all/Point-6.swf differ
diff --git a/test/gnash/actionscript.all/Point-6.swf.trace b/test/gnash/actionscript.all/Point-6.swf.trace
new file mode 100644
index 0000000..0b94f57
--- /dev/null
+++ b/test/gnash/actionscript.all/Point-6.swf.trace
@@ -0,0 +1,2 @@
+PASSED: typeof(flash) == 'undefined' [Point.as:29]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/Point-7.swf b/test/gnash/actionscript.all/Point-7.swf
new file mode 100644
index 0000000..8442016
Binary files /dev/null and b/test/gnash/actionscript.all/Point-7.swf differ
diff --git a/test/gnash/actionscript.all/Point-7.swf.trace b/test/gnash/actionscript.all/Point-7.swf.trace
new file mode 100644
index 0000000..0b94f57
--- /dev/null
+++ b/test/gnash/actionscript.all/Point-7.swf.trace
@@ -0,0 +1,2 @@
+PASSED: typeof(flash) == 'undefined' [Point.as:29]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/Point-8.swf b/test/gnash/actionscript.all/Point-8.swf
new file mode 100644
index 0000000..15e45cc
Binary files /dev/null and b/test/gnash/actionscript.all/Point-8.swf differ
diff --git a/test/gnash/actionscript.all/Point-8.swf.trace b/test/gnash/actionscript.all/Point-8.swf.trace
new file mode 100644
index 0000000..0db2f09
--- /dev/null
+++ b/test/gnash/actionscript.all/Point-8.swf.trace
@@ -0,0 +1,187 @@
+PASSED: typeof(Point) == 'function' [Point.as:36]
+PASSED: typeof(Point.prototype) == 'object' [Point.as:37]
+PASSED: Point.prototype.hasOwnProperty('length') [Point.as:38]
+PASSED: !Point.prototype.hasOwnProperty('x') [Point.as:39]
+PASSED: !Point.prototype.hasOwnProperty('y') [Point.as:40]
+PASSED: Point.prototype.hasOwnProperty('add') [Point.as:41]
+PASSED: Point.prototype.hasOwnProperty('clone') [Point.as:42]
+PASSED: !Point.prototype.hasOwnProperty('distance') [Point.as:43]
+PASSED: Point.hasOwnProperty('distance') [Point.as:44]
+PASSED: Point.prototype.hasOwnProperty('equals') [Point.as:45]
+PASSED: !Point.prototype.hasOwnProperty('interpolate') [Point.as:46]
+PASSED: Point.hasOwnProperty('interpolate') [Point.as:47]
+PASSED: Point.prototype.hasOwnProperty('normalize') [Point.as:48]
+PASSED: Point.prototype.hasOwnProperty('offset') [Point.as:49]
+PASSED: !Point.prototype.hasOwnProperty('polar') [Point.as:50]
+PASSED: Point.hasOwnProperty('polar') [Point.as:51]
+PASSED: Point.prototype.hasOwnProperty('subtract') [Point.as:52]
+PASSED: Point.prototype.hasOwnProperty('toString') [Point.as:53]
+PASSED: typeof(p0) == 'object' [Point.as:60]
+PASSED: p0 instanceof Point [Point.as:61]
+PASSED: p0.hasOwnProperty('x') [Point.as:62]
+PASSED: p0.hasOwnProperty('y') [Point.as:63]
+PASSED: ''+p0 == '(x=0, y=0)' [Point.as:64]
+PASSED: typeof(p0.x) == 'number' [Point.as:65]
+PASSED: typeof(p0.y) == 'number' [Point.as:66]
+PASSED: typeof(p0.length) == 'number' [Point.as:67]
+PASSED: p0.length == 0 [Point.as:68]
+PASSED: a.length == 10 [Point.as:71]
+PASSED: ''+p0 == '(x=x, y=y)' [Point.as:74]
+PASSED: typeof(p0.x) == 'string' [Point.as:75]
+PASSED: typeof(p0.y) == 'string' [Point.as:76]
+PASSED: typeof(p0.length) == 'number' [Point.as:77]
+PASSED: isNaN(p0.length) [Point.as:78]
+PASSED: isNaN(p0.length) [Point.as:80]
+PASSED: p0.length == 1 [Point.as:82]
+PASSED: p0.length == 5 [Point.as:85]
+PASSED: p0.length == 5 [Point.as:89]
+PASSED: p0.length == Infinity [Point.as:92]
+PASSED: p0.length == 0 [Point.as:95]
+PASSED: ret instanceof Point [Point.as:103]
+PASSED: p0.toString() == '(x=x, y=y)' [Point.as:104]
+PASSED: ret.toString() == '(x=xundefined, y=yundefined)' [Point.as:105]
+PASSED: ret instanceof Point [Point.as:109]
+PASSED: ret.toString() == '(x=x3, y=yundefined)' [Point.as:110]
+PASSED: p0.toString() == '(x=x, y=y)' [Point.as:111]
+PASSED: ret instanceof Point [Point.as:113]
+PASSED: ret.toString() == '(x=xundefined, y=yundefined)' [Point.as:114]
+PASSED: p0.toString() == '(x=x, y=y)' [Point.as:115]
+PASSED: ret instanceof Point [Point.as:120]
+PASSED: ret.toString() == '(x=xx1, y=yy1)' [Point.as:121]
+PASSED: p0.toString() == '(x=x, y=y)' [Point.as:122]
+PASSED: p1.toString() == '(x=x1, y=y1)' [Point.as:123]
+PASSED: ret.toString() == '(x=3, y=4)' [Point.as:128]
+PASSED: ret.toString() == '(x=3, y=4)' [Point.as:131]
+PASSED: ret.toString() == "(x=22, y=33)" [Point.as:137]
+PASSED: ret instanceof Point [Point.as:138]
+PASSED: p2 instanceof Point [Point.as:147]
+PASSED: p2.toString() == "(x=3, y=4)" [Point.as:148]
+PASSED: typeof(p2.z) == 'undefined' [Point.as:149]
+PASSED: p2 instanceof Point [Point.as:151]
+PASSED: p2.toString() == "(x=3, y=4)" [Point.as:152]
+PASSED: ret.toString() == "(x=20, y=30)" [Point.as:158]
+PASSED: ret instanceof Point [Point.as:159]
+PASSED: typeof(dist) == 'undefined' [Point.as:166]
+PASSED: typeof(dist) == 'undefined' [Point.as:169]
+PASSED: typeof(dist) == 'undefined' [Point.as:174]
+PASSED: typeof(dist) == 'number' [Point.as:179]
+PASSED: isNaN(dist) [Point.as:180]
+PASSED: typeof(dist) == 'undefined' [Point.as:182]
+PASSED: typeof(dist) == 'number' [Point.as:187]
+PASSED: isNaN(dist) [Point.as:188]
+PASSED: typeof(dist) == 'undefined' [Point.as:190]
+PASSED: typeof(dist) == 'number' [Point.as:195]
+PASSED: isNaN(dist) [Point.as:196]
+PASSED: typeof(dist) == 'undefined' [Point.as:198]
+PASSED: typeof(dist) == 'number' [Point.as:203]
+PASSED: Math.round(dist*100) == 316 [Point.as:204]
+PASSED: typeof(dist) == 'undefined' [Point.as:206]
+PASSED: typeof(dist) == 'number' [Point.as:211]
+PASSED: dist == 9 [Point.as:212]
+PASSED: typeof(dist) == 'number' [Point.as:216]
+PASSED: dist == 20 [Point.as:217]
+PASSED: typeof(dist) == 'undefined' [Point.as:221]
+PASSED: dist == 20 [Point.as:224]
+PASSED: p0.equals(p0) [Point.as:236]
+PASSED: p1.equals(p1) [Point.as:239]
+PASSED: p0 != p1 [Point.as:241]
+PASSED: p0.toString() == p1.toString() [Point.as:242]
+PASSED: !p0.equals(p1) [Point.as:244]
+PASSED: !p1.equals(p0) [Point.as:245]
+PASSED: typeof(ret) == 'boolean' [Point.as:248]
+PASSED: !ret [Point.as:249]
+PASSED: p1.equals(p2) [Point.as:252]
+PASSED: typeof(ret) == 'boolean' [Point.as:256]
+PASSED: !ret [Point.as:257]
+PASSED: p1.equals(p2) [Point.as:260]
+PASSED: p1.equals(p2) [Point.as:264]
+PASSED: !p1.equals('string') [Point.as:269]
+PASSED: ret.toString() == "true" [Point.as:275]
+PASSED: typeof(ret) == "boolean" [Point.as:276]
+PASSED: ret instanceof Point [Point.as:283]
+PASSED: ret.toString() == '(x=NaN, y=NaN)' [Point.as:284]
+PASSED: ret instanceof Point [Point.as:287]
+PASSED: ret.toString() == '(x=NaN, y=NaN)' [Point.as:288]
+PASSED: ret instanceof Point [Point.as:293]
+PASSED: ret.toString() == '(x=x1NaN, y=y1NaN)' [Point.as:294]
+PASSED: ret instanceof Point [Point.as:299]
+PASSED: ret.toString() == '(x=10-30, y=00)' [Point.as:300]
+PASSED: ret instanceof Point [Point.as:302]
+PASSED: ret.toString() == '(x=100, y=00)' [Point.as:303]
+PASSED: ret instanceof Point [Point.as:305]
+PASSED: ret.toString() == '(x=10-5, y=00)' [Point.as:306]
+PASSED: ret instanceof Point [Point.as:312]
+PASSED: ret.toString() == '(x=10-30, y=00)' [Point.as:313]
+PASSED: ret instanceof Point [Point.as:319]
+PASSED: ret.toString() == '(x=-20, y=0)' [Point.as:320]
+PASSED: ret instanceof Point [Point.as:325]
+PASSED: ret.toString() == '(x=5, y=0)' [Point.as:326]
+PASSED: ret.equals(p0) [Point.as:331]
+PASSED: ret.equals(p1) [Point.as:333]
+PASSED: ret.toString() == '(x=NaN, y=NaN)' [Point.as:335]
+PASSED: ret.toString() == '(x=0, y=10)' [Point.as:340]
+PASSED: ret.toString() == '(x=10, y=0)' [Point.as:342]
+PASSED: ret.toString() == '(x=5, y=5)' [Point.as:344]
+PASSED: typeof(ret) == 'undefined' [Point.as:354]
+PASSED: p1.equals(p0) [Point.as:355]
+PASSED: typeof(ret) == 'undefined' [Point.as:360]
+PASSED: p1.equals(p0) [Point.as:361]
+PASSED: typeof(ret) == 'undefined' [Point.as:366]
+PASSED: p1.toString() == '(x=5, y=0)' [Point.as:367]
+PASSED: typeof(ret) == 'undefined' [Point.as:372]
+PASSED: p1.toString() == '(x=0, y=-5)' [Point.as:373]
+PASSED: typeof(ret) == 'undefined' [Point.as:378]
+PASSED: p1.toString() == '(x=-6, y=8)' [Point.as:379]
+PASSED: typeof(ret) == 'undefined' [Point.as:384]
+PASSED: p1.toString() == '(x=-5, y=0)' [Point.as:385]
+PASSED: typeof(ret) == 'undefined' [Point.as:390]
+PASSED: p1.toString() == '(x=NaN, y=NaN)' [Point.as:391]
+PASSED: typeof(ret) == 'undefined' [Point.as:396]
+PASSED: p1.toString() == '(x=x, y=y)' [Point.as:397]
+PASSED: typeof(ret) == 'undefined' [Point.as:405]
+PASSED: p0.toString() == '(x=xundefined, y=yundefined)' [Point.as:406]
+PASSED: typeof(ret) == 'undefined' [Point.as:410]
+PASSED: p0.toString() == '(x=xa, y=yundefined)' [Point.as:411]
+PASSED: typeof(ret) == 'undefined' [Point.as:415]
+PASSED: p0.toString() == '(x=xa, y=yb)' [Point.as:416]
+PASSED: typeof(ret) == 'undefined' [Point.as:420]
+PASSED: p0.toString() == '(x=4-6, y=-3)' [Point.as:421]
+PASSED: ret.toString() == undefined [Point.as:427]
+PASSED: ! ret instanceof Point [Point.as:428]
+PASSED: p0 instanceof Point [Point.as:434]
+PASSED: p0.toString() == '(x=NaN, y=NaN)' [Point.as:435]
+PASSED: p0 instanceof Point [Point.as:438]
+PASSED: p0.toString() == '(x=NaN, y=NaN)' [Point.as:439]
+PASSED: p0 instanceof Point [Point.as:442]
+PASSED: p0.toString() == '(x=1, y=0)' [Point.as:443]
+PASSED: p0 instanceof Point [Point.as:446]
+PASSED: p0.x == -1 [Point.as:447]
+PASSED: Math.round(p0.y*100) == 0 [Point.as:448]
+PASSED: p0 instanceof Point [Point.as:451]
+PASSED: Math.round(p0.x*100) == 0 [Point.as:452]
+PASSED: p0.y == 1 [Point.as:453]
+PASSED: p0 instanceof Point [Point.as:456]
+PASSED: p0.x == 1 [Point.as:457]
+PASSED: Math.round(p0.y*100) == 0 [Point.as:458]
+PASSED: p0 instanceof Point [Point.as:461]
+PASSED: Math.round(p0.x*100) == 0 [Point.as:462]
+PASSED: p0.y == -1 [Point.as:463]
+PASSED: p0 instanceof Point [Point.as:466]
+PASSED: p0.x == 5 [Point.as:467]
+PASSED: p0.y == 0 [Point.as:468]
+PASSED: ret instanceof Point [Point.as:477]
+PASSED: p0.toString() == '(x=x, y=y)' [Point.as:478]
+PASSED: ret.toString() == '(x=NaN, y=NaN)' [Point.as:479]
+PASSED: ret instanceof Point [Point.as:483]
+PASSED: ret.toString() == '(x=NaN, y=NaN)' [Point.as:484]
+PASSED: p0.toString() == '(x=x, y=y)' [Point.as:485]
+PASSED: ret instanceof Point [Point.as:487]
+PASSED: ret.toString() == '(x=NaN, y=NaN)' [Point.as:488]
+PASSED: p0.toString() == '(x=x, y=y)' [Point.as:489]
+PASSED: ret instanceof Point [Point.as:494]
+PASSED: ret.toString() == '(x=NaN, y=NaN)' [Point.as:495]
+PASSED: p0.toString() == '(x=x, y=y)' [Point.as:496]
+PASSED: p1.toString() == '(x=x1, y=y1)' [Point.as:497]
+PASSED: ret.toString() == '(x=1, y=2)' [Point.as:502]
+PASSED: ret.toString() == '(x=1, y=2)' [Point.as:505]
+check_totals: 186
diff --git a/test/gnash/actionscript.all/Point.as b/test/gnash/actionscript.all/Point.as
new file mode 100644
index 0000000..efdd845
--- /dev/null
+++ b/test/gnash/actionscript.all/Point.as
@@ -0,0 +1,513 @@
+//
+// Copyright (C) 2008 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+//
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+// Test case for TextFormat ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+rcsid="$Id: Point.as,v 1.7 2008/06/19 11:49:17 bwy Exp $";
+
+#include "check.as"
+
+#if OUTPUT_VERSION < 8
+
+check_equals(typeof(flash), 'undefined');
+
+check_totals(1);
+
+#else
+
+Point = flash.geom.Point;
+check_equals(typeof(Point), 'function');
+check_equals(typeof(Point.prototype), 'object');
+check(Point.prototype.hasOwnProperty('length'));
+check(!Point.prototype.hasOwnProperty('x'));
+check(!Point.prototype.hasOwnProperty('y'));
+check(Point.prototype.hasOwnProperty('add'));
+check(Point.prototype.hasOwnProperty('clone'));
+check(!Point.prototype.hasOwnProperty('distance'));
+check(Point.hasOwnProperty('distance'));
+check(Point.prototype.hasOwnProperty('equals'));
+check(!Point.prototype.hasOwnProperty('interpolate'));
+check(Point.hasOwnProperty('interpolate'));
+check(Point.prototype.hasOwnProperty('normalize'));
+check(Point.prototype.hasOwnProperty('offset'));
+check(!Point.prototype.hasOwnProperty('polar'));
+check(Point.hasOwnProperty('polar'));
+check(Point.prototype.hasOwnProperty('subtract'));
+check(Point.prototype.hasOwnProperty('toString'));
+
+//-------------------------------------------------------------
+// Test constructor (and x, y, length)
+//-------------------------------------------------------------
+
+p0 = new Point();
+check_equals(typeof(p0), 'object');
+check(p0 instanceof Point);
+check(p0.hasOwnProperty('x'));
+check(p0.hasOwnProperty('y'));
+check_equals(''+p0, '(x=0, y=0)');
+check_equals(typeof(p0.x), 'number');
+check_equals(typeof(p0.y), 'number');
+check_equals(typeof(p0.length), 'number');
+check_equals(p0.length, 0);
+
+a = []; for (var i in p0) a.push(i);
+check_equals(a.length, 10); // most of them...
+
+p0 = new Point('x', 'y');
+check_equals(''+p0, '(x=x, y=y)');
+check_equals(typeof(p0.x), 'string');
+check_equals(typeof(p0.y), 'string');
+check_equals(typeof(p0.length), 'number');
+check(isNaN(p0.length));
+p0.x = 1;
+check(isNaN(p0.length));
+p0.y = 0;
+check_equals(p0.length, 1);
+
+p0 = new Point(3, 4);
+check_equals(p0.length, 5);
+
+ASSetPropFlags(p0, "length", 0, 4); // clear read-only (if any)
+p0.length = 10;
+check_equals(p0.length, 5);
+
+p0 = new Point(50, -Infinity);
+check_equals(p0.length, Infinity);
+
+p0 = new Point(0, 0);
+check_equals(p0.length, 0);
+
+//-------------------------------------------------------------
+// Test Point.add
+//-------------------------------------------------------------
+
+p0 = new Point('x', 'y');
+ret = p0.add();
+check(ret instanceof Point);
+check_equals(p0.toString(), '(x=x, y=y)');
+check_equals(ret.toString(), '(x=xundefined, y=yundefined)');
+String.prototype.x = 3; // to test it's used
+ret = p0.add('1');
+delete String.prototype.x;
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=x3, y=yundefined)');
+check_equals(p0.toString(), '(x=x, y=y)');
+ret = p0.add(1, '2');
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=xundefined, y=yundefined)');
+check_equals(p0.toString(), '(x=x, y=y)');
+
+p0 = new Point('x', 'y');
+p1 = new Point('x1', 'y1');
+ret = p0.add(p1);
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=xx1, y=yy1)');
+check_equals(p0.toString(), '(x=x, y=y)');
+check_equals(p1.toString(), '(x=x1, y=y1)');
+
+p0 = new Point(2, 3);
+p1 = { x:1, y:1 };
+ret = p0.add(p1);
+check_equals(ret.toString(), '(x=3, y=4)');
+
+ret = p0.add(p1, 4, 5, 6);
+check_equals(ret.toString(), '(x=3, y=4)');
+
+// A non-point with a point's add method.
+fakepoint = {x:20, y:30};
+fakepoint.add = Point.prototype.add;
+ret = fakepoint.add(p0);
+check_equals(ret.toString(), "(x=22, y=33)");
+check(ret instanceof Point);
+
+//-------------------------------------------------------------
+// Test Point.clone
+//-------------------------------------------------------------
+
+p0 = new Point(3, 4);
+p0.z = 5;
+p2 = p0.clone();
+check(p2 instanceof Point);
+check_equals(p2.toString(), "(x=3, y=4)");
+check_equals(typeof(p2.z), 'undefined');
+p2 = p0.clone(1, 2, 3);
+check(p2 instanceof Point);
+check_equals(p2.toString(), "(x=3, y=4)");
+
+// A non-point with a point's clone method.
+fakepoint = {x:20, y:30};
+fakepoint.clone = Point.prototype.clone;
+ret = fakepoint.clone(p0);
+check_equals(ret.toString(), "(x=20, y=30)");
+check(ret instanceof Point);
+
+//-------------------------------------------------------------
+// Test Point.distance (static)
+//-------------------------------------------------------------
+
+dist = Point.distance();
+check_equals(typeof(dist), 'undefined');
+
+dist = Point.distance(undefined);
+check_equals(typeof(dist), 'undefined');
+
+o0 = {x:10, y:1};
+o1 = {x:21, y:1};
+dist = Point.distance(o0, o1);
+check_equals(typeof(dist), 'undefined');
+
+p0 = new Point('x', 'y');
+p1 = new Point('a', 'b');
+dist = Point.distance(p0, p1);
+check_equals(typeof(dist), 'number');
+check(isNaN(dist));
+dist = p0.distance(p1);
+check_equals(typeof(dist), 'undefined');
+
+p0 = new Point('10', '20');
+p1 = new Point('10', 'y');
+dist = Point.distance(p0, p1);
+check_equals(typeof(dist), 'number');
+check(isNaN(dist));
+dist = p0.distance(p1);
+check_equals(typeof(dist), 'undefined');
+
+p0 = new Point('10', 'y');
+p1 = new Point('10', '20');
+dist = Point.distance(p0, p1);
+check_equals(typeof(dist), 'number');
+check(isNaN(dist));
+dist = p0.distance(p1);
+check_equals(typeof(dist), 'undefined');
+
+p0 = new Point('5', '4');
+p1 = new Point('4', '7');
+dist = Point.distance(p0, p1);
+check_equals(typeof(dist), 'number');
+check_equals(Math.round(dist*100), 316);
+dist = p0.distance(p1);
+check_equals(typeof(dist), 'undefined');
+
+p0 = new Point('1', '1');
+p1 = new Point('10', '1');
+dist = Point.distance(p0, p1);
+check_equals(typeof(dist), 'number');
+check_equals(dist, 9);
+
+// Doesn't matter if second arg is an instanceof Point
+dist = Point.distance(p0, o1);
+check_equals(typeof(dist), 'number');
+check_equals(dist, 20);
+
+// But first arg *must* be instanceof point !
+dist = Point.distance(o1, p0);
+check_equals(typeof(dist), 'undefined');
+o1.__proto__ = Point.prototype;
+dist = Point.distance(o1, p0);
+check_equals(dist, 20);
+
+//-------------------------------------------------------------
+// Test Point.equals
+//-------------------------------------------------------------
+
+o0 = {};
+o0.valueOf = function() { return 4; };
+o1 = {};
+o1.valueOf = function() { return 4; };
+
+p0 = new Point(3, o0);
+check(p0.equals(p0));
+
+p1 = new Point(3, o1);
+check(p1.equals(p1));
+
+check(p0 != p1);
+check_equals(p0.toString(), p1.toString());
+
+check(!p0.equals(p1));
+check(!p1.equals(p0));
+
+ret = p0.equals();
+check_equals(typeof(ret), 'boolean');
+check(!ret);
+
+p2 = new Point(3, o1);
+check(p1.equals(p2));
+// Equals doesn't return true if p2 isn't an point
+p2 = {x:3, y:o1};
+ret = p1.equals(p2);
+check_equals(typeof(ret), 'boolean');
+check(!ret);
+// But we can cheat ...
+p2.__proto__ = Point.prototype;
+check(p1.equals(p2));
+// ... even with double jump to get there ...
+o3 = {}; o3.prototype = {}; o3.prototype.__proto__ = Point.prototype;
+p2.__proto__ = o3.prototype;
+check(p1.equals(p2));
+// ... but not with syntetized objects ?
+String.prototype.x = 3;
+String.prototype.y = o1;
+String.prototype.__proto__ = Point.prototype;
+check(!p1.equals('string'));
+
+// A non-point with a point's equals method.
+fakepoint = {x:20, y:30};
+fakepoint.equals = Point.prototype.equals;
+ret = fakepoint.equals(new Point(20,30));
+check_equals(ret.toString(), "true");
+check_equals(typeof(ret), "boolean");
+
+//-------------------------------------------------------------
+// Test Point.interpolate (static)
+//-------------------------------------------------------------
+
+ret = Point.interpolate();
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=NaN, y=NaN)');
+
+ret = Point.interpolate(1, 2, 3);
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=NaN, y=NaN)');
+
+p0 = new Point('x0', 'y0');
+p1 = new Point('x1', 'y1');
+ret = Point.interpolate(p0, p1, 3);
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=x1NaN, y=y1NaN)');
+
+p0 = new Point('0', '0');
+p1 = new Point('10', '0');
+ret = Point.interpolate(p0, p1, 3);
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=10-30, y=00)');
+ret = Point.interpolate(p0, p1, 0);
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=100, y=00)');
+ret = Point.interpolate(p0, p1, 0.5);
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=10-5, y=00)');
+
+// second arg drives newAdd
+p0 = new Point(0, 0);
+p1 = new Point('10', '0');
+ret = Point.interpolate(p0, p1, 3);
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=10-30, y=00)');
+
+// second arg drives newAdd
+p0 = new Point('0', '0');
+p1 = new Point(10, 0);
+ret = Point.interpolate(p0, p1, 3);
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=-20, y=0)');
+
+p0 = new Point(0, 0);
+p1 = new Point(10, 0);
+ret = Point.interpolate(p0, p1, 0.5);
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=5, y=0)');
+
+p0 = new Point(0, 0);
+p1 = new Point(10, 0);
+ret = Point.interpolate(p0, p1, 1, 'discarder arg');
+check(ret.equals(p0));
+ret = Point.interpolate(p0, p1, 0);
+check(ret.equals(p1));
+ret = Point.interpolate(p0, p1);
+check_equals(ret.toString(), '(x=NaN, y=NaN)');
+
+o0 = {x:0, y:10};
+o1 = {x:10, y:0};
+ret = Point.interpolate(o0, o1, 1);
+check_equals(ret.toString(), '(x=0, y=10)');
+ret = Point.interpolate(o0, o1, 0);
+check_equals(ret.toString(), '(x=10, y=0)');
+ret = Point.interpolate(o0, o1, 0.5);
+check_equals(ret.toString(), '(x=5, y=5)');
+
+
+//-------------------------------------------------------------
+// Test Point.normalize
+//-------------------------------------------------------------
+
+p0 = new Point(0, 0);
+p1 = p0.clone();
+ret = p1.normalize();
+check_equals(typeof(ret), 'undefined');
+check(p1.equals(p0));
+
+p0 = new Point(0, 0);
+p1 = p0.clone();
+ret = p1.normalize(10);
+check_equals(typeof(ret), 'undefined');
+check(p1.equals(p0));
+
+p0 = new Point(10, 0);
+p1 = p0.clone();
+ret = p1.normalize(5);
+check_equals(typeof(ret), 'undefined');
+check_equals(p1.toString(), '(x=5, y=0)');
+
+p0 = new Point(0, 10);
+p1 = p0.clone();
+ret = p1.normalize(-5);
+check_equals(typeof(ret), 'undefined');
+check_equals(p1.toString(), '(x=0, y=-5)');
+
+p0 = new Point(3, -4);
+p1 = p0.clone();
+ret = p1.normalize(-10);
+check_equals(typeof(ret), 'undefined');
+check_equals(p1.toString(), '(x=-6, y=8)');
+
+p0 = new Point(-10, 0);
+p1 = p0.clone();
+ret = p1.normalize(5);
+check_equals(typeof(ret), 'undefined');
+check_equals(p1.toString(), '(x=-5, y=0)');
+
+p0 = new Point(-10, 0);
+p1 = p0.clone();
+ret = p1.normalize('r');
+check_equals(typeof(ret), 'undefined');
+check_equals(p1.toString(), '(x=NaN, y=NaN)');
+
+p0 = new Point('x', 'y');
+p1 = p0.clone();
+ret = p1.normalize(5);
+check_equals(typeof(ret), 'undefined');
+check_equals(p1.toString(), '(x=x, y=y)');
+
+//-------------------------------------------------------------
+// Test Point.offset
+//-------------------------------------------------------------
+
+p0 = new Point('x', 'y');
+ret = p0.offset();
+check_equals(typeof(ret), 'undefined');
+check_equals(p0.toString(), '(x=xundefined, y=yundefined)');
+
+p0 = new Point('x', 'y');
+ret = p0.offset('a');
+check_equals(typeof(ret), 'undefined');
+check_equals(p0.toString(), '(x=xa, y=yundefined)');
+
+p0 = new Point('x', 'y');
+ret = p0.offset('a', 'b', 3);
+check_equals(typeof(ret), 'undefined');
+check_equals(p0.toString(), '(x=xa, y=yb)');
+
+p0 = new Point(4, 5);
+ret = p0.offset('-6', -8);
+check_equals(typeof(ret), 'undefined');
+check_equals(p0.toString(), '(x=4-6, y=-3)');
+
+// A non-point with a point's offset method (fails)
+fakepoint = {x:20, y:30};
+fakepoint.offset = Point.prototype.offset;
+ret = fakepoint.offset(new Point(1, 3));
+check_equals(ret.toString(), undefined);
+check(! ret instanceof Point);
+//-------------------------------------------------------------
+// Test Point.polar (static)
+//-------------------------------------------------------------
+
+p0 = Point.polar();
+check(p0 instanceof Point);
+check_equals(p0.toString(), '(x=NaN, y=NaN)');
+
+p0 = Point.polar(1);
+check(p0 instanceof Point);
+check_equals(p0.toString(), '(x=NaN, y=NaN)');
+
+p0 = Point.polar(1, 0);
+check(p0 instanceof Point);
+check_equals(p0.toString(), '(x=1, y=0)');
+
+p0 = Point.polar(1, Math.PI);
+check(p0 instanceof Point);
+check_equals(p0.x, -1);
+check_equals(Math.round(p0.y*100), 0);
+
+p0 = Point.polar(1, Math.PI/2);
+check(p0 instanceof Point);
+check_equals(Math.round(p0.x*100), 0);
+check_equals(p0.y, 1);
+
+p0 = Point.polar(1, Math.PI*2);
+check(p0 instanceof Point);
+check_equals(p0.x, 1);
+check_equals(Math.round(p0.y*100), 0);
+
+p0 = Point.polar(1, Math.PI*1.5);
+check(p0 instanceof Point);
+check_equals(Math.round(p0.x*100), 0);
+check_equals(p0.y, -1);
+
+p0 = Point.polar('5', '0');
+check(p0 instanceof Point);
+check_equals(p0.x, 5);
+check_equals(p0.y, 0);
+
+
+//-------------------------------------------------------------
+// Test Point.subtract
+//-------------------------------------------------------------
+
+p0 = new Point('x', 'y');
+ret = p0.subtract();
+check(ret instanceof Point);
+check_equals(p0.toString(), '(x=x, y=y)');
+check_equals(ret.toString(), '(x=NaN, y=NaN)');
+String.prototype.x = 3; // to test it's used
+ret = p0.subtract('1');
+delete String.prototype.x;
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=NaN, y=NaN)');
+check_equals(p0.toString(), '(x=x, y=y)');
+ret = p0.subtract(1, '2');
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=NaN, y=NaN)');
+check_equals(p0.toString(), '(x=x, y=y)');
+
+p0 = new Point('x', 'y');
+p1 = new Point('x1', 'y1');
+ret = p0.subtract(p1);
+check(ret instanceof Point);
+check_equals(ret.toString(), '(x=NaN, y=NaN)');
+check_equals(p0.toString(), '(x=x, y=y)');
+check_equals(p1.toString(), '(x=x1, y=y1)');
+
+p0 = new Point(2, 3);
+p1 = { x:1, y:1 };
+ret = p0.subtract(p1);
+check_equals(ret.toString(), '(x=1, y=2)');
+
+ret = p0.subtract(p1, 4, 5, 6);
+check_equals(ret.toString(), '(x=1, y=2)');
+
+//-------------------------------------------------------------
+// END OF TEST
+//-------------------------------------------------------------
+
+check_totals(186);
+
+#endif // OUTPUT_VERSION >= 8
diff --git a/test/gnash/actionscript.all/README b/test/gnash/actionscript.all/README
new file mode 100644
index 0000000..7fc2f41
--- /dev/null
+++ b/test/gnash/actionscript.all/README
@@ -0,0 +1,18 @@
+The .as files, from Gnash's test suite's directory with same name, have been
+imported here and compiled using the following command line ($v is version):
+ makeswf -v $v -r 12 -s 640x480 -o Test-$v.swf Test.as
+
+check.as has been rewritten, so it performs a Swfdec style trace test mostly
+without modifications to the test scripts. Where modifications were needed, the
+original file is named .as.original and modified version just .as
+
+Various .as files were not needed, they are listed in the REMOVED
+
+Tests that are not working in Swfdec yet are in pending directory and are not
+included in make check
+
+Tests that are considered broken for some reason are not included. Most likely
+reason is producing FAIL or XFAIL on latest Adobe's Windows player
+
+The date when the tests were last imported/updated from Gnash's CVS repository
+can be found from UPDATED
diff --git a/test/gnash/actionscript.all/REMOVED b/test/gnash/actionscript.all/REMOVED
new file mode 100644
index 0000000..4be6af1
--- /dev/null
+++ b/test/gnash/actionscript.all/REMOVED
@@ -0,0 +1,7 @@
+CustomActions.as Doesn't test anything
+dejagnu.as Part of Gnash's test system that isn't used
+dejagnu_so_fini.as Ditto
+dejagnu_so_init.as Ditto
+rtmp.as Doesn't test anything
+rtrace.as PHP based report system
+xtrace.as Help function that isn't used
diff --git a/test/gnash/actionscript.all/Rectangle-5.swf b/test/gnash/actionscript.all/Rectangle-5.swf
new file mode 100644
index 0000000..73f259e
Binary files /dev/null and b/test/gnash/actionscript.all/Rectangle-5.swf differ
diff --git a/test/gnash/actionscript.all/Rectangle-5.swf.trace b/test/gnash/actionscript.all/Rectangle-5.swf.trace
new file mode 100644
index 0000000..9e5f289
--- /dev/null
+++ b/test/gnash/actionscript.all/Rectangle-5.swf.trace
@@ -0,0 +1,2 @@
+PASSED: typeof(flash) == 'undefined' [Rectangle.as:29]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/Rectangle-6.swf b/test/gnash/actionscript.all/Rectangle-6.swf
new file mode 100644
index 0000000..91c902d
Binary files /dev/null and b/test/gnash/actionscript.all/Rectangle-6.swf differ
diff --git a/test/gnash/actionscript.all/Rectangle-6.swf.trace b/test/gnash/actionscript.all/Rectangle-6.swf.trace
new file mode 100644
index 0000000..9e5f289
--- /dev/null
+++ b/test/gnash/actionscript.all/Rectangle-6.swf.trace
@@ -0,0 +1,2 @@
+PASSED: typeof(flash) == 'undefined' [Rectangle.as:29]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/Rectangle-7.swf b/test/gnash/actionscript.all/Rectangle-7.swf
new file mode 100644
index 0000000..c7d4210
Binary files /dev/null and b/test/gnash/actionscript.all/Rectangle-7.swf differ
diff --git a/test/gnash/actionscript.all/Rectangle-7.swf.trace b/test/gnash/actionscript.all/Rectangle-7.swf.trace
new file mode 100644
index 0000000..9e5f289
--- /dev/null
+++ b/test/gnash/actionscript.all/Rectangle-7.swf.trace
@@ -0,0 +1,2 @@
+PASSED: typeof(flash) == 'undefined' [Rectangle.as:29]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/Rectangle-8.swf b/test/gnash/actionscript.all/Rectangle-8.swf
new file mode 100644
index 0000000..f323cba
Binary files /dev/null and b/test/gnash/actionscript.all/Rectangle-8.swf differ
diff --git a/test/gnash/actionscript.all/Rectangle-8.swf.trace b/test/gnash/actionscript.all/Rectangle-8.swf.trace
new file mode 100644
index 0000000..8673144
--- /dev/null
+++ b/test/gnash/actionscript.all/Rectangle-8.swf.trace
@@ -0,0 +1,97 @@
+PASSED: typeof(Rectangle) == 'function' [Rectangle.as:36]
+PASSED: typeof(Rectangle.prototype) == 'object' [Rectangle.as:37]
+PASSED: Rectangle.prototype.hasOwnProperty('bottom') [Rectangle.as:38]
+PASSED: Rectangle.prototype.hasOwnProperty('bottomRight') [Rectangle.as:39]
+PASSED: Rectangle.prototype.hasOwnProperty('left') [Rectangle.as:40]
+PASSED: Rectangle.prototype.hasOwnProperty('right') [Rectangle.as:41]
+PASSED: Rectangle.prototype.hasOwnProperty('size') [Rectangle.as:42]
+PASSED: Rectangle.prototype.hasOwnProperty('top') [Rectangle.as:43]
+PASSED: Rectangle.prototype.hasOwnProperty('topLeft') [Rectangle.as:44]
+PASSED: Rectangle.prototype.hasOwnProperty('clone') [Rectangle.as:45]
+PASSED: Rectangle.prototype.hasOwnProperty('contains') [Rectangle.as:46]
+PASSED: Rectangle.prototype.hasOwnProperty('containsPoint') [Rectangle.as:47]
+PASSED: Rectangle.prototype.hasOwnProperty('containsRectangle') [Rectangle.as:48]
+PASSED: Rectangle.prototype.hasOwnProperty('equals') [Rectangle.as:49]
+PASSED: Rectangle.prototype.hasOwnProperty('inflate') [Rectangle.as:50]
+PASSED: Rectangle.prototype.hasOwnProperty('inflatePoint') [Rectangle.as:51]
+PASSED: Rectangle.prototype.hasOwnProperty('intersection') [Rectangle.as:52]
+PASSED: Rectangle.prototype.hasOwnProperty('intersects') [Rectangle.as:53]
+PASSED: Rectangle.prototype.hasOwnProperty('isEmpty') [Rectangle.as:54]
+PASSED: Rectangle.prototype.hasOwnProperty('offset') [Rectangle.as:55]
+PASSED: Rectangle.prototype.hasOwnProperty('offsetPoint') [Rectangle.as:56]
+PASSED: Rectangle.prototype.hasOwnProperty('setEmpty') [Rectangle.as:57]
+PASSED: Rectangle.prototype.hasOwnProperty('toString') [Rectangle.as:58]
+PASSED: Rectangle.prototype.hasOwnProperty('union') [Rectangle.as:59]
+PASSED: !Rectangle.prototype.hasOwnProperty('height') [Rectangle.as:60]
+PASSED: !Rectangle.prototype.hasOwnProperty('width') [Rectangle.as:61]
+PASSED: !Rectangle.prototype.hasOwnProperty('x') [Rectangle.as:62]
+PASSED: !Rectangle.prototype.hasOwnProperty('y') [Rectangle.as:63]
+PASSED: typeof(r0) == 'object' [Rectangle.as:70]
+PASSED: r0 instanceof Rectangle [Rectangle.as:71]
+PASSED: r0.hasOwnProperty('height') [Rectangle.as:72]
+PASSED: r0.hasOwnProperty('width') [Rectangle.as:73]
+PASSED: r0.hasOwnProperty('x') [Rectangle.as:74]
+PASSED: r0.hasOwnProperty('y') [Rectangle.as:75]
+PASSED: ''+r0 == '(x=0, y=0, w=0, h=0)' [Rectangle.as:76]
+PASSED: r0.isEmpty() [Rectangle.as:77]
+PASSED: typeof(r0.x) == 'number' [Rectangle.as:78]
+PASSED: typeof(r0.y) == 'number' [Rectangle.as:79]
+PASSED: typeof(r0.width) == 'number' [Rectangle.as:80]
+PASSED: typeof(r0.height) == 'number' [Rectangle.as:81]
+PASSED: a.length == 26 [Rectangle.as:84]
+PASSED: r0.hasOwnProperty('height') [Rectangle.as:87]
+PASSED: r0.hasOwnProperty('width') [Rectangle.as:88]
+PASSED: r0.hasOwnProperty('x') [Rectangle.as:89]
+PASSED: r0.hasOwnProperty('y') [Rectangle.as:90]
+PASSED: ''+r0 == '(x=1, y=undefined, w=undefined, h=undefined)' [Rectangle.as:91]
+PASSED: r0.isEmpty() [Rectangle.as:92]
+PASSED: ''+r0 == '(x=1, y=1, w=1, h=string)' [Rectangle.as:95]
+PASSED: r0.isEmpty() [Rectangle.as:96]
+PASSED: ''+r0 == '(x=a,3, y=1, w=-30, h=string)' [Rectangle.as:99]
+PASSED: r0.isEmpty() [Rectangle.as:100]
+PASSED: typeof(r0.width) == 'number' [Rectangle.as:101]
+PASSED: typeof(r0.height) == 'string' [Rectangle.as:102]
+PASSED: ''+r0 == '(x=0, y=0, w=2, h=null)' [Rectangle.as:106]
+PASSED: r0.isEmpty() [Rectangle.as:107]
+PASSED: typeof(r0.width) == 'object' [Rectangle.as:108]
+PASSED: typeof(r0.height) == 'null' [Rectangle.as:109]
+PASSED: ''+r0 == '(x=0, y=0, w=2, h=2)' [Rectangle.as:112]
+PASSED: r0.isEmpty() [Rectangle.as:113]
+PASSED: typeof(r0.width) == 'object' [Rectangle.as:114]
+PASSED: typeof(r0.height) == 'object' [Rectangle.as:115]
+PASSED: ''+r0 == '(x=string, y=0, w=2, h=2)' [Rectangle.as:118]
+PASSED: !r0.isEmpty() [Rectangle.as:119]
+PASSED: r0.x == 'string' [Rectangle.as:120]
+PASSED: r0.y == 0 [Rectangle.as:121]
+PASSED: r0.width == 2 [Rectangle.as:122]
+PASSED: r0.height == 2 [Rectangle.as:123]
+PASSED: ''+r0 == '(x=32, y=-30, w=40, h=string2)' [Rectangle.as:129]
+PASSED: delete r0.x [Rectangle.as:130]
+PASSED: ''+r0 == '(x=undefined, y=-30, w=40, h=string2)' [Rectangle.as:131]
+PASSED: r0.left == 'x' [Rectangle.as:138]
+PASSED: r0.top == 'y' [Rectangle.as:139]
+PASSED: r0.right == 'xw' [Rectangle.as:140]
+PASSED: r0.bottom == 'yh' [Rectangle.as:141]
+PASSED: r0.x == 10 [Rectangle.as:144]
+PASSED: r0.left == 10 [Rectangle.as:145]
+PASSED: r0.width == 'wNaN' [Rectangle.as:146]
+PASSED: r0.right == '10wNaN' [Rectangle.as:147]
+PASSED: r0.x == 10 [Rectangle.as:150]
+PASSED: typeof(r0.width) == 'number' [Rectangle.as:151]
+PASSED: r0.width == 10 [Rectangle.as:152]
+PASSED: r0.y == 5 [Rectangle.as:155]
+PASSED: r0.bottom == '5hNaN' [Rectangle.as:156]
+PASSED: r0.height == '5' [Rectangle.as:158]
+PASSED: r0.width == 15 [Rectangle.as:162]
+PASSED: r0.bottomRight instanceof flash.geom.Point [Rectangle.as:169]
+PASSED: r0.topLeft instanceof flash.geom.Point [Rectangle.as:170]
+PASSED: ''+r0.bottomRight == '(x=xw, y=yh)' [Rectangle.as:171]
+PASSED: ''+r0.topLeft == '(x=x, y=y)' [Rectangle.as:172]
+PASSED: typeof(r0.bottomRight) == 'object' [Rectangle.as:176]
+PASSED: typeof(r0.topLeft) == 'object' [Rectangle.as:180]
+PASSED: r0.size instanceof flash.geom.Point [Rectangle.as:187]
+PASSED: ''+r0.size == '(x=w, y=h)' [Rectangle.as:188]
+PASSED: typeof(r0.topLeft) == 'object' [Rectangle.as:191]
+PASSED: r2.toString() == '(x=x, y=y, w=w, h=h)' [Rectangle.as:200]
+PASSED: r2.custom == undefined [Rectangle.as:201]
+check_totals: 96
diff --git a/test/gnash/actionscript.all/Rectangle.as b/test/gnash/actionscript.all/Rectangle.as
new file mode 100644
index 0000000..266d311
--- /dev/null
+++ b/test/gnash/actionscript.all/Rectangle.as
@@ -0,0 +1,281 @@
+//
+// Copyright (C) 2008 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+//
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+// Test case for TextFormat ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+rcsid="$Id: Rectangle.as,v 1.2 2008/05/07 08:03:40 strk Exp $";
+
+#include "check.as"
+
+#if OUTPUT_VERSION < 8
+
+check_equals(typeof(flash), 'undefined');
+
+check_totals(1);
+
+#else
+
+Rectangle = flash.geom.Rectangle;
+check_equals(typeof(Rectangle), 'function');
+check_equals(typeof(Rectangle.prototype), 'object');
+check(Rectangle.prototype.hasOwnProperty('bottom'));
+check(Rectangle.prototype.hasOwnProperty('bottomRight'));
+check(Rectangle.prototype.hasOwnProperty('left'));
+check(Rectangle.prototype.hasOwnProperty('right'));
+check(Rectangle.prototype.hasOwnProperty('size'));
+check(Rectangle.prototype.hasOwnProperty('top'));
+check(Rectangle.prototype.hasOwnProperty('topLeft'));
+check(Rectangle.prototype.hasOwnProperty('clone'));
+check(Rectangle.prototype.hasOwnProperty('contains'));
+check(Rectangle.prototype.hasOwnProperty('containsPoint'));
+check(Rectangle.prototype.hasOwnProperty('containsRectangle'));
+check(Rectangle.prototype.hasOwnProperty('equals'));
+check(Rectangle.prototype.hasOwnProperty('inflate'));
+check(Rectangle.prototype.hasOwnProperty('inflatePoint'));
+check(Rectangle.prototype.hasOwnProperty('intersection'));
+check(Rectangle.prototype.hasOwnProperty('intersects'));
+check(Rectangle.prototype.hasOwnProperty('isEmpty'));
+check(Rectangle.prototype.hasOwnProperty('offset'));
+check(Rectangle.prototype.hasOwnProperty('offsetPoint'));
+check(Rectangle.prototype.hasOwnProperty('setEmpty'));
+check(Rectangle.prototype.hasOwnProperty('toString'));
+check(Rectangle.prototype.hasOwnProperty('union'));
+check(!Rectangle.prototype.hasOwnProperty('height'));
+check(!Rectangle.prototype.hasOwnProperty('width'));
+check(!Rectangle.prototype.hasOwnProperty('x'));
+check(!Rectangle.prototype.hasOwnProperty('y'));
+
+//-------------------------------------------------------------
+// Test constructor (and width, height, x, y)
+//-------------------------------------------------------------
+
+r0 = new Rectangle();
+check_equals(typeof(r0), 'object');
+check(r0 instanceof Rectangle);
+check(r0.hasOwnProperty('height'));
+check(r0.hasOwnProperty('width'));
+check(r0.hasOwnProperty('x'));
+check(r0.hasOwnProperty('y'));
+check_equals(''+r0, '(x=0, y=0, w=0, h=0)');
+check(r0.isEmpty());
+check_equals(typeof(r0.x), 'number');
+check_equals(typeof(r0.y), 'number');
+check_equals(typeof(r0.width), 'number');
+check_equals(typeof(r0.height), 'number');
+
+a = []; for (var i in r0) a.push(i);
+check_equals(a.length, 26); // most of them...
+
+r0 = new Rectangle(1);
+check(r0.hasOwnProperty('height'));
+check(r0.hasOwnProperty('width'));
+check(r0.hasOwnProperty('x'));
+check(r0.hasOwnProperty('y'));
+check_equals(''+r0, '(x=1, y=undefined, w=undefined, h=undefined)');
+check(r0.isEmpty());
+
+r0 = new Rectangle(1, 1, 1, 'string');
+check_equals(''+r0, '(x=1, y=1, w=1, h=string)');
+check(r0.isEmpty());
+
+r0 = new Rectangle(['a',3], 1, -30, 'string');
+check_equals(''+r0, '(x=a,3, y=1, w=-30, h=string)');
+check(r0.isEmpty());
+check_equals(typeof(r0.width), 'number');
+check_equals(typeof(r0.height), 'string');
+
+o1 = {}; o1.toString = function() { return '2'; };
+r0 = new Rectangle(0, 0, o1, null);
+check_equals(''+r0, '(x=0, y=0, w=2, h=null)');
+check(r0.isEmpty());
+check_equals(typeof(r0.width), 'object');
+check_equals(typeof(r0.height), 'null');
+
+r0 = new Rectangle(0, 0, o1, o1);
+check_equals(''+r0, '(x=0, y=0, w=2, h=2)');
+check(r0.isEmpty()); // but it's still considered empty!
+check_equals(typeof(r0.width), 'object');
+check_equals(typeof(r0.height), 'object');
+
+r0 = new Rectangle('string', 0, 2, 2);
+check_equals(''+r0, '(x=string, y=0, w=2, h=2)');
+check(!r0.isEmpty()); // just checks width and height
+check_equals(r0.x, 'string');
+check_equals(r0.y, 0);
+check_equals(r0.width, 2);
+check_equals(r0.height, 2);
+
+r0.width = 40;
+r0.height = 'string2';
+r0.x = 32;
+r0.y = -30;
+check_equals(''+r0, '(x=32, y=-30, w=40, h=string2)');
+check(delete r0.x);
+check_equals(''+r0, '(x=undefined, y=-30, w=40, h=string2)');
+
+//-------------------------------------------------------------
+// Test bottom, right, left top
+//-------------------------------------------------------------
+
+r0 = new Rectangle('x', 'y', 'w', 'h');
+check_equals(r0.left, 'x');
+check_equals(r0.top, 'y');
+check_equals(r0.right, 'xw');
+check_equals(r0.bottom, 'yh');
+
+r0.left = 10;
+check_equals(r0.x, 10);
+check_equals(r0.left, 10);
+check_equals(r0.width, 'wNaN'); // w + old_x-10 ?
+check_equals(r0.right, '10wNaN');
+
+r0.right = 20;
+check_equals(r0.x, 10);
+check_equals(typeof(r0.width), 'number');
+check_equals(r0.width, 10); // right-left
+
+r0.top = 5;
+check_equals(r0.y, 5);
+check_equals(r0.bottom, '5hNaN');
+r0.bottom = 10;
+check_equals(r0.height, '5'); // 10-5
+
+r0 = new Rectangle(10, 10, 20, 20);
+r0.left = 15;
+check_equals(r0.width, 15); // old width (20) + ( old left (10) - new left (15) )
+
+//-------------------------------------------------------------
+// Test bottomRight, topLeft
+//-------------------------------------------------------------
+
+r0 = new Rectangle('x', 'y', 'w', 'h');
+check(r0.bottomRight instanceof flash.geom.Point);
+check(r0.topLeft instanceof flash.geom.Point);
+check_equals(''+r0.bottomRight, '(x=xw, y=yh)');
+check_equals(''+r0.topLeft, '(x=x, y=y)');
+
+ASSetPropFlags(r0, "bottomRight", 0, 4); // clear read-only (if any)
+r0.bottomRight = 4;
+check_equals(typeof(r0.bottomRight), 'object');
+
+ASSetPropFlags(r0, "topLeft", 0, 4); // clear read-only (if any)
+r0.topLeft = 4;
+check_equals(typeof(r0.topLeft), 'object');
+
+//-------------------------------------------------------------
+// Test size
+//-------------------------------------------------------------
+
+r0 = new Rectangle('x', 'y', 'w', 'h');
+check(r0.size instanceof flash.geom.Point);
+check_equals(''+r0.size, '(x=w, y=h)');
+ASSetPropFlags(r0, "size", 0, 4); // clear read-only (if any)
+r0.size = 4;
+check_equals(typeof(r0.topLeft), 'object');
+
+//-------------------------------------------------------------
+// Test clone
+//-------------------------------------------------------------
+
+r0 = new Rectangle('x', 'y', 'w', 'h');
+r0.custom = 4;
+r2 = r0.clone();
+check_equals(r2.toString(), '(x=x, y=y, w=w, h=h)');
+check_equals(r2.custom, undefined);
+
+//-------------------------------------------------------------
+// Test contains
+//-------------------------------------------------------------
+
+// TODO
+
+//-------------------------------------------------------------
+// Test containsPoint
+//-------------------------------------------------------------
+
+// TODO
+
+//-------------------------------------------------------------
+// Test containsRectangle
+//-------------------------------------------------------------
+
+// TODO
+
+//-------------------------------------------------------------
+// Test equals
+//-------------------------------------------------------------
+
+// TODO
+
+//-------------------------------------------------------------
+// Test inflate
+//-------------------------------------------------------------
+
+// TODO
+
+//-------------------------------------------------------------
+// Test inflatePoint
+//-------------------------------------------------------------
+
+// TODO
+
+//-------------------------------------------------------------
+// Test intersection
+//-------------------------------------------------------------
+
+// TODO
+
+//-------------------------------------------------------------
+// Test intersects
+//-------------------------------------------------------------
+
+// TODO
+
+//-------------------------------------------------------------
+// Test offset
+//-------------------------------------------------------------
+
+// TODO
+
+//-------------------------------------------------------------
+// Test offsetPoint
+//-------------------------------------------------------------
+
+// TODO
+
+//-------------------------------------------------------------
+// Test setEmpty
+//-------------------------------------------------------------
+
+// TODO
+
+//-------------------------------------------------------------
+// Test union
+//-------------------------------------------------------------
+
+// TODO
+
+//-------------------------------------------------------------
+// END OF TEST
+//-------------------------------------------------------------
+
+check_totals(96);
+
+#endif // OUTPUT_VERSION >= 8
diff --git a/test/gnash/actionscript.all/Selection-5.swf b/test/gnash/actionscript.all/Selection-5.swf
new file mode 100644
index 0000000..ef15f9a
Binary files /dev/null and b/test/gnash/actionscript.all/Selection-5.swf differ
diff --git a/test/gnash/actionscript.all/Selection-5.swf.trace b/test/gnash/actionscript.all/Selection-5.swf.trace
new file mode 100644
index 0000000..f3db561
--- /dev/null
+++ b/test/gnash/actionscript.all/Selection-5.swf.trace
@@ -0,0 +1,9 @@
+PASSED: typeof(Selection) == 'object' [Selection.as:31]
+PASSED: typeof(selectionObj) == 'undefined' [Selection.as:35]
+PASSED: typeof(Selection.getBeginIndex) == 'function' [Selection.as:38]
+PASSED: typeof(Selection.getCaretIndex) == 'function' [Selection.as:41]
+PASSED: typeof(Selection.getEndIndex) == 'function' [Selection.as:44]
+PASSED: typeof(Selection.getFocus) == 'function' [Selection.as:47]
+PASSED: typeof(Selection.setFocus) == 'function' [Selection.as:50]
+PASSED: typeof(Selection.setSelection) == 'function' [Selection.as:53]
+totals
diff --git a/test/gnash/actionscript.all/Selection-6.swf b/test/gnash/actionscript.all/Selection-6.swf
new file mode 100644
index 0000000..00581ee
Binary files /dev/null and b/test/gnash/actionscript.all/Selection-6.swf differ
diff --git a/test/gnash/actionscript.all/Selection-6.swf.trace b/test/gnash/actionscript.all/Selection-6.swf.trace
new file mode 100644
index 0000000..7d43382
--- /dev/null
+++ b/test/gnash/actionscript.all/Selection-6.swf.trace
@@ -0,0 +1,15 @@
+PASSED: typeof(Selection) == 'object' [Selection.as:31]
+PASSED: typeof(selectionObj) == 'undefined' [Selection.as:35]
+PASSED: typeof(Selection.getBeginIndex) == 'function' [Selection.as:38]
+PASSED: typeof(Selection.getCaretIndex) == 'function' [Selection.as:41]
+PASSED: typeof(Selection.getEndIndex) == 'function' [Selection.as:44]
+PASSED: typeof(Selection.getFocus) == 'function' [Selection.as:47]
+PASSED: typeof(Selection.setFocus) == 'function' [Selection.as:50]
+PASSED: typeof(Selection.setSelection) == 'function' [Selection.as:53]
+PASSED: typeof(Selection.addListener) == 'function' [Selection.as:60]
+PASSED: typeof(Selection.removeListener) == 'function' [Selection.as:61]
+XPASSED: typeof(Selection.broadcastMessage) == 'function' [Selection.as:62]
+XPASSED: Selection.hasOwnProperty("_listeners") [Selection.as:63]
+XPASSED: typeof(Selection._listeners) == 'object' [Selection.as:64]
+XPASSED: Selection._listeners instanceof Array [Selection.as:65]
+totals
diff --git a/test/gnash/actionscript.all/Selection-7.swf b/test/gnash/actionscript.all/Selection-7.swf
new file mode 100644
index 0000000..59b0214
Binary files /dev/null and b/test/gnash/actionscript.all/Selection-7.swf differ
diff --git a/test/gnash/actionscript.all/Selection-7.swf.trace b/test/gnash/actionscript.all/Selection-7.swf.trace
new file mode 100644
index 0000000..7d43382
--- /dev/null
+++ b/test/gnash/actionscript.all/Selection-7.swf.trace
@@ -0,0 +1,15 @@
+PASSED: typeof(Selection) == 'object' [Selection.as:31]
+PASSED: typeof(selectionObj) == 'undefined' [Selection.as:35]
+PASSED: typeof(Selection.getBeginIndex) == 'function' [Selection.as:38]
+PASSED: typeof(Selection.getCaretIndex) == 'function' [Selection.as:41]
+PASSED: typeof(Selection.getEndIndex) == 'function' [Selection.as:44]
+PASSED: typeof(Selection.getFocus) == 'function' [Selection.as:47]
+PASSED: typeof(Selection.setFocus) == 'function' [Selection.as:50]
+PASSED: typeof(Selection.setSelection) == 'function' [Selection.as:53]
+PASSED: typeof(Selection.addListener) == 'function' [Selection.as:60]
+PASSED: typeof(Selection.removeListener) == 'function' [Selection.as:61]
+XPASSED: typeof(Selection.broadcastMessage) == 'function' [Selection.as:62]
+XPASSED: Selection.hasOwnProperty("_listeners") [Selection.as:63]
+XPASSED: typeof(Selection._listeners) == 'object' [Selection.as:64]
+XPASSED: Selection._listeners instanceof Array [Selection.as:65]
+totals
diff --git a/test/gnash/actionscript.all/Selection-8.swf b/test/gnash/actionscript.all/Selection-8.swf
new file mode 100644
index 0000000..cc67c51
Binary files /dev/null and b/test/gnash/actionscript.all/Selection-8.swf differ
diff --git a/test/gnash/actionscript.all/Selection-8.swf.trace b/test/gnash/actionscript.all/Selection-8.swf.trace
new file mode 100644
index 0000000..7d43382
--- /dev/null
+++ b/test/gnash/actionscript.all/Selection-8.swf.trace
@@ -0,0 +1,15 @@
+PASSED: typeof(Selection) == 'object' [Selection.as:31]
+PASSED: typeof(selectionObj) == 'undefined' [Selection.as:35]
+PASSED: typeof(Selection.getBeginIndex) == 'function' [Selection.as:38]
+PASSED: typeof(Selection.getCaretIndex) == 'function' [Selection.as:41]
+PASSED: typeof(Selection.getEndIndex) == 'function' [Selection.as:44]
+PASSED: typeof(Selection.getFocus) == 'function' [Selection.as:47]
+PASSED: typeof(Selection.setFocus) == 'function' [Selection.as:50]
+PASSED: typeof(Selection.setSelection) == 'function' [Selection.as:53]
+PASSED: typeof(Selection.addListener) == 'function' [Selection.as:60]
+PASSED: typeof(Selection.removeListener) == 'function' [Selection.as:61]
+XPASSED: typeof(Selection.broadcastMessage) == 'function' [Selection.as:62]
+XPASSED: Selection.hasOwnProperty("_listeners") [Selection.as:63]
+XPASSED: typeof(Selection._listeners) == 'object' [Selection.as:64]
+XPASSED: Selection._listeners instanceof Array [Selection.as:65]
+totals
diff --git a/test/gnash/actionscript.all/Selection.as b/test/gnash/actionscript.all/Selection.as
new file mode 100644
index 0000000..c30758d
--- /dev/null
+++ b/test/gnash/actionscript.all/Selection.as
@@ -0,0 +1,69 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+// Test case for Selection ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: Selection.as,v 1.15 2008/03/11 19:31:48 strk Exp $";
+#include "check.as"
+
+//-------------------------------
+// Selection was added in SWF5
+//-------------------------------
+
+check_equals (typeof(Selection), 'object');
+
+// Selection is an obect, not a class !
+var selectionObj = new Selection;
+check_equals (typeof(selectionObj), 'undefined');
+
+// test the Selection::getbeginindex method
+check_equals (typeof(Selection.getBeginIndex), 'function');
+
+// test the Selection::getcaretindex method
+check_equals (typeof(Selection.getCaretIndex), 'function');
+
+// test the Selection::getendindex method
+check_equals (typeof(Selection.getEndIndex), 'function');
+
+// test the Selection::getfocus method
+check_equals (typeof(Selection.getFocus), 'function');
+
+// test the Selection::setfocus method
+check_equals (typeof(Selection.setFocus), 'function');
+
+// test the Selection::setSelection method
+check_equals (typeof(Selection.setSelection), 'function');
+
+// Methods added in version 6
+#if OUTPUT_VERSION >= 6
+
+ // Selection was implicitly initialized by ASBroadcaster.initialize !
+ // See http://www.senocular.com/flash/tutorials/listenersasbroadcaster/?page=2
+ check_equals (typeof(Selection.addListener), 'function');
+ check_equals (typeof(Selection.removeListener), 'function');
+ xcheck_equals(typeof(Selection.broadcastMessage), 'function');
+ xcheck(Selection.hasOwnProperty("_listeners"));
+ xcheck_equals(typeof(Selection._listeners), 'object');
+ xcheck(Selection._listeners instanceof Array);
+
+#endif // OUTPUT_VERSION >= 6
+
+totals();
diff --git a/test/gnash/actionscript.all/TextFormat-5.swf b/test/gnash/actionscript.all/TextFormat-5.swf
new file mode 100644
index 0000000..33d7877
Binary files /dev/null and b/test/gnash/actionscript.all/TextFormat-5.swf differ
diff --git a/test/gnash/actionscript.all/TextFormat-5.swf.trace b/test/gnash/actionscript.all/TextFormat-5.swf.trace
new file mode 100644
index 0000000..96b0ef1
--- /dev/null
+++ b/test/gnash/actionscript.all/TextFormat-5.swf.trace
@@ -0,0 +1,64 @@
+PASSED: typeof(TextFormat) == 'function' [TextFormat.as:29]
+PASSED: typeof(TextFormat.prototype) == 'object' [TextFormat.as:30]
+PASSED: typeof(tfObj) == 'object' [TextFormat.as:32]
+PASSED: tfObj instanceof TextFormat [TextFormat.as:33]
+PASSED: TextFormat.prototype.hasOwnProperty('display') [TextFormat.as:37]
+PASSED: TextFormat.prototype.hasOwnProperty('bullet') [TextFormat.as:38]
+PASSED: TextFormat.prototype.hasOwnProperty('tabStops') [TextFormat.as:39]
+PASSED: TextFormat.prototype.hasOwnProperty('blockIndent') [TextFormat.as:40]
+PASSED: TextFormat.prototype.hasOwnProperty('leading') [TextFormat.as:41]
+PASSED: TextFormat.prototype.hasOwnProperty('indent') [TextFormat.as:42]
+PASSED: TextFormat.prototype.hasOwnProperty('rightMargin') [TextFormat.as:43]
+PASSED: TextFormat.prototype.hasOwnProperty('leftMargin') [TextFormat.as:44]
+PASSED: TextFormat.prototype.hasOwnProperty('align') [TextFormat.as:45]
+PASSED: TextFormat.prototype.hasOwnProperty('underline') [TextFormat.as:46]
+PASSED: TextFormat.prototype.hasOwnProperty('italic') [TextFormat.as:47]
+PASSED: TextFormat.prototype.hasOwnProperty('bold') [TextFormat.as:48]
+PASSED: TextFormat.prototype.hasOwnProperty('target') [TextFormat.as:49]
+PASSED: TextFormat.prototype.hasOwnProperty('url') [TextFormat.as:50]
+PASSED: TextFormat.prototype.hasOwnProperty('color') [TextFormat.as:51]
+PASSED: TextFormat.prototype.hasOwnProperty('size') [TextFormat.as:52]
+PASSED: TextFormat.prototype.hasOwnProperty('font') [TextFormat.as:53]
+PASSED: !TextFormat.prototype.hasOwnProperty('getTextExtent') [TextFormat.as:54]
+PASSED: tfObj.hasOwnProperty('getTextExtent') [TextFormat.as:55]
+XPASSED: typeof(tfObj.display) == 'string' [TextFormat.as:61]
+XPASSED: tfObj.display == 'block' [TextFormat.as:62]
+PASSED: typeof(tfObj.bullet) == 'null' [TextFormat.as:63]
+XPASSED: typeof(tfObj.tabStops) == 'null' [TextFormat.as:64]
+PASSED: typeof(tfObj.blockIndent) == 'null' [TextFormat.as:65]
+PASSED: typeof(tfObj.leading) == 'null' [TextFormat.as:66]
+PASSED: typeof(tfObj.indent) == 'null' [TextFormat.as:67]
+PASSED: typeof(tfObj.rightMargin) == 'null' [TextFormat.as:68]
+PASSED: typeof(tfObj.leftMargin) == 'null' [TextFormat.as:69]
+PASSED: typeof(tfObj.align) == 'null' [TextFormat.as:70]
+PASSED: typeof(tfObj.underline) == 'null' [TextFormat.as:71]
+PASSED: typeof(tfObj.italic) == 'null' [TextFormat.as:72]
+PASSED: typeof(tfObj.bold) == 'null' [TextFormat.as:73]
+XPASSED: typeof(tfObj.target) == 'null' [TextFormat.as:74]
+XPASSED: typeof(tfObj.url) == 'null' [TextFormat.as:75]
+PASSED: typeof(tfObj.color) == 'null' [TextFormat.as:76]
+PASSED: typeof(tfObj.size) == 'null' [TextFormat.as:77]
+PASSED: typeof(tfObj.font) == 'null' [TextFormat.as:78]
+PASSED: typeof(tfObj.getTextExtent) == 'function' [TextFormat.as:79]
+XPASSED: typeof(tfObj.display) == 'string' [TextFormat.as:83]
+XPASSED: tfObj.display == 'block' [TextFormat.as:84]
+PASSED: typeof(tfObj.bullet) == 'null' [TextFormat.as:85]
+XPASSED: typeof(tfObj.tabStops) == 'null' [TextFormat.as:86]
+PASSED: typeof(tfObj.blockIndent) == 'null' [TextFormat.as:87]
+PASSED: tfObj.leading == 4 [TextFormat.as:88]
+PASSED: tfObj.indent == 12 [TextFormat.as:89]
+PASSED: typeof(tfObj.rightMargin) == 'number' [TextFormat.as:90]
+PASSED: tfObj.rightMargin == 32 [TextFormat.as:91]
+PASSED: typeof(tfObj.leftMargin) == 'number' [TextFormat.as:92]
+PASSED: tfObj.leftMargin == 23 [TextFormat.as:93]
+PASSED: tfObj.align == 'center' [TextFormat.as:94]
+XPASSED: tfObj.target == 'tgt' [TextFormat.as:95]
+XPASSED: tfObj.url == 'http' [TextFormat.as:96]
+PASSED: tfObj.underline == true [TextFormat.as:97]
+PASSED: typeof(tfObj.italic) == 'boolean' [TextFormat.as:98]
+PASSED: tfObj.italic == false [TextFormat.as:99]
+PASSED: tfObj.bold == true [TextFormat.as:100]
+PASSED: tfObj.color == 30 [TextFormat.as:101]
+PASSED: tfObj.size == 2 [TextFormat.as:102]
+PASSED: tfObj.font == 'fname' [TextFormat.as:103]
+check_totals: 63
diff --git a/test/gnash/actionscript.all/TextFormat-6.swf b/test/gnash/actionscript.all/TextFormat-6.swf
new file mode 100644
index 0000000..010bd74
Binary files /dev/null and b/test/gnash/actionscript.all/TextFormat-6.swf differ
diff --git a/test/gnash/actionscript.all/TextFormat-6.swf.trace b/test/gnash/actionscript.all/TextFormat-6.swf.trace
new file mode 100644
index 0000000..96b0ef1
--- /dev/null
+++ b/test/gnash/actionscript.all/TextFormat-6.swf.trace
@@ -0,0 +1,64 @@
+PASSED: typeof(TextFormat) == 'function' [TextFormat.as:29]
+PASSED: typeof(TextFormat.prototype) == 'object' [TextFormat.as:30]
+PASSED: typeof(tfObj) == 'object' [TextFormat.as:32]
+PASSED: tfObj instanceof TextFormat [TextFormat.as:33]
+PASSED: TextFormat.prototype.hasOwnProperty('display') [TextFormat.as:37]
+PASSED: TextFormat.prototype.hasOwnProperty('bullet') [TextFormat.as:38]
+PASSED: TextFormat.prototype.hasOwnProperty('tabStops') [TextFormat.as:39]
+PASSED: TextFormat.prototype.hasOwnProperty('blockIndent') [TextFormat.as:40]
+PASSED: TextFormat.prototype.hasOwnProperty('leading') [TextFormat.as:41]
+PASSED: TextFormat.prototype.hasOwnProperty('indent') [TextFormat.as:42]
+PASSED: TextFormat.prototype.hasOwnProperty('rightMargin') [TextFormat.as:43]
+PASSED: TextFormat.prototype.hasOwnProperty('leftMargin') [TextFormat.as:44]
+PASSED: TextFormat.prototype.hasOwnProperty('align') [TextFormat.as:45]
+PASSED: TextFormat.prototype.hasOwnProperty('underline') [TextFormat.as:46]
+PASSED: TextFormat.prototype.hasOwnProperty('italic') [TextFormat.as:47]
+PASSED: TextFormat.prototype.hasOwnProperty('bold') [TextFormat.as:48]
+PASSED: TextFormat.prototype.hasOwnProperty('target') [TextFormat.as:49]
+PASSED: TextFormat.prototype.hasOwnProperty('url') [TextFormat.as:50]
+PASSED: TextFormat.prototype.hasOwnProperty('color') [TextFormat.as:51]
+PASSED: TextFormat.prototype.hasOwnProperty('size') [TextFormat.as:52]
+PASSED: TextFormat.prototype.hasOwnProperty('font') [TextFormat.as:53]
+PASSED: !TextFormat.prototype.hasOwnProperty('getTextExtent') [TextFormat.as:54]
+PASSED: tfObj.hasOwnProperty('getTextExtent') [TextFormat.as:55]
+XPASSED: typeof(tfObj.display) == 'string' [TextFormat.as:61]
+XPASSED: tfObj.display == 'block' [TextFormat.as:62]
+PASSED: typeof(tfObj.bullet) == 'null' [TextFormat.as:63]
+XPASSED: typeof(tfObj.tabStops) == 'null' [TextFormat.as:64]
+PASSED: typeof(tfObj.blockIndent) == 'null' [TextFormat.as:65]
+PASSED: typeof(tfObj.leading) == 'null' [TextFormat.as:66]
+PASSED: typeof(tfObj.indent) == 'null' [TextFormat.as:67]
+PASSED: typeof(tfObj.rightMargin) == 'null' [TextFormat.as:68]
+PASSED: typeof(tfObj.leftMargin) == 'null' [TextFormat.as:69]
+PASSED: typeof(tfObj.align) == 'null' [TextFormat.as:70]
+PASSED: typeof(tfObj.underline) == 'null' [TextFormat.as:71]
+PASSED: typeof(tfObj.italic) == 'null' [TextFormat.as:72]
+PASSED: typeof(tfObj.bold) == 'null' [TextFormat.as:73]
+XPASSED: typeof(tfObj.target) == 'null' [TextFormat.as:74]
+XPASSED: typeof(tfObj.url) == 'null' [TextFormat.as:75]
+PASSED: typeof(tfObj.color) == 'null' [TextFormat.as:76]
+PASSED: typeof(tfObj.size) == 'null' [TextFormat.as:77]
+PASSED: typeof(tfObj.font) == 'null' [TextFormat.as:78]
+PASSED: typeof(tfObj.getTextExtent) == 'function' [TextFormat.as:79]
+XPASSED: typeof(tfObj.display) == 'string' [TextFormat.as:83]
+XPASSED: tfObj.display == 'block' [TextFormat.as:84]
+PASSED: typeof(tfObj.bullet) == 'null' [TextFormat.as:85]
+XPASSED: typeof(tfObj.tabStops) == 'null' [TextFormat.as:86]
+PASSED: typeof(tfObj.blockIndent) == 'null' [TextFormat.as:87]
+PASSED: tfObj.leading == 4 [TextFormat.as:88]
+PASSED: tfObj.indent == 12 [TextFormat.as:89]
+PASSED: typeof(tfObj.rightMargin) == 'number' [TextFormat.as:90]
+PASSED: tfObj.rightMargin == 32 [TextFormat.as:91]
+PASSED: typeof(tfObj.leftMargin) == 'number' [TextFormat.as:92]
+PASSED: tfObj.leftMargin == 23 [TextFormat.as:93]
+PASSED: tfObj.align == 'center' [TextFormat.as:94]
+XPASSED: tfObj.target == 'tgt' [TextFormat.as:95]
+XPASSED: tfObj.url == 'http' [TextFormat.as:96]
+PASSED: tfObj.underline == true [TextFormat.as:97]
+PASSED: typeof(tfObj.italic) == 'boolean' [TextFormat.as:98]
+PASSED: tfObj.italic == false [TextFormat.as:99]
+PASSED: tfObj.bold == true [TextFormat.as:100]
+PASSED: tfObj.color == 30 [TextFormat.as:101]
+PASSED: tfObj.size == 2 [TextFormat.as:102]
+PASSED: tfObj.font == 'fname' [TextFormat.as:103]
+check_totals: 63
diff --git a/test/gnash/actionscript.all/TextFormat-7.swf b/test/gnash/actionscript.all/TextFormat-7.swf
new file mode 100644
index 0000000..c22ad55
Binary files /dev/null and b/test/gnash/actionscript.all/TextFormat-7.swf differ
diff --git a/test/gnash/actionscript.all/TextFormat-7.swf.trace b/test/gnash/actionscript.all/TextFormat-7.swf.trace
new file mode 100644
index 0000000..96b0ef1
--- /dev/null
+++ b/test/gnash/actionscript.all/TextFormat-7.swf.trace
@@ -0,0 +1,64 @@
+PASSED: typeof(TextFormat) == 'function' [TextFormat.as:29]
+PASSED: typeof(TextFormat.prototype) == 'object' [TextFormat.as:30]
+PASSED: typeof(tfObj) == 'object' [TextFormat.as:32]
+PASSED: tfObj instanceof TextFormat [TextFormat.as:33]
+PASSED: TextFormat.prototype.hasOwnProperty('display') [TextFormat.as:37]
+PASSED: TextFormat.prototype.hasOwnProperty('bullet') [TextFormat.as:38]
+PASSED: TextFormat.prototype.hasOwnProperty('tabStops') [TextFormat.as:39]
+PASSED: TextFormat.prototype.hasOwnProperty('blockIndent') [TextFormat.as:40]
+PASSED: TextFormat.prototype.hasOwnProperty('leading') [TextFormat.as:41]
+PASSED: TextFormat.prototype.hasOwnProperty('indent') [TextFormat.as:42]
+PASSED: TextFormat.prototype.hasOwnProperty('rightMargin') [TextFormat.as:43]
+PASSED: TextFormat.prototype.hasOwnProperty('leftMargin') [TextFormat.as:44]
+PASSED: TextFormat.prototype.hasOwnProperty('align') [TextFormat.as:45]
+PASSED: TextFormat.prototype.hasOwnProperty('underline') [TextFormat.as:46]
+PASSED: TextFormat.prototype.hasOwnProperty('italic') [TextFormat.as:47]
+PASSED: TextFormat.prototype.hasOwnProperty('bold') [TextFormat.as:48]
+PASSED: TextFormat.prototype.hasOwnProperty('target') [TextFormat.as:49]
+PASSED: TextFormat.prototype.hasOwnProperty('url') [TextFormat.as:50]
+PASSED: TextFormat.prototype.hasOwnProperty('color') [TextFormat.as:51]
+PASSED: TextFormat.prototype.hasOwnProperty('size') [TextFormat.as:52]
+PASSED: TextFormat.prototype.hasOwnProperty('font') [TextFormat.as:53]
+PASSED: !TextFormat.prototype.hasOwnProperty('getTextExtent') [TextFormat.as:54]
+PASSED: tfObj.hasOwnProperty('getTextExtent') [TextFormat.as:55]
+XPASSED: typeof(tfObj.display) == 'string' [TextFormat.as:61]
+XPASSED: tfObj.display == 'block' [TextFormat.as:62]
+PASSED: typeof(tfObj.bullet) == 'null' [TextFormat.as:63]
+XPASSED: typeof(tfObj.tabStops) == 'null' [TextFormat.as:64]
+PASSED: typeof(tfObj.blockIndent) == 'null' [TextFormat.as:65]
+PASSED: typeof(tfObj.leading) == 'null' [TextFormat.as:66]
+PASSED: typeof(tfObj.indent) == 'null' [TextFormat.as:67]
+PASSED: typeof(tfObj.rightMargin) == 'null' [TextFormat.as:68]
+PASSED: typeof(tfObj.leftMargin) == 'null' [TextFormat.as:69]
+PASSED: typeof(tfObj.align) == 'null' [TextFormat.as:70]
+PASSED: typeof(tfObj.underline) == 'null' [TextFormat.as:71]
+PASSED: typeof(tfObj.italic) == 'null' [TextFormat.as:72]
+PASSED: typeof(tfObj.bold) == 'null' [TextFormat.as:73]
+XPASSED: typeof(tfObj.target) == 'null' [TextFormat.as:74]
+XPASSED: typeof(tfObj.url) == 'null' [TextFormat.as:75]
+PASSED: typeof(tfObj.color) == 'null' [TextFormat.as:76]
+PASSED: typeof(tfObj.size) == 'null' [TextFormat.as:77]
+PASSED: typeof(tfObj.font) == 'null' [TextFormat.as:78]
+PASSED: typeof(tfObj.getTextExtent) == 'function' [TextFormat.as:79]
+XPASSED: typeof(tfObj.display) == 'string' [TextFormat.as:83]
+XPASSED: tfObj.display == 'block' [TextFormat.as:84]
+PASSED: typeof(tfObj.bullet) == 'null' [TextFormat.as:85]
+XPASSED: typeof(tfObj.tabStops) == 'null' [TextFormat.as:86]
+PASSED: typeof(tfObj.blockIndent) == 'null' [TextFormat.as:87]
+PASSED: tfObj.leading == 4 [TextFormat.as:88]
+PASSED: tfObj.indent == 12 [TextFormat.as:89]
+PASSED: typeof(tfObj.rightMargin) == 'number' [TextFormat.as:90]
+PASSED: tfObj.rightMargin == 32 [TextFormat.as:91]
+PASSED: typeof(tfObj.leftMargin) == 'number' [TextFormat.as:92]
+PASSED: tfObj.leftMargin == 23 [TextFormat.as:93]
+PASSED: tfObj.align == 'center' [TextFormat.as:94]
+XPASSED: tfObj.target == 'tgt' [TextFormat.as:95]
+XPASSED: tfObj.url == 'http' [TextFormat.as:96]
+PASSED: tfObj.underline == true [TextFormat.as:97]
+PASSED: typeof(tfObj.italic) == 'boolean' [TextFormat.as:98]
+PASSED: tfObj.italic == false [TextFormat.as:99]
+PASSED: tfObj.bold == true [TextFormat.as:100]
+PASSED: tfObj.color == 30 [TextFormat.as:101]
+PASSED: tfObj.size == 2 [TextFormat.as:102]
+PASSED: tfObj.font == 'fname' [TextFormat.as:103]
+check_totals: 63
diff --git a/test/gnash/actionscript.all/TextFormat-8.swf b/test/gnash/actionscript.all/TextFormat-8.swf
new file mode 100644
index 0000000..101e7bb
Binary files /dev/null and b/test/gnash/actionscript.all/TextFormat-8.swf differ
diff --git a/test/gnash/actionscript.all/TextFormat-8.swf.trace b/test/gnash/actionscript.all/TextFormat-8.swf.trace
new file mode 100644
index 0000000..96b0ef1
--- /dev/null
+++ b/test/gnash/actionscript.all/TextFormat-8.swf.trace
@@ -0,0 +1,64 @@
+PASSED: typeof(TextFormat) == 'function' [TextFormat.as:29]
+PASSED: typeof(TextFormat.prototype) == 'object' [TextFormat.as:30]
+PASSED: typeof(tfObj) == 'object' [TextFormat.as:32]
+PASSED: tfObj instanceof TextFormat [TextFormat.as:33]
+PASSED: TextFormat.prototype.hasOwnProperty('display') [TextFormat.as:37]
+PASSED: TextFormat.prototype.hasOwnProperty('bullet') [TextFormat.as:38]
+PASSED: TextFormat.prototype.hasOwnProperty('tabStops') [TextFormat.as:39]
+PASSED: TextFormat.prototype.hasOwnProperty('blockIndent') [TextFormat.as:40]
+PASSED: TextFormat.prototype.hasOwnProperty('leading') [TextFormat.as:41]
+PASSED: TextFormat.prototype.hasOwnProperty('indent') [TextFormat.as:42]
+PASSED: TextFormat.prototype.hasOwnProperty('rightMargin') [TextFormat.as:43]
+PASSED: TextFormat.prototype.hasOwnProperty('leftMargin') [TextFormat.as:44]
+PASSED: TextFormat.prototype.hasOwnProperty('align') [TextFormat.as:45]
+PASSED: TextFormat.prototype.hasOwnProperty('underline') [TextFormat.as:46]
+PASSED: TextFormat.prototype.hasOwnProperty('italic') [TextFormat.as:47]
+PASSED: TextFormat.prototype.hasOwnProperty('bold') [TextFormat.as:48]
+PASSED: TextFormat.prototype.hasOwnProperty('target') [TextFormat.as:49]
+PASSED: TextFormat.prototype.hasOwnProperty('url') [TextFormat.as:50]
+PASSED: TextFormat.prototype.hasOwnProperty('color') [TextFormat.as:51]
+PASSED: TextFormat.prototype.hasOwnProperty('size') [TextFormat.as:52]
+PASSED: TextFormat.prototype.hasOwnProperty('font') [TextFormat.as:53]
+PASSED: !TextFormat.prototype.hasOwnProperty('getTextExtent') [TextFormat.as:54]
+PASSED: tfObj.hasOwnProperty('getTextExtent') [TextFormat.as:55]
+XPASSED: typeof(tfObj.display) == 'string' [TextFormat.as:61]
+XPASSED: tfObj.display == 'block' [TextFormat.as:62]
+PASSED: typeof(tfObj.bullet) == 'null' [TextFormat.as:63]
+XPASSED: typeof(tfObj.tabStops) == 'null' [TextFormat.as:64]
+PASSED: typeof(tfObj.blockIndent) == 'null' [TextFormat.as:65]
+PASSED: typeof(tfObj.leading) == 'null' [TextFormat.as:66]
+PASSED: typeof(tfObj.indent) == 'null' [TextFormat.as:67]
+PASSED: typeof(tfObj.rightMargin) == 'null' [TextFormat.as:68]
+PASSED: typeof(tfObj.leftMargin) == 'null' [TextFormat.as:69]
+PASSED: typeof(tfObj.align) == 'null' [TextFormat.as:70]
+PASSED: typeof(tfObj.underline) == 'null' [TextFormat.as:71]
+PASSED: typeof(tfObj.italic) == 'null' [TextFormat.as:72]
+PASSED: typeof(tfObj.bold) == 'null' [TextFormat.as:73]
+XPASSED: typeof(tfObj.target) == 'null' [TextFormat.as:74]
+XPASSED: typeof(tfObj.url) == 'null' [TextFormat.as:75]
+PASSED: typeof(tfObj.color) == 'null' [TextFormat.as:76]
+PASSED: typeof(tfObj.size) == 'null' [TextFormat.as:77]
+PASSED: typeof(tfObj.font) == 'null' [TextFormat.as:78]
+PASSED: typeof(tfObj.getTextExtent) == 'function' [TextFormat.as:79]
+XPASSED: typeof(tfObj.display) == 'string' [TextFormat.as:83]
+XPASSED: tfObj.display == 'block' [TextFormat.as:84]
+PASSED: typeof(tfObj.bullet) == 'null' [TextFormat.as:85]
+XPASSED: typeof(tfObj.tabStops) == 'null' [TextFormat.as:86]
+PASSED: typeof(tfObj.blockIndent) == 'null' [TextFormat.as:87]
+PASSED: tfObj.leading == 4 [TextFormat.as:88]
+PASSED: tfObj.indent == 12 [TextFormat.as:89]
+PASSED: typeof(tfObj.rightMargin) == 'number' [TextFormat.as:90]
+PASSED: tfObj.rightMargin == 32 [TextFormat.as:91]
+PASSED: typeof(tfObj.leftMargin) == 'number' [TextFormat.as:92]
+PASSED: tfObj.leftMargin == 23 [TextFormat.as:93]
+PASSED: tfObj.align == 'center' [TextFormat.as:94]
+XPASSED: tfObj.target == 'tgt' [TextFormat.as:95]
+XPASSED: tfObj.url == 'http' [TextFormat.as:96]
+PASSED: tfObj.underline == true [TextFormat.as:97]
+PASSED: typeof(tfObj.italic) == 'boolean' [TextFormat.as:98]
+PASSED: tfObj.italic == false [TextFormat.as:99]
+PASSED: tfObj.bold == true [TextFormat.as:100]
+PASSED: tfObj.color == 30 [TextFormat.as:101]
+PASSED: tfObj.size == 2 [TextFormat.as:102]
+PASSED: tfObj.font == 'fname' [TextFormat.as:103]
+check_totals: 63
diff --git a/test/gnash/actionscript.all/TextFormat.as b/test/gnash/actionscript.all/TextFormat.as
new file mode 100644
index 0000000..4308012
--- /dev/null
+++ b/test/gnash/actionscript.all/TextFormat.as
@@ -0,0 +1,107 @@
+//
+// Copyright (C) 2008 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+//
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+// Test case for TextFormat ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+rcsid="$Id: TextFormat.as,v 1.4 2008/05/06 11:21:02 bwy Exp $";
+
+#include "check.as"
+
+Object.prototype.hasOwnProperty = ASnative(101, 5);
+
+check_equals(typeof(TextFormat), 'function');
+check_equals(typeof(TextFormat.prototype), 'object');
+tfObj = new TextFormat();
+check_equals(typeof(tfObj), 'object');
+check(tfObj instanceof TextFormat);
+
+// The members below would not exist before
+// the construction of first TextFormat object
+check(TextFormat.prototype.hasOwnProperty('display'));
+check(TextFormat.prototype.hasOwnProperty('bullet'));
+check(TextFormat.prototype.hasOwnProperty('tabStops'));
+check(TextFormat.prototype.hasOwnProperty('blockIndent'));
+check(TextFormat.prototype.hasOwnProperty('leading'));
+check(TextFormat.prototype.hasOwnProperty('indent'));
+check(TextFormat.prototype.hasOwnProperty('rightMargin'));
+check(TextFormat.prototype.hasOwnProperty('leftMargin'));
+check(TextFormat.prototype.hasOwnProperty('align'));
+check(TextFormat.prototype.hasOwnProperty('underline'));
+check(TextFormat.prototype.hasOwnProperty('italic'));
+check(TextFormat.prototype.hasOwnProperty('bold'));
+check(TextFormat.prototype.hasOwnProperty('target'));
+check(TextFormat.prototype.hasOwnProperty('url'));
+check(TextFormat.prototype.hasOwnProperty('color'));
+check(TextFormat.prototype.hasOwnProperty('size'));
+check(TextFormat.prototype.hasOwnProperty('font'));
+check(!TextFormat.prototype.hasOwnProperty('getTextExtent'));
+check(tfObj.hasOwnProperty('getTextExtent'));
+
+
+// When you construct a TextFormat w/out args all members
+// are of the 'null' type. In general, uninitialized members
+// are all of the 'null' type.
+xcheck_equals(typeof(tfObj.display), 'string');
+xcheck_equals(tfObj.display, 'block');
+check_equals(typeof(tfObj.bullet), 'null');
+xcheck_equals(typeof(tfObj.tabStops), 'null');
+check_equals(typeof(tfObj.blockIndent), 'null');
+check_equals(typeof(tfObj.leading), 'null');
+check_equals(typeof(tfObj.indent), 'null');
+check_equals(typeof(tfObj.rightMargin), 'null');
+check_equals(typeof(tfObj.leftMargin), 'null');
+check_equals(typeof(tfObj.align), 'null');
+check_equals(typeof(tfObj.underline), 'null');
+check_equals(typeof(tfObj.italic), 'null');
+check_equals(typeof(tfObj.bold), 'null');
+xcheck_equals(typeof(tfObj.target), 'null');
+xcheck_equals(typeof(tfObj.url), 'null');
+check_equals(typeof(tfObj.color), 'null');
+check_equals(typeof(tfObj.size), 'null');
+check_equals(typeof(tfObj.font), 'null');
+check_equals(typeof(tfObj.getTextExtent), 'function');
+
+// new TextFormat([font, [size, [color, [bold, [italic, [underline, [url, [target, [align,[leftMargin, [rightMargin, [indent, [leading]]]]]]]]]]]]])
+tfObj = new TextFormat("fname", 2, 30, true, false, true, 'http', 'tgt', 'cEnter', '23', '32', 12, 4);
+xcheck_equals(typeof(tfObj.display), 'string');
+xcheck_equals(tfObj.display, 'block');
+check_equals(typeof(tfObj.bullet), 'null');
+xcheck_equals(typeof(tfObj.tabStops), 'null');
+check_equals(typeof(tfObj.blockIndent), 'null');
+check_equals(tfObj.leading, 4);
+check_equals(tfObj.indent, 12);
+check_equals(typeof(tfObj.rightMargin), 'number'); // even if we passed a string to it
+check_equals(tfObj.rightMargin, 32);
+check_equals(typeof(tfObj.leftMargin), 'number'); // even if we passed a string to it
+check_equals(tfObj.leftMargin, 23);
+check_equals(tfObj.align, 'center');
+xcheck_equals(tfObj.target, 'tgt');
+xcheck_equals(tfObj.url, 'http');
+check_equals(tfObj.underline, true);
+check_equals(typeof(tfObj.italic), 'boolean');
+check_equals(tfObj.italic, false);
+check_equals(tfObj.bold, true);
+check_equals(tfObj.color, 30);
+check_equals(tfObj.size, 2);
+check_equals(tfObj.font, 'fname');
+
+
+
+check_totals(63);
diff --git a/test/gnash/actionscript.all/TextSnapshot-5.swf b/test/gnash/actionscript.all/TextSnapshot-5.swf
new file mode 100644
index 0000000..a72e924
Binary files /dev/null and b/test/gnash/actionscript.all/TextSnapshot-5.swf differ
diff --git a/test/gnash/actionscript.all/TextSnapshot-5.swf.trace b/test/gnash/actionscript.all/TextSnapshot-5.swf.trace
new file mode 100644
index 0000000..abd55c7
--- /dev/null
+++ b/test/gnash/actionscript.all/TextSnapshot-5.swf.trace
@@ -0,0 +1 @@
+totals
diff --git a/test/gnash/actionscript.all/TextSnapshot-6.swf b/test/gnash/actionscript.all/TextSnapshot-6.swf
new file mode 100644
index 0000000..1ca70c4
Binary files /dev/null and b/test/gnash/actionscript.all/TextSnapshot-6.swf differ
diff --git a/test/gnash/actionscript.all/TextSnapshot-6.swf.trace b/test/gnash/actionscript.all/TextSnapshot-6.swf.trace
new file mode 100644
index 0000000..f5a6f32
--- /dev/null
+++ b/test/gnash/actionscript.all/TextSnapshot-6.swf.trace
@@ -0,0 +1,11 @@
+PASSED: typeof(TextSnapshot) == 'function' [TextSnapshot.as:29]
+PASSED: typeof(textsnapshotObj) == 'object' [TextSnapshot.as:34]
+PASSED: typeof(textsnapshotObj.findText) == 'function' [TextSnapshot.as:37]
+PASSED: typeof(textsnapshotObj.getCount) == 'function' [TextSnapshot.as:40]
+PASSED: typeof(textsnapshotObj.getSelected) == 'function' [TextSnapshot.as:43]
+PASSED: typeof(textsnapshotObj.getSelectedText) == 'function' [TextSnapshot.as:46]
+PASSED: typeof(textsnapshotObj.getText) == 'function' [TextSnapshot.as:49]
+PASSED: typeof(textsnapshotObj.hitTestTextNearPos) == 'function' [TextSnapshot.as:52]
+PASSED: typeof(textsnapshotObj.setSelectColor) == 'function' [TextSnapshot.as:55]
+PASSED: typeof(textsnapshotObj.setSelected) == 'function' [TextSnapshot.as:58]
+totals
diff --git a/test/gnash/actionscript.all/TextSnapshot-7.swf b/test/gnash/actionscript.all/TextSnapshot-7.swf
new file mode 100644
index 0000000..f19d508
Binary files /dev/null and b/test/gnash/actionscript.all/TextSnapshot-7.swf differ
diff --git a/test/gnash/actionscript.all/TextSnapshot-7.swf.trace b/test/gnash/actionscript.all/TextSnapshot-7.swf.trace
new file mode 100644
index 0000000..f5a6f32
--- /dev/null
+++ b/test/gnash/actionscript.all/TextSnapshot-7.swf.trace
@@ -0,0 +1,11 @@
+PASSED: typeof(TextSnapshot) == 'function' [TextSnapshot.as:29]
+PASSED: typeof(textsnapshotObj) == 'object' [TextSnapshot.as:34]
+PASSED: typeof(textsnapshotObj.findText) == 'function' [TextSnapshot.as:37]
+PASSED: typeof(textsnapshotObj.getCount) == 'function' [TextSnapshot.as:40]
+PASSED: typeof(textsnapshotObj.getSelected) == 'function' [TextSnapshot.as:43]
+PASSED: typeof(textsnapshotObj.getSelectedText) == 'function' [TextSnapshot.as:46]
+PASSED: typeof(textsnapshotObj.getText) == 'function' [TextSnapshot.as:49]
+PASSED: typeof(textsnapshotObj.hitTestTextNearPos) == 'function' [TextSnapshot.as:52]
+PASSED: typeof(textsnapshotObj.setSelectColor) == 'function' [TextSnapshot.as:55]
+PASSED: typeof(textsnapshotObj.setSelected) == 'function' [TextSnapshot.as:58]
+totals
diff --git a/test/gnash/actionscript.all/TextSnapshot-8.swf b/test/gnash/actionscript.all/TextSnapshot-8.swf
new file mode 100644
index 0000000..ad9e497
Binary files /dev/null and b/test/gnash/actionscript.all/TextSnapshot-8.swf differ
diff --git a/test/gnash/actionscript.all/TextSnapshot-8.swf.trace b/test/gnash/actionscript.all/TextSnapshot-8.swf.trace
new file mode 100644
index 0000000..f5a6f32
--- /dev/null
+++ b/test/gnash/actionscript.all/TextSnapshot-8.swf.trace
@@ -0,0 +1,11 @@
+PASSED: typeof(TextSnapshot) == 'function' [TextSnapshot.as:29]
+PASSED: typeof(textsnapshotObj) == 'object' [TextSnapshot.as:34]
+PASSED: typeof(textsnapshotObj.findText) == 'function' [TextSnapshot.as:37]
+PASSED: typeof(textsnapshotObj.getCount) == 'function' [TextSnapshot.as:40]
+PASSED: typeof(textsnapshotObj.getSelected) == 'function' [TextSnapshot.as:43]
+PASSED: typeof(textsnapshotObj.getSelectedText) == 'function' [TextSnapshot.as:46]
+PASSED: typeof(textsnapshotObj.getText) == 'function' [TextSnapshot.as:49]
+PASSED: typeof(textsnapshotObj.hitTestTextNearPos) == 'function' [TextSnapshot.as:52]
+PASSED: typeof(textsnapshotObj.setSelectColor) == 'function' [TextSnapshot.as:55]
+PASSED: typeof(textsnapshotObj.setSelected) == 'function' [TextSnapshot.as:58]
+totals
diff --git a/test/gnash/actionscript.all/TextSnapshot.as b/test/gnash/actionscript.all/TextSnapshot.as
new file mode 100644
index 0000000..763f3f6
--- /dev/null
+++ b/test/gnash/actionscript.all/TextSnapshot.as
@@ -0,0 +1,61 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+// Test case for TextSnapshot ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: TextSnapshot.as,v 1.12 2008/03/11 19:31:48 strk Exp $";
+#include "check.as"
+
+#if OUTPUT_VERSION > 5
+
+check_equals ( typeof(TextSnapshot), 'function' );
+
+var textsnapshotObj = new TextSnapshot;
+
+// test the TextSnapshot constuctor
+check_equals ( typeof(textsnapshotObj), 'object' );
+
+// test the TextSnapshot::findtext method
+check_equals (typeof(textsnapshotObj.findText), 'function');
+
+// test the TextSnapshot::getcount method
+check_equals (typeof(textsnapshotObj.getCount), 'function');
+
+// test the TextSnapshot::getselected method
+check_equals (typeof(textsnapshotObj.getSelected), 'function');
+
+// test the TextSnapshot::getselectedtext method
+check_equals (typeof(textsnapshotObj.getSelectedText), 'function');
+
+// test the TextSnapshot::gettext method
+check_equals (typeof(textsnapshotObj.getText), 'function');
+
+// test the TextSnapshot::hittesttextnearpos method
+check_equals (typeof(textsnapshotObj.hitTestTextNearPos), 'function');
+
+// test the TextSnapshot::setselectcolor method
+check_equals (typeof(textsnapshotObj.setSelectColor), 'function');
+
+// test the TextSnapshot::setselected method
+check_equals (typeof(textsnapshotObj.setSelected), 'function');
+
+#endif // OUTPUT_VERSION > 5
+totals();
diff --git a/test/gnash/actionscript.all/Try-5.swf b/test/gnash/actionscript.all/Try-5.swf
new file mode 100644
index 0000000..ac0cacf
Binary files /dev/null and b/test/gnash/actionscript.all/Try-5.swf differ
diff --git a/test/gnash/actionscript.all/Try-5.swf.trace b/test/gnash/actionscript.all/Try-5.swf.trace
new file mode 100644
index 0000000..0dd0d82
--- /dev/null
+++ b/test/gnash/actionscript.all/Try-5.swf.trace
@@ -0,0 +1,12 @@
+PASSED: r == "1: try body catch finally ." [Try.as:57]
+PASSED: r == "2: try catch thrown finally ." [Try.as:67]
+PASSED: r == "3: try body finally ." [Try.as:73]
+PASSED: r == "4: try finally thrown ." [Try.as:83]
+PASSED: r == "5: try body catch pre-existing variable d ." [Try.as:92]
+PASSED: r == "6: try catch thrown ." [Try.as:98]
+PASSED: r == "7: try finally finally2 thrown ." [Try.as:110]
+PASSED: r == "8: try finally finally2 try2 catch2 thrown ." [Try.as:130]
+PASSED: r == "9: try finally catch thrown finally2 try2 catch2 catch3 ." [Try.as:153]
+PASSED: r == "10: catch finally." [Try.as:166]
+PASSED: r == "10: catch finally." [Try.as:176]
+totals
diff --git a/test/gnash/actionscript.all/Try-6.swf b/test/gnash/actionscript.all/Try-6.swf
new file mode 100644
index 0000000..30fd9c1
Binary files /dev/null and b/test/gnash/actionscript.all/Try-6.swf differ
diff --git a/test/gnash/actionscript.all/Try-6.swf.trace b/test/gnash/actionscript.all/Try-6.swf.trace
new file mode 100644
index 0000000..0dd0d82
--- /dev/null
+++ b/test/gnash/actionscript.all/Try-6.swf.trace
@@ -0,0 +1,12 @@
+PASSED: r == "1: try body catch finally ." [Try.as:57]
+PASSED: r == "2: try catch thrown finally ." [Try.as:67]
+PASSED: r == "3: try body finally ." [Try.as:73]
+PASSED: r == "4: try finally thrown ." [Try.as:83]
+PASSED: r == "5: try body catch pre-existing variable d ." [Try.as:92]
+PASSED: r == "6: try catch thrown ." [Try.as:98]
+PASSED: r == "7: try finally finally2 thrown ." [Try.as:110]
+PASSED: r == "8: try finally finally2 try2 catch2 thrown ." [Try.as:130]
+PASSED: r == "9: try finally catch thrown finally2 try2 catch2 catch3 ." [Try.as:153]
+PASSED: r == "10: catch finally." [Try.as:166]
+PASSED: r == "10: catch finally." [Try.as:176]
+totals
diff --git a/test/gnash/actionscript.all/Try-7.swf b/test/gnash/actionscript.all/Try-7.swf
new file mode 100644
index 0000000..614af02
Binary files /dev/null and b/test/gnash/actionscript.all/Try-7.swf differ
diff --git a/test/gnash/actionscript.all/Try-7.swf.trace b/test/gnash/actionscript.all/Try-7.swf.trace
new file mode 100644
index 0000000..19248d3
--- /dev/null
+++ b/test/gnash/actionscript.all/Try-7.swf.trace
@@ -0,0 +1,12 @@
+PASSED: r == "1: try body catch undefined finally ." [Try.as:59]
+PASSED: r == "2: try catch thrown finally ." [Try.as:67]
+PASSED: r == "3: try body finally ." [Try.as:73]
+PASSED: r == "4: try finally thrown ." [Try.as:83]
+PASSED: r == "5: try body catch pre-existing variable d ." [Try.as:92]
+PASSED: r == "6: try catch thrown ." [Try.as:98]
+PASSED: r == "7: try finally finally2 thrown ." [Try.as:110]
+PASSED: r == "8: try finally finally2 try2 catch2 undefined thrown ." [Try.as:132]
+PASSED: r == "9: try finally catch thrown finally2 try2 catch2 undefined catch3 undefined ." [Try.as:155]
+PASSED: r == "10: catch finally." [Try.as:166]
+PASSED: r == "10: catch finally." [Try.as:176]
+totals
diff --git a/test/gnash/actionscript.all/Try-8.swf b/test/gnash/actionscript.all/Try-8.swf
new file mode 100644
index 0000000..2a81b60
Binary files /dev/null and b/test/gnash/actionscript.all/Try-8.swf differ
diff --git a/test/gnash/actionscript.all/Try-8.swf.trace b/test/gnash/actionscript.all/Try-8.swf.trace
new file mode 100644
index 0000000..19248d3
--- /dev/null
+++ b/test/gnash/actionscript.all/Try-8.swf.trace
@@ -0,0 +1,12 @@
+PASSED: r == "1: try body catch undefined finally ." [Try.as:59]
+PASSED: r == "2: try catch thrown finally ." [Try.as:67]
+PASSED: r == "3: try body finally ." [Try.as:73]
+PASSED: r == "4: try finally thrown ." [Try.as:83]
+PASSED: r == "5: try body catch pre-existing variable d ." [Try.as:92]
+PASSED: r == "6: try catch thrown ." [Try.as:98]
+PASSED: r == "7: try finally finally2 thrown ." [Try.as:110]
+PASSED: r == "8: try finally finally2 try2 catch2 undefined thrown ." [Try.as:132]
+PASSED: r == "9: try finally catch thrown finally2 try2 catch2 undefined catch3 undefined ." [Try.as:155]
+PASSED: r == "10: catch finally." [Try.as:166]
+PASSED: r == "10: catch finally." [Try.as:176]
+totals
diff --git a/test/gnash/actionscript.all/Try.as b/test/gnash/actionscript.all/Try.as
new file mode 100644
index 0000000..2dd72ad
--- /dev/null
+++ b/test/gnash/actionscript.all/Try.as
@@ -0,0 +1,188 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+// Test case for Boolean ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: Try.as,v 1.3 2008/06/11 20:54:44 bwy Exp $";
+#include "check.as"
+
+// Some of the test variants.
+// Try catch finally (no throw)
+// Try (throw) catch finally
+// Try finally
+// Try (throw) finally
+// Try catch
+// Try (throw) catch
+
+#if MING_VERSION_CODE >= 00040006
+
+throwfunc = function()
+{
+ throw "try";
+};
+
+throwfunc2 = function()
+{
+ try {
+ throw "try";
+ }
+ catch (g) {};
+};
+
+r = "1: ";
+try { r +="try "; r +="body "; }
+catch (a) { r +="catch "; r += a + " "; }
+finally { r +="finally "; };
+r += ".";
+
+#if OUTPUT_VERSION < 7
+check_equals(r, "1: try body catch finally .");
+#else
+check_equals(r, "1: try body catch undefined finally .");
+#endif
+
+r = "2: ";
+try { r += "try "; throw ("thrown"); r += "body "; }
+catch (b) { r += "catch "; r += b + " "; }
+finally { r += "finally "; };
+r += ".";
+check_equals(r, "2: try catch thrown finally .");
+
+r = "3: ";
+try { r += "try "; r += "body "; }
+finally { r += "finally "; };
+r += ".";
+check_equals(r, "3: try body finally .");
+
+// This will interrupt execution without the enclosing try/catch.
+try {
+ r = "4: ";
+ try { r += "try "; throw ("thrown"); r += "body "; }
+ finally { r += "finally "; };
+}
+catch (c) { r += c + " "; };
+r += ".";
+check_equals(r, "4: try finally thrown .");
+
+// Also check that the exception is not
+// undefined if nothing is thrown
+d = "pre-existing variable d";
+r = "5: ";
+try { r += "try "; r += "body "; }
+catch (d) { r += "catch "; r+= d + " "; };
+r += ".";
+check_equals(r, "5: try body catch pre-existing variable d .");
+
+r = "6: ";
+try { r += "try "; throw ("thrown"); r += "body "; }
+catch (e) { r += "catch "; r += e + " "; };
+r += ".";
+check_equals(r, "6: try catch thrown .");
+
+try {
+ try {
+ r = "7: ";
+ try { r += "try "; throw ("thrown"); r += "body "; }
+ finally { r += "finally "; };
+ }
+ finally { r += "finally2 "; };
+}
+catch (f) { r += f + " "; };
+r += ".";
+check_equals(r, "7: try finally finally2 thrown .");
+
+
+try {
+ try {
+ r = "8: ";
+ try { r += "try "; throw ("thrown"); r += "body "; }
+ finally { r += "finally "; };
+ }
+ finally {
+ r += "finally2 ";
+ try {
+ r += "try2 ";
+ }
+ catch (h) { r += "catch2 "; r += h +" "; };
+ };
+}
+catch (i) { r += i + " "; };
+r += ".";
+#if OUTPUT_VERSION < 7
+check_equals(r, "8: try finally finally2 try2 catch2 thrown .");
+#else
+check_equals(r, "8: try finally finally2 try2 catch2 undefined thrown .");
+#endif
+
+try {
+ try {
+ r = "9: ";
+ try { r += "try "; throw ("thrown"); r += "body "; }
+ finally { r += "finally "; };
+ }
+ catch (j) { r += "catch "; r += j + " "; }
+ finally {
+ r += "finally2 ";
+ try {
+ r += "try2 ";
+ }
+ catch (k) { r += "catch2 "; r += k +" "; };
+ };
+}
+catch (l) { r+= "catch3 "; r += l + " "; };
+r += ".";
+#if OUTPUT_VERSION < 7
+check_equals(r, "9: try finally catch thrown finally2 try2 catch2 catch3 .");
+#else
+check_equals(r, "9: try finally catch thrown finally2 try2 catch2 undefined catch3 undefined .");
+#endif
+
+r = "10: ";
+try {
+ try { throw "try"; }
+ catch (e) { throw "catch"; }
+ finally { throw "finally"; };
+}
+catch (m) { r+= "catch " + m; };
+r += ".";
+check_equals(r, "10: catch finally.");
+
+r = "10: ";
+try {
+ try { throw "try"; }
+ catch (e) { throw "catch"; }
+ finally { throw "finally"; };
+}
+catch (m) { r+= "catch " + m; };
+r += ".";
+check_equals(r, "10: catch finally.");
+
+
+//try { throwfunc(); }
+//catch (g) { trace ("catch"); trace (g); };
+
+//try { throw "thrown"; }
+//finally { };
+//trace ("Don't reach this point");
+
+totals();
+
+#endif
diff --git a/test/gnash/actionscript.all/UPDATED b/test/gnash/actionscript.all/UPDATED
new file mode 100644
index 0000000..a17c522
--- /dev/null
+++ b/test/gnash/actionscript.all/UPDATED
@@ -0,0 +1 @@
+2008-07-03
diff --git a/test/gnash/actionscript.all/Video-5.swf b/test/gnash/actionscript.all/Video-5.swf
new file mode 100644
index 0000000..a1cad9c
Binary files /dev/null and b/test/gnash/actionscript.all/Video-5.swf differ
diff --git a/test/gnash/actionscript.all/Video-5.swf.trace b/test/gnash/actionscript.all/Video-5.swf.trace
new file mode 100644
index 0000000..c6a1c06
--- /dev/null
+++ b/test/gnash/actionscript.all/Video-5.swf.trace
@@ -0,0 +1,2 @@
+PASSED: Video == undefined [Video.as:29]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/Video-6.swf b/test/gnash/actionscript.all/Video-6.swf
new file mode 100644
index 0000000..5bf4967
Binary files /dev/null and b/test/gnash/actionscript.all/Video-6.swf differ
diff --git a/test/gnash/actionscript.all/Video-6.swf.trace b/test/gnash/actionscript.all/Video-6.swf.trace
new file mode 100644
index 0000000..2b26f1b
--- /dev/null
+++ b/test/gnash/actionscript.all/Video-6.swf.trace
@@ -0,0 +1,22 @@
+PASSED: typeof(Video) == 'function' [Video.as:35]
+PASSED: typeof(Video.prototype) == 'object' [Video.as:36]
+PASSED: typeof(Video.prototype.__proto__) == 'object' [Video.as:37]
+PASSED: Video.prototype.__proto__ == Object.prototype [Video.as:38]
+PASSED: typeof(Video.prototype.attachVideo) == 'function' [Video.as:39]
+PASSED: typeof(Video.prototype.clear) == 'function' [Video.as:40]
+PASSED: typeof(videoObj) == 'object' [Video.as:44]
+PASSED: typeof(videoObj.attachVideo) == 'function' [Video.as:45]
+PASSED: typeof(videoObj.clear) == 'function' [Video.as:46]
+PASSED: typeof(videoObj._x) == 'undefined' [Video.as:47]
+PASSED: typeof(videoObj._y) == 'undefined' [Video.as:48]
+PASSED: typeof(videoObj._width) == 'undefined' [Video.as:49]
+PASSED: typeof(videoObj._height) == 'undefined' [Video.as:50]
+PASSED: typeof(videoObj._xscale) == 'undefined' [Video.as:51]
+PASSED: typeof(videoObj._yscale) == 'undefined' [Video.as:52]
+PASSED: typeof(videoObj._xmouse) == 'undefined' [Video.as:53]
+PASSED: typeof(videoObj._ymouse) == 'undefined' [Video.as:54]
+PASSED: typeof(videoObj._alpha) == 'undefined' [Video.as:55]
+PASSED: typeof(videoObj._rotation) == 'undefined' [Video.as:56]
+PASSED: typeof(videoObj._target) == 'undefined' [Video.as:57]
+PASSED: typeof(videoObj._parent) == 'undefined' [Video.as:58]
+check_totals: 21
diff --git a/test/gnash/actionscript.all/Video-7.swf b/test/gnash/actionscript.all/Video-7.swf
new file mode 100644
index 0000000..197bfe8
Binary files /dev/null and b/test/gnash/actionscript.all/Video-7.swf differ
diff --git a/test/gnash/actionscript.all/Video-7.swf.trace b/test/gnash/actionscript.all/Video-7.swf.trace
new file mode 100644
index 0000000..2b26f1b
--- /dev/null
+++ b/test/gnash/actionscript.all/Video-7.swf.trace
@@ -0,0 +1,22 @@
+PASSED: typeof(Video) == 'function' [Video.as:35]
+PASSED: typeof(Video.prototype) == 'object' [Video.as:36]
+PASSED: typeof(Video.prototype.__proto__) == 'object' [Video.as:37]
+PASSED: Video.prototype.__proto__ == Object.prototype [Video.as:38]
+PASSED: typeof(Video.prototype.attachVideo) == 'function' [Video.as:39]
+PASSED: typeof(Video.prototype.clear) == 'function' [Video.as:40]
+PASSED: typeof(videoObj) == 'object' [Video.as:44]
+PASSED: typeof(videoObj.attachVideo) == 'function' [Video.as:45]
+PASSED: typeof(videoObj.clear) == 'function' [Video.as:46]
+PASSED: typeof(videoObj._x) == 'undefined' [Video.as:47]
+PASSED: typeof(videoObj._y) == 'undefined' [Video.as:48]
+PASSED: typeof(videoObj._width) == 'undefined' [Video.as:49]
+PASSED: typeof(videoObj._height) == 'undefined' [Video.as:50]
+PASSED: typeof(videoObj._xscale) == 'undefined' [Video.as:51]
+PASSED: typeof(videoObj._yscale) == 'undefined' [Video.as:52]
+PASSED: typeof(videoObj._xmouse) == 'undefined' [Video.as:53]
+PASSED: typeof(videoObj._ymouse) == 'undefined' [Video.as:54]
+PASSED: typeof(videoObj._alpha) == 'undefined' [Video.as:55]
+PASSED: typeof(videoObj._rotation) == 'undefined' [Video.as:56]
+PASSED: typeof(videoObj._target) == 'undefined' [Video.as:57]
+PASSED: typeof(videoObj._parent) == 'undefined' [Video.as:58]
+check_totals: 21
diff --git a/test/gnash/actionscript.all/Video-8.swf b/test/gnash/actionscript.all/Video-8.swf
new file mode 100644
index 0000000..2a51b13
Binary files /dev/null and b/test/gnash/actionscript.all/Video-8.swf differ
diff --git a/test/gnash/actionscript.all/Video-8.swf.trace b/test/gnash/actionscript.all/Video-8.swf.trace
new file mode 100644
index 0000000..2b26f1b
--- /dev/null
+++ b/test/gnash/actionscript.all/Video-8.swf.trace
@@ -0,0 +1,22 @@
+PASSED: typeof(Video) == 'function' [Video.as:35]
+PASSED: typeof(Video.prototype) == 'object' [Video.as:36]
+PASSED: typeof(Video.prototype.__proto__) == 'object' [Video.as:37]
+PASSED: Video.prototype.__proto__ == Object.prototype [Video.as:38]
+PASSED: typeof(Video.prototype.attachVideo) == 'function' [Video.as:39]
+PASSED: typeof(Video.prototype.clear) == 'function' [Video.as:40]
+PASSED: typeof(videoObj) == 'object' [Video.as:44]
+PASSED: typeof(videoObj.attachVideo) == 'function' [Video.as:45]
+PASSED: typeof(videoObj.clear) == 'function' [Video.as:46]
+PASSED: typeof(videoObj._x) == 'undefined' [Video.as:47]
+PASSED: typeof(videoObj._y) == 'undefined' [Video.as:48]
+PASSED: typeof(videoObj._width) == 'undefined' [Video.as:49]
+PASSED: typeof(videoObj._height) == 'undefined' [Video.as:50]
+PASSED: typeof(videoObj._xscale) == 'undefined' [Video.as:51]
+PASSED: typeof(videoObj._yscale) == 'undefined' [Video.as:52]
+PASSED: typeof(videoObj._xmouse) == 'undefined' [Video.as:53]
+PASSED: typeof(videoObj._ymouse) == 'undefined' [Video.as:54]
+PASSED: typeof(videoObj._alpha) == 'undefined' [Video.as:55]
+PASSED: typeof(videoObj._rotation) == 'undefined' [Video.as:56]
+PASSED: typeof(videoObj._target) == 'undefined' [Video.as:57]
+PASSED: typeof(videoObj._parent) == 'undefined' [Video.as:58]
+check_totals: 21
diff --git a/test/gnash/actionscript.all/Video.as b/test/gnash/actionscript.all/Video.as
new file mode 100644
index 0000000..6a9a79c
--- /dev/null
+++ b/test/gnash/actionscript.all/Video.as
@@ -0,0 +1,64 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+// Test case for Video ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: Video.as,v 1.16 2008/03/29 22:50:54 strk Exp $";
+#include "check.as"
+
+#if OUTPUT_VERSION < 6
+
+check_equals(Video, undefined);
+check_totals(1);
+
+#else
+
+// test Video class an interface availability
+check_equals(typeof(Video), 'function');
+check_equals(typeof(Video.prototype), 'object');
+check_equals(typeof(Video.prototype.__proto__), 'object');
+check_equals(Video.prototype.__proto__, Object.prototype);
+check_equals(typeof(Video.prototype.attachVideo), 'function');
+check_equals(typeof(Video.prototype.clear), 'function');
+
+// test Video instance
+var videoObj = new Video;
+check_equals (typeof(videoObj), 'object');
+check_equals (typeof(videoObj.attachVideo), 'function');
+check_equals (typeof(videoObj.clear), 'function');
+check_equals (typeof(videoObj._x), 'undefined');
+check_equals (typeof(videoObj._y), 'undefined');
+check_equals (typeof(videoObj._width), 'undefined');
+check_equals (typeof(videoObj._height), 'undefined');
+check_equals (typeof(videoObj._xscale), 'undefined');
+check_equals (typeof(videoObj._yscale), 'undefined');
+check_equals (typeof(videoObj._xmouse), 'undefined');
+check_equals (typeof(videoObj._ymouse), 'undefined');
+check_equals (typeof(videoObj._alpha), 'undefined');
+check_equals (typeof(videoObj._rotation), 'undefined');
+check_equals (typeof(videoObj._target), 'undefined');
+check_equals (typeof(videoObj._parent), 'undefined');
+
+// TODO: test other properties !
+
+check_totals(21);
+
+#endif
diff --git a/test/gnash/actionscript.all/check.as b/test/gnash/actionscript.all/check.as
new file mode 100644
index 0000000..8164178
--- /dev/null
+++ b/test/gnash/actionscript.all/check.as
@@ -0,0 +1,89 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+// Copyright (C) 2008 Pekka Lampila
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+#ifndef _CHECK_AS_
+#define _CHECK_AS_
+
+#define OUTPUT_VERSION __SWF_VERSION__
+
+#define MING_VERSION_CODE 00047777
+
+#define MING_SUPPORTS_ASM
+#define MING_SUPPORTS_ASM_EXTENDS
+#define MING_SUPPORTS_ASM_GETPROPERTY
+#define MING_SUPPORTS_ASM_SETPROPERTY
+#define MING_SUPPORTS_ASM_TONUMBER
+#define MING_SUPPORTS_ASM_TOSTRING
+#define MING_SUPPORTS_ASM_TARGETPATH
+#define MING_SUPPORTS_ASM_IMPLEMENTS
+
+#define note(text) trace ("NOTE: " + text)
+
+#define pass_check(text) trace ("PASSED: " + text)
+#define xpass_check(text) trace ("XPASSED: " + text)
+#define fail_check(text) trace ("FAILED: " + text)
+#define xfail_check(text) trace ("XFAILED: " + text)
+#define info(x) trace (x)
+
+#define MEDIA(x) "../media/" + #x
+
+#define INFO " [" + __FILE__ + ":" + __LINE__ + "]"
+
+#define totals(x) trace ("totals"); getURL ('fscommand:quit', '');
+#define xtotals(x) trace ("xtotals"); getURL ('fscommand:quit', '');
+#define check_totals(x) trace ("check_totals: " + #x); \
+ getURL ('fscommand:quit', '');
+#define xcheck_totals(x) trace ("xcheck_totals: " + #x); \
+ getURL ('fscommand:quit', '');
+
+//
+// Use check (<expression>)
+//
+#define check(expr) \
+ if (expr) pass_check (#expr + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+ else fail_check (#expr + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+
+#define xcheck(expr) \
+ if (expr) xpass_check (#expr + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+ else xfail_check (#expr + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+
+//
+// Use check_equals (<obtained>, <expected>)
+//
+#define check_equals(obt, exp) \
+ if (obt == exp) pass_check ( \
+ #obt + " == " + #exp + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+ else fail_check ("expected: " + #exp + \
+ " obtained: " + obt + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+
+#define xcheck_equals(obt, exp) \
+ if (obt == exp) xpass_check ( \
+ #obt + " == " + #exp + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+ else xfail_check ("expected: " + #exp + \
+ " obtained: " + obt + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+
+#endif // _CHECK_AS_
diff --git a/test/gnash/actionscript.all/check.as.original b/test/gnash/actionscript.all/check.as.original
new file mode 100644
index 0000000..4958ef2
--- /dev/null
+++ b/test/gnash/actionscript.all/check.as.original
@@ -0,0 +1,125 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+#ifndef _CHECK_AS_
+#define _CHECK_AS_
+
+#if MING_VERSION_CODE >= 00040003
+# define MING_SUPPORTS_ASM
+# if MING_VERSION_CODE >= 00040004
+# define MING_SUPPORTS_ASM_EXTENDS
+# define MING_SUPPORTS_ASM_GETPROPERTY
+# define MING_SUPPORTS_ASM_SETPROPERTY
+# define MING_SUPPORTS_ASM_TONUMBER
+# define MING_SUPPORTS_ASM_TOSTRING
+# if MING_VERSION_CODE >= 00040005
+# define MING_SUPPORTS_ASM_TARGETPATH
+# if MING_VERSION_CODE < 00040006
+# define MING_LOGICAL_ANDOR_BROKEN
+# endif
+# if MING_VERSION_CODE >= 00040006
+# define MING_SUPPORTS_ASM_IMPLEMENTS
+# endif
+# endif
+# endif
+#endif
+
+
+// ONLINE mode uses DEJAGNU module
+#ifdef ONLINE
+# define USE_DEJAGNU_MODULE
+#endif
+
+// Use facilities provided by dejagnu shared library module
+//
+// NOTE: if you define USE_DEJAGNU_MODULE you
+// will also need put dejagnu_so_init.as in first frame
+// and put dejagnu_so_fini.as in last frame.
+#ifdef USE_DEJAGNU_MODULE
+
+# define trace info
+
+#else // ndef USE_DEJAGNU_MODULE
+
+#define pass_check(text) trace("PASSED: "+text)
+#define xpass_check(text) trace("XPASSED: "+text)
+#define fail_check(text) trace("FAILED: "+text)
+#define xfail_check(text) trace("XFAILED: "+text)
+#define info(x) trace(x)
+
+
+#endif
+
+//
+// Use to get stuff in the testsuite/media.
+// Example:
+//
+// getUrl( MEDIA(green.swf) );
+//
+#define MEDIA(x) MEDIADIR + "/" + #x
+
+#define INFO " [" + __FILE__ + ":" + __LINE__ + "]"
+
+#define check_totals(x) totals(x, INFO)
+#define xcheck_totals(x) xtotals(x, INFO)
+
+//
+// Use check(<expression>)
+//
+#define check(expr) \
+ if ( expr ) pass_check(#expr + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+ else fail_check(#expr + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+
+#define xcheck(expr) \
+ if ( expr ) xpass_check(#expr + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+ else xfail_check(#expr + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+
+//
+// Use check_equals(<obtained>, <expected>)
+//
+#define check_equals(obt, exp) \
+ if ( obt == exp ) pass_check( \
+ #obt + " == " + #exp + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+ else fail_check("expected: " + #exp + \
+ " obtained: " + obt + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+
+#define xcheck_equals(obt, exp) \
+ if ( obt == exp ) xpass_check( \
+ #obt + " == " + #exp + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+ else xfail_check("expected: " + #exp + \
+ " obtained: " + obt + \
+ " [" + __FILE__ + ":" + __LINE__ + "]" ); \
+
+#ifndef SUPPRESS_RCSID_DUMP
+info('['+rcsid+']');
+#endif
+
+// If using the DEJAGNU_MODULE this info will be printed
+// by code in dejagnu_so_init.as
+#ifndef USE_DEJAGNU_MODULE
+info("SWF" + OUTPUT_VERSION + " - " + System.capabilities.version + "\n");
+#endif
+
+#endif // _CHECK_AS_
diff --git a/test/gnash/actionscript.all/default.stas b/test/gnash/actionscript.all/default.stas
new file mode 100644
index 0000000..844990a
--- /dev/null
+++ b/test/gnash/actionscript.all/default.stas
@@ -0,0 +1,54 @@
+/* Swfdec
+ * Copyright (C) 2008 Benjamin Otte <otte at gnome.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA
+ */
+
+run_test = function (t, file) {
+ var e;
+ print ("Testing " + file);
+ try {
+ t.reset (file);
+ var expected = Buffer.load (file + ".trace");
+ t.advance (0);
+ t.advance (Math.ceil (10000 / t.rate));
+ var diff = t.trace.diff (expected);
+ if (diff) {
+ error ("different trace output");
+ Native.print (diff);
+ return false;
+ }
+ } catch (e) {
+ if (e) {
+ error (e);
+ return false;
+ }
+ };
+ Native.print (" OK\n");
+ return true;
+};
+
+filenames.sort ();
+t = new Test ();
+fail = [];
+for (var i = 0; i < filenames.length; i++) {
+ if (!run_test (t, filenames[i]))
+ fail.push (filenames[i]);
+};
+if (fail.length > 0) {
+ error (fail.join ("\n "));
+ throw (fail.length + " failures");
+}
diff --git a/test/gnash/actionscript.all/default.sts b/test/gnash/actionscript.all/default.sts
new file mode 100644
index 0000000..279dcda
Binary files /dev/null and b/test/gnash/actionscript.all/default.sts differ
diff --git a/test/gnash/actionscript.all/delete-5.swf b/test/gnash/actionscript.all/delete-5.swf
new file mode 100644
index 0000000..fa6b825
Binary files /dev/null and b/test/gnash/actionscript.all/delete-5.swf differ
diff --git a/test/gnash/actionscript.all/delete-5.swf.trace b/test/gnash/actionscript.all/delete-5.swf.trace
new file mode 100644
index 0000000..2bd8cb6
--- /dev/null
+++ b/test/gnash/actionscript.all/delete-5.swf.trace
@@ -0,0 +1,28 @@
+PASSED: anObject != undefined [delete.as:6]
+PASSED: delete anObject [delete.as:9]
+PASSED: typeof(anObject) == 'undefined' [delete.as:10]
+PASSED: typeof(anObjectBackup) == 'object' [delete.as:11]
+PASSED: !delete noObject [delete.as:12]
+PASSED: anotherObject [delete.as:19]
+PASSED: a == "anotherObject.a" [delete.as:28]
+PASSED: b == "anotherObject.b (protected)" [delete.as:29]
+PASSED: !delete b [delete.as:30]
+PASSED: b == "anotherObject.b (protected)" [delete.as:31]
+PASSED: delete a [delete.as:32]
+PASSED: a == "a" [delete.as:33]
+PASSED: delete a [delete.as:34]
+PASSED: a == undefined [delete.as:40]
+PASSED: ! delete a [delete.as:41]
+PASSED: a == undefined [delete.as:44]
+PASSED: !delete a [delete.as:45]
+PASSED: typeof(func.prototype) == 'object' [delete.as:54]
+PASSED: func.prototype.appended_value == 4 [delete.as:55]
+PASSED: !delete func.prototype [delete.as:57]
+PASSED: typeof(func.prototype) == 'object' [delete.as:58]
+PASSED: func.prototype.appended_value == 4 [delete.as:59]
+PASSED: obj.a == 1 [delete.as:67]
+PASSED: delete obj.a [delete.as:68]
+PASSED: typeof(obj.a) == 'undefined' [delete.as:69]
+PASSED: !delete obj.a [delete.as:70]
+PASSED: !delete unexistent.a [delete.as:71]
+totals
diff --git a/test/gnash/actionscript.all/delete-6.swf b/test/gnash/actionscript.all/delete-6.swf
new file mode 100644
index 0000000..3227611
Binary files /dev/null and b/test/gnash/actionscript.all/delete-6.swf differ
diff --git a/test/gnash/actionscript.all/delete-6.swf.trace b/test/gnash/actionscript.all/delete-6.swf.trace
new file mode 100644
index 0000000..aff2773
--- /dev/null
+++ b/test/gnash/actionscript.all/delete-6.swf.trace
@@ -0,0 +1,28 @@
+PASSED: anObject != undefined [delete.as:6]
+PASSED: delete anObject [delete.as:9]
+PASSED: typeof(anObject) == 'undefined' [delete.as:10]
+PASSED: typeof(anObjectBackup) == 'object' [delete.as:11]
+PASSED: !delete noObject [delete.as:12]
+PASSED: anotherObject [delete.as:19]
+PASSED: a == "anotherObject.a" [delete.as:28]
+PASSED: b == "anotherObject.b (protected)" [delete.as:29]
+PASSED: !delete b [delete.as:30]
+PASSED: b == "anotherObject.b (protected)" [delete.as:31]
+PASSED: delete a [delete.as:32]
+PASSED: a == "a" [delete.as:33]
+PASSED: delete a [delete.as:34]
+PASSED: a == "_global.a" [delete.as:37]
+PASSED: delete a [delete.as:38]
+PASSED: a == undefined [delete.as:44]
+PASSED: !delete a [delete.as:45]
+PASSED: typeof(func.prototype) == 'object' [delete.as:54]
+PASSED: func.prototype.appended_value == 4 [delete.as:55]
+PASSED: !delete func.prototype [delete.as:57]
+PASSED: typeof(func.prototype) == 'object' [delete.as:58]
+PASSED: func.prototype.appended_value == 4 [delete.as:59]
+PASSED: obj.a == 1 [delete.as:67]
+PASSED: delete obj.a [delete.as:68]
+PASSED: typeof(obj.a) == 'undefined' [delete.as:69]
+PASSED: !delete obj.a [delete.as:70]
+PASSED: !delete unexistent.a [delete.as:71]
+totals
diff --git a/test/gnash/actionscript.all/delete-7.swf b/test/gnash/actionscript.all/delete-7.swf
new file mode 100644
index 0000000..1d488ec
Binary files /dev/null and b/test/gnash/actionscript.all/delete-7.swf differ
diff --git a/test/gnash/actionscript.all/delete-7.swf.trace b/test/gnash/actionscript.all/delete-7.swf.trace
new file mode 100644
index 0000000..aff2773
--- /dev/null
+++ b/test/gnash/actionscript.all/delete-7.swf.trace
@@ -0,0 +1,28 @@
+PASSED: anObject != undefined [delete.as:6]
+PASSED: delete anObject [delete.as:9]
+PASSED: typeof(anObject) == 'undefined' [delete.as:10]
+PASSED: typeof(anObjectBackup) == 'object' [delete.as:11]
+PASSED: !delete noObject [delete.as:12]
+PASSED: anotherObject [delete.as:19]
+PASSED: a == "anotherObject.a" [delete.as:28]
+PASSED: b == "anotherObject.b (protected)" [delete.as:29]
+PASSED: !delete b [delete.as:30]
+PASSED: b == "anotherObject.b (protected)" [delete.as:31]
+PASSED: delete a [delete.as:32]
+PASSED: a == "a" [delete.as:33]
+PASSED: delete a [delete.as:34]
+PASSED: a == "_global.a" [delete.as:37]
+PASSED: delete a [delete.as:38]
+PASSED: a == undefined [delete.as:44]
+PASSED: !delete a [delete.as:45]
+PASSED: typeof(func.prototype) == 'object' [delete.as:54]
+PASSED: func.prototype.appended_value == 4 [delete.as:55]
+PASSED: !delete func.prototype [delete.as:57]
+PASSED: typeof(func.prototype) == 'object' [delete.as:58]
+PASSED: func.prototype.appended_value == 4 [delete.as:59]
+PASSED: obj.a == 1 [delete.as:67]
+PASSED: delete obj.a [delete.as:68]
+PASSED: typeof(obj.a) == 'undefined' [delete.as:69]
+PASSED: !delete obj.a [delete.as:70]
+PASSED: !delete unexistent.a [delete.as:71]
+totals
diff --git a/test/gnash/actionscript.all/delete-8.swf b/test/gnash/actionscript.all/delete-8.swf
new file mode 100644
index 0000000..f5435fa
Binary files /dev/null and b/test/gnash/actionscript.all/delete-8.swf differ
diff --git a/test/gnash/actionscript.all/delete-8.swf.trace b/test/gnash/actionscript.all/delete-8.swf.trace
new file mode 100644
index 0000000..aff2773
--- /dev/null
+++ b/test/gnash/actionscript.all/delete-8.swf.trace
@@ -0,0 +1,28 @@
+PASSED: anObject != undefined [delete.as:6]
+PASSED: delete anObject [delete.as:9]
+PASSED: typeof(anObject) == 'undefined' [delete.as:10]
+PASSED: typeof(anObjectBackup) == 'object' [delete.as:11]
+PASSED: !delete noObject [delete.as:12]
+PASSED: anotherObject [delete.as:19]
+PASSED: a == "anotherObject.a" [delete.as:28]
+PASSED: b == "anotherObject.b (protected)" [delete.as:29]
+PASSED: !delete b [delete.as:30]
+PASSED: b == "anotherObject.b (protected)" [delete.as:31]
+PASSED: delete a [delete.as:32]
+PASSED: a == "a" [delete.as:33]
+PASSED: delete a [delete.as:34]
+PASSED: a == "_global.a" [delete.as:37]
+PASSED: delete a [delete.as:38]
+PASSED: a == undefined [delete.as:44]
+PASSED: !delete a [delete.as:45]
+PASSED: typeof(func.prototype) == 'object' [delete.as:54]
+PASSED: func.prototype.appended_value == 4 [delete.as:55]
+PASSED: !delete func.prototype [delete.as:57]
+PASSED: typeof(func.prototype) == 'object' [delete.as:58]
+PASSED: func.prototype.appended_value == 4 [delete.as:59]
+PASSED: obj.a == 1 [delete.as:67]
+PASSED: delete obj.a [delete.as:68]
+PASSED: typeof(obj.a) == 'undefined' [delete.as:69]
+PASSED: !delete obj.a [delete.as:70]
+PASSED: !delete unexistent.a [delete.as:71]
+totals
diff --git a/test/gnash/actionscript.all/delete.as b/test/gnash/actionscript.all/delete.as
new file mode 100644
index 0000000..79bdd44
--- /dev/null
+++ b/test/gnash/actionscript.all/delete.as
@@ -0,0 +1,77 @@
+
+rcsid="$Id: delete.as,v 1.14 2008/03/11 19:31:48 strk Exp $";
+#include "check.as"
+
+anObject = new Object();
+check(anObject != undefined);
+
+anObjectBackup = anObject;
+check(delete anObject);
+check_equals(typeof(anObject), 'undefined');
+check_equals(typeof(anObjectBackup), 'object');
+check(!delete noObject);
+
+//
+// Scoped delete (see bug #18482)
+//
+
+var anotherObject = new Object();
+check(anotherObject);
+anotherObject.a = "anotherObject.a";
+a = "a";
+b = "b";
+_global.a = "_global.a";
+anotherObject.b = "anotherObject.b (protected)";
+ASSetPropFlags(anotherObject, "b", 2); // protect b
+with(anotherObject)
+{
+ check_equals(a, "anotherObject.a");
+ check_equals(b, "anotherObject.b (protected)");
+ check(!delete b); // protected from deletion !
+ check_equals(b, "anotherObject.b (protected)");
+ check(delete a);
+ check_equals(a, "a");
+ check(delete a);
+
+#if OUTPUT_VERSION > 5
+ check_equals(a, "_global.a");
+ check(delete a);
+#else
+ check_equals(a, undefined);
+ check(! delete a);
+#endif
+
+ check_equals(a, undefined);
+ check(!delete a);
+}
+
+//
+// Deleting a user function's prototype
+//
+
+function func() {};
+func.prototype.appended_value = 4;
+check_equals(typeof(func.prototype), 'object');
+check_equals(func.prototype.appended_value, 4);
+//protoback = MovieClip.prototype;
+check(!delete func.prototype);
+check_equals(typeof(func.prototype), 'object');
+check_equals(func.prototype.appended_value, 4);
+
+//
+// Deleting an object's member
+//
+
+obj = new Object;
+obj.a = 1;
+check_equals(obj.a, 1);
+check(delete obj.a);
+check_equals(typeof(obj.a), 'undefined');
+check(!delete obj.a);
+check(!delete unexistent.a);
+
+// TODO: try other malformed ActionDelete calls
+
+// TODO: test deletion of variables referenced by path (slash-based or dot-based)
+// make sure to test use of 'this' here too !
+totals();
diff --git a/test/gnash/actionscript.all/enumerate-5.swf b/test/gnash/actionscript.all/enumerate-5.swf
new file mode 100644
index 0000000..0737543
Binary files /dev/null and b/test/gnash/actionscript.all/enumerate-5.swf differ
diff --git a/test/gnash/actionscript.all/enumerate-5.swf.trace b/test/gnash/actionscript.all/enumerate-5.swf.trace
new file mode 100644
index 0000000..abd55c7
--- /dev/null
+++ b/test/gnash/actionscript.all/enumerate-5.swf.trace
@@ -0,0 +1 @@
+totals
diff --git a/test/gnash/actionscript.all/enumerate-6.swf b/test/gnash/actionscript.all/enumerate-6.swf
new file mode 100644
index 0000000..a040fb4
Binary files /dev/null and b/test/gnash/actionscript.all/enumerate-6.swf differ
diff --git a/test/gnash/actionscript.all/enumerate-6.swf.trace b/test/gnash/actionscript.all/enumerate-6.swf.trace
new file mode 100644
index 0000000..93b99d0
--- /dev/null
+++ b/test/gnash/actionscript.all/enumerate-6.swf.trace
@@ -0,0 +1,19 @@
+PASSED: typeof(recorder['mc0']) == 'movieclip' [enumerate.as:54]
+PASSED: typeof(recorder['mc1']) == 'movieclip' [enumerate.as:55]
+PASSED: typeof(recorder['mc2']) == 'movieclip' [enumerate.as:56]
+PASSED: typeof(recorder['mc3']) == 'movieclip' [enumerate.as:57]
+PASSED: typeof(recorder['mc4']) == 'movieclip' [enumerate.as:58]
+PASSED: typeof(recorder['mc5']) == 'movieclip' [enumerate.as:59]
+PASSED: _root.hasOwnProperty('mc0') == false [enumerate.as:60]
+PASSED: _root.hasOwnProperty('mc1') == false [enumerate.as:61]
+PASSED: _root.hasOwnProperty('mc2') == false [enumerate.as:62]
+PASSED: _root.hasOwnProperty('mc3') == false [enumerate.as:63]
+PASSED: _root.hasOwnProperty('mc4') == false [enumerate.as:64]
+PASSED: _root.hasOwnProperty('mc5') == false [enumerate.as:65]
+PASSED: typeof(recorder['x1']) == 'function' [enumerate.as:92]
+PASSED: typeof(recorder['x2']) == 'number' [enumerate.as:93]
+PASSED: typeof(recorder['x3']) == 'object' [enumerate.as:94]
+PASSED: obj.hasOwnProperty('x1') == true [enumerate.as:95]
+PASSED: obj.hasOwnProperty('x2') == true [enumerate.as:96]
+PASSED: obj.hasOwnProperty('x3') == true [enumerate.as:97]
+totals
diff --git a/test/gnash/actionscript.all/enumerate-7.swf b/test/gnash/actionscript.all/enumerate-7.swf
new file mode 100644
index 0000000..218d2fa
Binary files /dev/null and b/test/gnash/actionscript.all/enumerate-7.swf differ
diff --git a/test/gnash/actionscript.all/enumerate-7.swf.trace b/test/gnash/actionscript.all/enumerate-7.swf.trace
new file mode 100644
index 0000000..93b99d0
--- /dev/null
+++ b/test/gnash/actionscript.all/enumerate-7.swf.trace
@@ -0,0 +1,19 @@
+PASSED: typeof(recorder['mc0']) == 'movieclip' [enumerate.as:54]
+PASSED: typeof(recorder['mc1']) == 'movieclip' [enumerate.as:55]
+PASSED: typeof(recorder['mc2']) == 'movieclip' [enumerate.as:56]
+PASSED: typeof(recorder['mc3']) == 'movieclip' [enumerate.as:57]
+PASSED: typeof(recorder['mc4']) == 'movieclip' [enumerate.as:58]
+PASSED: typeof(recorder['mc5']) == 'movieclip' [enumerate.as:59]
+PASSED: _root.hasOwnProperty('mc0') == false [enumerate.as:60]
+PASSED: _root.hasOwnProperty('mc1') == false [enumerate.as:61]
+PASSED: _root.hasOwnProperty('mc2') == false [enumerate.as:62]
+PASSED: _root.hasOwnProperty('mc3') == false [enumerate.as:63]
+PASSED: _root.hasOwnProperty('mc4') == false [enumerate.as:64]
+PASSED: _root.hasOwnProperty('mc5') == false [enumerate.as:65]
+PASSED: typeof(recorder['x1']) == 'function' [enumerate.as:92]
+PASSED: typeof(recorder['x2']) == 'number' [enumerate.as:93]
+PASSED: typeof(recorder['x3']) == 'object' [enumerate.as:94]
+PASSED: obj.hasOwnProperty('x1') == true [enumerate.as:95]
+PASSED: obj.hasOwnProperty('x2') == true [enumerate.as:96]
+PASSED: obj.hasOwnProperty('x3') == true [enumerate.as:97]
+totals
diff --git a/test/gnash/actionscript.all/enumerate-8.swf b/test/gnash/actionscript.all/enumerate-8.swf
new file mode 100644
index 0000000..78a1825
Binary files /dev/null and b/test/gnash/actionscript.all/enumerate-8.swf differ
diff --git a/test/gnash/actionscript.all/enumerate-8.swf.trace b/test/gnash/actionscript.all/enumerate-8.swf.trace
new file mode 100644
index 0000000..93b99d0
--- /dev/null
+++ b/test/gnash/actionscript.all/enumerate-8.swf.trace
@@ -0,0 +1,19 @@
+PASSED: typeof(recorder['mc0']) == 'movieclip' [enumerate.as:54]
+PASSED: typeof(recorder['mc1']) == 'movieclip' [enumerate.as:55]
+PASSED: typeof(recorder['mc2']) == 'movieclip' [enumerate.as:56]
+PASSED: typeof(recorder['mc3']) == 'movieclip' [enumerate.as:57]
+PASSED: typeof(recorder['mc4']) == 'movieclip' [enumerate.as:58]
+PASSED: typeof(recorder['mc5']) == 'movieclip' [enumerate.as:59]
+PASSED: _root.hasOwnProperty('mc0') == false [enumerate.as:60]
+PASSED: _root.hasOwnProperty('mc1') == false [enumerate.as:61]
+PASSED: _root.hasOwnProperty('mc2') == false [enumerate.as:62]
+PASSED: _root.hasOwnProperty('mc3') == false [enumerate.as:63]
+PASSED: _root.hasOwnProperty('mc4') == false [enumerate.as:64]
+PASSED: _root.hasOwnProperty('mc5') == false [enumerate.as:65]
+PASSED: typeof(recorder['x1']) == 'function' [enumerate.as:92]
+PASSED: typeof(recorder['x2']) == 'number' [enumerate.as:93]
+PASSED: typeof(recorder['x3']) == 'object' [enumerate.as:94]
+PASSED: obj.hasOwnProperty('x1') == true [enumerate.as:95]
+PASSED: obj.hasOwnProperty('x2') == true [enumerate.as:96]
+PASSED: obj.hasOwnProperty('x3') == true [enumerate.as:97]
+totals
diff --git a/test/gnash/actionscript.all/enumerate.as b/test/gnash/actionscript.all/enumerate.as
new file mode 100644
index 0000000..9f968de
--- /dev/null
+++ b/test/gnash/actionscript.all/enumerate.as
@@ -0,0 +1,102 @@
+ //
+// Copyright (C) 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modchecky
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; check not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fcheckth Floor, Boston, MA 02110-1301 USA
+//
+
+/*
+ * Zou Lunkai, zoulunkai at gmail.com
+ *
+ * Test ActionEnumerate/2
+ */
+
+
+rcsid="$Id: enumerate.as,v 1.10 2008/03/11 19:31:48 strk Exp $";
+#include "check.as"
+
+#if OUTPUT_VERSION > 5
+
+//
+// enumerate characters of a sprite
+//
+{
+ // Create a recorder and init it.
+ recorder = new Array(10);
+ for(i=0; i<10; i++){
+ recorder['mc'+i] = 0;
+ }
+
+ // Create six characters
+ for(i=0; i<6; i++){
+ _root.createEmptyMovieClip('mc'+i, i+1);
+ }
+
+ // Use the recorder to record the enumerated results in _root
+ i = 0;
+ for (var j in _root){
+ recorder[j.toString()] = _root[j];
+ i++;
+ }
+
+ // Test what we got in the above step. Tests show that characters were also got enumerated!
+ check_equals(typeof(recorder['mc0']), 'movieclip');
+ check_equals(typeof(recorder['mc1']), 'movieclip');
+ check_equals(typeof(recorder['mc2']), 'movieclip');
+ check_equals(typeof(recorder['mc3']), 'movieclip');
+ check_equals(typeof(recorder['mc4']), 'movieclip');
+ check_equals(typeof(recorder['mc5']), 'movieclip');
+ check_equals(_root.hasOwnProperty('mc0'), false);
+ check_equals(_root.hasOwnProperty('mc1'), false);
+ check_equals(_root.hasOwnProperty('mc2'), false);
+ check_equals(_root.hasOwnProperty('mc3'), false);
+ check_equals(_root.hasOwnProperty('mc4'), false);
+ check_equals(_root.hasOwnProperty('mc5'), false);
+ delete recorder;
+}
+
+//
+// enumerate properties of an AS object
+//
+{
+ recorder = new Array(10);
+
+ // initialize the recorder
+ for(i=0; i<10; i++){
+ recorder['x'+i] = 0;
+ }
+
+ obj = new Object();
+ obj.x1 = function () {};
+ obj.x2 = 1;
+ obj.x3 = Array();
+
+ i = 0;
+ for (var j in obj){
+ // equivalent to recorder[j.toString()] = obj[j.toString()];
+ recorder[j.toString()] = obj[j];
+ i++;
+ }
+
+ check_equals(typeof(recorder['x1']), 'function');
+ check_equals(typeof(recorder['x2']), 'number');
+ check_equals(typeof(recorder['x3']), 'object');
+ check_equals(obj.hasOwnProperty('x1'), true);
+ check_equals(obj.hasOwnProperty('x2'), true);
+ check_equals(obj.hasOwnProperty('x3'), true);
+ delete recorder;
+}
+
+#endif // OUTPUT_VERSION > 5
+totals();
diff --git a/test/gnash/actionscript.all/pending/BitmapData-5.swf b/test/gnash/actionscript.all/pending/BitmapData-5.swf
new file mode 100644
index 0000000..c32e682
Binary files /dev/null and b/test/gnash/actionscript.all/pending/BitmapData-5.swf differ
diff --git a/test/gnash/actionscript.all/pending/BitmapData-5.swf.trace b/test/gnash/actionscript.all/pending/BitmapData-5.swf.trace
new file mode 100644
index 0000000..23b0286
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/BitmapData-5.swf.trace
@@ -0,0 +1,2 @@
+PASSED: typeof(flash) == 'undefined' [BitmapData.as:30]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/pending/BitmapData-6.swf b/test/gnash/actionscript.all/pending/BitmapData-6.swf
new file mode 100644
index 0000000..f824adc
Binary files /dev/null and b/test/gnash/actionscript.all/pending/BitmapData-6.swf differ
diff --git a/test/gnash/actionscript.all/pending/BitmapData-6.swf.trace b/test/gnash/actionscript.all/pending/BitmapData-6.swf.trace
new file mode 100644
index 0000000..23b0286
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/BitmapData-6.swf.trace
@@ -0,0 +1,2 @@
+PASSED: typeof(flash) == 'undefined' [BitmapData.as:30]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/pending/BitmapData-7.swf b/test/gnash/actionscript.all/pending/BitmapData-7.swf
new file mode 100644
index 0000000..f7fba06
Binary files /dev/null and b/test/gnash/actionscript.all/pending/BitmapData-7.swf differ
diff --git a/test/gnash/actionscript.all/pending/BitmapData-7.swf.trace b/test/gnash/actionscript.all/pending/BitmapData-7.swf.trace
new file mode 100644
index 0000000..23b0286
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/BitmapData-7.swf.trace
@@ -0,0 +1,2 @@
+PASSED: typeof(flash) == 'undefined' [BitmapData.as:30]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/pending/BitmapData-8.swf b/test/gnash/actionscript.all/pending/BitmapData-8.swf
new file mode 100644
index 0000000..a8a3402
Binary files /dev/null and b/test/gnash/actionscript.all/pending/BitmapData-8.swf differ
diff --git a/test/gnash/actionscript.all/pending/BitmapData-8.swf.trace b/test/gnash/actionscript.all/pending/BitmapData-8.swf.trace
new file mode 100644
index 0000000..9d06472
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/BitmapData-8.swf.trace
@@ -0,0 +1,78 @@
+PASSED: typeof(Bitmap) == 'function' [BitmapData.as:37]
+PASSED: typeof(Bitmap.prototype) == 'object' [BitmapData.as:38]
+PASSED: Bitmap.prototype.hasOwnProperty('applyFilter') [BitmapData.as:39]
+PASSED: Bitmap.prototype.hasOwnProperty('clone') [BitmapData.as:40]
+PASSED: Bitmap.prototype.hasOwnProperty('colorTransform') [BitmapData.as:41]
+PASSED: Bitmap.prototype.hasOwnProperty('copyChannel') [BitmapData.as:42]
+PASSED: Bitmap.prototype.hasOwnProperty('copyPixels') [BitmapData.as:43]
+PASSED: Bitmap.prototype.hasOwnProperty('dispose') [BitmapData.as:44]
+PASSED: Bitmap.prototype.hasOwnProperty('draw') [BitmapData.as:45]
+PASSED: Bitmap.prototype.hasOwnProperty('fillRect') [BitmapData.as:46]
+PASSED: Bitmap.prototype.hasOwnProperty('floodFill') [BitmapData.as:47]
+PASSED: Bitmap.prototype.hasOwnProperty('generateFilterRect') [BitmapData.as:48]
+PASSED: Bitmap.prototype.hasOwnProperty('getColorBoundsRect') [BitmapData.as:49]
+PASSED: Bitmap.prototype.hasOwnProperty('getPixel') [BitmapData.as:50]
+PASSED: Bitmap.prototype.hasOwnProperty('getPixel32') [BitmapData.as:51]
+PASSED: Bitmap.prototype.hasOwnProperty('hitTest') [BitmapData.as:52]
+PASSED: Bitmap.prototype.hasOwnProperty('merge') [BitmapData.as:53]
+PASSED: Bitmap.prototype.hasOwnProperty('noise') [BitmapData.as:54]
+PASSED: Bitmap.prototype.hasOwnProperty('paletteMap') [BitmapData.as:55]
+PASSED: Bitmap.prototype.hasOwnProperty('perlinNoise') [BitmapData.as:56]
+PASSED: Bitmap.prototype.hasOwnProperty('pixelDissolve') [BitmapData.as:57]
+PASSED: Bitmap.prototype.hasOwnProperty('scroll') [BitmapData.as:58]
+PASSED: Bitmap.prototype.hasOwnProperty('setPixel') [BitmapData.as:59]
+PASSED: Bitmap.prototype.hasOwnProperty('setPixel32') [BitmapData.as:60]
+PASSED: Bitmap.prototype.hasOwnProperty('threshold') [BitmapData.as:61]
+PASSED: Bitmap.prototype.hasOwnProperty("height") [BitmapData.as:62]
+PASSED: Bitmap.prototype.hasOwnProperty("width") [BitmapData.as:63]
+PASSED: Bitmap.prototype.hasOwnProperty("rectangle") [BitmapData.as:64]
+PASSED: Bitmap.prototype.hasOwnProperty("transparent") [BitmapData.as:65]
+PASSED: !Bitmap.prototype.hasOwnProperty('loadBitmap') [BitmapData.as:67]
+PASSED: Bitmap.hasOwnProperty('loadBitmap') [BitmapData.as:68]
+XPASSED: typeof(bmp) == "undefined" [BitmapData.as:74]
+PASSED: typeof(bmp) == 'object' [BitmapData.as:77]
+PASSED: bmp instanceof Bitmap [BitmapData.as:78]
+PASSED: !bmp.hasOwnProperty("height") [BitmapData.as:79]
+PASSED: !bmp.hasOwnProperty("width") [BitmapData.as:80]
+PASSED: !bmp.hasOwnProperty("rectangle") [BitmapData.as:81]
+PASSED: !bmp.hasOwnProperty("transparent") [BitmapData.as:82]
+PASSED: bmp.height == 10 [BitmapData.as:83]
+PASSED: bmp.width == 10 [BitmapData.as:84]
+PASSED: bmp.transparent == true [BitmapData.as:85]
+XPASSED: bmp.rectangle.toString() == "(x=0, y=0, w=10, h=10)" [BitmapData.as:86]
+PASSED: bmp.getPixel(1, 1) == 16777215 [BitmapData.as:87]
+PASSED: bmp.getPixel(9, 9) == 16777215 [BitmapData.as:88]
+PASSED: bmp.getPixel32(1, 1) == -1 [BitmapData.as:89]
+PASSED: bmp.getPixel32(1, 1) == -1 [BitmapData.as:92]
+PASSED: bmp.getPixel32(1, 1) == -1 [BitmapData.as:94]
+PASSED: bmp.height == 30 [BitmapData.as:98]
+PASSED: bmp.width == 20 [BitmapData.as:99]
+PASSED: bmp.transparent == false [BitmapData.as:100]
+XPASSED: bmp.rectangle.toString() == "(x=0, y=0, w=20, h=30)" [BitmapData.as:101]
+PASSED: bmp.getPixel(1, 1) == 0xeeddee [BitmapData.as:102]
+PASSED: bmp.getPixel32(1, 1) == -1122834 [BitmapData.as:103]
+PASSED: bmp.getPixel(50, 1) == 0 [BitmapData.as:107]
+PASSED: bmp.getPixel(0, 0) == 15654382 [BitmapData.as:108]
+PASSED: bmp.getPixel(-2, -5) == 0 [BitmapData.as:109]
+PASSED: bmp.getPixel(20, 30) == 0 [BitmapData.as:112]
+XPASSED: bmp == undefined [BitmapData.as:115]
+XPASSED: bmp == undefined [BitmapData.as:117]
+XPASSED: typeof(bmp) == "undefined" [BitmapData.as:120]
+XPASSED: bmp == undefined [BitmapData.as:122]
+XPASSED: bmp.getPixel(10, 10) == 0x0000ff00 [BitmapData.as:129]
+XPASSED: bmp.getPixel(10, 0) == 0x000000ff [BitmapData.as:131]
+PASSED: bmp.getPixel(1, 1) == 0xffffff [BitmapData.as:141]
+PASSED: bmp.getPixel(2, 2) == 0xff1100 [BitmapData.as:142]
+PASSED: bmp.getPixel(2, 5) == 0xff1100 [BitmapData.as:143]
+PASSED: bmp.getPixel(5, 2) == 0xff1100 [BitmapData.as:144]
+PASSED: bmp.getPixel(2, 6) == 0xff1100 [BitmapData.as:145]
+PASSED: bmp.getPixel(6, 6) == 0xff1100 [BitmapData.as:146]
+PASSED: bmp.getPixel(6, 7) == 0xffffff [BitmapData.as:147]
+PASSED: bmp.getPixel(7, 6) == 0xffffff [BitmapData.as:148]
+PASSED: bmp.getPixel(1, 1) == 0x00ff00 [BitmapData.as:152]
+PASSED: bmp.getPixel(7, 6) == 0xffffff [BitmapData.as:157]
+PASSED: bmp.getPixel(19,19) == 0x0000ff [BitmapData.as:161]
+PASSED: bmp.getPixel(16, 16) == 0xff00ff [BitmapData.as:166]
+PASSED: bmp.getPixel32(18, 2) == -65281 [BitmapData.as:171]
+PASSED: bmp.getPixel32(3, 3) == -1711337216 [BitmapData.as:182]
+totals
diff --git a/test/gnash/actionscript.all/pending/BitmapData.as b/test/gnash/actionscript.all/pending/BitmapData.as
new file mode 100644
index 0000000..f37bb0d
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/BitmapData.as
@@ -0,0 +1,192 @@
+//
+// Copyright (C) 2008 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+//
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+// Test case for BitmapData ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+rcsid="$Id: BitmapData.as,v 1.3 2008/06/20 13:28:56 bwy Exp $";
+
+
+#include "check.as"
+
+#if OUTPUT_VERSION < 8
+
+check_equals(typeof(flash), 'undefined');
+
+check_totals(1);
+
+#else
+
+Bitmap = flash.display.BitmapData;
+check_equals(typeof(Bitmap), 'function');
+check_equals(typeof(Bitmap.prototype), 'object');
+check(Bitmap.prototype.hasOwnProperty('applyFilter'));
+check(Bitmap.prototype.hasOwnProperty('clone'));
+check(Bitmap.prototype.hasOwnProperty('colorTransform'));
+check(Bitmap.prototype.hasOwnProperty('copyChannel'));
+check(Bitmap.prototype.hasOwnProperty('copyPixels'));
+check(Bitmap.prototype.hasOwnProperty('dispose'));
+check(Bitmap.prototype.hasOwnProperty('draw'));
+check(Bitmap.prototype.hasOwnProperty('fillRect'));
+check(Bitmap.prototype.hasOwnProperty('floodFill'));
+check(Bitmap.prototype.hasOwnProperty('generateFilterRect'));
+check(Bitmap.prototype.hasOwnProperty('getColorBoundsRect'));
+check(Bitmap.prototype.hasOwnProperty('getPixel'));
+check(Bitmap.prototype.hasOwnProperty('getPixel32'));
+check(Bitmap.prototype.hasOwnProperty('hitTest'));
+check(Bitmap.prototype.hasOwnProperty('merge'));
+check(Bitmap.prototype.hasOwnProperty('noise'));
+check(Bitmap.prototype.hasOwnProperty('paletteMap'));
+check(Bitmap.prototype.hasOwnProperty('perlinNoise'));
+check(Bitmap.prototype.hasOwnProperty('pixelDissolve'));
+check(Bitmap.prototype.hasOwnProperty('scroll'));
+check(Bitmap.prototype.hasOwnProperty('setPixel'));
+check(Bitmap.prototype.hasOwnProperty('setPixel32'));
+check(Bitmap.prototype.hasOwnProperty('threshold'));
+check(Bitmap.prototype.hasOwnProperty("height"));
+check(Bitmap.prototype.hasOwnProperty("width"));
+check(Bitmap.prototype.hasOwnProperty("rectangle"));
+check(Bitmap.prototype.hasOwnProperty("transparent"));
+
+check(!Bitmap.prototype.hasOwnProperty('loadBitmap'));
+check(Bitmap.hasOwnProperty('loadBitmap'));
+//-------------------------------------------------------------
+// Test constructor
+//-------------------------------------------------------------
+
+bmp = new Bitmap();
+xcheck_equals(typeof(bmp), "undefined");
+
+bmp = new Bitmap(10, 10);
+check_equals(typeof(bmp), 'object');
+check(bmp instanceof Bitmap);
+check(!bmp.hasOwnProperty("height"));
+check(!bmp.hasOwnProperty("width"));
+check(!bmp.hasOwnProperty("rectangle"));
+check(!bmp.hasOwnProperty("transparent"));
+check_equals(bmp.height, 10);
+check_equals(bmp.width, 10);
+check_equals(bmp.transparent, true);
+xcheck_equals(bmp.rectangle.toString(), "(x=0, y=0, w=10, h=10)");
+check_equals(bmp.getPixel(1, 1), 16777215);
+check_equals(bmp.getPixel(9, 9), 16777215);
+check_equals(bmp.getPixel32(1, 1), -1);
+
+bmp = new Bitmap(10, 10, true);
+check_equals(bmp.getPixel32(1, 1), -1);
+bmp = new Bitmap(10, 10, false);
+check_equals(bmp.getPixel32(1, 1), -1);
+
+
+bmp = new Bitmap(20, 30, false, 0xeeddee);
+check_equals(bmp.height, 30);
+check_equals(bmp.width, 20);
+check_equals(bmp.transparent, false);
+xcheck_equals(bmp.rectangle.toString(), "(x=0, y=0, w=20, h=30)");
+check_equals(bmp.getPixel(1, 1), 0xeeddee);
+check_equals(bmp.getPixel32(1, 1), -1122834);
+
+// limits
+
+check_equals(bmp.getPixel(50, 1), 0);
+check_equals(bmp.getPixel(0, 0), 15654382);
+check_equals(bmp.getPixel(-2, -5), 0);
+
+// 0,0 is inside, 20, 30 outside a 20x30 bitmap.
+check_equals(bmp.getPixel(20, 30), 0);
+
+bmp = new Bitmap(10000, 0);
+xcheck_equals(bmp, undefined);
+bmp = new Bitmap(0, 10000);
+xcheck_equals(bmp, undefined);
+
+bmp = new Bitmap(2881, 0);
+xcheck_equals(typeof(bmp), "undefined");
+bmp = new Bitmap(0, 2881);
+xcheck_equals(bmp, undefined);
+
+
+// floodFill
+bmp = new Bitmap(20, 20, false);
+bmp.floodFill(10, 10, 0x0000ff00);
+
+xcheck_equals(bmp.getPixel(10, 10), 0x0000ff00);
+bmp.floodFill(5, 5, 0x000000ff);
+xcheck_equals(bmp.getPixel(10, 0), 0x000000ff);
+
+mc = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
+mc.attachBitmap(bmp, this.getNextHighestDepth());
+
+Rectangle = flash.geom.Rectangle;
+
+bmp = new Bitmap(20, 20, false);
+r = new Rectangle(2, 2, 5, 5);
+bmp.fillRect(r, 0xff1100);
+check_equals(bmp.getPixel(1, 1), 0xffffff);
+check_equals(bmp.getPixel(2, 2), 0xff1100);
+check_equals(bmp.getPixel(2, 5), 0xff1100);
+check_equals(bmp.getPixel(5, 2), 0xff1100);
+check_equals(bmp.getPixel(2, 6), 0xff1100);
+check_equals(bmp.getPixel(6, 6), 0xff1100);
+check_equals(bmp.getPixel(6, 7), 0xffffff);
+check_equals(bmp.getPixel(7, 6), 0xffffff);
+
+r = new Rectangle(-2, -2, 8, 8);
+bmp.fillRect(r, 0x00ff00);
+check_equals(bmp.getPixel(1, 1), 0x00ff00);
+
+// Fails.
+r = new Rectangle(18, 18, -4, -4);
+bmp.fillRect(r, 0x0000ff);
+check_equals(bmp.getPixel(7, 6), 0xffffff);
+
+r = new Rectangle(18, 18, 200, 200);
+bmp.fillRect(r, 0x0000ff);
+check_equals(bmp.getPixel(19,19), 0x0000ff);
+
+// Doesn't have to be a rectangle
+g = {x: 15, y: 15, width: 2, height: 2};
+bmp.fillRect(g, 0xff00ff);
+check_equals(bmp.getPixel(16, 16), 0xff00ff);
+
+// Transparency (this bitmap is not transparent).
+g = {x: 18, y: 2, width: 7, height: 7};
+bmp.fillRect(g, 0xddff00ff);
+check_equals(bmp.getPixel32(18, 2), -65281);
+
+mc.attachBitmap(bmp, this.getNextHighestDepth());
+
+// Transparency (transparent bitmap). Fill just obliterates
+// what was there, even if it's transparent.
+bmp = new Bitmap(20, 20, true);
+r = new Rectangle(1, 1, 10, 10);
+bmp.fillRect(r, 0xff00ff00);
+r = new Rectangle(2, 2, 9, 9);
+bmp.fillRect(r, 0x99ff1100);
+check_equals(bmp.getPixel32(3, 3), -1711337216);
+
+mc.attachBitmap(bmp, this.getNextHighestDepth());
+
+//-------------------------------------------------------------
+// END OF TEST
+//-------------------------------------------------------------
+
+totals(77);
+
+#endif // OUTPUT_VERSION >= 8
diff --git a/test/gnash/actionscript.all/pending/Boolean-5.swf b/test/gnash/actionscript.all/pending/Boolean-5.swf
new file mode 100644
index 0000000..9afd9a3
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Boolean-5.swf differ
diff --git a/test/gnash/actionscript.all/pending/Boolean-5.swf.trace b/test/gnash/actionscript.all/pending/Boolean-5.swf.trace
new file mode 100644
index 0000000..37a8ffd
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Boolean-5.swf.trace
@@ -0,0 +1,32 @@
+PASSED: typeof(Boolean) == 'function' [Boolean.as:27]
+PASSED: typeof(Boolean()) == 'undefined' [Boolean.as:28]
+PASSED: typeof(Boolean(true)) == 'boolean' [Boolean.as:29]
+PASSED: typeof(new Boolean()) == 'object' [Boolean.as:30]
+PASSED: boolObj [Boolean.as:35]
+PASSED: boolObj.toString [Boolean.as:37]
+PASSED: boolObj.valueOf [Boolean.as:38]
+PASSED: boolObj.tostring [Boolean.as:45]
+PASSED: boolObj.valueof [Boolean.as:46]
+PASSED: defaultBool.toString() == "false" [Boolean.as:50]
+PASSED: defaultBool.valueOf() == false [Boolean.as:51]
+PASSED: trueBool.toString() == "true" [Boolean.as:54]
+PASSED: trueBool.valueOf() == true [Boolean.as:55]
+PASSED: falseBool.toString() == "false" [Boolean.as:58]
+PASSED: falseBool.valueOf() == false [Boolean.as:59]
+PASSED: true [Boolean.as:67]
+PASSED: ! false [Boolean.as:68]
+PASSED: 1 [Boolean.as:71]
+PASSED: !0 [Boolean.as:72]
+PASSED: _root [Boolean.as:75]
+PASSED: "1" [Boolean.as:78]
+PASSED: ! "0" [Boolean.as:80]
+PASSED: ! "true" [Boolean.as:81]
+PASSED: ! "false" [Boolean.as:82]
+PASSED: typeOf(null) == "null" [Boolean.as:90]
+PASSED: ! null [Boolean.as:91]
+PASSED: ! undefined [Boolean.as:94]
+PASSED: play [Boolean.as:97]
+PASSED: emptyArray [Boolean.as:101]
+PASSED: falseBoolean [Boolean.as:103]
+PASSED: trueBoolean [Boolean.as:105]
+check_totals: 31
diff --git a/test/gnash/actionscript.all/pending/Boolean-6.swf b/test/gnash/actionscript.all/pending/Boolean-6.swf
new file mode 100644
index 0000000..e8a7303
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Boolean-6.swf differ
diff --git a/test/gnash/actionscript.all/pending/Boolean-6.swf.trace b/test/gnash/actionscript.all/pending/Boolean-6.swf.trace
new file mode 100644
index 0000000..37a8ffd
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Boolean-6.swf.trace
@@ -0,0 +1,32 @@
+PASSED: typeof(Boolean) == 'function' [Boolean.as:27]
+PASSED: typeof(Boolean()) == 'undefined' [Boolean.as:28]
+PASSED: typeof(Boolean(true)) == 'boolean' [Boolean.as:29]
+PASSED: typeof(new Boolean()) == 'object' [Boolean.as:30]
+PASSED: boolObj [Boolean.as:35]
+PASSED: boolObj.toString [Boolean.as:37]
+PASSED: boolObj.valueOf [Boolean.as:38]
+PASSED: boolObj.tostring [Boolean.as:45]
+PASSED: boolObj.valueof [Boolean.as:46]
+PASSED: defaultBool.toString() == "false" [Boolean.as:50]
+PASSED: defaultBool.valueOf() == false [Boolean.as:51]
+PASSED: trueBool.toString() == "true" [Boolean.as:54]
+PASSED: trueBool.valueOf() == true [Boolean.as:55]
+PASSED: falseBool.toString() == "false" [Boolean.as:58]
+PASSED: falseBool.valueOf() == false [Boolean.as:59]
+PASSED: true [Boolean.as:67]
+PASSED: ! false [Boolean.as:68]
+PASSED: 1 [Boolean.as:71]
+PASSED: !0 [Boolean.as:72]
+PASSED: _root [Boolean.as:75]
+PASSED: "1" [Boolean.as:78]
+PASSED: ! "0" [Boolean.as:80]
+PASSED: ! "true" [Boolean.as:81]
+PASSED: ! "false" [Boolean.as:82]
+PASSED: typeOf(null) == "null" [Boolean.as:90]
+PASSED: ! null [Boolean.as:91]
+PASSED: ! undefined [Boolean.as:94]
+PASSED: play [Boolean.as:97]
+PASSED: emptyArray [Boolean.as:101]
+PASSED: falseBoolean [Boolean.as:103]
+PASSED: trueBoolean [Boolean.as:105]
+check_totals: 31
diff --git a/test/gnash/actionscript.all/pending/Boolean-7.swf b/test/gnash/actionscript.all/pending/Boolean-7.swf
new file mode 100644
index 0000000..f148ec1
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Boolean-7.swf differ
diff --git a/test/gnash/actionscript.all/pending/Boolean-7.swf.trace b/test/gnash/actionscript.all/pending/Boolean-7.swf.trace
new file mode 100644
index 0000000..4b9c0a9
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Boolean-7.swf.trace
@@ -0,0 +1,32 @@
+PASSED: typeof(Boolean) == 'function' [Boolean.as:27]
+PASSED: typeof(Boolean()) == 'undefined' [Boolean.as:28]
+PASSED: typeof(Boolean(true)) == 'boolean' [Boolean.as:29]
+PASSED: typeof(new Boolean()) == 'object' [Boolean.as:30]
+PASSED: boolObj [Boolean.as:35]
+PASSED: boolObj.toString [Boolean.as:37]
+PASSED: boolObj.valueOf [Boolean.as:38]
+PASSED: boolObj.tostring == undefined [Boolean.as:42]
+PASSED: boolObj.valueof == undefined [Boolean.as:43]
+PASSED: defaultBool.toString() == "false" [Boolean.as:50]
+PASSED: defaultBool.valueOf() == false [Boolean.as:51]
+PASSED: trueBool.toString() == "true" [Boolean.as:54]
+PASSED: trueBool.valueOf() == true [Boolean.as:55]
+PASSED: falseBool.toString() == "false" [Boolean.as:58]
+PASSED: falseBool.valueOf() == false [Boolean.as:59]
+PASSED: true [Boolean.as:67]
+PASSED: ! false [Boolean.as:68]
+PASSED: 1 [Boolean.as:71]
+PASSED: !0 [Boolean.as:72]
+PASSED: _root [Boolean.as:75]
+PASSED: "1" [Boolean.as:78]
+PASSED: "0" [Boolean.as:84]
+PASSED: "true" [Boolean.as:85]
+PASSED: "false" [Boolean.as:86]
+PASSED: typeOf(null) == "null" [Boolean.as:90]
+PASSED: ! null [Boolean.as:91]
+PASSED: ! undefined [Boolean.as:94]
+PASSED: play [Boolean.as:97]
+PASSED: emptyArray [Boolean.as:101]
+PASSED: falseBoolean [Boolean.as:103]
+PASSED: trueBoolean [Boolean.as:105]
+check_totals: 31
diff --git a/test/gnash/actionscript.all/pending/Boolean-8.swf b/test/gnash/actionscript.all/pending/Boolean-8.swf
new file mode 100644
index 0000000..921c1f0
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Boolean-8.swf differ
diff --git a/test/gnash/actionscript.all/pending/Boolean-8.swf.trace b/test/gnash/actionscript.all/pending/Boolean-8.swf.trace
new file mode 100644
index 0000000..4b9c0a9
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Boolean-8.swf.trace
@@ -0,0 +1,32 @@
+PASSED: typeof(Boolean) == 'function' [Boolean.as:27]
+PASSED: typeof(Boolean()) == 'undefined' [Boolean.as:28]
+PASSED: typeof(Boolean(true)) == 'boolean' [Boolean.as:29]
+PASSED: typeof(new Boolean()) == 'object' [Boolean.as:30]
+PASSED: boolObj [Boolean.as:35]
+PASSED: boolObj.toString [Boolean.as:37]
+PASSED: boolObj.valueOf [Boolean.as:38]
+PASSED: boolObj.tostring == undefined [Boolean.as:42]
+PASSED: boolObj.valueof == undefined [Boolean.as:43]
+PASSED: defaultBool.toString() == "false" [Boolean.as:50]
+PASSED: defaultBool.valueOf() == false [Boolean.as:51]
+PASSED: trueBool.toString() == "true" [Boolean.as:54]
+PASSED: trueBool.valueOf() == true [Boolean.as:55]
+PASSED: falseBool.toString() == "false" [Boolean.as:58]
+PASSED: falseBool.valueOf() == false [Boolean.as:59]
+PASSED: true [Boolean.as:67]
+PASSED: ! false [Boolean.as:68]
+PASSED: 1 [Boolean.as:71]
+PASSED: !0 [Boolean.as:72]
+PASSED: _root [Boolean.as:75]
+PASSED: "1" [Boolean.as:78]
+PASSED: "0" [Boolean.as:84]
+PASSED: "true" [Boolean.as:85]
+PASSED: "false" [Boolean.as:86]
+PASSED: typeOf(null) == "null" [Boolean.as:90]
+PASSED: ! null [Boolean.as:91]
+PASSED: ! undefined [Boolean.as:94]
+PASSED: play [Boolean.as:97]
+PASSED: emptyArray [Boolean.as:101]
+PASSED: falseBoolean [Boolean.as:103]
+PASSED: trueBoolean [Boolean.as:105]
+check_totals: 31
diff --git a/test/gnash/actionscript.all/pending/Boolean.as b/test/gnash/actionscript.all/pending/Boolean.as
new file mode 100644
index 0000000..962b433
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Boolean.as
@@ -0,0 +1,108 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+// Test case for Boolean ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: Boolean.as,v 1.21 2008/04/02 09:39:59 strk Exp $";
+#include "check.as"
+
+check_equals(typeof(Boolean), 'function');
+check_equals(typeof(Boolean()), 'undefined');
+check_equals(typeof(Boolean(true)), 'boolean');
+check_equals(typeof(new Boolean()), 'object');
+
+var boolObj = new Boolean;
+
+// test the Boolean constuctor
+check (boolObj);
+
+check (boolObj.toString);
+check (boolObj.valueOf);
+
+#if OUTPUT_VERSION > 6
+// SWF7 and up is case-sensitive
+check_equals (boolObj.tostring, undefined);
+check_equals (boolObj.valueof, undefined);
+#else
+check (boolObj.tostring)
+check (boolObj.valueof)
+#endif
+
+var defaultBool = new Boolean();
+check_equals(defaultBool.toString(), "false");
+check_equals(defaultBool.valueOf(), false);
+
+var trueBool = new Boolean(true);
+check_equals(trueBool.toString(), "true");
+check_equals(trueBool.valueOf(), true);
+
+var falseBool = new Boolean(false);
+check_equals(falseBool.toString(), "false");
+check_equals(falseBool.valueOf(), false);
+
+
+//---------------------------------------------------
+// Test convertion to boolean
+//---------------------------------------------------
+
+// boolean
+check( true );
+check( ! false );
+
+// number
+check( 1 );
+check( !0 );
+
+// movieclip
+check( _root );
+
+// string
+check( "1" );
+#if OUTPUT_VERSION < 7
+ check( ! "0" );
+ check( ! "true" );
+ check( ! "false" );
+#else
+ check( "0" );
+ check( "true" );
+ check( "false" );
+#endif
+
+// Null
+check_equals(typeOf(null), "null" );
+check( ! null );
+
+// Undefined
+check( ! undefined );
+
+// Function
+check( play );
+
+// Object - conversion might depend on object type
+emptyArray = new Array();
+check( emptyArray );
+falseBoolean = new Boolean(false);
+check( falseBoolean );
+trueBoolean = new Boolean(true);
+check( trueBoolean );
+
+
+check_totals(31);
diff --git a/test/gnash/actionscript.all/pending/Camera-5.swf b/test/gnash/actionscript.all/pending/Camera-5.swf
new file mode 100644
index 0000000..40809b2
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Camera-5.swf differ
diff --git a/test/gnash/actionscript.all/pending/Camera-5.swf.trace b/test/gnash/actionscript.all/pending/Camera-5.swf.trace
new file mode 100644
index 0000000..ad8af0a
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Camera-5.swf.trace
@@ -0,0 +1,2 @@
+XPASSED: typeof(Camera) == 'function' [Camera.as:29]
+totals
diff --git a/test/gnash/actionscript.all/pending/Camera-6.swf b/test/gnash/actionscript.all/pending/Camera-6.swf
new file mode 100644
index 0000000..532f6d2
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Camera-6.swf differ
diff --git a/test/gnash/actionscript.all/pending/Camera-6.swf.trace b/test/gnash/actionscript.all/pending/Camera-6.swf.trace
new file mode 100644
index 0000000..c7affa2
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Camera-6.swf.trace
@@ -0,0 +1,15 @@
+PASSED: Camera [Camera.as:36]
+PASSED: cameraObj [Camera.as:38]
+PASSED: cameraObj2 [Camera.as:40]
+PASSED: cameraObj != cameraObj2 [Camera.as:42]
+PASSED: typeof(cameraObj) == 'object' [Camera.as:43]
+PASSED: Camera.get [Camera.as:47]
+XPASSED: cameraObj.get == undefined [Camera.as:48]
+Camera.get() returns: null
+XPASSED: Camera.setmode == undefined [Camera.as:53]
+XPASSED: Camera.setmotionlevel == undefined [Camera.as:54]
+XPASSED: Camera.setquality == undefined [Camera.as:55]
+PASSED: cameraObj.setmode [Camera.as:58]
+PASSED: cameraObj.setmotionlevel [Camera.as:59]
+PASSED: cameraObj.setquality [Camera.as:60]
+totals
diff --git a/test/gnash/actionscript.all/pending/Camera-7.swf b/test/gnash/actionscript.all/pending/Camera-7.swf
new file mode 100644
index 0000000..d6b667f
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Camera-7.swf differ
diff --git a/test/gnash/actionscript.all/pending/Camera-7.swf.trace b/test/gnash/actionscript.all/pending/Camera-7.swf.trace
new file mode 100644
index 0000000..f2a376d
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Camera-7.swf.trace
@@ -0,0 +1,15 @@
+PASSED: Camera [Camera.as:36]
+PASSED: cameraObj [Camera.as:38]
+PASSED: cameraObj2 [Camera.as:40]
+PASSED: cameraObj != cameraObj2 [Camera.as:42]
+PASSED: typeof(cameraObj) == 'object' [Camera.as:43]
+PASSED: Camera.get [Camera.as:47]
+XPASSED: cameraObj.get == undefined [Camera.as:48]
+Camera.get() returns: null
+XPASSED: Camera.setmode == undefined [Camera.as:53]
+XPASSED: Camera.setmotionlevel == undefined [Camera.as:54]
+XPASSED: Camera.setquality == undefined [Camera.as:55]
+XPASSED: cameraObj.setmode == undefined [Camera.as:62]
+XPASSED: cameraObj.setmotionlevel == undefined [Camera.as:63]
+XPASSED: cameraObj.setquality == undefined [Camera.as:64]
+totals
diff --git a/test/gnash/actionscript.all/pending/Camera-8.swf b/test/gnash/actionscript.all/pending/Camera-8.swf
new file mode 100644
index 0000000..8448845
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Camera-8.swf differ
diff --git a/test/gnash/actionscript.all/pending/Camera-8.swf.trace b/test/gnash/actionscript.all/pending/Camera-8.swf.trace
new file mode 100644
index 0000000..f2a376d
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Camera-8.swf.trace
@@ -0,0 +1,15 @@
+PASSED: Camera [Camera.as:36]
+PASSED: cameraObj [Camera.as:38]
+PASSED: cameraObj2 [Camera.as:40]
+PASSED: cameraObj != cameraObj2 [Camera.as:42]
+PASSED: typeof(cameraObj) == 'object' [Camera.as:43]
+PASSED: Camera.get [Camera.as:47]
+XPASSED: cameraObj.get == undefined [Camera.as:48]
+Camera.get() returns: null
+XPASSED: Camera.setmode == undefined [Camera.as:53]
+XPASSED: Camera.setmotionlevel == undefined [Camera.as:54]
+XPASSED: Camera.setquality == undefined [Camera.as:55]
+XPASSED: cameraObj.setmode == undefined [Camera.as:62]
+XPASSED: cameraObj.setmotionlevel == undefined [Camera.as:63]
+XPASSED: cameraObj.setquality == undefined [Camera.as:64]
+totals
diff --git a/test/gnash/actionscript.all/pending/Camera.as b/test/gnash/actionscript.all/pending/Camera.as
new file mode 100644
index 0000000..098fb71
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Camera.as
@@ -0,0 +1,68 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+// Test case for Camera ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: Camera.as,v 1.15 2008/03/11 19:31:46 strk Exp $";
+#include "check.as"
+
+#if OUTPUT_VERSION < 6
+
+xcheck_equals(typeof(Camera), 'function');
+
+#else // OUTPUT_VERSION >= 6
+
+//trace("NOTE: System.capabilities.hasVideoEncoder: " + System.capabilities.hasVideoEncoder);
+
+// test the Camera constuctor
+check(Camera);
+var cameraObj = new Camera;
+check(cameraObj);
+var cameraObj2 = new Camera();
+check(cameraObj2);
+
+check(cameraObj != cameraObj2);
+check_equals(typeof(cameraObj), 'object');
+
+// The .get() method is a class method, not exported
+// to instances.
+check(Camera.get);
+xcheck_equals(cameraObj.get, undefined);
+
+trace("Camera.get() returns: "+Camera.get());
+
+// test that the methods do not exist in the class
+xcheck_equals(Camera.setmode, undefined);
+xcheck_equals(Camera.setmotionlevel, undefined);
+xcheck_equals(Camera.setquality, undefined);
+
+#if OUTPUT_VERSION < 7
+check (cameraObj.setmode);
+check (cameraObj.setmotionlevel);
+check (cameraObj.setquality);
+#else
+xcheck_equals (cameraObj.setmode, undefined);
+xcheck_equals (cameraObj.setmotionlevel, undefined);
+xcheck_equals (cameraObj.setquality, undefined);
+#endif
+
+#endif // OUTPUT_VERSION >= 6
+totals();
diff --git a/test/gnash/actionscript.all/pending/Function-5.swf b/test/gnash/actionscript.all/pending/Function-5.swf
new file mode 100644
index 0000000..1ee0488
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Function-5.swf differ
diff --git a/test/gnash/actionscript.all/pending/Function-5.swf.trace b/test/gnash/actionscript.all/pending/Function-5.swf.trace
new file mode 100644
index 0000000..839aaba
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Function-5.swf.trace
@@ -0,0 +1,150 @@
+PASSED: getThisName.prototype.__proto__ == Object.prototype [Function.as:38]
+PASSED: getThisName == undefined [Function.as:44]
+PASSED: getThisName == null [Function.as:45]
+PASSED: getThisName != 0 [Function.as:46]
+PASSED: getThisName != 1 [Function.as:47]
+PASSED: ! isNaN(getThisName) [Function.as:48]
+PASSED: getThisName != "" [Function.as:49]
+PASSED: getThisName != "[type Function]" [Function.as:50]
+PASSED: typeof(getThisName) == "function" [Function.as:52]
+PASSED: typeOf(getThisName.apply) == 'undefined' [Function.as:126]
+PASSED: typeOf(getThisName.call) == 'undefined' [Function.as:165]
+PASSED: typeOf(TestClass) == 'function' [Function.as:181]
+PASSED: typeOf(TestClass.prototype) == 'object' [Function.as:194]
+PASSED: testInstance != undefined [Function.as:203]
+PASSED: testInstance.name != undefined [Function.as:204]
+PASSED: testInstance.name == "NONE" [Function.as:205]
+PASSED: typeof(testInstance.setname) == "function" [Function.as:206]
+PASSED: testInstance.name == "Test" [Function.as:210]
+PASSED: testInstance.__proto__ != undefined [Function.as:213]
+PASSED: testInstance.__proto__ == TestClass.prototype [Function.as:214]
+PASSED: testInstance instanceOf TestClass [Function.as:215]
+PASSED: testInstance instanceOf Object [Function.as:216]
+PASSED: TestClass.constructor == Function [Function.as:230]
+PASSED: typeOf(TestClass.prototype.constructor) == 'function' [Function.as:231]
+PASSED: TestClass.prototype.constructor == TestClass [Function.as:233]
+PASSED: testInstance.__proto__.constructor == TestClass [Function.as:234]
+PASSED: TestClass.prototype.additional == undefined [Function.as:239]
+PASSED: stringInstance.__proto__ != undefined [Function.as:243]
+PASSED: stringInstance.__proto__ == String.prototype [Function.as:244]
+PASSED: typeof(String.prototype.constructor) == 'function' [Function.as:245]
+PASSED: String.prototype.constructor == String [Function.as:246]
+PASSED: stringInstance.__proto__.constructor == String [Function.as:247]
+PASSED: testInstance instanceof TestClass [Function.as:250]
+PASSED: stringInstance instanceof String [Function.as:251]
+PASSED: f_func == undefined [Function.as:301]
+PASSED: tl_new == undefined [Function.as:302]
+PASSED: localvar == "lv" [Function.as:268]
+PASSED: tl_local == "tl_local" [Function.as:271]
+PASSED: tooverride == "overridden" [Function.as:280]
+PASSED: ! delete fl_func [Function.as:292]
+PASSED: ! delete f_func [Function.as:297]
+PASSED: tl_local == "tl_local2" [Function.as:304]
+PASSED: todelete == undefined [Function.as:305]
+PASSED: tooverride == "tooverride" [Function.as:306]
+PASSED: tl_new == "tl_new" [Function.as:307]
+PASSED: fl_func == undefined [Function.as:308]
+PASSED: typeof(f_func) == 'function' [Function.as:309]
+PASSED: eval("result1") == "initial_result1_value" [Function.as:320]
+PASSED: typeof(outer_func) == 'function' [Function.as:337]
+PASSED: typeof(inner_func) == 'function' [Function.as:341]
+PASSED: result1 == undefined [Function.as:351]
+PASSED: result2 == undefined [Function.as:352]
+PASSED: typeof(bla) == 'function' [Function.as:365]
+PASSED: bla(42) == 42 [Function.as:366]
+PASSED: typeof(bla) == 'function' [Function.as:367]
+PASSED: typeof(bla(43)) == 'undefined' [Function.as:369]
+PASSED: this.a == "a_in_obj" [Function.as:388]
+PASSED: this.a == "a_in_root" [Function.as:394]
+PASSED: this.a == "a_in_root" [Function.as:398]
+PASSED: typeof(arguments) == 'object' [Function.as:406]
+PASSED: arguments instanceOf Array [Function.as:407]
+PASSED: arguments instanceOf Object [Function.as:408]
+PASSED: arguments.length == 0 [Function.as:409]
+PASSED: typeof(arguments.callee) == 'function' [Function.as:411]
+PASSED: arguments.callee == _root.f [Function.as:413]
+XPASSED: typeof(arguments.caller) == 'null' [Function.as:415]
+PASSED: arguments.caller == null [Function.as:416]
+PASSED: propRecorder.length == 0 [Function.as:425]
+XPASSED: propRecorder.length == 5 [Function.as:433]
+PASSED: propRecorder[0] == '__proto__' [Function.as:434]
+PASSED: propRecorder[1] == 'callee' [Function.as:435]
+XPASSED: propRecorder[2] == 'caller' [Function.as:436]
+XPASSED: propRecorder[3] == 'constructor' [Function.as:437]
+XPASSED: propRecorder[4] == 'length' [Function.as:438]
+PASSED: arguments.caller == parent_func [Function.as:446]
+PASSED: arguments.length == 3 [Function.as:462]
+PASSED: arguments[0] == 1 [Function.as:463]
+PASSED: arguments[1] == 2 [Function.as:464]
+PASSED: arguments[2] == 3 [Function.as:465]
+PASSED: arguments[3] == undefined [Function.as:466]
+PASSED: d == undefined [Function.as:467]
+PASSED: arguments[3] == 3 [Function.as:469]
+PASSED: d != 3 [Function.as:472]
+PASSED: arguments[0] == 'zero' [Function.as:474]
+PASSED: arguments.length == 10 [Function.as:476]
+PASSED: arguments.length == 9 [Function.as:478]
+PASSED: arguments.somethingelse == "can extend" [Function.as:480]
+PASSED: argsCounter(1,2,3) == 3 [Function.as:487]
+PASSED: argsCounter(a,b,c,d) == 4 [Function.as:488]
+PASSED: argsCounter([a,b]) == 1 [Function.as:489]
+PASSED: factorial(3) == 6 [Function.as:494]
+PASSED: factorial(4) == 24 [Function.as:495]
+PASSED: typeof(textOutFunc.toString) == 'undefined' [Function.as:532]
+PASSED: textOutFunc.toString() == 'custom text rep' [Function.as:538]
+PASSED: typeof(textOutFunc.toString()) == 'string' [Function.as:539]
+NOTE:
+PASSED: typeof(textOutFunc.toString) == 'number' [Function.as:546]
+NOTE:
+PASSED: typeof(a.constructor) == 'function' [Function.as:557]
+PASSED: typeof(a.constructor) == 'function' [Function.as:573]
+PASSED: typeof(a.constructor) == 'function' [Function.as:589]
+PASSED: typeof(Email.prototype.__constructor__) == 'undefined' [Function.as:626]
+PASSED: Email.constructor.toString() == undefined [Function.as:632]
+PASSED: Function == undefined [Function.as:633]
+PASSED: typeof(Email.constructor) == 'function' [Function.as:635]
+PASSED: typeof(Email.constructor.constructor) == 'function' [Function.as:636]
+PASSED: typeof(Email.constructor.constructor.constructor) == 'function' [Function.as:637]
+PASSED: typeof(Email.__constructor__) == 'undefined' [Function.as:650]
+PASSED: ! Email.hasOwnProperty('__constructor__') [Function.as:651]
+PASSED: typeof(Email.prototype.constructor) == 'function' [Function.as:655]
+PASSED: Email.prototype.constructor == Mail [Function.as:656]
+PASSED: typeof(Email.prototype.__constructor__) == 'undefined' [Function.as:662]
+PASSED: typeof(super) == 'undefined' [Function.as:621]
+PASSED: myMail.subject == 'greetings' [Function.as:666]
+PASSED: typeof(myMail.to) == 'undefined' [Function.as:673]
+PASSED: typeof(myMail.message) == 'undefined' [Function.as:674]
+PASSED: typeof(super) == 'undefined' [Function.as:621]
+PASSED: myMail.subject == 'greetings' [Function.as:686]
+PASSED: myMail.to == undefined [Function.as:691]
+PASSED: myMail.message == undefined [Function.as:692]
+PASSED: getThis() == this [Function.as:701]
+PASSED: o.getThis() == o [Function.as:705]
+PASSED: typeof(ret) == 'object' [Function.as:711]
+PASSED: ret == o.sub [Function.as:712]
+PASSED: typeof(ret) == 'object' [Function.as:718]
+PASSED: ret == o.sub [Function.as:719]
+PASSED: typeof(ret) == 'object' [Function.as:723]
+PASSED: ret == o [Function.as:724]
+PASSED: typeof(ret) == 'object' [Function.as:727]
+PASSED: ret == sub [Function.as:728]
+PASSED: delete o.sub.getThis [Function.as:731]
+PASSED: typeof(ret) == 'object' [Function.as:736]
+PASSED: getThis() == o [Function.as:737]
+PASSED: typeof(ret) == 'object' [Function.as:745]
+PASSED: ret == testInFunctionContext [Function.as:747]
+PASSED: ret != this [Function.as:751]
+PASSED: typeof(ret) == 'object' [Function.as:757]
+PASSED: ret == o [Function.as:758]
+PASSED: num == 5 [Function.as:761]
+PASSED: num == 4 [Function.as:763]
+PASSED: typeof(f()) == 'undefined' [Function.as:783]
+XPASSED: testvar1 == 1 [Function.as:812]
+XPASSED: testvar2 == 2 [Function.as:813]
+XPASSED: testvar3 == 3 [Function.as:814]
+XPASSED: testvar1 == 9 [Function.as:897]
+XPASSED: testvar2 == 8 [Function.as:898]
+XPASSED: testvar3 == 7 [Function.as:899]
+PASSED: a.count == 2 [Function.as:914]
+PASSED: b.count == 1 [Function.as:915]
+check_totals: 147
diff --git a/test/gnash/actionscript.all/pending/Function-6.swf b/test/gnash/actionscript.all/pending/Function-6.swf
new file mode 100644
index 0000000..78e5e8e
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Function-6.swf differ
diff --git a/test/gnash/actionscript.all/pending/Function-6.swf.trace b/test/gnash/actionscript.all/pending/Function-6.swf.trace
new file mode 100644
index 0000000..cbd895f
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Function-6.swf.trace
@@ -0,0 +1,210 @@
+PASSED: Function.prototype.__proto__ == Object.prototype [Function.as:29]
+PASSED: Function.constructor == Function [Function.as:30]
+PASSED: ! Function.hasOwnProperty('__constructor__') [Function.as:31]
+PASSED: getThisName.prototype.__proto__ == Object.prototype [Function.as:38]
+PASSED: getThisName != undefined [Function.as:41]
+PASSED: typeof(getThisName) == "function" [Function.as:52]
+PASSED: typeof(getThisName.apply) == 'function' [Function.as:62]
+PASSED: getThisName.apply(this_ref) == "extname" [Function.as:70]
+PASSED: ret == "extname123" [Function.as:75]
+PASSED: ret == 0 [Function.as:83]
+PASSED: ret == "extname456" [Function.as:87]
+PASSED: ret == "extname" [Function.as:92]
+PASSED: ret == "extname" [Function.as:99]
+PASSED: ret == 15 [Function.as:106]
+PASSED: ret == 0 [Function.as:113]
+PASSED: ret == 0 [Function.as:120]
+PASSED: getThisName.call(this_ref, 1, 2, 3) == "extname123" [Function.as:139]
+PASSED: nullcall == 6 [Function.as:147]
+PASSED: ret == o [Function.as:154]
+PASSED: c == 1 [Function.as:155]
+PASSED: c == 2 [Function.as:157]
+XPASSED: typeof(ret) == 'object' [Function.as:158]
+XPASSED: ret == undefined [Function.as:159]
+PASSED: ! (ret === undefined) [Function.as:160]
+PASSED: ! (ret === null) [Function.as:161]
+PASSED: typeOf(TestClass) == 'function' [Function.as:181]
+PASSED: typeOf(TestClass.apply) == 'function' [Function.as:186]
+PASSED: typeOf(TestClass.call) == 'function' [Function.as:189]
+PASSED: typeOf(TestClass.prototype) == 'object' [Function.as:194]
+PASSED: testInstance != undefined [Function.as:203]
+PASSED: testInstance.name != undefined [Function.as:204]
+PASSED: testInstance.name == "NONE" [Function.as:205]
+PASSED: typeof(testInstance.setname) == "function" [Function.as:206]
+PASSED: testInstance.name == "Test" [Function.as:210]
+PASSED: testInstance.__proto__ != undefined [Function.as:213]
+PASSED: testInstance.__proto__ == TestClass.prototype [Function.as:214]
+PASSED: testInstance instanceOf TestClass [Function.as:215]
+PASSED: testInstance instanceOf Object [Function.as:216]
+PASSED: typeOf(Function.prototype.addProperty) == 'function' [Function.as:219]
+PASSED: testInstance.__proto__ == TestClass.prototype [Function.as:220]
+PASSED: TestClass.__proto__ == Function.prototype [Function.as:221]
+PASSED: testInstance.addProperty == Object.prototype.addProperty [Function.as:222]
+PASSED: t == 7 [Function.as:225]
+PASSED: Function instanceOf Object [Function.as:226]
+PASSED: TestClass.hasOwnProperty('constructor') [Function.as:227]
+PASSED: TestClass.constructor == Function [Function.as:230]
+PASSED: typeOf(TestClass.prototype.constructor) == 'function' [Function.as:231]
+PASSED: TestClass.prototype.constructor == TestClass [Function.as:233]
+PASSED: testInstance.__proto__.constructor == TestClass [Function.as:234]
+PASSED: TestClass.prototype.additional == undefined [Function.as:239]
+PASSED: stringInstance.__proto__ != undefined [Function.as:243]
+PASSED: stringInstance.__proto__ == String.prototype [Function.as:244]
+PASSED: typeof(String.prototype.constructor) == 'function' [Function.as:245]
+PASSED: String.prototype.constructor == String [Function.as:246]
+PASSED: stringInstance.__proto__.constructor == String [Function.as:247]
+PASSED: testInstance instanceof TestClass [Function.as:250]
+PASSED: stringInstance instanceof String [Function.as:251]
+PASSED: f_func == undefined [Function.as:301]
+PASSED: tl_new == undefined [Function.as:302]
+PASSED: localvar == "lv" [Function.as:268]
+PASSED: tl_local == "tl_local" [Function.as:271]
+PASSED: tooverride == "overridden" [Function.as:280]
+PASSED: ! delete fl_func [Function.as:292]
+PASSED: ! delete f_func [Function.as:297]
+PASSED: tl_local == "tl_local2" [Function.as:304]
+PASSED: todelete == undefined [Function.as:305]
+PASSED: tooverride == "tooverride" [Function.as:306]
+PASSED: tl_new == "tl_new" [Function.as:307]
+PASSED: fl_func == undefined [Function.as:308]
+PASSED: typeof(f_func) == 'function' [Function.as:309]
+PASSED: eval("result1") == "initial_result1_value" [Function.as:320]
+PASSED: typeof(outer_func) == 'function' [Function.as:337]
+PASSED: typeof(inner_func) == 'function' [Function.as:341]
+PASSED: result1 == "hello" [Function.as:346]
+PASSED: result2 == "hello" [Function.as:347]
+PASSED: typeof(bla) == 'function' [Function.as:365]
+PASSED: bla(42) == 42 [Function.as:366]
+PASSED: typeof(bla) == 'function' [Function.as:367]
+PASSED: bla(43) == 42 [Function.as:371]
+PASSED: this.a == "a_in_obj" [Function.as:388]
+PASSED: this.a == "a_in_root" [Function.as:394]
+PASSED: this.a == "a_in_root" [Function.as:398]
+PASSED: typeof(arguments) == 'object' [Function.as:406]
+PASSED: arguments instanceOf Array [Function.as:407]
+PASSED: arguments instanceOf Object [Function.as:408]
+PASSED: arguments.length == 0 [Function.as:409]
+PASSED: typeof(arguments.callee) == 'function' [Function.as:411]
+PASSED: arguments.callee == _root.f [Function.as:413]
+XPASSED: typeof(arguments.caller) == 'null' [Function.as:415]
+PASSED: arguments.caller == null [Function.as:416]
+PASSED: propRecorder.length == 0 [Function.as:425]
+XPASSED: propRecorder.length == 5 [Function.as:433]
+PASSED: propRecorder[0] == '__proto__' [Function.as:434]
+PASSED: propRecorder[1] == 'callee' [Function.as:435]
+XPASSED: propRecorder[2] == 'caller' [Function.as:436]
+XPASSED: propRecorder[3] == 'constructor' [Function.as:437]
+XPASSED: propRecorder[4] == 'length' [Function.as:438]
+XPASSED: arguments.caller == parent_func [Function.as:449]
+PASSED: arguments.length == 3 [Function.as:462]
+PASSED: arguments[0] == 1 [Function.as:463]
+PASSED: arguments[1] == 2 [Function.as:464]
+PASSED: arguments[2] == 3 [Function.as:465]
+PASSED: arguments[3] == undefined [Function.as:466]
+PASSED: d == undefined [Function.as:467]
+PASSED: arguments[3] == 3 [Function.as:469]
+PASSED: d != 3 [Function.as:472]
+PASSED: arguments[0] == 'zero' [Function.as:474]
+PASSED: arguments.length == 10 [Function.as:476]
+PASSED: arguments.length == 9 [Function.as:478]
+PASSED: arguments.somethingelse == "can extend" [Function.as:480]
+PASSED: argsCounter(1,2,3) == 3 [Function.as:487]
+PASSED: argsCounter(a,b,c,d) == 4 [Function.as:488]
+PASSED: argsCounter([a,b]) == 1 [Function.as:489]
+PASSED: factorial(3) == 6 [Function.as:494]
+PASSED: factorial(4) == 24 [Function.as:495]
+PASSED: typeof(fooInstance) == 'object' [Function.as:511]
+PASSED: fooInstance instanceOf Foo [Function.as:512]
+PASSED: typeof(textOutFunc.toString()) == 'string' [Function.as:524]
+PASSED: textOutFunc.toString() == '[type Function]' [Function.as:525]
+PASSED: !textOutFunc.hasOwnProperty('toString') [Function.as:527]
+PASSED: !Function.prototype.hasOwnProperty('toString') [Function.as:528]
+PASSED: Object.prototype.hasOwnProperty('toString') [Function.as:529]
+PASSED: textOutFunc.toString == Object.prototype.toString [Function.as:530]
+PASSED: textOutFunc.hasOwnProperty('toString') [Function.as:536]
+PASSED: textOutFunc.toString() == 'custom text rep' [Function.as:538]
+PASSED: typeof(textOutFunc.toString()) == 'string' [Function.as:539]
+NOTE: custom text rep
+PASSED: typeof(textOutFunc.toString) == 'number' [Function.as:546]
+NOTE: [type Function]
+PASSED: typeof(a.constructor) == 'function' [Function.as:557]
+PASSED: typeof(a.__constructor__) == 'function' [Function.as:559]
+PASSED: a.hasOwnProperty('constructor') [Function.as:561]
+PASSED: a.hasOwnProperty('__constructor__') [Function.as:565]
+PASSED: a.constructor == Number [Function.as:566]
+PASSED: a.__constructor__ == Number [Function.as:567]
+PASSED: ! a instanceof Number [Function.as:568]
+PASSED: a.constructor != Object [Function.as:569]
+PASSED: typeof(a.constructor) == 'function' [Function.as:573]
+PASSED: typeof(a.__constructor__) == 'function' [Function.as:575]
+PASSED: a.hasOwnProperty('constructor') [Function.as:577]
+PASSED: a.hasOwnProperty('__constructor__') [Function.as:581]
+PASSED: a.constructor == String [Function.as:582]
+PASSED: a.__constructor__ == String [Function.as:583]
+PASSED: ! a instanceof String [Function.as:584]
+PASSED: a.constructor != Object [Function.as:585]
+PASSED: typeof(a.constructor) == 'function' [Function.as:589]
+PASSED: typeof(a.__constructor__) == 'function' [Function.as:591]
+PASSED: a.hasOwnProperty('constructor') [Function.as:593]
+PASSED: a.hasOwnProperty('__constructor__') [Function.as:597]
+PASSED: a.constructor == Boolean [Function.as:598]
+PASSED: a.__constructor__ == Boolean [Function.as:599]
+PASSED: ! a instanceof String [Function.as:600]
+PASSED: a.constructor != Object [Function.as:601]
+PASSED: typeof(Email.prototype.__constructor__) == 'undefined' [Function.as:626]
+PASSED: typeof(Email.constructor) == 'function' [Function.as:635]
+PASSED: typeof(Email.constructor.constructor) == 'function' [Function.as:636]
+PASSED: typeof(Email.constructor.constructor.constructor) == 'function' [Function.as:637]
+PASSED: Email.constructor == Function [Function.as:639]
+PASSED: Email.constructor.constructor == Function [Function.as:640]
+PASSED: Email.constructor.constructor.constructor == Function [Function.as:641]
+PASSED: Email.hasOwnProperty('constructor') [Function.as:643]
+PASSED: Email.constructor.hasOwnProperty('constructor') [Function.as:644]
+PASSED: Email.constructor.constructor.hasOwnProperty('constructor') [Function.as:645]
+PASSED: typeof(Email.__constructor__) == 'undefined' [Function.as:650]
+PASSED: ! Email.hasOwnProperty('__constructor__') [Function.as:651]
+PASSED: typeof(Email.prototype.constructor) == 'function' [Function.as:655]
+PASSED: Email.prototype.constructor == Mail [Function.as:656]
+PASSED: typeof(Email.prototype.__constructor__) == 'function' [Function.as:659]
+PASSED: Email.prototype.__constructor__ == Email.prototype.constructor [Function.as:660]
+PASSED: typeof(super) == 'object' [Function.as:619]
+PASSED: myMail.subject == 'greetings' [Function.as:666]
+PASSED: myMail.to == 'you' [Function.as:669]
+PASSED: myMail.message == 'hello' [Function.as:670]
+PASSED: typeof(super) == 'object' [Function.as:619]
+PASSED: myMail.subject == 'greetings' [Function.as:686]
+PASSED: myMail.to == 'everyone' [Function.as:688]
+PASSED: myMail.message == 'enlarge yourself' [Function.as:689]
+PASSED: getThis() == this [Function.as:701]
+PASSED: o.getThis() == o [Function.as:705]
+PASSED: typeof(ret) == 'object' [Function.as:711]
+PASSED: ret == o.sub [Function.as:712]
+PASSED: typeof(ret) == 'object' [Function.as:718]
+PASSED: ret == o.sub [Function.as:719]
+PASSED: typeof(ret) == 'object' [Function.as:723]
+PASSED: ret == o [Function.as:724]
+PASSED: typeof(ret) == 'object' [Function.as:727]
+PASSED: ret == sub [Function.as:728]
+PASSED: delete o.sub.getThis [Function.as:731]
+PASSED: typeof(ret) == 'object' [Function.as:736]
+PASSED: getThis() == o [Function.as:737]
+PASSED: typeof(ret) == 'object' [Function.as:745]
+PASSED: ret != testInFunctionContext [Function.as:749]
+PASSED: ret != this [Function.as:751]
+PASSED: typeof(ret) == 'object' [Function.as:757]
+PASSED: ret == o [Function.as:758]
+PASSED: num == 5 [Function.as:761]
+PASSED: num == 4 [Function.as:763]
+PASSED: f() == 42 [Function.as:781]
+XPASSED: testvar1 == 1 [Function.as:812]
+XPASSED: testvar2 == 2 [Function.as:813]
+XPASSED: testvar3 == 3 [Function.as:814]
+XPASSED: testvar1 == 4 [Function.as:842]
+XPASSED: testvar2 == 5 [Function.as:843]
+XPASSED: testvar3 == 6 [Function.as:844]
+XPASSED: testvar1 == 9 [Function.as:897]
+XPASSED: testvar2 == 8 [Function.as:898]
+XPASSED: testvar3 == 7 [Function.as:899]
+PASSED: a.count == 2 [Function.as:914]
+PASSED: b.count == 1 [Function.as:915]
+check_totals: 207
diff --git a/test/gnash/actionscript.all/pending/Function-7.swf b/test/gnash/actionscript.all/pending/Function-7.swf
new file mode 100644
index 0000000..3a197e6
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Function-7.swf differ
diff --git a/test/gnash/actionscript.all/pending/Function-7.swf.trace b/test/gnash/actionscript.all/pending/Function-7.swf.trace
new file mode 100644
index 0000000..39e6150
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Function-7.swf.trace
@@ -0,0 +1,211 @@
+PASSED: Function.prototype.__proto__ == Object.prototype [Function.as:29]
+PASSED: Function.constructor == Function [Function.as:30]
+PASSED: ! Function.hasOwnProperty('__constructor__') [Function.as:31]
+PASSED: getThisName.prototype.__proto__ == Object.prototype [Function.as:38]
+PASSED: getThisName != undefined [Function.as:41]
+PASSED: typeof(getThisName) == "function" [Function.as:52]
+PASSED: typeof(getThisName.apply) == 'function' [Function.as:62]
+PASSED: getThisName.apply(this_ref) == "extnameundefinedundefinedundefined" [Function.as:68]
+PASSED: ret == "extname123" [Function.as:75]
+PASSED: isNaN(ret) [Function.as:81]
+PASSED: ret == "extname456" [Function.as:87]
+PASSED: ret == "extnameundefinedundefinedundefined" [Function.as:90]
+PASSED: ret == "extnameundefinedundefinedundefined" [Function.as:97]
+PASSED: isNaN(ret) [Function.as:104]
+PASSED: isNaN(ret) [Function.as:111]
+PASSED: isNaN(ret) [Function.as:118]
+PASSED: getThisName.call(this_ref, 1, 2, 3) == "extname123" [Function.as:139]
+PASSED: typeof(nullcall) == 'number' [Function.as:144]
+PASSED: isNaN(nullcall) [Function.as:145]
+PASSED: ret == o [Function.as:154]
+PASSED: c == 1 [Function.as:155]
+PASSED: c == 2 [Function.as:157]
+XPASSED: typeof(ret) == 'object' [Function.as:158]
+XPASSED: ret == undefined [Function.as:159]
+PASSED: ! (ret === undefined) [Function.as:160]
+PASSED: ! (ret === null) [Function.as:161]
+PASSED: typeOf(TestClass) == 'function' [Function.as:181]
+PASSED: typeOf(TestClass.apply) == 'function' [Function.as:186]
+PASSED: typeOf(TestClass.call) == 'function' [Function.as:189]
+PASSED: typeOf(TestClass.prototype) == 'object' [Function.as:194]
+PASSED: testInstance != undefined [Function.as:203]
+PASSED: testInstance.name != undefined [Function.as:204]
+PASSED: testInstance.name == "NONE" [Function.as:205]
+PASSED: typeof(testInstance.setname) == "function" [Function.as:206]
+PASSED: testInstance.name == "Test" [Function.as:210]
+PASSED: testInstance.__proto__ != undefined [Function.as:213]
+PASSED: testInstance.__proto__ == TestClass.prototype [Function.as:214]
+PASSED: testInstance instanceOf TestClass [Function.as:215]
+PASSED: testInstance instanceOf Object [Function.as:216]
+PASSED: typeOf(Function.prototype.addProperty) == 'function' [Function.as:219]
+PASSED: testInstance.__proto__ == TestClass.prototype [Function.as:220]
+PASSED: TestClass.__proto__ == Function.prototype [Function.as:221]
+PASSED: testInstance.addProperty == Object.prototype.addProperty [Function.as:222]
+PASSED: t == 7 [Function.as:225]
+PASSED: Function instanceOf Object [Function.as:226]
+PASSED: TestClass.hasOwnProperty('constructor') [Function.as:227]
+PASSED: TestClass.constructor == Function [Function.as:230]
+PASSED: typeOf(TestClass.prototype.constructor) == 'function' [Function.as:231]
+PASSED: TestClass.prototype.constructor == TestClass [Function.as:233]
+PASSED: testInstance.__proto__.constructor == TestClass [Function.as:234]
+PASSED: TestClass.prototype.additional == undefined [Function.as:239]
+PASSED: stringInstance.__proto__ != undefined [Function.as:243]
+PASSED: stringInstance.__proto__ == String.prototype [Function.as:244]
+PASSED: typeof(String.prototype.constructor) == 'function' [Function.as:245]
+PASSED: String.prototype.constructor == String [Function.as:246]
+PASSED: stringInstance.__proto__.constructor == String [Function.as:247]
+PASSED: testInstance instanceof TestClass [Function.as:250]
+PASSED: stringInstance instanceof String [Function.as:251]
+PASSED: f_func == undefined [Function.as:301]
+PASSED: tl_new == undefined [Function.as:302]
+PASSED: localvar == "lv" [Function.as:268]
+PASSED: tl_local == "tl_local" [Function.as:271]
+PASSED: tooverride == "overridden" [Function.as:280]
+PASSED: ! delete fl_func [Function.as:292]
+PASSED: ! delete f_func [Function.as:297]
+PASSED: tl_local == "tl_local2" [Function.as:304]
+PASSED: todelete == undefined [Function.as:305]
+PASSED: tooverride == "tooverride" [Function.as:306]
+PASSED: tl_new == "tl_new" [Function.as:307]
+PASSED: fl_func == undefined [Function.as:308]
+PASSED: typeof(f_func) == 'function' [Function.as:309]
+PASSED: eval("result1") == "initial_result1_value" [Function.as:320]
+PASSED: typeof(outer_func) == 'function' [Function.as:337]
+PASSED: typeof(inner_func) == 'function' [Function.as:341]
+PASSED: result1 == "hello" [Function.as:346]
+PASSED: result2 == "hello" [Function.as:347]
+PASSED: typeof(bla) == 'function' [Function.as:365]
+PASSED: bla(42) == 42 [Function.as:366]
+PASSED: typeof(bla) == 'function' [Function.as:367]
+PASSED: bla(43) == 42 [Function.as:371]
+PASSED: this.a == "a_in_obj" [Function.as:388]
+PASSED: this.a == "a_in_root" [Function.as:394]
+PASSED: this.a == "a_in_root" [Function.as:398]
+PASSED: typeof(arguments) == 'object' [Function.as:406]
+PASSED: arguments instanceOf Array [Function.as:407]
+PASSED: arguments instanceOf Object [Function.as:408]
+PASSED: arguments.length == 0 [Function.as:409]
+PASSED: typeof(arguments.callee) == 'function' [Function.as:411]
+PASSED: arguments.callee == _root.f [Function.as:413]
+XPASSED: typeof(arguments.caller) == 'null' [Function.as:415]
+PASSED: arguments.caller == null [Function.as:416]
+PASSED: propRecorder.length == 0 [Function.as:425]
+XPASSED: propRecorder.length == 5 [Function.as:433]
+PASSED: propRecorder[0] == '__proto__' [Function.as:434]
+PASSED: propRecorder[1] == 'callee' [Function.as:435]
+XPASSED: propRecorder[2] == 'caller' [Function.as:436]
+XPASSED: propRecorder[3] == 'constructor' [Function.as:437]
+XPASSED: propRecorder[4] == 'length' [Function.as:438]
+XPASSED: arguments.caller == parent_func [Function.as:449]
+PASSED: arguments.length == 3 [Function.as:462]
+PASSED: arguments[0] == 1 [Function.as:463]
+PASSED: arguments[1] == 2 [Function.as:464]
+PASSED: arguments[2] == 3 [Function.as:465]
+PASSED: arguments[3] == undefined [Function.as:466]
+PASSED: d == undefined [Function.as:467]
+PASSED: arguments[3] == 3 [Function.as:469]
+PASSED: d != 3 [Function.as:472]
+PASSED: arguments[0] == 'zero' [Function.as:474]
+PASSED: arguments.length == 10 [Function.as:476]
+PASSED: arguments.length == 9 [Function.as:478]
+PASSED: arguments.somethingelse == "can extend" [Function.as:480]
+PASSED: argsCounter(1,2,3) == 3 [Function.as:487]
+PASSED: argsCounter(a,b,c,d) == 4 [Function.as:488]
+PASSED: argsCounter([a,b]) == 1 [Function.as:489]
+PASSED: factorial(3) == 6 [Function.as:494]
+PASSED: factorial(4) == 24 [Function.as:495]
+PASSED: typeof(fooInstance) == 'object' [Function.as:511]
+PASSED: fooInstance instanceOf Foo [Function.as:512]
+PASSED: typeof(textOutFunc.toString()) == 'string' [Function.as:524]
+PASSED: textOutFunc.toString() == '[type Function]' [Function.as:525]
+PASSED: !textOutFunc.hasOwnProperty('toString') [Function.as:527]
+PASSED: !Function.prototype.hasOwnProperty('toString') [Function.as:528]
+PASSED: Object.prototype.hasOwnProperty('toString') [Function.as:529]
+PASSED: textOutFunc.toString == Object.prototype.toString [Function.as:530]
+PASSED: textOutFunc.hasOwnProperty('toString') [Function.as:536]
+PASSED: textOutFunc.toString() == 'custom text rep' [Function.as:538]
+PASSED: typeof(textOutFunc.toString()) == 'string' [Function.as:539]
+NOTE: custom text rep
+PASSED: typeof(textOutFunc.toString) == 'number' [Function.as:546]
+NOTE: [type Function]
+PASSED: typeof(a.constructor) == 'function' [Function.as:557]
+PASSED: typeof(a.__constructor__) == 'function' [Function.as:559]
+PASSED: !a.hasOwnProperty('constructor') [Function.as:563]
+PASSED: a.hasOwnProperty('__constructor__') [Function.as:565]
+PASSED: a.constructor == Number [Function.as:566]
+PASSED: a.__constructor__ == Number [Function.as:567]
+PASSED: ! a instanceof Number [Function.as:568]
+PASSED: a.constructor != Object [Function.as:569]
+PASSED: typeof(a.constructor) == 'function' [Function.as:573]
+PASSED: typeof(a.__constructor__) == 'function' [Function.as:575]
+PASSED: !a.hasOwnProperty('constructor') [Function.as:579]
+PASSED: a.hasOwnProperty('__constructor__') [Function.as:581]
+PASSED: a.constructor == String [Function.as:582]
+PASSED: a.__constructor__ == String [Function.as:583]
+PASSED: ! a instanceof String [Function.as:584]
+PASSED: a.constructor != Object [Function.as:585]
+PASSED: typeof(a.constructor) == 'function' [Function.as:589]
+PASSED: typeof(a.__constructor__) == 'function' [Function.as:591]
+PASSED: !a.hasOwnProperty('constructor') [Function.as:595]
+PASSED: a.hasOwnProperty('__constructor__') [Function.as:597]
+PASSED: a.constructor == Boolean [Function.as:598]
+PASSED: a.__constructor__ == Boolean [Function.as:599]
+PASSED: ! a instanceof String [Function.as:600]
+PASSED: a.constructor != Object [Function.as:601]
+PASSED: typeof(Email.prototype.__constructor__) == 'undefined' [Function.as:626]
+PASSED: typeof(Email.constructor) == 'function' [Function.as:635]
+PASSED: typeof(Email.constructor.constructor) == 'function' [Function.as:636]
+PASSED: typeof(Email.constructor.constructor.constructor) == 'function' [Function.as:637]
+PASSED: Email.constructor == Function [Function.as:639]
+PASSED: Email.constructor.constructor == Function [Function.as:640]
+PASSED: Email.constructor.constructor.constructor == Function [Function.as:641]
+PASSED: Email.hasOwnProperty('constructor') [Function.as:643]
+PASSED: Email.constructor.hasOwnProperty('constructor') [Function.as:644]
+PASSED: Email.constructor.constructor.hasOwnProperty('constructor') [Function.as:645]
+PASSED: typeof(Email.__constructor__) == 'undefined' [Function.as:650]
+PASSED: ! Email.hasOwnProperty('__constructor__') [Function.as:651]
+PASSED: typeof(Email.prototype.constructor) == 'function' [Function.as:655]
+PASSED: Email.prototype.constructor == Mail [Function.as:656]
+PASSED: typeof(Email.prototype.__constructor__) == 'function' [Function.as:659]
+PASSED: Email.prototype.__constructor__ == Email.prototype.constructor [Function.as:660]
+PASSED: typeof(super) == 'object' [Function.as:619]
+PASSED: myMail.subject == 'greetings' [Function.as:666]
+PASSED: myMail.to == 'you' [Function.as:669]
+PASSED: myMail.message == 'hello' [Function.as:670]
+PASSED: typeof(super) == 'object' [Function.as:619]
+PASSED: myMail.subject == 'greetings' [Function.as:686]
+PASSED: myMail.to == 'everyone' [Function.as:688]
+PASSED: myMail.message == 'enlarge yourself' [Function.as:689]
+PASSED: getThis() == this [Function.as:701]
+PASSED: o.getThis() == o [Function.as:705]
+PASSED: typeof(ret) == 'object' [Function.as:711]
+PASSED: ret == o.sub [Function.as:712]
+PASSED: typeof(ret) == 'object' [Function.as:718]
+PASSED: ret == o.sub [Function.as:719]
+PASSED: typeof(ret) == 'object' [Function.as:723]
+PASSED: ret == o [Function.as:724]
+PASSED: typeof(ret) == 'object' [Function.as:727]
+PASSED: ret == sub [Function.as:728]
+PASSED: delete o.sub.getThis [Function.as:731]
+PASSED: typeof(ret) == 'object' [Function.as:736]
+PASSED: getThis() == o [Function.as:737]
+PASSED: typeof(ret) == 'object' [Function.as:745]
+PASSED: ret != testInFunctionContext [Function.as:749]
+PASSED: ret != this [Function.as:751]
+PASSED: typeof(ret) == 'object' [Function.as:757]
+PASSED: ret == o [Function.as:758]
+PASSED: num == 5 [Function.as:761]
+PASSED: num == 4 [Function.as:763]
+PASSED: f() == 42 [Function.as:781]
+XPASSED: testvar1 == 1 [Function.as:812]
+XPASSED: testvar2 == 2 [Function.as:813]
+XPASSED: testvar3 == 3 [Function.as:814]
+XPASSED: testvar1 == 4 [Function.as:842]
+XPASSED: testvar2 == 5 [Function.as:843]
+XPASSED: testvar3 == 6 [Function.as:844]
+XPASSED: testvar1 == 9 [Function.as:897]
+XPASSED: testvar2 == 8 [Function.as:898]
+XPASSED: testvar3 == 7 [Function.as:899]
+PASSED: a.count == 2 [Function.as:914]
+PASSED: b.count == 1 [Function.as:915]
+check_totals: 208
diff --git a/test/gnash/actionscript.all/pending/Function-8.swf b/test/gnash/actionscript.all/pending/Function-8.swf
new file mode 100644
index 0000000..b76b380
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Function-8.swf differ
diff --git a/test/gnash/actionscript.all/pending/Function-8.swf.trace b/test/gnash/actionscript.all/pending/Function-8.swf.trace
new file mode 100644
index 0000000..39e6150
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Function-8.swf.trace
@@ -0,0 +1,211 @@
+PASSED: Function.prototype.__proto__ == Object.prototype [Function.as:29]
+PASSED: Function.constructor == Function [Function.as:30]
+PASSED: ! Function.hasOwnProperty('__constructor__') [Function.as:31]
+PASSED: getThisName.prototype.__proto__ == Object.prototype [Function.as:38]
+PASSED: getThisName != undefined [Function.as:41]
+PASSED: typeof(getThisName) == "function" [Function.as:52]
+PASSED: typeof(getThisName.apply) == 'function' [Function.as:62]
+PASSED: getThisName.apply(this_ref) == "extnameundefinedundefinedundefined" [Function.as:68]
+PASSED: ret == "extname123" [Function.as:75]
+PASSED: isNaN(ret) [Function.as:81]
+PASSED: ret == "extname456" [Function.as:87]
+PASSED: ret == "extnameundefinedundefinedundefined" [Function.as:90]
+PASSED: ret == "extnameundefinedundefinedundefined" [Function.as:97]
+PASSED: isNaN(ret) [Function.as:104]
+PASSED: isNaN(ret) [Function.as:111]
+PASSED: isNaN(ret) [Function.as:118]
+PASSED: getThisName.call(this_ref, 1, 2, 3) == "extname123" [Function.as:139]
+PASSED: typeof(nullcall) == 'number' [Function.as:144]
+PASSED: isNaN(nullcall) [Function.as:145]
+PASSED: ret == o [Function.as:154]
+PASSED: c == 1 [Function.as:155]
+PASSED: c == 2 [Function.as:157]
+XPASSED: typeof(ret) == 'object' [Function.as:158]
+XPASSED: ret == undefined [Function.as:159]
+PASSED: ! (ret === undefined) [Function.as:160]
+PASSED: ! (ret === null) [Function.as:161]
+PASSED: typeOf(TestClass) == 'function' [Function.as:181]
+PASSED: typeOf(TestClass.apply) == 'function' [Function.as:186]
+PASSED: typeOf(TestClass.call) == 'function' [Function.as:189]
+PASSED: typeOf(TestClass.prototype) == 'object' [Function.as:194]
+PASSED: testInstance != undefined [Function.as:203]
+PASSED: testInstance.name != undefined [Function.as:204]
+PASSED: testInstance.name == "NONE" [Function.as:205]
+PASSED: typeof(testInstance.setname) == "function" [Function.as:206]
+PASSED: testInstance.name == "Test" [Function.as:210]
+PASSED: testInstance.__proto__ != undefined [Function.as:213]
+PASSED: testInstance.__proto__ == TestClass.prototype [Function.as:214]
+PASSED: testInstance instanceOf TestClass [Function.as:215]
+PASSED: testInstance instanceOf Object [Function.as:216]
+PASSED: typeOf(Function.prototype.addProperty) == 'function' [Function.as:219]
+PASSED: testInstance.__proto__ == TestClass.prototype [Function.as:220]
+PASSED: TestClass.__proto__ == Function.prototype [Function.as:221]
+PASSED: testInstance.addProperty == Object.prototype.addProperty [Function.as:222]
+PASSED: t == 7 [Function.as:225]
+PASSED: Function instanceOf Object [Function.as:226]
+PASSED: TestClass.hasOwnProperty('constructor') [Function.as:227]
+PASSED: TestClass.constructor == Function [Function.as:230]
+PASSED: typeOf(TestClass.prototype.constructor) == 'function' [Function.as:231]
+PASSED: TestClass.prototype.constructor == TestClass [Function.as:233]
+PASSED: testInstance.__proto__.constructor == TestClass [Function.as:234]
+PASSED: TestClass.prototype.additional == undefined [Function.as:239]
+PASSED: stringInstance.__proto__ != undefined [Function.as:243]
+PASSED: stringInstance.__proto__ == String.prototype [Function.as:244]
+PASSED: typeof(String.prototype.constructor) == 'function' [Function.as:245]
+PASSED: String.prototype.constructor == String [Function.as:246]
+PASSED: stringInstance.__proto__.constructor == String [Function.as:247]
+PASSED: testInstance instanceof TestClass [Function.as:250]
+PASSED: stringInstance instanceof String [Function.as:251]
+PASSED: f_func == undefined [Function.as:301]
+PASSED: tl_new == undefined [Function.as:302]
+PASSED: localvar == "lv" [Function.as:268]
+PASSED: tl_local == "tl_local" [Function.as:271]
+PASSED: tooverride == "overridden" [Function.as:280]
+PASSED: ! delete fl_func [Function.as:292]
+PASSED: ! delete f_func [Function.as:297]
+PASSED: tl_local == "tl_local2" [Function.as:304]
+PASSED: todelete == undefined [Function.as:305]
+PASSED: tooverride == "tooverride" [Function.as:306]
+PASSED: tl_new == "tl_new" [Function.as:307]
+PASSED: fl_func == undefined [Function.as:308]
+PASSED: typeof(f_func) == 'function' [Function.as:309]
+PASSED: eval("result1") == "initial_result1_value" [Function.as:320]
+PASSED: typeof(outer_func) == 'function' [Function.as:337]
+PASSED: typeof(inner_func) == 'function' [Function.as:341]
+PASSED: result1 == "hello" [Function.as:346]
+PASSED: result2 == "hello" [Function.as:347]
+PASSED: typeof(bla) == 'function' [Function.as:365]
+PASSED: bla(42) == 42 [Function.as:366]
+PASSED: typeof(bla) == 'function' [Function.as:367]
+PASSED: bla(43) == 42 [Function.as:371]
+PASSED: this.a == "a_in_obj" [Function.as:388]
+PASSED: this.a == "a_in_root" [Function.as:394]
+PASSED: this.a == "a_in_root" [Function.as:398]
+PASSED: typeof(arguments) == 'object' [Function.as:406]
+PASSED: arguments instanceOf Array [Function.as:407]
+PASSED: arguments instanceOf Object [Function.as:408]
+PASSED: arguments.length == 0 [Function.as:409]
+PASSED: typeof(arguments.callee) == 'function' [Function.as:411]
+PASSED: arguments.callee == _root.f [Function.as:413]
+XPASSED: typeof(arguments.caller) == 'null' [Function.as:415]
+PASSED: arguments.caller == null [Function.as:416]
+PASSED: propRecorder.length == 0 [Function.as:425]
+XPASSED: propRecorder.length == 5 [Function.as:433]
+PASSED: propRecorder[0] == '__proto__' [Function.as:434]
+PASSED: propRecorder[1] == 'callee' [Function.as:435]
+XPASSED: propRecorder[2] == 'caller' [Function.as:436]
+XPASSED: propRecorder[3] == 'constructor' [Function.as:437]
+XPASSED: propRecorder[4] == 'length' [Function.as:438]
+XPASSED: arguments.caller == parent_func [Function.as:449]
+PASSED: arguments.length == 3 [Function.as:462]
+PASSED: arguments[0] == 1 [Function.as:463]
+PASSED: arguments[1] == 2 [Function.as:464]
+PASSED: arguments[2] == 3 [Function.as:465]
+PASSED: arguments[3] == undefined [Function.as:466]
+PASSED: d == undefined [Function.as:467]
+PASSED: arguments[3] == 3 [Function.as:469]
+PASSED: d != 3 [Function.as:472]
+PASSED: arguments[0] == 'zero' [Function.as:474]
+PASSED: arguments.length == 10 [Function.as:476]
+PASSED: arguments.length == 9 [Function.as:478]
+PASSED: arguments.somethingelse == "can extend" [Function.as:480]
+PASSED: argsCounter(1,2,3) == 3 [Function.as:487]
+PASSED: argsCounter(a,b,c,d) == 4 [Function.as:488]
+PASSED: argsCounter([a,b]) == 1 [Function.as:489]
+PASSED: factorial(3) == 6 [Function.as:494]
+PASSED: factorial(4) == 24 [Function.as:495]
+PASSED: typeof(fooInstance) == 'object' [Function.as:511]
+PASSED: fooInstance instanceOf Foo [Function.as:512]
+PASSED: typeof(textOutFunc.toString()) == 'string' [Function.as:524]
+PASSED: textOutFunc.toString() == '[type Function]' [Function.as:525]
+PASSED: !textOutFunc.hasOwnProperty('toString') [Function.as:527]
+PASSED: !Function.prototype.hasOwnProperty('toString') [Function.as:528]
+PASSED: Object.prototype.hasOwnProperty('toString') [Function.as:529]
+PASSED: textOutFunc.toString == Object.prototype.toString [Function.as:530]
+PASSED: textOutFunc.hasOwnProperty('toString') [Function.as:536]
+PASSED: textOutFunc.toString() == 'custom text rep' [Function.as:538]
+PASSED: typeof(textOutFunc.toString()) == 'string' [Function.as:539]
+NOTE: custom text rep
+PASSED: typeof(textOutFunc.toString) == 'number' [Function.as:546]
+NOTE: [type Function]
+PASSED: typeof(a.constructor) == 'function' [Function.as:557]
+PASSED: typeof(a.__constructor__) == 'function' [Function.as:559]
+PASSED: !a.hasOwnProperty('constructor') [Function.as:563]
+PASSED: a.hasOwnProperty('__constructor__') [Function.as:565]
+PASSED: a.constructor == Number [Function.as:566]
+PASSED: a.__constructor__ == Number [Function.as:567]
+PASSED: ! a instanceof Number [Function.as:568]
+PASSED: a.constructor != Object [Function.as:569]
+PASSED: typeof(a.constructor) == 'function' [Function.as:573]
+PASSED: typeof(a.__constructor__) == 'function' [Function.as:575]
+PASSED: !a.hasOwnProperty('constructor') [Function.as:579]
+PASSED: a.hasOwnProperty('__constructor__') [Function.as:581]
+PASSED: a.constructor == String [Function.as:582]
+PASSED: a.__constructor__ == String [Function.as:583]
+PASSED: ! a instanceof String [Function.as:584]
+PASSED: a.constructor != Object [Function.as:585]
+PASSED: typeof(a.constructor) == 'function' [Function.as:589]
+PASSED: typeof(a.__constructor__) == 'function' [Function.as:591]
+PASSED: !a.hasOwnProperty('constructor') [Function.as:595]
+PASSED: a.hasOwnProperty('__constructor__') [Function.as:597]
+PASSED: a.constructor == Boolean [Function.as:598]
+PASSED: a.__constructor__ == Boolean [Function.as:599]
+PASSED: ! a instanceof String [Function.as:600]
+PASSED: a.constructor != Object [Function.as:601]
+PASSED: typeof(Email.prototype.__constructor__) == 'undefined' [Function.as:626]
+PASSED: typeof(Email.constructor) == 'function' [Function.as:635]
+PASSED: typeof(Email.constructor.constructor) == 'function' [Function.as:636]
+PASSED: typeof(Email.constructor.constructor.constructor) == 'function' [Function.as:637]
+PASSED: Email.constructor == Function [Function.as:639]
+PASSED: Email.constructor.constructor == Function [Function.as:640]
+PASSED: Email.constructor.constructor.constructor == Function [Function.as:641]
+PASSED: Email.hasOwnProperty('constructor') [Function.as:643]
+PASSED: Email.constructor.hasOwnProperty('constructor') [Function.as:644]
+PASSED: Email.constructor.constructor.hasOwnProperty('constructor') [Function.as:645]
+PASSED: typeof(Email.__constructor__) == 'undefined' [Function.as:650]
+PASSED: ! Email.hasOwnProperty('__constructor__') [Function.as:651]
+PASSED: typeof(Email.prototype.constructor) == 'function' [Function.as:655]
+PASSED: Email.prototype.constructor == Mail [Function.as:656]
+PASSED: typeof(Email.prototype.__constructor__) == 'function' [Function.as:659]
+PASSED: Email.prototype.__constructor__ == Email.prototype.constructor [Function.as:660]
+PASSED: typeof(super) == 'object' [Function.as:619]
+PASSED: myMail.subject == 'greetings' [Function.as:666]
+PASSED: myMail.to == 'you' [Function.as:669]
+PASSED: myMail.message == 'hello' [Function.as:670]
+PASSED: typeof(super) == 'object' [Function.as:619]
+PASSED: myMail.subject == 'greetings' [Function.as:686]
+PASSED: myMail.to == 'everyone' [Function.as:688]
+PASSED: myMail.message == 'enlarge yourself' [Function.as:689]
+PASSED: getThis() == this [Function.as:701]
+PASSED: o.getThis() == o [Function.as:705]
+PASSED: typeof(ret) == 'object' [Function.as:711]
+PASSED: ret == o.sub [Function.as:712]
+PASSED: typeof(ret) == 'object' [Function.as:718]
+PASSED: ret == o.sub [Function.as:719]
+PASSED: typeof(ret) == 'object' [Function.as:723]
+PASSED: ret == o [Function.as:724]
+PASSED: typeof(ret) == 'object' [Function.as:727]
+PASSED: ret == sub [Function.as:728]
+PASSED: delete o.sub.getThis [Function.as:731]
+PASSED: typeof(ret) == 'object' [Function.as:736]
+PASSED: getThis() == o [Function.as:737]
+PASSED: typeof(ret) == 'object' [Function.as:745]
+PASSED: ret != testInFunctionContext [Function.as:749]
+PASSED: ret != this [Function.as:751]
+PASSED: typeof(ret) == 'object' [Function.as:757]
+PASSED: ret == o [Function.as:758]
+PASSED: num == 5 [Function.as:761]
+PASSED: num == 4 [Function.as:763]
+PASSED: f() == 42 [Function.as:781]
+XPASSED: testvar1 == 1 [Function.as:812]
+XPASSED: testvar2 == 2 [Function.as:813]
+XPASSED: testvar3 == 3 [Function.as:814]
+XPASSED: testvar1 == 4 [Function.as:842]
+XPASSED: testvar2 == 5 [Function.as:843]
+XPASSED: testvar3 == 6 [Function.as:844]
+XPASSED: testvar1 == 9 [Function.as:897]
+XPASSED: testvar2 == 8 [Function.as:898]
+XPASSED: testvar3 == 7 [Function.as:899]
+PASSED: a.count == 2 [Function.as:914]
+PASSED: b.count == 1 [Function.as:915]
+check_totals: 208
diff --git a/test/gnash/actionscript.all/pending/Function.as b/test/gnash/actionscript.all/pending/Function.as
new file mode 100644
index 0000000..d235ace
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Function.as
@@ -0,0 +1,925 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+
+// Test case for Function ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: Function.as,v 1.73 2008/04/28 16:10:00 bwy Exp $";
+#include "check.as"
+
+#if OUTPUT_VERSION >= 6
+check_equals(Function.prototype.__proto__, Object.prototype);
+check_equals(Function.constructor, Function);
+check( ! Function.hasOwnProperty('__constructor__') );
+#endif
+
+// Define a function returning 'this'.name and the given args
+function getThisName(a,b,c) { return this.name+a+b+c; }
+
+// Every newly created function's super class is Object
+check_equals(getThisName.prototype.__proto__, Object.prototype);
+
+#if OUTPUT_VERSION >=6
+ check (getThisName != undefined);
+#else
+ // this might be due to forced string comparison ?
+ check_equals (getThisName, undefined);
+ check_equals (getThisName, null);
+ check (getThisName != 0);
+ check (getThisName != 1);
+ check (! isNaN(getThisName) );
+ check (getThisName != "");
+ check (getThisName != "[type Function]");
+#endif
+check_equals ( typeof(getThisName), "function" );
+
+//----------------------------------------------------------
+//
+// Test Function.apply
+//
+//----------------------------------------------------------
+
+#if OUTPUT_VERSION >= 6
+
+check_equals(typeof(getThisName.apply), 'function');
+
+var this_ref = {name:"extname"};
+
+// Test Function.apply(this_ref, args_array)
+#if OUTPUT_VERSION >= 7
+ check_equals ( getThisName.apply(this_ref), "extnameundefinedundefinedundefined" );
+#else
+ check_equals ( getThisName.apply(this_ref), "extname" );
+#endif
+
+// Test Function.apply(this_ref, args_array)
+var ret=getThisName.apply(this_ref, [1,2,3]);
+check ( ret == "extname123" );
+
+// Test invalid Function.apply calls
+
+var ret=getThisName.apply();
+#if OUTPUT_VERSION > 6
+ check ( isNaN(ret) ); // result of the *numerical* sum of all undefined
+#else
+ check_equals ( ret , 0 ); // result of the *numerical* sum of all undefined
+#endif
+
+var ret=getThisName.apply(this_ref, [4,5,6], 4);
+check_equals ( ret , "extname456" );
+var ret=getThisName.apply(this_ref, "8");
+#if OUTPUT_VERSION >= 7
+ check_equals ( ret , "extnameundefinedundefinedundefined" );
+#else
+ check_equals ( ret , "extname" );
+#endif
+
+var ret=getThisName.apply(this_ref, 9);
+#if OUTPUT_VERSION >= 7
+ check_equals ( ret , "extnameundefinedundefinedundefined" );
+#else
+ check_equals ( ret , "extname" );
+#endif
+
+var ret=getThisName.apply(undefined, [4,5,6], 4);
+#if OUTPUT_VERSION >= 7
+ check ( isNaN(ret) ); // the sum will be considered numerical
+#else
+ check_equals ( ret , 15 ); // the sum will be considered numerical
+#endif
+
+var ret=getThisName.apply(undefined, 7);
+#if OUTPUT_VERSION >= 7
+ check ( isNaN(ret) );
+#else
+ check_equals ( ret , 0 );
+#endif
+
+var ret=getThisName.apply(undefined, "7");
+#if OUTPUT_VERSION >= 7
+ check ( isNaN(ret) );
+#else
+ check_equals ( ret , 0 );
+#endif
+
+#else // OUTPUT_VERSION < 6
+
+// No Function.apply... for SWF up to 5
+check_equals(typeOf(getThisName.apply), 'undefined');
+
+#endif
+
+//----------------------------------------------------------
+//
+// Test Function.call
+//
+//----------------------------------------------------------
+
+#if OUTPUT_VERSION >= 6
+
+// Test Function.call(this, arg1, arg2, arg3)
+check_equals ( getThisName.call(this_ref, 1, 2, 3), "extname123" );
+
+// Test Function.call(null, arg1, arg2, arg3)
+nullcall = getThisName.call(null, 1, 2, 3);
+#if OUTPUT_VERSION > 6
+ check_equals ( typeof(nullcall), 'number' );
+ check ( isNaN(nullcall) );
+#else
+ check_equals ( nullcall, 6 );
+#endif
+
+function getThis () { ++c; return this; }
+o={};
+c=0;
+ret = getThis.call(o);
+check_equals(ret, o);
+check_equals(c, 1);
+ret = getThis.call(null);
+check_equals(c, 2);
+xcheck_equals(typeof(ret), 'object');
+xcheck_equals(ret, undefined); // an object type which returns 'undefined' as primitive value ?
+check( ! (ret === undefined) ); // an object type which returns 'undefined' as primitive value ?
+check( ! (ret === null) ); // an object type which returns 'undefined' as primitive value ?
+
+#else // OUTPUT_VERSION < 6
+
+check_equals ( typeOf(getThisName.call), 'undefined' );
+
+#endif
+
+//----------------------------------------------------------
+//
+// Test Function definition
+//
+//----------------------------------------------------------
+
+// Define a class with its constructor
+var TestClass = function() {
+ this.name = "NONE";
+};
+
+// Test the Function constuctor
+check_equals ( typeOf(TestClass), 'function' );
+
+#if OUTPUT_VERSION >= 6
+
+ // Test existance of the Function::apply method
+ check_equals ( typeOf(TestClass.apply), 'function' );
+
+ // Test existance of the Function::call method
+ check_equals ( typeOf(TestClass.call), 'function' );
+
+#endif
+
+// test existance of the Function::prototype member
+check_equals ( typeOf(TestClass.prototype), 'object' );
+
+// Define methods
+TestClass.prototype.setname = function(name) {
+ this.name = name;
+};
+
+// Test instanciation of Function
+var testInstance = new TestClass;
+check (testInstance != undefined);
+check (testInstance.name != undefined);
+check (testInstance.name == "NONE");
+check (typeof(testInstance.setname) == "function");
+
+// Test methods call
+testInstance.setname("Test");
+check (testInstance.name == "Test");
+
+// Test inheritance
+check (testInstance.__proto__ != undefined);
+check (testInstance.__proto__ == TestClass.prototype);
+check (testInstance instanceOf TestClass);
+check (testInstance instanceOf Object);
+#if OUTPUT_VERSION > 5
+// Function was added in version 5
+check_equals (typeOf(Function.prototype.addProperty), 'function');
+check_equals (testInstance.__proto__, TestClass.prototype)
+check_equals (TestClass.__proto__, Function.prototype)
+check_equals (testInstance.addProperty, Object.prototype.addProperty)
+Object.prototype.addProperty = function() { return 7; };
+var t = testInstance.addProperty();
+check_equals(t, 7);
+check (Function instanceOf Object);
+check(TestClass.hasOwnProperty('constructor'));
+#endif
+
+check_equals (TestClass.constructor, Function);
+check_equals (typeOf(TestClass.prototype.constructor), 'function');
+
+check (TestClass.prototype.constructor == TestClass);
+check (testInstance.__proto__.constructor == TestClass);
+
+// An instance .prototype is NOT a reference to
+// the superclass's prototype. That would be __proto__.
+testInstance.prototype.additional = "not-in-super";
+check (TestClass.prototype.additional == undefined);
+
+// Test inheritance with built-in functions
+var stringInstance = new String();
+check (stringInstance.__proto__ != undefined);
+check (stringInstance.__proto__ == String.prototype);
+check_equals ( typeof(String.prototype.constructor), 'function' );
+check (String.prototype.constructor == String);
+check (stringInstance.__proto__.constructor == String);
+
+// Test the instanceof operator
+check ( testInstance instanceof TestClass );
+check ( stringInstance instanceof String );
+
+//----------------------------------------------------------
+//
+// Test access of a timeline locals from within a function
+//
+//----------------------------------------------------------
+
+// These are timeline "locals" (note the 'var' prefix).
+// They should produce DEFINELOCAL tags
+var tl_local = "tl_local";
+var todelete = "deleteme";
+var tooverride = "tooverride";
+a_func = function() {
+
+ // get a "local" var of this function
+ var localvar = "lv";
+ check_equals(localvar, "lv");
+
+ // get a "local" var of the timeline
+ check_equals(tl_local, "tl_local");
+
+ // A "local" var of this function with
+ // hides a "local" var of the timeline
+ // with the same name, but just within
+ // this context (there's another check
+ // outside the function to verify the
+ // original value is preserved there)
+ var tooverride = "overridden";
+ check_equals(tooverride, "overridden");
+
+ // set a "local" var of the timeline
+ tl_local = "tl_local2";
+
+ // delete a "local" var of the timeline
+ delete todelete;
+
+ // create a new variable of the timeline
+ tl_new = "tl_new";
+
+ // create a new function "local" for this function.
+ check(! delete fl_func); // make sure there's no other
+ var fl_func = function() { };
+
+ // create a new function on the timeline
+ // (this only works with SWF6 or up)
+ check(! delete f_func); // make sure there's no other
+ f_func = function() { };
+
+};
+check_equals(f_func, undefined); // will be created by a_func() call
+check_equals(tl_new, undefined); // will be created by a_func() call
+a_func(); // create tl_new and f_func
+check_equals(tl_local, "tl_local2");
+check_equals(todelete, undefined);
+check_equals(tooverride, "tooverride");
+check_equals(tl_new, "tl_new");
+check_equals(fl_func, undefined);
+check_equals(typeof(f_func), 'function'); // created by a_func() call
+
+//----------------------------------------------------------
+//
+// Test nested functions
+//
+//----------------------------------------------------------
+
+var result1 = "initial_result1_value";
+var result2 = "initial_result2_value";
+// just to make sure that eval works (more of a Ming test this one..)
+check_equals(eval("result1"), "initial_result1_value");
+
+outer_func = function()
+{
+ var a = "hello";
+
+ // inner_func should be created on the timeline,
+ // see previous tests block
+ inner_func = function(var_ref)
+ {
+ return(eval(var_ref));
+ };
+
+ result1 = inner_func("a"); // should return "hello"
+};
+
+//call outer_func to set result1
+check_equals(typeof(outer_func), 'function');
+outer_func();
+
+// call inner_func to set result2
+check_equals(typeof(inner_func), 'function');
+result2 = inner_func("a"); // should return "hello"
+
+#if OUTPUT_VERSION >= 6
+
+ check_equals ( result1, "hello" );
+ check_equals ( result2, "hello" );
+
+#else // SWF5 or lower doesn't use a scope chain
+
+ check_equals ( result1, undefined );
+ check_equals ( result2, undefined );
+
+#endif
+
+function bla (num)
+{
+ bla = function ()
+ {
+ return num;
+ };
+ return num;
+}
+
+check_equals(typeof(bla), 'function');
+check_equals(bla(42), 42);
+check_equals(typeof(bla), 'function');
+#if OUTPUT_VERSION < 6
+check_equals(typeof(bla(43)), 'undefined');
+#else
+check_equals(bla(43), 42);
+#endif
+
+//----------------------------------------------------------
+//
+// Test case for "this" in Object's context
+// by Zou Lunkai, zoulunkai at gmail.com
+//
+//----------------------------------------------------------
+
+var obj = new Object();
+obj.a = "a_in_obj";
+
+var a = "a_in_root";
+
+obj.func = function ()
+{
+ check_equals(this.a, "a_in_obj");
+};
+obj.func();
+
+func = function ()
+{
+ check_equals(this.a, "a_in_root");
+};
+func();
+
+check_equals(this.a, "a_in_root");
+
+//----------------------------------------------------------
+// Test the 'arguments' object
+//----------------------------------------------------------
+
+function f()
+{
+ check_equals(typeof(arguments), 'object');
+ check(arguments instanceOf Array);
+ check(arguments instanceOf Object);
+ check_equals(arguments.length, 0);
+
+ check_equals(typeof(arguments.callee), 'function');
+ // callee: the function being called
+ check_equals(arguments.callee, _root.f);
+ // caller: the caller function
+ xcheck_equals(typeof(arguments.caller), 'null'); //? typeof return 'null', seems new!
+ check_equals(arguments.caller, null);
+
+ var a = arguments;
+ var propRecorder = new Array();
+ for(var props in a)
+ {
+ propRecorder.push(props.toString());
+ }
+ // no enumerable properties in default mode.
+ check_equals(propRecorder.length, 0);
+
+ ASSetPropFlags(a, null, 6, 1 );
+ for(var props in a)
+ {
+ propRecorder.push(props.toString());
+ }
+ propRecorder.sort();
+ xcheck_equals(propRecorder.length, 5);
+ check_equals(propRecorder[0], '__proto__');
+ check_equals(propRecorder[1], 'callee');
+ xcheck_equals(propRecorder[2], 'caller');
+ xcheck_equals(propRecorder[3], 'constructor');
+ xcheck_equals(propRecorder[4], 'length');
+}
+f();
+
+// test argument.caller
+function child_func()
+{
+#if OUTPUT_VERSION == 5
+ check_equals(arguments.caller, parent_func);
+#else
+ //? passed on swf5, but failed on swf6,7,8
+ xcheck_equals(arguments.caller, parent_func);
+#endif
+}
+function parent_func()
+{
+ child_func();
+}
+parent_func();
+
+
+// this is to be called argsChecker(1,2,3)
+function argsChecker(a, b, c, d, e, f, g)
+{
+ check_equals(arguments.length, 3);
+ check_equals(arguments[0], 1);
+ check_equals(arguments[1], 2);
+ check_equals(arguments[2], 3);
+ check_equals(arguments[3], undefined);
+ check_equals(d, undefined);
+ arguments[3] = 3;
+ check_equals(arguments[3], 3);
+ // Changing a member of the 'arguments' object doesn't change
+ // the corresponding named parameter, contrary to ECMA262 specs.
+ check(d != 3);
+ arguments[0] = 'zero';
+ check_equals(arguments[0], 'zero');
+ arguments.length = 10;
+ check_equals(arguments.length, 10);
+ arguments.pop();
+ check_equals(arguments.length, 9);
+ arguments.somethingelse = "can extend";
+ check_equals(arguments.somethingelse, "can extend");
+}
+argsChecker(1, 2, 3);
+
+function argsCounter() {
+ return arguments.length;
+}
+check_equals(argsCounter(1,2,3), 3);
+check_equals(argsCounter(a,b,c,d), 4);
+check_equals(argsCounter([a,b]), 1);
+
+function factorial(n) {
+ return n <= 1 ? n : n*arguments.callee(n-1);
+}
+check_equals(factorial(3), 6);
+check_equals(factorial(4), 24);
+
+//------------------------------------------------------
+// Test using 'this' as a constructor
+//------------------------------------------------------
+
+#if OUTPUT_VERSION >= 6
+
+Function.prototype['new'] = function()
+{
+ return new this;
+};
+
+function Foo() {};
+
+var fooInstance = Foo['new']();
+check_equals(typeof(fooInstance), 'object');
+check(fooInstance instanceOf Foo);
+
+#endif // OUTPUT_VERSION >= 6
+
+//----------------------------------------------------------
+//
+// Test conversion to string
+//
+//----------------------------------------------------------
+
+function textOutFunc() {};
+#if OUTPUT_VERSION >= 6
+check_equals(typeof(textOutFunc.toString()), 'string');
+check_equals(textOutFunc.toString(), '[type Function]');
+// the toString method is inherited from Object class
+check(!textOutFunc.hasOwnProperty('toString'));
+check(!Function.prototype.hasOwnProperty('toString'));
+check(Object.prototype.hasOwnProperty('toString'));
+check_equals(textOutFunc.toString, Object.prototype.toString);
+#else
+check_equals(typeof(textOutFunc.toString), 'undefined');
+#endif
+textOutFunc.toString = function() { return "custom text rep"; };
+#if OUTPUT_VERSION >= 6
+check(textOutFunc.hasOwnProperty('toString'));
+#endif
+check_equals(textOutFunc.toString(), 'custom text rep');
+check_equals(typeof(textOutFunc.toString()), 'string');
+
+// expect 'custom text rep', not '[type Function]' in output.
+// No way to check in this framework, but it's known to be bogus.
+note(textOutFunc);
+
+textOutFunc.toString = 4;
+check_equals(typeof(textOutFunc.toString), 'number');
+
+// expect '[type Function]', not 'custom text rep' in output (no way to check this!!)
+note(textOutFunc);
+
+
+//-----------------------------------------------------
+// Test constructor and __constructor__ properties
+//-----------------------------------------------------
+
+a = 4; // number primitive to Number object
+check_equals(typeof(a.constructor), 'function');
+#if OUTPUT_VERSION > 5
+check_equals(typeof(a.__constructor__), 'function');
+#if OUTPUT_VERSION == 6
+check(a.hasOwnProperty('constructor'));
+#else // OUTPUT_VERSION > 6
+check(!a.hasOwnProperty('constructor'));
+#endif
+check(a.hasOwnProperty('__constructor__'));
+check_equals(a.constructor, Number);
+check_equals(a.__constructor__, Number);
+check(! a instanceof Number);
+check(a.constructor != Object);
+#endif
+
+a = "string"; // string primitive to String object
+check_equals(typeof(a.constructor), 'function');
+#if OUTPUT_VERSION > 5
+check_equals(typeof(a.__constructor__), 'function');
+#if OUTPUT_VERSION == 6
+check(a.hasOwnProperty('constructor'));
+#else // OUTPUT_VERSION > 6
+check(!a.hasOwnProperty('constructor'));
+#endif
+check(a.hasOwnProperty('__constructor__'));
+check_equals(a.constructor, String);
+check_equals(a.__constructor__, String);
+check(! a instanceof String);
+check(a.constructor != Object);
+#endif
+
+a = true; // boolean primitive to Boolean object
+check_equals(typeof(a.constructor), 'function');
+#if OUTPUT_VERSION > 5
+check_equals(typeof(a.__constructor__), 'function');
+#if OUTPUT_VERSION == 6
+check(a.hasOwnProperty('constructor'));
+#else // OUTPUT_VERSION > 6
+check(!a.hasOwnProperty('constructor'));
+#endif
+check(a.hasOwnProperty('__constructor__'));
+check_equals(a.constructor, Boolean);
+check_equals(a.__constructor__, Boolean);
+check(! a instanceof String);
+check(a.constructor != Object);
+#endif
+
+//-----------------------------------------------------
+// Test use of 'super'
+//-----------------------------------------------------
+
+function Mail(recipient, message)
+{
+ this.to = recipient;
+ this.message = message;
+}
+
+function Email(subject, recipient, message)
+{
+ this.subject = subject;
+
+#if OUTPUT_VERSION > 5
+ check_equals(typeof(super), 'object');
+#else // OUTPUT_VERSION <= 5
+ check_equals(typeof(super), 'undefined');
+#endif
+ super(recipient, message);
+}
+
+check_equals(typeof(Email.prototype.__constructor__), 'undefined');
+
+// Email is a Function instance, and it's "constructor" property
+// tells us so
+#if OUTPUT_VERSION == 5
+// Function is supported in SWF6 and above
+check_equals(Email.constructor.toString(), undefined);
+check_equals(Function, undefined);
+#endif
+check_equals(typeof(Email.constructor), 'function');
+check_equals(typeof(Email.constructor.constructor), 'function');
+check_equals(typeof(Email.constructor.constructor.constructor), 'function');
+#if OUTPUT_VERSION > 5
+check_equals(Email.constructor, Function);
+check_equals(Email.constructor.constructor, Function);
+check_equals(Email.constructor.constructor.constructor, Function);
+
+check(Email.hasOwnProperty('constructor'));
+check(Email.constructor.hasOwnProperty('constructor'));
+check(Email.constructor.constructor.hasOwnProperty('constructor'));
+#endif // OUTPUT_VERSION > 5
+
+// Anyway, Email was not created using 'new', so it does
+// not have a __constructor__ property
+check_equals(typeof(Email.__constructor__), 'undefined');
+check( ! Email.hasOwnProperty('__constructor__') );
+
+Email.prototype = new Mail;
+
+check_equals(typeof(Email.prototype.constructor), 'function');
+check_equals(Email.prototype.constructor, Mail);
+
+#if OUTPUT_VERSION > 5
+check_equals(typeof(Email.prototype.__constructor__), 'function');
+check_equals(Email.prototype.__constructor__, Email.prototype.constructor);
+#else
+check_equals(typeof(Email.prototype.__constructor__), 'undefined');
+#endif
+
+myMail = new Email('greetings', "you", "hello");
+check_equals(myMail.subject, 'greetings');
+
+#if OUTPUT_VERSION > 5
+check_equals(myMail.to, 'you');
+check_equals(myMail.message, 'hello');
+#else // OUTPUT_VERSION <= 5
+// no 'super' defined for SWF5 and below, so don't expect it to be called
+check_equals(typeof(myMail.to), 'undefined');
+check_equals(typeof(myMail.message), 'undefined');
+#endif
+
+function Spam()
+{
+ this.to = 'everyone';
+ this.message = 'enlarge yourself';
+}
+
+Email.prototype.__constructor__ = Spam;
+
+myMail = new Email('greetings', "you", "hello");
+check_equals(myMail.subject, 'greetings');
+#if OUTPUT_VERSION > 5
+check_equals(myMail.to, 'everyone');
+check_equals(myMail.message, 'enlarge yourself');
+#else
+check_equals(myMail.to, undefined);
+check_equals(myMail.message, undefined);
+#endif
+
+//-----------------------------------------------------
+// Test the 'this' reference
+//-----------------------------------------------------
+
+getThis = function() { return this; };
+
+check_equals(getThis(), this);
+
+o = new Object;
+o.getThis = getThis;
+check_equals(o.getThis(), o);
+
+o.sub = new Object;
+o.sub.getThis = getThis;
+
+ret = o.sub.getThis();
+check_equals(typeof(ret), 'object');
+check_equals(ret, o.sub);
+
+
+with(o) {
+ with(sub) {
+ ret = getThis();
+ check_equals(typeof(ret), 'object');
+ check_equals(ret, o.sub);
+ }
+
+ ret = getThis();
+ check_equals(typeof(ret), 'object');
+ check_equals(ret, o);
+
+ ret = sub.getThis();
+ check_equals(typeof(ret), 'object');
+ check_equals(ret, sub);
+}
+
+check(delete o.sub.getThis);
+
+with(o) {
+ with (sub) {
+ ret = getThis();
+ check_equals(typeof(ret), 'object');
+ check_equals(getThis(), o);
+ }
+}
+
+function testInFunctionContext(o)
+{
+ var localGetThis = function() { return this; };
+ ret = localGetThis();
+ check_equals(typeof(ret), 'object');
+#if OUTPUT_VERSION < 6
+ check(ret == testInFunctionContext);
+#else
+ check(ret != testInFunctionContext);
+#endif
+ check(ret != this);
+
+ var num = 4;
+ with(o) {
+ // see bug #19704
+ ret = getThis();
+ check_equals(typeof(ret), 'object');
+ check_equals(ret, o);
+
+ // 'with' stack takes precedence over locals
+ check_equals(num, 5);
+ }
+ check_equals(num, 4);
+}
+
+o.num = 5;
+testInFunctionContext(o);
+
+//-----------------------------------------------------------------------------
+// Test local vars scope of outer function to be kept alive by inner functions
+//-----------------------------------------------------------------------------
+
+foo = function () {
+ var x = 42;
+ return function () { return x; };
+};
+
+f = foo();
+delete foo;
+#if OUTPUT_VERSION > 5
+check_equals(f(), 42);
+#else
+check_equals(typeof(f()), 'undefined');
+#endif
+
+#ifdef MING_SUPPORTS_ASM
+//
+// --case1--
+//
+testvar1 = 0;
+testvar2 = 0;
+testvar3 = 0;
+asm{
+ push 'testvar1'
+ push 1
+ push 'testvar2'
+ push 2
+ push 'testvar3'
+ push 3
+};
+function stack_test1()
+{
+ asm{
+ setvariable
+ setvariable
+ setvariable
+ };
+}
+
+stack_test1();
+
+xcheck_equals(testvar1, 1);
+xcheck_equals(testvar2, 2);
+xcheck_equals(testvar3, 3);
+
+//
+// --case2--
+//
+testvar1 = 0;
+testvar2 = 0;
+testvar3 = 0;
+asm{
+ push 'testvar1'
+ push 4
+ push 'testvar2'
+ push 5
+ push 'testvar3'
+ push 6
+};
+_root.createEmptyMovieClip("clip1", '9');
+clip1.stack_test2 = function () {
+ asm{
+ setvariable
+ setvariable
+ setvariable
+ };
+};
+
+clip1.stack_test2();
+
+#if OUTPUT_VERSION > 5
+ xcheck_equals(testvar1, 4);
+ xcheck_equals(testvar2, 5);
+ xcheck_equals(testvar3, 6);
+#endif
+
+//
+// --case3--
+//
+
+testvar1 = 0;
+testvar2 = 0;
+testvar3 = 0;
+
+function stack_test3 () {
+ asm{
+ // Please check the produced swf file to see if the
+ // structure of opcodes are that you expect.
+ push 7, 8, 9, 'pad to make Ming work as I expect'
+ // pop out the pad stuff, I just want to push 7,8,9 actually.
+ pop
+ };
+}
+
+outer_func1 = function () {
+ stack_test3();
+};
+
+outer_func2 = function () {
+ outer_func1();
+};
+
+outer_func2();
+
+//stack content after calling outer_func2:
+// 7, 8, 9
+
+asm{
+ push 'testvar1'
+ swap
+ setvariable
+};
+
+//stack: 7, 8
+asm{
+ push 'testvar2'
+ swap
+ setvariable
+};
+
+//stack: 7
+asm{
+ push 'testvar3'
+ swap
+ setvariable
+};
+xcheck_equals(testvar1, 9);
+xcheck_equals(testvar2, 8);
+xcheck_equals(testvar3, 7);
+
+#endif //MING_SUPPORTS_ASM
+
+//-----------------------------------------------------------------------------
+// Test that local var names are still declared, even if not passed by caller
+//-----------------------------------------------------------------------------
+
+function inc(a,b)
+{
+ a.count++;
+ b.count++;
+}
+a={count:1}; b={count:1};
+inc(a);
+check_equals(a.count, 2);
+check_equals(b.count, 1); // See bug #22203
+
+#if OUTPUT_VERSION == 5
+ check_totals(147); // SWF5
+#endif
+#if OUTPUT_VERSION == 6
+ check_totals(207); // SWF6
+#endif
+#if OUTPUT_VERSION >= 7
+ check_totals(208); // SWF7,SWF8
+#endif
diff --git a/test/gnash/actionscript.all/pending/LoadVars-5.swf b/test/gnash/actionscript.all/pending/LoadVars-5.swf
new file mode 100644
index 0000000..644dd18
Binary files /dev/null and b/test/gnash/actionscript.all/pending/LoadVars-5.swf differ
diff --git a/test/gnash/actionscript.all/pending/LoadVars-5.swf.trace b/test/gnash/actionscript.all/pending/LoadVars-5.swf.trace
new file mode 100644
index 0000000..de0f911
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/LoadVars-5.swf.trace
@@ -0,0 +1,3 @@
+XPASSED: typeof(LoadVars) == 'function' [LoadVars.as:30]
+XPASSED: typeof(loadvarsObj) == 'object' [LoadVars.as:35]
+check_totals: 2
diff --git a/test/gnash/actionscript.all/pending/LoadVars-6.swf b/test/gnash/actionscript.all/pending/LoadVars-6.swf
new file mode 100644
index 0000000..5569508
Binary files /dev/null and b/test/gnash/actionscript.all/pending/LoadVars-6.swf differ
diff --git a/test/gnash/actionscript.all/pending/LoadVars-6.swf.trace b/test/gnash/actionscript.all/pending/LoadVars-6.swf.trace
new file mode 100644
index 0000000..053e298
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/LoadVars-6.swf.trace
@@ -0,0 +1,75 @@
+PASSED: typeof(LoadVars) == 'function' [LoadVars.as:41]
+PASSED: typeof(loadvarsObj) == 'object' [LoadVars.as:46]
+PASSED: LoadVars.prototype.hasOwnProperty('addRequestHeader') [LoadVars.as:49]
+PASSED: typeof(loadvarsObj.addRequestHeader) == 'function' [LoadVars.as:50]
+PASSED: LoadVars.prototype.hasOwnProperty('decode') [LoadVars.as:53]
+PASSED: typeof(loadvarsObj.decode) == 'function' [LoadVars.as:54]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:56]
+PASSED: loadvarsObj.ud3 == 3 [LoadVars.as:57]
+PASSED: loadvarsObj.ud2 == 2 [LoadVars.as:58]
+PASSED: loadvarsObj.ud4 == 4 [LoadVars.as:60]
+PASSED: loadvarsObj.ud3 == 3 [LoadVars.as:61]
+PASSED: loadvarsObj.ud2 == 20 [LoadVars.as:62]
+PASSED: typeof(ret) == 'boolean' [LoadVars.as:64]
+PASSED: ret == false [LoadVars.as:65]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:67]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:70]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:73]
+PASSED: loadvarsObj.ud5 == 5 [LoadVars.as:74]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:77]
+PASSED: loadvarsObj.ud6 == undefined [LoadVars.as:78]
+PASSED: loadvarsObj['ud6'] == 6 [LoadVars.as:79]
+PASSED: loadvarsObj.ud7 == 7 [LoadVars.as:80]
+PASSED: LoadVars.prototype.hasOwnProperty('getBytesLoaded') [LoadVars.as:83]
+PASSED: typeof(loadvarsObj.getBytesLoaded) == 'function' [LoadVars.as:84]
+PASSED: LoadVars.prototype.hasOwnProperty('getBytesTotal') [LoadVars.as:87]
+PASSED: typeof(loadvarsObj.getBytesTotal) == 'function' [LoadVars.as:88]
+PASSED: LoadVars.prototype.hasOwnProperty('load') [LoadVars.as:91]
+PASSED: typeof(loadvarsObj.load) == 'function' [LoadVars.as:92]
+PASSED: LoadVars.prototype.hasOwnProperty('send') [LoadVars.as:95]
+PASSED: typeof(loadvarsObj.send) == 'function' [LoadVars.as:96]
+PASSED: LoadVars.prototype.hasOwnProperty('sendAndLoad') [LoadVars.as:99]
+PASSED: typeof(loadvarsObj.sendAndLoad) == 'function' [LoadVars.as:100]
+PASSED: LoadVars.prototype.hasOwnProperty('toString') [LoadVars.as:103]
+PASSED: typeof(loadvarsObj.toString) == 'function' [LoadVars.as:104]
+PASSED: !LoadVars.prototype.hasOwnProperty('valueOf') [LoadVars.as:107]
+PASSED: loadvarsObj.valueOf == Object.prototype.valueOf [LoadVars.as:108]
+PASSED: typeof(loadvarsObj.valueOf) == 'function' [LoadVars.as:109]
+PASSED: LoadVars.prototype.hasOwnProperty('onData') [LoadVars.as:112]
+PASSED: typeof(loadvarsObj.onData) == 'function' [LoadVars.as:113]
+PASSED: LoadVars.prototype.hasOwnProperty('onLoad') [LoadVars.as:116]
+PASSED: typeof(loadvarsObj.onLoad) == 'function' [LoadVars.as:117]
+PASSED: !LoadVars.prototype.hasOwnProperty('loaded') [LoadVars.as:120]
+PASSED: typeof(loadvarsObj.loaded) == 'undefined' [LoadVars.as:121]
+PASSED: loadvarsObj instanceOf LoadVars [LoadVars.as:205]
+PASSED: loadvarsObj.load( MEDIA(vars.txt) ) [LoadVars.as:207]
+PASSED: typeof(this.loaded) == 'undefined' [LoadVars.as:208]
+PASSED: loadvarsObj.loaded == false [LoadVars.as:211]
+PASSED: varsloaded == 0 [LoadVars.as:214]
+PASSED: loadvarsObj['var1'] == 'previous val1' [LoadVars.as:215]
+PASSED: loadvarsObj['var2'] == undefined [LoadVars.as:216]
+PASSED: this == loadvarsObj [LoadVars.as:177]
+PASSED: typeof(this.loaded) == 'boolean' [LoadVars.as:178]
+PASSED: this.loaded == false [LoadVars.as:179]
+PASSED: arguments.length == 1 [LoadVars.as:180]
+PASSED: typeof(src) == 'string' [LoadVars.as:181]
+PASSED: src.substr(0, 10) == 'var1=val1&' [LoadVars.as:182]
+PASSED: src.substr(loadvarsObj.getBytesTotal()-13) == 'var3=val3\n' [LoadVars.as:183]
+PASSED: datareceived == 0 [LoadVars.as:184]
+NOTE: LoadVars.onData called (1), byte loaded: 1126/1126
+NOTE: LoadVars.onLoad called 1. Bytes loaded: 1126/1126
+PASSED: loadvarsObj.getBytesTotal() == loadvarsObj.getBytesLoaded() [LoadVars.as:139]
+PASSED: loadvarsObj.getBytesLoaded() > 10 [LoadVars.as:140]
+PASSED: this == loadvarsObj [LoadVars.as:141]
+PASSED: arguments.length == 1 [LoadVars.as:142]
+PASSED: typeof(success) == 'boolean' [LoadVars.as:143]
+PASSED: success == true [LoadVars.as:144]
+PASSED: this.loaded == success [LoadVars.as:145]
+PASSED: typeof(this.loaded) == 'boolean' [LoadVars.as:146]
+PASSED: typeof(this.loaded) == 'number' [LoadVars.as:148]
+PASSED: varsloaded < 3 [LoadVars.as:150]
+PASSED: loadvarsObj.getBytesLoaded() == loadvarsObj.getBytesTotal() [LoadVars.as:153]
+PASSED: loadvarsObj['var1'] == 'val1' [LoadVars.as:159]
+PASSED: loadvarsObj['var2'] == 'val2' [LoadVars.as:161]
+PASSED: loadvarsObj['var3'] == 'val3\n' [LoadVars.as:166]
+check_totals: 72
diff --git a/test/gnash/actionscript.all/pending/LoadVars-7.swf b/test/gnash/actionscript.all/pending/LoadVars-7.swf
new file mode 100644
index 0000000..5545fb3
Binary files /dev/null and b/test/gnash/actionscript.all/pending/LoadVars-7.swf differ
diff --git a/test/gnash/actionscript.all/pending/LoadVars-7.swf.trace b/test/gnash/actionscript.all/pending/LoadVars-7.swf.trace
new file mode 100644
index 0000000..053e298
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/LoadVars-7.swf.trace
@@ -0,0 +1,75 @@
+PASSED: typeof(LoadVars) == 'function' [LoadVars.as:41]
+PASSED: typeof(loadvarsObj) == 'object' [LoadVars.as:46]
+PASSED: LoadVars.prototype.hasOwnProperty('addRequestHeader') [LoadVars.as:49]
+PASSED: typeof(loadvarsObj.addRequestHeader) == 'function' [LoadVars.as:50]
+PASSED: LoadVars.prototype.hasOwnProperty('decode') [LoadVars.as:53]
+PASSED: typeof(loadvarsObj.decode) == 'function' [LoadVars.as:54]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:56]
+PASSED: loadvarsObj.ud3 == 3 [LoadVars.as:57]
+PASSED: loadvarsObj.ud2 == 2 [LoadVars.as:58]
+PASSED: loadvarsObj.ud4 == 4 [LoadVars.as:60]
+PASSED: loadvarsObj.ud3 == 3 [LoadVars.as:61]
+PASSED: loadvarsObj.ud2 == 20 [LoadVars.as:62]
+PASSED: typeof(ret) == 'boolean' [LoadVars.as:64]
+PASSED: ret == false [LoadVars.as:65]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:67]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:70]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:73]
+PASSED: loadvarsObj.ud5 == 5 [LoadVars.as:74]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:77]
+PASSED: loadvarsObj.ud6 == undefined [LoadVars.as:78]
+PASSED: loadvarsObj['ud6'] == 6 [LoadVars.as:79]
+PASSED: loadvarsObj.ud7 == 7 [LoadVars.as:80]
+PASSED: LoadVars.prototype.hasOwnProperty('getBytesLoaded') [LoadVars.as:83]
+PASSED: typeof(loadvarsObj.getBytesLoaded) == 'function' [LoadVars.as:84]
+PASSED: LoadVars.prototype.hasOwnProperty('getBytesTotal') [LoadVars.as:87]
+PASSED: typeof(loadvarsObj.getBytesTotal) == 'function' [LoadVars.as:88]
+PASSED: LoadVars.prototype.hasOwnProperty('load') [LoadVars.as:91]
+PASSED: typeof(loadvarsObj.load) == 'function' [LoadVars.as:92]
+PASSED: LoadVars.prototype.hasOwnProperty('send') [LoadVars.as:95]
+PASSED: typeof(loadvarsObj.send) == 'function' [LoadVars.as:96]
+PASSED: LoadVars.prototype.hasOwnProperty('sendAndLoad') [LoadVars.as:99]
+PASSED: typeof(loadvarsObj.sendAndLoad) == 'function' [LoadVars.as:100]
+PASSED: LoadVars.prototype.hasOwnProperty('toString') [LoadVars.as:103]
+PASSED: typeof(loadvarsObj.toString) == 'function' [LoadVars.as:104]
+PASSED: !LoadVars.prototype.hasOwnProperty('valueOf') [LoadVars.as:107]
+PASSED: loadvarsObj.valueOf == Object.prototype.valueOf [LoadVars.as:108]
+PASSED: typeof(loadvarsObj.valueOf) == 'function' [LoadVars.as:109]
+PASSED: LoadVars.prototype.hasOwnProperty('onData') [LoadVars.as:112]
+PASSED: typeof(loadvarsObj.onData) == 'function' [LoadVars.as:113]
+PASSED: LoadVars.prototype.hasOwnProperty('onLoad') [LoadVars.as:116]
+PASSED: typeof(loadvarsObj.onLoad) == 'function' [LoadVars.as:117]
+PASSED: !LoadVars.prototype.hasOwnProperty('loaded') [LoadVars.as:120]
+PASSED: typeof(loadvarsObj.loaded) == 'undefined' [LoadVars.as:121]
+PASSED: loadvarsObj instanceOf LoadVars [LoadVars.as:205]
+PASSED: loadvarsObj.load( MEDIA(vars.txt) ) [LoadVars.as:207]
+PASSED: typeof(this.loaded) == 'undefined' [LoadVars.as:208]
+PASSED: loadvarsObj.loaded == false [LoadVars.as:211]
+PASSED: varsloaded == 0 [LoadVars.as:214]
+PASSED: loadvarsObj['var1'] == 'previous val1' [LoadVars.as:215]
+PASSED: loadvarsObj['var2'] == undefined [LoadVars.as:216]
+PASSED: this == loadvarsObj [LoadVars.as:177]
+PASSED: typeof(this.loaded) == 'boolean' [LoadVars.as:178]
+PASSED: this.loaded == false [LoadVars.as:179]
+PASSED: arguments.length == 1 [LoadVars.as:180]
+PASSED: typeof(src) == 'string' [LoadVars.as:181]
+PASSED: src.substr(0, 10) == 'var1=val1&' [LoadVars.as:182]
+PASSED: src.substr(loadvarsObj.getBytesTotal()-13) == 'var3=val3\n' [LoadVars.as:183]
+PASSED: datareceived == 0 [LoadVars.as:184]
+NOTE: LoadVars.onData called (1), byte loaded: 1126/1126
+NOTE: LoadVars.onLoad called 1. Bytes loaded: 1126/1126
+PASSED: loadvarsObj.getBytesTotal() == loadvarsObj.getBytesLoaded() [LoadVars.as:139]
+PASSED: loadvarsObj.getBytesLoaded() > 10 [LoadVars.as:140]
+PASSED: this == loadvarsObj [LoadVars.as:141]
+PASSED: arguments.length == 1 [LoadVars.as:142]
+PASSED: typeof(success) == 'boolean' [LoadVars.as:143]
+PASSED: success == true [LoadVars.as:144]
+PASSED: this.loaded == success [LoadVars.as:145]
+PASSED: typeof(this.loaded) == 'boolean' [LoadVars.as:146]
+PASSED: typeof(this.loaded) == 'number' [LoadVars.as:148]
+PASSED: varsloaded < 3 [LoadVars.as:150]
+PASSED: loadvarsObj.getBytesLoaded() == loadvarsObj.getBytesTotal() [LoadVars.as:153]
+PASSED: loadvarsObj['var1'] == 'val1' [LoadVars.as:159]
+PASSED: loadvarsObj['var2'] == 'val2' [LoadVars.as:161]
+PASSED: loadvarsObj['var3'] == 'val3\n' [LoadVars.as:166]
+check_totals: 72
diff --git a/test/gnash/actionscript.all/pending/LoadVars-8.swf b/test/gnash/actionscript.all/pending/LoadVars-8.swf
new file mode 100644
index 0000000..ff31f1f
Binary files /dev/null and b/test/gnash/actionscript.all/pending/LoadVars-8.swf differ
diff --git a/test/gnash/actionscript.all/pending/LoadVars-8.swf.trace b/test/gnash/actionscript.all/pending/LoadVars-8.swf.trace
new file mode 100644
index 0000000..053e298
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/LoadVars-8.swf.trace
@@ -0,0 +1,75 @@
+PASSED: typeof(LoadVars) == 'function' [LoadVars.as:41]
+PASSED: typeof(loadvarsObj) == 'object' [LoadVars.as:46]
+PASSED: LoadVars.prototype.hasOwnProperty('addRequestHeader') [LoadVars.as:49]
+PASSED: typeof(loadvarsObj.addRequestHeader) == 'function' [LoadVars.as:50]
+PASSED: LoadVars.prototype.hasOwnProperty('decode') [LoadVars.as:53]
+PASSED: typeof(loadvarsObj.decode) == 'function' [LoadVars.as:54]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:56]
+PASSED: loadvarsObj.ud3 == 3 [LoadVars.as:57]
+PASSED: loadvarsObj.ud2 == 2 [LoadVars.as:58]
+PASSED: loadvarsObj.ud4 == 4 [LoadVars.as:60]
+PASSED: loadvarsObj.ud3 == 3 [LoadVars.as:61]
+PASSED: loadvarsObj.ud2 == 20 [LoadVars.as:62]
+PASSED: typeof(ret) == 'boolean' [LoadVars.as:64]
+PASSED: ret == false [LoadVars.as:65]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:67]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:70]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:73]
+PASSED: loadvarsObj.ud5 == 5 [LoadVars.as:74]
+PASSED: typeof(ret) == 'undefined' [LoadVars.as:77]
+PASSED: loadvarsObj.ud6 == undefined [LoadVars.as:78]
+PASSED: loadvarsObj['ud6'] == 6 [LoadVars.as:79]
+PASSED: loadvarsObj.ud7 == 7 [LoadVars.as:80]
+PASSED: LoadVars.prototype.hasOwnProperty('getBytesLoaded') [LoadVars.as:83]
+PASSED: typeof(loadvarsObj.getBytesLoaded) == 'function' [LoadVars.as:84]
+PASSED: LoadVars.prototype.hasOwnProperty('getBytesTotal') [LoadVars.as:87]
+PASSED: typeof(loadvarsObj.getBytesTotal) == 'function' [LoadVars.as:88]
+PASSED: LoadVars.prototype.hasOwnProperty('load') [LoadVars.as:91]
+PASSED: typeof(loadvarsObj.load) == 'function' [LoadVars.as:92]
+PASSED: LoadVars.prototype.hasOwnProperty('send') [LoadVars.as:95]
+PASSED: typeof(loadvarsObj.send) == 'function' [LoadVars.as:96]
+PASSED: LoadVars.prototype.hasOwnProperty('sendAndLoad') [LoadVars.as:99]
+PASSED: typeof(loadvarsObj.sendAndLoad) == 'function' [LoadVars.as:100]
+PASSED: LoadVars.prototype.hasOwnProperty('toString') [LoadVars.as:103]
+PASSED: typeof(loadvarsObj.toString) == 'function' [LoadVars.as:104]
+PASSED: !LoadVars.prototype.hasOwnProperty('valueOf') [LoadVars.as:107]
+PASSED: loadvarsObj.valueOf == Object.prototype.valueOf [LoadVars.as:108]
+PASSED: typeof(loadvarsObj.valueOf) == 'function' [LoadVars.as:109]
+PASSED: LoadVars.prototype.hasOwnProperty('onData') [LoadVars.as:112]
+PASSED: typeof(loadvarsObj.onData) == 'function' [LoadVars.as:113]
+PASSED: LoadVars.prototype.hasOwnProperty('onLoad') [LoadVars.as:116]
+PASSED: typeof(loadvarsObj.onLoad) == 'function' [LoadVars.as:117]
+PASSED: !LoadVars.prototype.hasOwnProperty('loaded') [LoadVars.as:120]
+PASSED: typeof(loadvarsObj.loaded) == 'undefined' [LoadVars.as:121]
+PASSED: loadvarsObj instanceOf LoadVars [LoadVars.as:205]
+PASSED: loadvarsObj.load( MEDIA(vars.txt) ) [LoadVars.as:207]
+PASSED: typeof(this.loaded) == 'undefined' [LoadVars.as:208]
+PASSED: loadvarsObj.loaded == false [LoadVars.as:211]
+PASSED: varsloaded == 0 [LoadVars.as:214]
+PASSED: loadvarsObj['var1'] == 'previous val1' [LoadVars.as:215]
+PASSED: loadvarsObj['var2'] == undefined [LoadVars.as:216]
+PASSED: this == loadvarsObj [LoadVars.as:177]
+PASSED: typeof(this.loaded) == 'boolean' [LoadVars.as:178]
+PASSED: this.loaded == false [LoadVars.as:179]
+PASSED: arguments.length == 1 [LoadVars.as:180]
+PASSED: typeof(src) == 'string' [LoadVars.as:181]
+PASSED: src.substr(0, 10) == 'var1=val1&' [LoadVars.as:182]
+PASSED: src.substr(loadvarsObj.getBytesTotal()-13) == 'var3=val3\n' [LoadVars.as:183]
+PASSED: datareceived == 0 [LoadVars.as:184]
+NOTE: LoadVars.onData called (1), byte loaded: 1126/1126
+NOTE: LoadVars.onLoad called 1. Bytes loaded: 1126/1126
+PASSED: loadvarsObj.getBytesTotal() == loadvarsObj.getBytesLoaded() [LoadVars.as:139]
+PASSED: loadvarsObj.getBytesLoaded() > 10 [LoadVars.as:140]
+PASSED: this == loadvarsObj [LoadVars.as:141]
+PASSED: arguments.length == 1 [LoadVars.as:142]
+PASSED: typeof(success) == 'boolean' [LoadVars.as:143]
+PASSED: success == true [LoadVars.as:144]
+PASSED: this.loaded == success [LoadVars.as:145]
+PASSED: typeof(this.loaded) == 'boolean' [LoadVars.as:146]
+PASSED: typeof(this.loaded) == 'number' [LoadVars.as:148]
+PASSED: varsloaded < 3 [LoadVars.as:150]
+PASSED: loadvarsObj.getBytesLoaded() == loadvarsObj.getBytesTotal() [LoadVars.as:153]
+PASSED: loadvarsObj['var1'] == 'val1' [LoadVars.as:159]
+PASSED: loadvarsObj['var2'] == 'val2' [LoadVars.as:161]
+PASSED: loadvarsObj['var3'] == 'val3\n' [LoadVars.as:166]
+check_totals: 72
diff --git a/test/gnash/actionscript.all/pending/LoadVars.as b/test/gnash/actionscript.all/pending/LoadVars.as
new file mode 100644
index 0000000..8662da9
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/LoadVars.as
@@ -0,0 +1,222 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+
+// Test case for LoadVars ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+rcsid="$Id: LoadVars.as,v 1.29 2008/04/16 23:07:15 strk Exp $";
+#include "check.as"
+
+#if OUTPUT_VERSION < 6
+
+xcheck_equals(typeof(LoadVars), 'function');
+
+var loadvarsObj = new LoadVars;
+
+// test the LoadVars constuctor
+xcheck_equals (typeof(loadvarsObj), 'object');
+
+check_totals(2);
+
+#else // OUTPUT_VERSION >= 6
+
+check_equals(typeof(LoadVars), 'function');
+
+var loadvarsObj = new LoadVars;
+
+// test the LoadVars constuctor
+check_equals (typeof(loadvarsObj), 'object');
+
+// test the LoadVars::addrequestheader method
+check (LoadVars.prototype.hasOwnProperty('addRequestHeader'));
+check_equals (typeof(loadvarsObj.addRequestHeader), 'function');
+
+// test the LoadVars::decode method
+check (LoadVars.prototype.hasOwnProperty('decode'));
+check_equals (typeof(loadvarsObj.decode), 'function');
+ret = loadvarsObj.decode("ud3=3&ud2=2");
+check_equals(typeof(ret), 'undefined');
+check_equals (loadvarsObj.ud3, 3);
+check_equals (loadvarsObj.ud2, 2);
+loadvarsObj.decode("ud4=4&ud2=20");
+check_equals (loadvarsObj.ud4, 4);
+check_equals (loadvarsObj.ud3, 3);
+check_equals (loadvarsObj.ud2, 20);
+ret = loadvarsObj.decode();
+check_equals( typeof(ret), 'boolean');
+check_equals( ret, false );
+ret = loadvarsObj.decode("");
+check_equals( typeof(ret), 'undefined');
+o = {};
+ret = loadvarsObj.decode(o);
+check_equals( typeof(ret), 'undefined');
+o.toString = function() { return "ud5=5"; };
+ret = loadvarsObj.decode(o);
+check_equals( typeof(ret), 'undefined');
+check_equals (loadvarsObj.ud5, 5);
+bomstarting="ud6=6&ud7=7";
+ret = loadvarsObj.decode(bomstarting);
+check_equals( typeof(ret), 'undefined');
+check_equals (loadvarsObj.ud6, undefined);
+check_equals (loadvarsObj['ud6'], 6);
+check_equals (loadvarsObj.ud7, 7);
+
+// test the LoadVars::getbytesloaded method
+check (LoadVars.prototype.hasOwnProperty('getBytesLoaded'));
+check_equals (typeof(loadvarsObj.getBytesLoaded), 'function');
+
+// test the LoadVars::getbytestotal method
+check (LoadVars.prototype.hasOwnProperty('getBytesTotal'));
+check_equals (typeof(loadvarsObj.getBytesTotal), 'function');
+
+// test the LoadVars::load method
+check (LoadVars.prototype.hasOwnProperty('load'));
+check_equals (typeof(loadvarsObj.load), 'function');
+
+// test the LoadVars::send method
+check (LoadVars.prototype.hasOwnProperty('send'));
+check_equals (typeof(loadvarsObj.send), 'function');
+
+// test the LoadVars::sendandload method
+check (LoadVars.prototype.hasOwnProperty('sendAndLoad'));
+check_equals (typeof(loadvarsObj.sendAndLoad), 'function');
+
+// test the LoadVars::tostring method
+check (LoadVars.prototype.hasOwnProperty('toString'));
+check_equals (typeof(loadvarsObj.toString), 'function');
+
+// test the LoadVars::tostring method
+check (!LoadVars.prototype.hasOwnProperty('valueOf'));
+check_equals (loadvarsObj.valueOf, Object.prototype.valueOf);
+check_equals (typeof(loadvarsObj.valueOf), 'function');
+
+// test the LoadVars::onData method
+check (LoadVars.prototype.hasOwnProperty('onData'));
+check_equals (typeof(loadvarsObj.onData), 'function');
+
+// test the LoadVars::onLoad method
+check (LoadVars.prototype.hasOwnProperty('onLoad'));
+check_equals (typeof(loadvarsObj.onLoad), 'function');
+
+// test the LoadVars::loaded member
+check (!LoadVars.prototype.hasOwnProperty('loaded'));
+check_equals (typeof(loadvarsObj.loaded), 'undefined');
+
+//--------------------------------------------------------------------------
+// Test LoadVars::load()
+//--------------------------------------------------------------------------
+
+varsloaded = 0;
+datareceived = 0;
+//var1 = undefined;
+//var2 = undefined;
+loadvarsObj.onLoad = function(success) {
+ varsloaded++;
+ note("LoadVars.onLoad called "+varsloaded+". "
+ +"Bytes loaded: "+loadvarsObj.getBytesLoaded()
+ +"/"+loadvarsObj.getBytesTotal());
+
+ //delete loadvarsObj; // this to test robustness
+
+ check_equals (loadvarsObj.getBytesTotal(), loadvarsObj.getBytesLoaded());
+ check (loadvarsObj.getBytesLoaded() > 10);
+ check_equals (this, loadvarsObj);
+ check_equals(arguments.length, 1);
+ check_equals(typeof(success), 'boolean');
+ check_equals(success, true);
+ check_equals(this.loaded, success);
+ check_equals(typeof(this.loaded), 'boolean');
+ this.loaded = 5;
+ check_equals(typeof(this.loaded), 'number');
+
+ check(varsloaded < 3);
+
+ // onLoad is called after all vars have been called
+ check_equals( loadvarsObj.getBytesLoaded(), loadvarsObj.getBytesTotal() );
+
+ //for (var i in _root) { note("_root["+i+"] = "+_root[i]); }
+
+ if ( varsloaded == 1 )
+ {
+ check_equals(loadvarsObj['var1'], 'val1');
+ //check_equals(loadvarsObj['var1_check'], 'previous val1');
+ check_equals(loadvarsObj['var2'], 'val2');
+ //check_equals(loadvarsObj['v2_var1'], 'val1');
+ //check_equals(loadvarsObj['v2_var2'], 'val2');
+
+ // Gnash insists in looking for an ending & char !!
+ check_equals(loadvarsObj['var3'], 'val3\n');
+
+ check_totals(72);
+
+ play();
+ }
+};
+
+// onData is called once with full parsed content.
+loadvarsObj.onDataReal = loadvarsObj.onData;
+loadvarsObj.onData = function(src) {
+ check_equals (this, loadvarsObj);
+ check_equals(typeof(this.loaded), 'boolean');
+ check_equals(this.loaded, false);
+ check_equals(arguments.length, 1);
+ check_equals(typeof(src), 'string');
+ check_equals(src.substr(0, 10), 'var1=val1&');
+ check_equals(src.substr(loadvarsObj.getBytesTotal()-13), 'var3=val3\n');
+ check_equals(datareceived, 0);
+ datareceived++; // we expecte it to be called only once ?
+ note("LoadVars.onData called ("+datareceived+"), byte loaded: "
+ +loadvarsObj.getBytesLoaded()
+ +"/"+loadvarsObj.getBytesTotal());
+ this.onDataReal(src);
+ //check_equals(loadvarsObj['var1'], 'val1');
+ //check_equals(loadvarsObj['var2'], 'val2');
+ //for (var i in _root) { note("_root["+i+"] = "+_root[i]); }
+ //play();
+};
+
+loadvarsObj.var1 = "previous val1";
+
+// We expect the loaded file to return this string:
+//
+// "var1=val1&var2=val2&"
+//
+// The final '&' char is important, and it must
+// not start with a '?' char.
+//
+check( loadvarsObj instanceOf LoadVars );
+//check( loadvarsObj.sendAndLoad( 'http://localhost/vars.php', loadvarsObj ) );
+check( loadvarsObj.load( MEDIA(vars.txt) ) );
+check_equals(typeof(this.loaded), 'undefined');
+//loadvarsObj.load( 'vars.cgi' );
+
+check_equals( loadvarsObj.loaded, false );
+//loadvars.Obj.loaded = true;
+//check_equals( loadvarsObj.loaded, false );
+check_equals(varsloaded, 0);
+check_equals(loadvarsObj['var1'], 'previous val1'); // will be overridden
+check_equals(loadvarsObj['var2'], undefined);
+//delete loadvarsObj; // this to test robustness
+
+stop();
+
+#endif // OUTPUT_VERSION >= 6
+
diff --git a/test/gnash/actionscript.all/pending/LocalConnection-5.swf b/test/gnash/actionscript.all/pending/LocalConnection-5.swf
new file mode 100644
index 0000000..34290fc
Binary files /dev/null and b/test/gnash/actionscript.all/pending/LocalConnection-5.swf differ
diff --git a/test/gnash/actionscript.all/pending/LocalConnection-5.swf.trace b/test/gnash/actionscript.all/pending/LocalConnection-5.swf.trace
new file mode 100644
index 0000000..09bb5e4
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/LocalConnection-5.swf.trace
@@ -0,0 +1,2 @@
+PASSED: LocalConnection == undefined [LocalConnection.as:31]
+totals
diff --git a/test/gnash/actionscript.all/pending/LocalConnection-6.swf b/test/gnash/actionscript.all/pending/LocalConnection-6.swf
new file mode 100644
index 0000000..89cd5eb
Binary files /dev/null and b/test/gnash/actionscript.all/pending/LocalConnection-6.swf differ
diff --git a/test/gnash/actionscript.all/pending/LocalConnection-6.swf.trace b/test/gnash/actionscript.all/pending/LocalConnection-6.swf.trace
new file mode 100644
index 0000000..4b47977
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/LocalConnection-6.swf.trace
@@ -0,0 +1,23 @@
+XPASSED: LocalConnection.prototype.hasOwnProperty("send") [LocalConnection.as:36]
+XPASSED: LocalConnection.prototype.hasOwnProperty("connect") [LocalConnection.as:37]
+XPASSED: LocalConnection.prototype.hasOwnProperty("close") [LocalConnection.as:38]
+XPASSED: LocalConnection.prototype.hasOwnProperty("domain") [LocalConnection.as:39]
+PASSED: ! LocalConnection.prototype.hasOwnProperty("allowDomain") [LocalConnection.as:40]
+PASSED: ! LocalConnection.prototype.hasOwnProperty("onStatus") [LocalConnection.as:41]
+PASSED: typeof(rec) == 'object' [LocalConnection.as:46]
+PASSED: rec != snd [LocalConnection.as:51]
+PASSED: typeof(rec.close) == 'function' [LocalConnection.as:54]
+PASSED: typeof(rec.connect) == 'function' [LocalConnection.as:57]
+PASSED: typeof(rec.domain) == 'function' [LocalConnection.as:60]
+PASSED: typeof(rec.send) == 'function' [LocalConnection.as:63]
+PASSED: domain == "localhost" [LocalConnection.as:68]
+XPASSED: rec.domain() == "localhost" [LocalConnection.as:78]
+PASSED: result == true [LocalConnection.as:82]
+XPASSED: result == true [LocalConnection.as:86]
+XPASSED: result == false [LocalConnection.as:90]
+XPASSED: result == false [LocalConnection.as:92]
+XPASSED: result == false [LocalConnection.as:95]
+XPASSED: result == false [LocalConnection.as:98]
+XPASSED: result == true [LocalConnection.as:103]
+XPASSED: result == true [LocalConnection.as:106]
+totals
diff --git a/test/gnash/actionscript.all/pending/LocalConnection-7.swf b/test/gnash/actionscript.all/pending/LocalConnection-7.swf
new file mode 100644
index 0000000..252443d
Binary files /dev/null and b/test/gnash/actionscript.all/pending/LocalConnection-7.swf differ
diff --git a/test/gnash/actionscript.all/pending/LocalConnection-7.swf.trace b/test/gnash/actionscript.all/pending/LocalConnection-7.swf.trace
new file mode 100644
index 0000000..4b47977
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/LocalConnection-7.swf.trace
@@ -0,0 +1,23 @@
+XPASSED: LocalConnection.prototype.hasOwnProperty("send") [LocalConnection.as:36]
+XPASSED: LocalConnection.prototype.hasOwnProperty("connect") [LocalConnection.as:37]
+XPASSED: LocalConnection.prototype.hasOwnProperty("close") [LocalConnection.as:38]
+XPASSED: LocalConnection.prototype.hasOwnProperty("domain") [LocalConnection.as:39]
+PASSED: ! LocalConnection.prototype.hasOwnProperty("allowDomain") [LocalConnection.as:40]
+PASSED: ! LocalConnection.prototype.hasOwnProperty("onStatus") [LocalConnection.as:41]
+PASSED: typeof(rec) == 'object' [LocalConnection.as:46]
+PASSED: rec != snd [LocalConnection.as:51]
+PASSED: typeof(rec.close) == 'function' [LocalConnection.as:54]
+PASSED: typeof(rec.connect) == 'function' [LocalConnection.as:57]
+PASSED: typeof(rec.domain) == 'function' [LocalConnection.as:60]
+PASSED: typeof(rec.send) == 'function' [LocalConnection.as:63]
+PASSED: domain == "localhost" [LocalConnection.as:68]
+XPASSED: rec.domain() == "localhost" [LocalConnection.as:78]
+PASSED: result == true [LocalConnection.as:82]
+XPASSED: result == true [LocalConnection.as:86]
+XPASSED: result == false [LocalConnection.as:90]
+XPASSED: result == false [LocalConnection.as:92]
+XPASSED: result == false [LocalConnection.as:95]
+XPASSED: result == false [LocalConnection.as:98]
+XPASSED: result == true [LocalConnection.as:103]
+XPASSED: result == true [LocalConnection.as:106]
+totals
diff --git a/test/gnash/actionscript.all/pending/LocalConnection-8.swf b/test/gnash/actionscript.all/pending/LocalConnection-8.swf
new file mode 100644
index 0000000..1693c4c
Binary files /dev/null and b/test/gnash/actionscript.all/pending/LocalConnection-8.swf differ
diff --git a/test/gnash/actionscript.all/pending/LocalConnection-8.swf.trace b/test/gnash/actionscript.all/pending/LocalConnection-8.swf.trace
new file mode 100644
index 0000000..4b47977
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/LocalConnection-8.swf.trace
@@ -0,0 +1,23 @@
+XPASSED: LocalConnection.prototype.hasOwnProperty("send") [LocalConnection.as:36]
+XPASSED: LocalConnection.prototype.hasOwnProperty("connect") [LocalConnection.as:37]
+XPASSED: LocalConnection.prototype.hasOwnProperty("close") [LocalConnection.as:38]
+XPASSED: LocalConnection.prototype.hasOwnProperty("domain") [LocalConnection.as:39]
+PASSED: ! LocalConnection.prototype.hasOwnProperty("allowDomain") [LocalConnection.as:40]
+PASSED: ! LocalConnection.prototype.hasOwnProperty("onStatus") [LocalConnection.as:41]
+PASSED: typeof(rec) == 'object' [LocalConnection.as:46]
+PASSED: rec != snd [LocalConnection.as:51]
+PASSED: typeof(rec.close) == 'function' [LocalConnection.as:54]
+PASSED: typeof(rec.connect) == 'function' [LocalConnection.as:57]
+PASSED: typeof(rec.domain) == 'function' [LocalConnection.as:60]
+PASSED: typeof(rec.send) == 'function' [LocalConnection.as:63]
+PASSED: domain == "localhost" [LocalConnection.as:68]
+XPASSED: rec.domain() == "localhost" [LocalConnection.as:78]
+PASSED: result == true [LocalConnection.as:82]
+XPASSED: result == true [LocalConnection.as:86]
+XPASSED: result == false [LocalConnection.as:90]
+XPASSED: result == false [LocalConnection.as:92]
+XPASSED: result == false [LocalConnection.as:95]
+XPASSED: result == false [LocalConnection.as:98]
+XPASSED: result == true [LocalConnection.as:103]
+XPASSED: result == true [LocalConnection.as:106]
+totals
diff --git a/test/gnash/actionscript.all/pending/LocalConnection.as b/test/gnash/actionscript.all/pending/LocalConnection.as
new file mode 100644
index 0000000..fb7f000
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/LocalConnection.as
@@ -0,0 +1,114 @@
+//
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+// Test case for LocalConnection ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+
+// We need more than one frame to test the connection properly.
+
+rcsid="$Id: LocalConnection.as,v 1.21 2008/05/05 15:26:38 bwy Exp $";
+#include "check.as"
+
+#if OUTPUT_VERSION < 6
+
+check_equals(LocalConnection, undefined);
+totals(1);
+
+#else // OUTPUT_VERSION >= 6
+
+xcheck (LocalConnection.prototype.hasOwnProperty("send"));
+xcheck (LocalConnection.prototype.hasOwnProperty("connect"));
+xcheck (LocalConnection.prototype.hasOwnProperty("close"));
+xcheck (LocalConnection.prototype.hasOwnProperty("domain"));
+check (! LocalConnection.prototype.hasOwnProperty("allowDomain"));
+check (! LocalConnection.prototype.hasOwnProperty("onStatus"));
+
+var rec = new LocalConnection();
+
+// test the LocalConnection constuctor
+check_equals (typeof(rec), 'object');
+
+var snd = new LocalConnection();
+
+// Not sure if this is a sensible test.
+check(rec != snd);
+
+// test the LocalConnection::close method
+check_equals (typeof(rec.close), 'function');
+
+// test the LocalConnection::connect method
+check_equals (typeof(rec.connect), 'function');
+
+// test the LocalConnection::domain method
+check_equals (typeof(rec.domain), 'function');
+
+// test the LocalConnection::send method
+check_equals (typeof(rec.send), 'function');
+
+// Get the domain. By default this should be "localhost" because we
+// haven't made any connections yet,
+var domain = rec.domain();
+check_equals (domain, "localhost");
+
+// If the listen() times out waiting for a connection, it'll set the
+// main socket file descriptor to an error condition, although the
+// initial file descriptor returned by bind is still fine, since we
+// could always (in a normal application) check later for incoming
+// connections.
+
+rec.close();
+result = rec.connect("lc_test");
+xcheck_equals (rec.domain(), "localhost");
+
+// NOTE: This test will fail if a shared memory segment of the same
+// name exists. So the first time it'll pass, then it'll fail.
+check_equals (result, true);
+
+// Checks only for syntactical correctness, not success
+result = snd.send("lc_test", "testfunc", "val");
+xcheck_equals (result, true);
+
+// The function name may not be send or any other LC property.
+result = snd.send("lc_test", "send");
+xcheck_equals (result, false);
+result = snd.send("lc_test", "onStatus");
+xcheck_equals (result, false);
+// Numbers are also bad
+result = snd.send("lc_test", 1);
+xcheck_equals (result, false);
+// undefined
+result = snd.send("lc_test", funcname);
+xcheck_equals (result, false);
+
+
+// But anything else is fine.
+result = snd.send("lc_test", "getSeconds");
+xcheck_equals (result, true);
+funcname = "onFullScreen";
+result = snd.send("lc_test", funcname);
+xcheck_equals (result, true);
+
+rec.close();
+
+totals(22);
+
+#endif // OUTPUT_VERSION >= 6
+
+
diff --git a/test/gnash/actionscript.all/pending/Matrix-5.swf b/test/gnash/actionscript.all/pending/Matrix-5.swf
new file mode 100644
index 0000000..5434f1c
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Matrix-5.swf differ
diff --git a/test/gnash/actionscript.all/pending/Matrix-5.swf.trace b/test/gnash/actionscript.all/pending/Matrix-5.swf.trace
new file mode 100644
index 0000000..df1259f
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Matrix-5.swf.trace
@@ -0,0 +1,2 @@
+PASSED: typeof(flash) == 'undefined' [Matrix.as:37]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/pending/Matrix-6.swf b/test/gnash/actionscript.all/pending/Matrix-6.swf
new file mode 100644
index 0000000..3a9469e
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Matrix-6.swf differ
diff --git a/test/gnash/actionscript.all/pending/Matrix-6.swf.trace b/test/gnash/actionscript.all/pending/Matrix-6.swf.trace
new file mode 100644
index 0000000..df1259f
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Matrix-6.swf.trace
@@ -0,0 +1,2 @@
+PASSED: typeof(flash) == 'undefined' [Matrix.as:37]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/pending/Matrix-7.swf b/test/gnash/actionscript.all/pending/Matrix-7.swf
new file mode 100644
index 0000000..f0c2f0d
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Matrix-7.swf differ
diff --git a/test/gnash/actionscript.all/pending/Matrix-7.swf.trace b/test/gnash/actionscript.all/pending/Matrix-7.swf.trace
new file mode 100644
index 0000000..df1259f
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Matrix-7.swf.trace
@@ -0,0 +1,2 @@
+PASSED: typeof(flash) == 'undefined' [Matrix.as:37]
+check_totals: 1
diff --git a/test/gnash/actionscript.all/pending/Matrix-8.swf b/test/gnash/actionscript.all/pending/Matrix-8.swf
new file mode 100644
index 0000000..4049c6d
Binary files /dev/null and b/test/gnash/actionscript.all/pending/Matrix-8.swf differ
diff --git a/test/gnash/actionscript.all/pending/Matrix-8.swf.trace b/test/gnash/actionscript.all/pending/Matrix-8.swf.trace
new file mode 100644
index 0000000..921c0f9
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Matrix-8.swf.trace
@@ -0,0 +1,163 @@
+PASSED: typeof(Matrix) == 'function' [Matrix.as:44]
+PASSED: typeof(Matrix.prototype) == 'object' [Matrix.as:45]
+PASSED: Matrix.prototype.hasOwnProperty('identity') [Matrix.as:46]
+PASSED: Matrix.prototype.hasOwnProperty('rotate') [Matrix.as:47]
+PASSED: Matrix.prototype.hasOwnProperty('concat') [Matrix.as:48]
+PASSED: Matrix.prototype.hasOwnProperty('translate') [Matrix.as:49]
+PASSED: Matrix.prototype.hasOwnProperty('scale') [Matrix.as:50]
+PASSED: Matrix.prototype.hasOwnProperty('transformPoint') [Matrix.as:51]
+PASSED: Matrix.prototype.hasOwnProperty('deltaTransformPoint') [Matrix.as:52]
+PASSED: Matrix.prototype.hasOwnProperty('createBox') [Matrix.as:53]
+PASSED: Matrix.prototype.hasOwnProperty('clone') [Matrix.as:54]
+PASSED: Matrix.prototype.hasOwnProperty('createGradientBox') [Matrix.as:55]
+PASSED: Matrix.prototype.hasOwnProperty('invert') [Matrix.as:56]
+PASSED: Matrix.prototype.hasOwnProperty('toString') [Matrix.as:57]
+PASSED: !Matrix.prototype.hasOwnProperty('a') [Matrix.as:58]
+PASSED: !Matrix.prototype.hasOwnProperty('b') [Matrix.as:59]
+PASSED: !Matrix.prototype.hasOwnProperty('c') [Matrix.as:60]
+PASSED: !Matrix.prototype.hasOwnProperty('d') [Matrix.as:61]
+PASSED: !Matrix.prototype.hasOwnProperty('tx') [Matrix.as:62]
+PASSED: !Matrix.prototype.hasOwnProperty('ty') [Matrix.as:63]
+PASSED: typeof(m) == 'object' [Matrix.as:70]
+PASSED: m instanceof Matrix [Matrix.as:71]
+PASSED: m.hasOwnProperty('a') [Matrix.as:72]
+PASSED: m.hasOwnProperty('b') [Matrix.as:73]
+PASSED: m.hasOwnProperty('c') [Matrix.as:74]
+PASSED: m.hasOwnProperty('d') [Matrix.as:75]
+PASSED: m.hasOwnProperty("tx") [Matrix.as:76]
+PASSED: m.hasOwnProperty("ty") [Matrix.as:77]
+PASSED: m.a == 1 [Matrix.as:79]
+PASSED: m.b == 0 [Matrix.as:80]
+PASSED: m.c == 0 [Matrix.as:81]
+PASSED: m.d == 1 [Matrix.as:82]
+PASSED: m.tx == 0 [Matrix.as:83]
+PASSED: m.ty == 0 [Matrix.as:84]
+PASSED: m.toString() == "(a=1, b=0, c=0, d=1, tx=0, ty=0)" [Matrix.as:86]
+PASSED: m.b == "5.4" [Matrix.as:89]
+PASSED: m.c == "4.548759874" [Matrix.as:92]
+PASSED: m.toString() == "(a=4.10203808667724, b=-3.65147689783865, c=-1.49969051027619, d=-4.40932475155777, tx=0, ty=0)" [Matrix.as:97]
+PASSED: m.a < 4.1020381 && m.a > 4.1020379 [Matrix.as:98]
+PASSED: m.b < -3.6514768 && m.b > -3.6514769 [Matrix.as:99]
+PASSED: m.c < -1.49969051 && m.c > -1.49969052 [Matrix.as:100]
+PASSED: m.d < -4.40932475 && m.d > -4.40932476 [Matrix.as:101]
+PASSED: m.tx == 0 [Matrix.as:102]
+PASSED: m.ty == 0 [Matrix.as:103]
+PASSED: fakematrix.a.toString() == 1 [Matrix.as:109]
+PASSED: fakematrix.b.toString() == 1 [Matrix.as:110]
+PASSED: fakematrix.c.toString() == 1 [Matrix.as:111]
+PASSED: fakematrix.d.toString() == 1 [Matrix.as:112]
+PASSED: fakematrix.tx.toString() == 5 [Matrix.as:113]
+PASSED: fakematrix.ty.toString() == 5 [Matrix.as:114]
+PASSED: m.toString() == "(a=-1406.99906373029, b=-1.23693717839177, c=514.393845024734, d=-1.49365801000499, tx=0, ty=0)" [Matrix.as:117]
+PASSED: m.toString() == "(a=-1406.99906373029, b=-1.23693717839177, c=514.393845024734, d=-1.49365801000499, tx=333, ty=-283747.22)" [Matrix.as:120]
+PASSED: fakematrix.tx.toString() == 205 [Matrix.as:126]
+PASSED: fakematrix.ty.toString() == 405 [Matrix.as:127]
+PASSED: m.a < -6.7518325360784e+107 && m.a > -6.7518325360786e+107 [Matrix.as:133]
+PASSED: m.c.toString() == "2.46844592063091e+107" [Matrix.as:134]
+PASSED: m.tx.toString() == "1.597982751e+107" [Matrix.as:135]
+PASSED: m.b.toString() == "-0.419012258900892" [Matrix.as:137]
+PASSED: m.d.toString() == "-0.505976396967328" [Matrix.as:138]
+PASSED: m.ty.toString() == "-96119.3225379726" [Matrix.as:139]
+PASSED: m.a.toString() == "-1.888016310255e+107" [Matrix.as:145]
+PASSED: m.b.toString() == "6.48248694618508e+107" [Matrix.as:146]
+PASSED: m.c.toString() == "6.9025203664787e+106" [Matrix.as:147]
+PASSED: m.d.toString() == "-2.36997413255563e+107" [Matrix.as:148]
+PASSED: m.tx < 4.46844242844097e+106 && m.tx > 4.46844242844095e+106 [Matrix.as:149]
+PASSED: m.ty.toString() == "-1.53423567131344e+107" [Matrix.as:150]
+PASSED: m1.toString() == "(a=8, b=undefined, c=undefined, d=undefined, tx=undefined, ty=undefined)" [Matrix.as:154]
+PASSED: m1.toString() == "(a=1, b=2, c=3, d=4, tx=5, ty=6)" [Matrix.as:157]
+PASSED: m1.toString() == "(a=32, b=-6.8, c=96, d=-13.6, tx=160, ty=-20.4)" [Matrix.as:160]
+PASSED: m2.a == -1 [Matrix.as:167]
+PASSED: m2.b < 0.00000000001 && m2.b > -0.000000000001 [Matrix.as:168]
+PASSED: m2.c < 0.00000000001 && m2.c > -0.000000000001 [Matrix.as:169]
+PASSED: m2.d == -1 [Matrix.as:170]
+PASSED: m2.tx == 0 [Matrix.as:171]
+PASSED: m2.ty == 0 [Matrix.as:172]
+PASSED: m2.b < 0.96355819 && m2.b > 0.96355818 [Matrix.as:178]
+PASSED: m2.c < -0.96355818 && m2.c > -0.96355819 [Matrix.as:179]
+PASSED: m2.d < 0.26749883 && m2.d > 0.26749881 [Matrix.as:180]
+PASSED: m2.tx == 0 [Matrix.as:181]
+PASSED: m2.ty == 0 [Matrix.as:182]
+PASSED: typeof(newP) == "object" [Matrix.as:191]
+PASSED: newP.toString() == "(x=31.2567984378314, y=26.6085052458191)" [Matrix.as:192]
+PASSED: typeof(newP2) == "object" [Matrix.as:196]
+PASSED: newP2 instanceof Point [Matrix.as:197]
+PASSED: newP.toString() == newP2.toString() [Matrix.as:198]
+PASSED: m3.toString() == "(a=6, b=0, c=0, d=8, tx=300, ty=400)" [Matrix.as:206]
+PASSED: fakematrix.a.toString() == "3" [Matrix.as:213]
+PASSED: fakematrix.b.toString() == "2" [Matrix.as:214]
+PASSED: fakematrix.c.toString() == "5" [Matrix.as:215]
+PASSED: fakematrix.d.toString() == "3" [Matrix.as:216]
+PASSED: fakematrix.tx.toString() == "5" [Matrix.as:217]
+PASSED: fakematrix.ty.toString() == "5" [Matrix.as:218]
+PASSED: fakematrix.toString() == "(a=3, b=2, c=5, d=3, tx=5, ty=5)" [Matrix.as:220]
+PASSED: m4.toString() == "(a=6, b=0, c=0, d=8, tx=300, ty=400)" [Matrix.as:224]
+PASSED: r.toString() == "(a=3, b=2, c=5, d=3, tx=5, ty=5)" [Matrix.as:231]
+PASSED: r instanceof Matrix [Matrix.as:232]
+PASSED: m3.toString() == "(a=0.166666666666667, b=0, c=0, d=0.125, tx=-50, ty=-50)" [Matrix.as:237]
+PASSED: m6.toString() == "(a=4, b=5, c=44, d=55, tx=2, ty=4)" [Matrix.as:241]
+PASSED: m6.toString() == "(a=1, b=0, c=0, d=1, tx=0, ty=0)" [Matrix.as:243]
+XPASSED: fakematrix.tx.toString() == "NaN" [Matrix.as:249]
+PASSED: fakematrix.a.toString() == -3 [Matrix.as:250]
+PASSED: m6.toString() == "(a=4, b=5, c=0, d=5, tx=2, ty=3)" [Matrix.as:254]
+PASSED: m6.toString() == "(a=0.25, b=-0.25, c=0, d=0.2, tx=-0.5, ty=-0.1)" [Matrix.as:256]
+PASSED: m6.toString() == "(a=0.0995392558215424, b=-0.339252025123644, c=0.0958851077208406, d=0.175516512378075, tx=-0.486733834805607, ty=0.151954513113064)" [Matrix.as:258]
+PASSED: m6.toString() == "(a=3.51033024756149, b=6.78504050247288, c=-1.91770215441681, d=1.99078511643085, tx=2, ty=3)" [Matrix.as:260]
+PASSED: p2.toString() == "(x=-99.4441089756828, y=348.180517617807)" [Matrix.as:266]
+PASSED: p3.toString() == "(x=-101.444108975683, y=345.180517617807)" [Matrix.as:268]
+PASSED: p2.toString() == "(x=-1014.78819244077, y=21.420285172384)" [Matrix.as:270]
+PASSED: f instanceof Point [Matrix.as:276]
+PASSED: f.toString() == "(x=-2937.26315146039, y=-1965.31552936439)" [Matrix.as:277]
+PASSED: f instanceof Point [Matrix.as:281]
+PASSED: f.toString() == "(x=-2932.26315146039, y=-1960.31552936439)" [Matrix.as:282]
+PASSED: m3.b.toString() == "1" [Matrix.as:289]
+PASSED: m3.c.toString() == "-1" [Matrix.as:290]
+PASSED: m3.tx.toString() == "-2" [Matrix.as:291]
+PASSED: m3.ty.toString() == "2" [Matrix.as:292]
+PASSED: m5 == undefined [Matrix.as:296]
+PASSED: m3.a.toString() == "1" [Matrix.as:297]
+PASSED: m3.b.toString() == "0" [Matrix.as:298]
+PASSED: m3.c.toString() == "0" [Matrix.as:299]
+PASSED: m3.d.toString() == "1" [Matrix.as:300]
+PASSED: m3.tx.toString() == "0" [Matrix.as:301]
+PASSED: m3.ty.toString() == "0" [Matrix.as:302]
+PASSED: t.a == undefined [Matrix.as:305]
+PASSED: t.a.toString() == "1" [Matrix.as:308]
+PASSED: t.b.toString() == "0" [Matrix.as:309]
+PASSED: t.c.toString() == "0" [Matrix.as:310]
+PASSED: t.d.toString() == "1" [Matrix.as:311]
+PASSED: t.tx.toString() == "0" [Matrix.as:312]
+PASSED: t.ty.toString() == "0" [Matrix.as:313]
+PASSED: m4.toString() == "(a=192, b=-40.8, c=768, d=-108.8, tx=48160, ty=-7500.4)" [Matrix.as:317]
+PASSED: m4.toString() == "(a=90.6729490609422, b=174.089219392218, c=310.274230957074, d=710.908813846049, tx=20109.8154004632, ty=44398.6139954762)" [Matrix.as:320]
+PASSED: fakematrix.tx.toString() == 44 [Matrix.as:326]
+PASSED: fakematrix.a.toString() == 8 [Matrix.as:327]
+PASSED: "" + m7 == "(a=A string, b=undefined, c=[object Object], d=true, tx=NaN, ty=(x=0, y=0))" [Matrix.as:330]
+PASSED: m7.toString() == "(a=NaN, b=NaN, c=NaN, d=NaN, tx=NaN, ty=NaN)" [Matrix.as:333]
+PASSED: m8.toString() == "(a=5, b=4, c=5, d=3, tx=2, ty=1)" [Matrix.as:336]
+PASSED: m8.toString() == "(a=-2.61457448345445, b=-2.27040748592378, c=3.02720998123171, d=-1.96093086259084, tx=2, ty=3)" [Matrix.as:338]
+PASSED: m8.toString() == "(a=8.2022824555003, b=-436.562099487155, c=44.2461587318062, d=80.9291868942697, tx=-47, ty=-2999398)" [Matrix.as:340]
+PASSED: m8.toString() == "(a=NaN, b=NaN, c=NaN, d=NaN, tx=a string, ty=0)" [Matrix.as:342]
+PASSED: m8.toString() == "(a=NaN, b=NaN, c=NaN, d=NaN, tx=0, ty=0)" [Matrix.as:344]
+XPASSED: fakematrix.a.toString() == undefined [Matrix.as:351]
+XPASSED: fakematrix.b.toString() == undefined [Matrix.as:352]
+XPASSED: fakematrix.c.toString() == undefined [Matrix.as:353]
+XPASSED: fakematrix.d.toString() == undefined [Matrix.as:354]
+PASSED: fakematrix.tx.toString() == "2" [Matrix.as:355]
+PASSED: fakematrix.ty.toString() == "3" [Matrix.as:356]
+PASSED: m8.a.toString() == "0.01220703125" [Matrix.as:362]
+PASSED: m8.d.toString() == "0.018310546875" [Matrix.as:363]
+PASSED: m8.tx.toString() == "20" [Matrix.as:364]
+PASSED: m8.ty.toString() == "40" [Matrix.as:365]
+PASSED: Math.abs(m8.b) < 0.0000000000001 [Matrix.as:366]
+PASSED: Math.abs(m8.c) < 0.0000000000001 [Matrix.as:367]
+PASSED: m8.toString() == "(a=0.0244140625, b=0, c=0, d=0.0299072265625, tx=string20, ty=NaN)" [Matrix.as:371]
+PASSED: m8.toString() == "(a=0.0030517578125, b=0, c=0, d=0.003662109375, tx=3.5, ty=4)" [Matrix.as:373]
+PASSED: m8.toString() == "(a=-0.0012699793595799, b=0.00332994663144171, c=-0.00277495552620142, d=-0.00152397523149588, tx=3.5, ty=4)" [Matrix.as:375]
+PASSED: fakematrix.a.toString() == undefined [Matrix.as:382]
+PASSED: fakematrix.b.toString() == undefined [Matrix.as:383]
+PASSED: fakematrix.c.toString() == undefined [Matrix.as:384]
+PASSED: fakematrix.d.toString() == undefined [Matrix.as:385]
+PASSED: fakematrix.tx.toString() == undefined [Matrix.as:386]
+PASSED: fakematrix.ty.toString() == undefined [Matrix.as:387]
+totals
diff --git a/test/gnash/actionscript.all/pending/Matrix.as b/test/gnash/actionscript.all/pending/Matrix.as
new file mode 100644
index 0000000..9cf52ea
--- /dev/null
+++ b/test/gnash/actionscript.all/pending/Matrix.as
@@ -0,0 +1,399 @@
+//
+// Copyright (C) 2008 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+//
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+// Test case for TextFormat ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+rcsid="$Id: Matrix.as,v 1.11 2008/06/19 11:49:17 bwy Exp $";
+
+
+// There are lots of floating point calculations here. Comparing them
+// as a string means they are checked to the 15th significant digit, which
+// isn't always unreasonable. I've handled the ones that failed for me with
+// an epsilon; others may fail for other people - so please edit as necessary
+// - but it's good to be as accurate as possible.
+//
+// A ming bug up to version 0.4 beta 5 makes very large numbers fail.
+#include "check.as"
+
+#if OUTPUT_VERSION < 8
+
+check_equals(typeof(flash), 'undefined');
+
+check_totals(1);
+
+#else
+
+Matrix = flash.geom.Matrix;
+check_equals(typeof(Matrix), 'function');
+check_equals(typeof(Matrix.prototype), 'object');
+check(Matrix.prototype.hasOwnProperty('identity'));
+check(Matrix.prototype.hasOwnProperty('rotate'));
+check(Matrix.prototype.hasOwnProperty('concat'));
+check(Matrix.prototype.hasOwnProperty('translate'));
+check(Matrix.prototype.hasOwnProperty('scale'));
+check(Matrix.prototype.hasOwnProperty('transformPoint'));
+check(Matrix.prototype.hasOwnProperty('deltaTransformPoint'));
+check(Matrix.prototype.hasOwnProperty('createBox'));
+check(Matrix.prototype.hasOwnProperty('clone'));
+check(Matrix.prototype.hasOwnProperty('createGradientBox'));
+check(Matrix.prototype.hasOwnProperty('invert'));
+check(Matrix.prototype.hasOwnProperty('toString'));
+check(!Matrix.prototype.hasOwnProperty('a'));
+check(!Matrix.prototype.hasOwnProperty('b'));
+check(!Matrix.prototype.hasOwnProperty('c'));
+check(!Matrix.prototype.hasOwnProperty('d'));
+check(!Matrix.prototype.hasOwnProperty('tx'));
+check(!Matrix.prototype.hasOwnProperty('ty'));
+
+//-------------------------------------------------------------
+// Test constructor
+//-------------------------------------------------------------
+
+m = new Matrix();
+check_equals(typeof(m), 'object');
+check(m instanceof Matrix);
+check(m.hasOwnProperty('a'));
+check(m.hasOwnProperty('b'));
+check(m.hasOwnProperty('c'));
+check(m.hasOwnProperty('d'));
+check(m.hasOwnProperty("tx"));
+check(m.hasOwnProperty("ty"));
+
+check_equals(m.a, 1);
+check_equals(m.b, 0);
+check_equals(m.c, 0);
+check_equals(m.d, 1);
+check_equals(m.tx, 0);
+check_equals(m.ty, 0);
+
+check_equals (m.toString(), "(a=1, b=0, c=0, d=1, tx=0, ty=0)");
+
+m.b = 5.4;
+check_equals(m.b, "5.4");
+
+m.c = 4.548759874;
+check_equals(m.c, "4.548759874");
+
+m.rotate(67);
+// PP: (a=4.10203808667724, b=-3.65147689783865, c=-1.49969051027619, d=-4.40932475155777, tx=0, ty=0)
+// Some of these may be accurate enough:
+check_equals(m.toString(), "(a=4.10203808667724, b=-3.65147689783865, c=-1.49969051027619, d=-4.40932475155777, tx=0, ty=0)");
+check (m.a < 4.1020381 && m.a > 4.1020379);
+check (m.b < -3.6514768 && m.b > -3.6514769);
+check (m.c < -1.49969051 && m.c > -1.49969052);
+check (m.d < -4.40932475 && m.d > -4.40932476);
+check (m.tx == 0);
+check (m.ty == 0);
+
+// A non-matrix with a matrix's rotate method (fails?).
+fakematrix = {a:1, b:1, c: 1, d: 1, tx:5, ty: 5};
+fakematrix.rotate = Matrix.prototype.rotate;
+fakematrix.rotate(2);
+check_equals(fakematrix.a.toString(), 1);
+check_equals(fakematrix.b.toString(), 1);
+check_equals(fakematrix.c.toString(), 1);
+check_equals(fakematrix.d.toString(), 1);
+check_equals(fakematrix.tx.toString(), 5);
+check_equals(fakematrix.ty.toString(), 5);
+
+m.scale(-343, 0.33874983);
+check_equals (m.toString(), "(a=-1406.99906373029, b=-1.23693717839177, c=514.393845024734, d=-1.49365801000499, tx=0, ty=0)");
+
+m.translate(333,-283747.22);
+check_equals (m.toString(), "(a=-1406.99906373029, b=-1.23693717839177, c=514.393845024734, d=-1.49365801000499, tx=333, ty=-283747.22)");
+
+// A non-matrix with a matrix's translate method (works).
+fakematrix = {a:1, b:1, c: 1, d: 1, tx:5, ty: 5};
+fakematrix.translate = Matrix.prototype.translate;
+fakematrix.translate(200,400);
+check_equals(fakematrix.tx.toString(), 205);
+check_equals(fakematrix.ty.toString(), 405);
+
+m.scale(4798747e+98, 0.33874983);
+// PP: (a=-6.75183253607854e+107, b=-0.419012258900892, c=2.46844592063091e+107, d=-0.505976396967328, tx=1.597982751e+107, ty=-96119.3225379726)
+// I get one discrepancy in 'a' here.
+#if MING_VERSION_CODE > 00040005
+check(m.a < -6.7518325360784e+107 && m.a > -6.7518325360786e+107)
+check_equals(m.c.toString(), "2.46844592063091e+107");
+check_equals(m.tx.toString(), "1.597982751e+107");
+#endif
+check_equals(m.b.toString(), "-0.419012258900892");
+check_equals(m.d.toString(), "-0.505976396967328");
+check_equals(m.ty.toString(), "-96119.3225379726");
+
+m.rotate(-1.2873874);
+// PP: (a=-1.88801631025