gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Rob Savoye
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1614-g1008f58
Date: Tue, 26 Feb 2013 21:17:57 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  1008f58b4864139b2bc8193490ddaddb02382630 (commit)
       via  91464eb1c160915d3e32754f018b8aaeaa2a7f8a (commit)
       via  3013cb00463a8222bc2a57e82601fb43a3f2bf53 (commit)
      from  489b9b7dc9c4feaf31f373033fb8501957ea1d91 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=1008f58b4864139b2bc8193490ddaddb02382630


commit 1008f58b4864139b2bc8193490ddaddb02382630
Author: Rob Savoye <address@hidden>
Date:   Tue Feb 26 14:17:38 2013 -0700

    change type check for properties to TNull, now that these properties are 
implemented we get a different TypeOf() value.

diff --git a/testsuite/misc-haxe.all/classes.all/net/NetStream_as.hx 
b/testsuite/misc-haxe.all/classes.all/net/NetStream_as.hx
index 4f186a0..a973d7b 100644
--- a/testsuite/misc-haxe.all/classes.all/net/NetStream_as.hx
+++ b/testsuite/misc-haxe.all/classes.all/net/NetStream_as.hx
@@ -49,20 +49,20 @@ class NetStream_as {
 #if !flash6
 #if !flash9
         var nc:NetConnection = new NetConnection();
-               nc.connect(null);
+       nc.connect(null);
         var x1:NetStream = new NetStream(nc);
-               var my_video:Video = untyped Video.attachVideo(x1);
-               x1.play("test");
+       var my_video:Video = untyped Video.attachVideo(x1);
+       x1.play("test");
 #else
-               var nc:NetConnection = new NetConnection();
-               nc.connect(null);
-               var x1:NetStream = new NetStream(nc);
-               x1.addEventListener(NetStatusEvent.NET_STATUS, function(e){ 
trace(e);});
+       var nc:NetConnection = new NetConnection();
+       nc.connect(null);
+       var x1:NetStream = new NetStream(nc);
+       x1.addEventListener(NetStatusEvent.NET_STATUS, function(e){ trace(e);});
         x1.addEventListener(AsyncErrorEvent.ASYNC_ERROR, 
function(e){trace(e);});
-
-               var my_video:Video = new Video();
-               my_video.attachNetStream(x1);
-               x1.play("/home/sharad/Desktop/cubes.swf");
+       
+       var my_video:Video = new Video();
+       my_video.attachNetStream(x1);
+       x1.play("/home/sharad/Desktop/cubes.swf");
 #end
         // Make sure we actually get a valid class        
         if (Std.is(x1, NetStream)) {
@@ -70,200 +70,200 @@ class NetStream_as {
         } else {
             DejaGnu.fail("NetStream class doesn't exist");
         }
-               // Tests to see if all the properties exist. All these do is 
test for
-               // existance of a property, and don't test the functionality at 
all. This
-               // is primarily useful only to test completeness of the API 
implementation.
-               //FIXME: This read-only property must be initialized before it 
can be tested
-               if (Type.typeof(x1.bufferLength) == ValueType.TInt) {
-                       DejaGnu.pass("NetStream.bufferLength property exists");
-               } else {
-                       DejaGnu.fail("NetStream.bufferLength property doesn't 
exist");
-               }
-               if (Type.typeof(x1.bufferTime) == ValueType.TFloat) {
-                       DejaGnu.pass("NetStream.bufferTime property exists");
-               } else {
-                       DejaGnu.fail("NetStream.bufferTime property doesn't 
exist");
-               }
-               if (Type.typeof(x1.bytesLoaded) == ValueType.TInt) {
-                       DejaGnu.pass("NetStream.bytesLoaded property exists");
-               } else {
-                       DejaGnu.fail("NetStream.bytesLoaded property doesn't 
exist");
-               }
-       #if flash9
-               if (Type.typeof(x1.bytesTotal) == ValueType.TFloat) {
-                       DejaGnu.pass("NetStream.bytesTotal property exists");
-               } else {
-                       DejaGnu.fail("NetStream.bytesTotal property doesn't 
exist");
-               }
-       #end
-               if (Type.typeof(x1.time) == ValueType.TInt) {
-                       DejaGnu.pass("NetStream.time property exists");
-               } else {
-                       DejaGnu.fail("NetStream.time property doesn't exist");
-               }
+       // Tests to see if all the properties exist. All these do is test for
+       // existance of a property, and don't test the functionality at all. 
This
+       // is primarily useful only to test completeness of the API 
implementation.
+       //FIXME: This read-only property must be initialized before it can be 
tested
+       if (Type.typeof(x1.bufferLength) == ValueType.TNull) {
+           DejaGnu.pass("NetStream.bufferLength property exists");
+       } else {
+           DejaGnu.fail("NetStream.bufferLength property doesn't exist");
+       }
+       if (Type.typeof(x1.bufferTime) == ValueType.TNull) {
+           DejaGnu.pass("NetStream.bufferTime property exists");
+       } else {
+           DejaGnu.fail("NetStream.bufferTime property doesn't exist");
+       }
+       if (Type.typeof(x1.bytesLoaded) == ValueType.TNull) {
+           DejaGnu.pass("NetStream.bytesLoaded property exists");
+       } else {
+           DejaGnu.fail("NetStream.bytesLoaded property doesn't exist");
+       }
+#if flash9
+       if (Type.typeof(x1.bytesTotal) == ValueType.TNull) {
+           DejaGnu.pass("NetStream.bytesTotal property exists");
+       } else {
+           DejaGnu.fail("NetStream.bytesTotal property doesn't exist");
+       }
+#end
+       if (Type.typeof(x1.time) == ValueType.TNull) {
+           DejaGnu.pass("NetStream.time property exists");
+       } else {
+           DejaGnu.fail("NetStream.time property doesn't exist");
+       }
 #if !flash9
-               if (Type.typeof(x1.bytesTotal) == ValueType.TInt) {
-                       DejaGnu.pass("NetStream.bytesTotal property exists");
-               } else {
-                       DejaGnu.fail("NetStream.bytesTotal property doesn't 
exist");
-               }
-               if (Type.typeof(x1.currentFps) == ValueType.TInt) {
-                       DejaGnu.pass("NetStream.currentFps property exists");
-               } else {
-                       DejaGnu.fail("NetStream.currentFps property doesn't 
exist");
-               }
+       if (Type.typeof(x1.bytesTotal) == ValueType.TNull) {
+           DejaGnu.pass("NetStream.bytesTotal property exists");
+       } else {
+           DejaGnu.fail("NetStream.bytesTotal property doesn't exist");
+       }
+       if (Type.typeof(x1.currentFps) == ValueType.TNull) {
+           DejaGnu.pass("NetStream.currentFps property exists");
+       } else {
+           DejaGnu.fail("NetStream.currentFps property doesn't exist");
+       }
 #end
-               // Not implemented for gnash
-               if (Type.typeof(x1.liveDelay) == ValueType.TInt) {
-                       DejaGnu.pass("NetStream.liveDelay property exists");
-               } else {
-                       DejaGnu.xfail("NetStream.liveDelay property doesn't 
exist");
-               }
+       // Not implemented for gnash
+       if (Type.typeof(x1.liveDelay) == ValueType.TNull) {
+           DejaGnu.pass("NetStream.liveDelay property exists");
+       } else {
+           DejaGnu.fail("NetStream.liveDelay property doesn't exist");
+       }
 #if flash9
-               if (Type.typeof(x1.currentFPS) == ValueType.TInt) {
-                       DejaGnu.pass("NetStream.currentFPS property exists");
-               } else {
-                       DejaGnu.fail("NetStream.currentFPS property doesn't 
exist");
-               }
-               //FIXME: This property only exists in haXe
-               if (Type.typeof(x1.audioCodec) == ValueType.TInt) {
-                       DejaGnu.pass("NetStream.audioCodec property exists");
-               } else {
-                       DejaGnu.fail("NetStream.audioCodec property doesn't 
exist");
-               }
-               if (Type.typeof(x1.checkPolicyFile) == ValueType.TBool) {
-                       DejaGnu.pass("NetStream.checkPolicyFile property 
exists");
-               } else {
-                       DejaGnu.fail("NetStream.checkPolicyFile property 
doesn't exist");
-               }
-               if (Std.is(x1.client, Dynamic)) {
-                       DejaGnu.pass("NetStream.client property exists");
-               } else {
-                       DejaGnu.fail("NetStream.client property doesn't exist");
-               }
-               //FIXME: This property only exists in haXe
-               if (Type.typeof(x1.decodedFrames) == ValueType.TInt) {
-                       DejaGnu.pass("NetStream.decodedFrames property exists");
-               } else {
-                       DejaGnu.fail("NetStream.decodedFrames property doesn't 
exist");
-               }
-               if (Type.typeof(x1.objectEncoding) == ValueType.TInt) {
-                       DejaGnu.pass("NetStream.objectEncoding property 
exists");
-               } else {
-                       DejaGnu.fail("NetStream.objectEncoding property doesn't 
exist");
-               }
-               if (Std.is(x1.soundTransform, SoundTransform)) {
-                       DejaGnu.pass("NetStream.soundTransform property 
exists");
-               } else {
-                       DejaGnu.fail("NetStream.soundTransform property doesn't 
exist");
-               }
-               //FIXME: This property only exists in haXe
-               if (Type.typeof(x1.videoCodec) == ValueType.TInt) {
-                       DejaGnu.pass("NetStream.videoCodec property exists");
-               } else {
-                       DejaGnu.fail("NetStream.videoCodec property doesn't 
exist");
-               }
+       if (Type.typeof(x1.currentFPS) == ValueType.TInt) {
+           DejaGnu.pass("NetStream.currentFPS property exists");
+       } else {
+           DejaGnu.fail("NetStream.currentFPS property doesn't exist");
+       }
+       //FIXME: This property only exists in haXe
+       if (Type.typeof(x1.audioCodec) == ValueType.TInt) {
+           DejaGnu.pass("NetStream.audioCodec property exists");
+       } else {
+           DejaGnu.fail("NetStream.audioCodec property doesn't exist");
+       }
+       if (Type.typeof(x1.checkPolicyFile) == ValueType.TBool) {
+           DejaGnu.pass("NetStream.checkPolicyFile property exists");
+       } else {
+           DejaGnu.fail("NetStream.checkPolicyFile property doesn't exist");
+       }
+       if (Std.is(x1.client, Dynamic)) {
+           DejaGnu.pass("NetStream.client property exists");
+       } else {
+           DejaGnu.fail("NetStream.client property doesn't exist");
+       }
+       //FIXME: This property only exists in haXe
+       if (Type.typeof(x1.decodedFrames) == ValueType.TInt) {
+           DejaGnu.pass("NetStream.decodedFrames property exists");
+       } else {
+           DejaGnu.fail("NetStream.decodedFrames property doesn't exist");
+       }
+       if (Type.typeof(x1.objectEncoding) == ValueType.TInt) {
+           DejaGnu.pass("NetStream.objectEncoding property exists");
+       } else {
+           DejaGnu.fail("NetStream.objectEncoding property doesn't exist");
+       }
+       if (Std.is(x1.soundTransform, SoundTransform)) {
+           DejaGnu.pass("NetStream.soundTransform property exists");
+       } else {
+           DejaGnu.fail("NetStream.soundTransform property doesn't exist");
+       }
+       //FIXME: This property only exists in haXe
+       if (Type.typeof(x1.videoCodec) == ValueType.TInt) {
+           DejaGnu.pass("NetStream.videoCodec property exists");
+       } else {
+           DejaGnu.fail("NetStream.videoCodec property doesn't exist");
+       }
 #end
-
-               // Tests to see if all the methods exist. All these do is test 
for
-               // existance of a method, and don't test the functionality at 
all. This
-               // is primarily useful only to test completeness of the API 
implementation.
-               //FIXME: This function exists for AS2 in haXe, but not in Adobe 
spec
-               if (Type.typeof(x1.attachAudio) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::attachAudio() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::attachAudio() method doesn't 
exist");
-               }
-               if (Type.typeof(x1.close) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::close() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::close() method doesn't exist");
-               }
-               if (Type.typeof(x1.pause) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::pause() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::pause() method doesn't exist");
-               }
-               if (Type.typeof(x1.play) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::play() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::play() method doesn't exist");
-               }
-               //FIXME: This function exists for AS2 in haXe, but not in Adobe 
spec
-               if (Type.typeof(x1.publish) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::publish() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::publish() method doesn't 
exist");
-               }
-               //FIXME: This function exists for AS2 in haXe, but not in Adobe 
spec
-               if (Type.typeof(x1.receiveAudio) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::receiveAudio() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::receiveAudio() method doesn't 
exist");
-               }
-               //FIXME: This function exists for AS2 in haXe, but not in Adobe 
spec
-               if (Type.typeof(x1.receiveVideo) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::receiveVideo() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::receiveVideo() method doesn't 
exist");
-               }
-               if (Type.typeof(x1.seek) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::seek() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::seek() method doesn't exist");
-               }
-               //FIXME: This function exists for AS2 in haXe, but not in Adobe 
spec
-               if (Type.typeof(x1.send) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::send() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::send() method doesn't exist");
-               }
-               if (Type.typeof(x1.close) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::close() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::close() method doesn't exist");
-               }
+       
+       // Tests to see if all the methods exist. All these do is test for
+       // existance of a method, and don't test the functionality at all. This
+       // is primarily useful only to test completeness of the API 
implementation.
+       //FIXME: This function exists for AS2 in haXe, but not in Adobe spec
+       if (Type.typeof(x1.attachAudio) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::attachAudio() method exists");
+       } else {
+           DejaGnu.fail("NetStream::attachAudio() method doesn't exist");
+       }
+       if (Type.typeof(x1.close) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::close() method exists");
+       } else {
+           DejaGnu.fail("NetStream::close() method doesn't exist");
+       }
+       if (Type.typeof(x1.pause) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::pause() method exists");
+       } else {
+           DejaGnu.fail("NetStream::pause() method doesn't exist");
+       }
+       if (Type.typeof(x1.play) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::play() method exists");
+       } else {
+           DejaGnu.fail("NetStream::play() method doesn't exist");
+       }
+       //FIXME: This function exists for AS2 in haXe, but not in Adobe spec
+       if (Type.typeof(x1.publish) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::publish() method exists");
+       } else {
+           DejaGnu.fail("NetStream::publish() method doesn't exist");
+       }
+       //FIXME: This function exists for AS2 in haXe, but not in Adobe spec
+       if (Type.typeof(x1.receiveAudio) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::receiveAudio() method exists");
+       } else {
+           DejaGnu.fail("NetStream::receiveAudio() method doesn't exist");
+       }
+       //FIXME: This function exists for AS2 in haXe, but not in Adobe spec
+       if (Type.typeof(x1.receiveVideo) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::receiveVideo() method exists");
+       } else {
+           DejaGnu.fail("NetStream::receiveVideo() method doesn't exist");
+       }
+       if (Type.typeof(x1.seek) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::seek() method exists");
+       } else {
+           DejaGnu.fail("NetStream::seek() method doesn't exist");
+       }
+       //FIXME: This function exists for AS2 in haXe, but not in Adobe spec
+       if (Type.typeof(x1.send) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::send() method exists");
+       } else {
+           DejaGnu.fail("NetStream::send() method doesn't exist");
+       }
+       if (Type.typeof(x1.close) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::close() method exists");
+       } else {
+           DejaGnu.fail("NetStream::close() method doesn't exist");
+       }
 #if !flash9
-               if (Type.typeof(x1.setBufferTime) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::setBufferTime() method 
exists");
-               } else {
-                       DejaGnu.fail("NetStream::setBufferTime() method doesn't 
exist");
-               }
+       if (Type.typeof(x1.setBufferTime) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::setBufferTime() method exists");
+       } else {
+           DejaGnu.fail("NetStream::setBufferTime() method doesn't exist");
+       }
 #end
 #if flash9
-               if (Type.typeof(x1.attachCamera) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::attachCamera() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::attachCamera() method doesn't 
exist");
-               }
-               //FIXME: Property receiveVideoFPS not found on 
flash.net.NetStream and there is no default value
-               //      if (Type.typeof(x1.receiveVideoFPS) == 
ValueType.TFunction) {
-               //          DejaGnu.pass("NetStream::receiveVideoFPS() method 
exists");
-               //      } else {
-               //          DejaGnu.fail("NetStream::receiveVideoFPS() method 
doesn't exist");
-               //      }
-               // AIR only
-               //      if (x1.resetDRMVouchers == null) {
-               //          DejaGnu.pass("NetStream::resetDRMVouchers() method 
exists");
-               //      } else {
-               //          DejaGnu.fail("NetStream::resetDRMVouchers() method 
doesn't exist");
-               //      }
-               if (Type.typeof(x1.resume) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::resume() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::resume() method doesn't 
exist");
-               }
-               // AIR only
-               //      if (x1.setDRMAuthenticationCredentials == null) {
-               //          
DejaGnu.pass("NetStream::setDRMAuthenticationCredentials() method exists");
-               //      } else {
-               //          
DejaGnu.fail("NetStream::setDRMAuthenticationCredentials() method doesn't 
exist");
-               //      }
-               if (Type.typeof(x1.togglePause) == ValueType.TFunction) {
-                       DejaGnu.pass("NetStream::togglePause() method exists");
-               } else {
-                       DejaGnu.fail("NetStream::togglePause() method doesn't 
exist");
-               }
+       if (Type.typeof(x1.attachCamera) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::attachCamera() method exists");
+       } else {
+           DejaGnu.fail("NetStream::attachCamera() method doesn't exist");
+       }
+       //FIXME: Property receiveVideoFPS not found on flash.net.NetStream and 
there is no default value
+       //      if (Type.typeof(x1.receiveVideoFPS) == ValueType.TFunction) {
+       //          DejaGnu.pass("NetStream::receiveVideoFPS() method exists");
+       //      } else {
+       //          DejaGnu.fail("NetStream::receiveVideoFPS() method doesn't 
exist");
+       //      }
+       // AIR only
+       //      if (x1.resetDRMVouchers == null) {
+       //          DejaGnu.pass("NetStream::resetDRMVouchers() method exists");
+       //      } else {
+       //          DejaGnu.fail("NetStream::resetDRMVouchers() method doesn't 
exist");
+       //      }
+       if (Type.typeof(x1.resume) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::resume() method exists");
+       } else {
+           DejaGnu.fail("NetStream::resume() method doesn't exist");
+       }
+       // AIR only
+       //      if (x1.setDRMAuthenticationCredentials == null) {
+       //          DejaGnu.pass("NetStream::setDRMAuthenticationCredentials() 
method exists");
+       //      } else {
+       //          DejaGnu.fail("NetStream::setDRMAuthenticationCredentials() 
method doesn't exist");
+       //      }
+       if (Type.typeof(x1.togglePause) == ValueType.TFunction) {
+           DejaGnu.pass("NetStream::togglePause() method exists");
+       } else {
+           DejaGnu.fail("NetStream::togglePause() method doesn't exist");
+       }
 #end
 
         // Call this after finishing all tests. It prints out the totals.
@@ -277,6 +277,6 @@ class NetStream_as {
 
 // local Variables:
 // mode: C++
-// indent-tabs-mode: t
+// indent-tabs-mode: nil
 // End:
 

http://git.savannah.gnu.org/cgit//commit/?id=91464eb1c160915d3e32754f018b8aaeaa2a7f8a


commit 91464eb1c160915d3e32754f018b8aaeaa2a7f8a
Author: Rob Savoye <address@hidden>
Date:   Tue Feb 26 14:16:54 2013 -0700

    change xfails to fails now that more properties are implemented.

diff --git a/testsuite/actionscript.all/NetStream.as 
b/testsuite/actionscript.all/NetStream.as
index 866a390..78c73f1 100644
--- a/testsuite/actionscript.all/NetStream.as
+++ b/testsuite/actionscript.all/NetStream.as
@@ -1,5 +1,6 @@
 // 
-//   Copyright (C) 2005, 2006, 2007, 2009, 2010 Free Software
+//   Copyright (C) 2005, 2006, 2007, 2009, 2010, 2011, 2012
+//      2013 Free Software
 //   Foundation, Inc
 //
 // This program is free software; you can redistribute it and/or modify
@@ -51,26 +52,26 @@ check_equals ( typeof(netstreamObj), 'object' );
  * when the NetStream connection is established.             *
  *                                                           */
 
-xcheck(! NetStream.prototype.hasOwnProperty('currentFps'));
+check(! NetStream.prototype.hasOwnProperty('currentFps'));
 check(! netstreamObj.hasOwnProperty('currentFps'));
 
-xcheck(! NetStream.prototype.hasOwnProperty('bufferLength'));
+check(! NetStream.prototype.hasOwnProperty('bufferLength'));
 check(! netstreamObj.hasOwnProperty('bufferLength'));
 
-xcheck(! NetStream.prototype.hasOwnProperty('bufferTime'));
+check(! NetStream.prototype.hasOwnProperty('bufferTime'));
 check(! netstreamObj.hasOwnProperty('bufferTime'));
 
-xcheck(! NetStream.prototype.hasOwnProperty('liveDelay'));
+check(! NetStream.prototype.hasOwnProperty('liveDelay'));
 check(! netstreamObj.hasOwnProperty('liveDelay'));
 
-xcheck(! NetStream.prototype.hasOwnProperty('time'));
+check(! NetStream.prototype.hasOwnProperty('time'));
 check(! netstreamObj.hasOwnProperty('time'));
 
 /* Added in SWF7 (still apply to SWF6) */
-xcheck(! NetStream.prototype.hasOwnProperty('bytesLoaded'));
+check(! NetStream.prototype.hasOwnProperty('bytesLoaded'));
 check(! netstreamObj.hasOwnProperty('bytesLoaded'));
 
-xcheck(! NetStream.prototype.hasOwnProperty('bytesTotal'));
+check(! NetStream.prototype.hasOwnProperty('bytesTotal'));
 check(! netstreamObj.hasOwnProperty('bytesTotal'));
 
 
@@ -153,41 +154,41 @@ check_equals(typeof(netstreamObj.onMetaData), 'string');
 // currentFps (read-only)
 check_equals ( typeof(netstreamObj.currentFps), 'undefined' );
 netstreamObj.currentFps = 'string';
-xcheck_equals ( typeof(netstreamObj.currentFps), 'string' );
+check_equals ( typeof(netstreamObj.currentFps), 'string' );
 netstreamObj.currentFps = false;
-xcheck_equals ( typeof(netstreamObj.currentFps), 'boolean' );
+check_equals ( typeof(netstreamObj.currentFps), 'boolean' );
 
 // bufferLength (read-only)
-xcheck_equals ( typeof(netstreamObj.bufferLength), 'undefined' );
+check_equals ( typeof(netstreamObj.bufferLength), 'undefined' );
 netstreamObj.bufferLength = 'string';
-xcheck_equals ( typeof(netstreamObj.bufferLength), 'string' );
+check_equals ( typeof(netstreamObj.bufferLength), 'string' );
 netstreamObj.bufferLength = false;
-xcheck_equals ( typeof(netstreamObj.bufferLength), 'boolean' );
+check_equals ( typeof(netstreamObj.bufferLength), 'boolean' );
 
 // bufferTime
-xcheck_equals ( typeof(netstreamObj.bufferTime), 'undefined' );
+check_equals ( typeof(netstreamObj.bufferTime), 'undefined' );
 netstreamObj.setBufferTime(10);
-xcheck_equals(netstreamObj.bufferTime, NULL);
+check_equals(netstreamObj.bufferTime, NULL);
 netstreamObj.bufferTime = 20;
-xcheck_equals(netstreamObj.bufferTime, 20);
+check_equals(netstreamObj.bufferTime, 20);
 netstreamObj.setBufferTime = 30;
-xcheck_equals(netstreamObj.bufferTime, 20);
+check_equals(netstreamObj.bufferTime, 20);
 netstreamObj.setBufferTime(false);
-xcheck_equals(netstreamObj.bufferTime, 20);
+check_equals(netstreamObj.bufferTime, 20);
 netstreamObj.setBufferTime('string');
-xcheck_equals(netstreamObj.bufferTime, 20);
+check_equals(netstreamObj.bufferTime, 20);
 xnetstreamObj.setBufferTime('5');
-xcheck_equals(netstreamObj.bufferTime, 20);
+check_equals(netstreamObj.bufferTime, 20);
 
 // liveDelay (read-only)
 check_equals ( typeof(netstreamObj.liveDelay), 'undefined' );
 netstreamObj.liveDelay = 'string';
-xcheck_equals ( typeof(netstreamObj.liveDelay), 'string' );
+check_equals ( typeof(netstreamObj.liveDelay), 'string' );
 
 // time (read-only)
-xcheck_equals ( typeof(netstreamObj.time), 'undefined' );
+check_equals ( typeof(netstreamObj.time), 'undefined' );
 netstreamObj.time = 'string';
-xcheck_equals ( typeof(netstreamObj.time), 'string' );
+check_equals ( typeof(netstreamObj.time), 'string' );
 
 
 /* Two properties added in SWF7 */

http://git.savannah.gnu.org/cgit//commit/?id=3013cb00463a8222bc2a57e82601fb43a3f2bf53


commit 3013cb00463a8222bc2a57e82601fb43a3f2bf53
Author: George Thomas <address@hidden>
Date:   Tue Feb 26 14:16:23 2013 -0700

    Added the handler for prototype in NetStream class, removed class specific 
initialisation of properties.

diff --git a/libcore/asobj/NetStream_as.cpp b/libcore/asobj/NetStream_as.cpp
index 1ecbca9..7b23641 100644
--- a/libcore/asobj/NetStream_as.cpp
+++ b/libcore/asobj/NetStream_as.cpp
@@ -76,8 +76,16 @@ namespace {
     as_value netstream_receiveAudio(const fn_call& fn);
     as_value netstream_receiveVideo(const fn_call& fn);
     as_value netstream_send(const fn_call& fn);
+    as_value netstream_time(const fn_call& fn);
+    as_value netstream_bytesloaded(const fn_call& fn);
+    as_value netstream_bytestotal(const fn_call& fn);
+    as_value netstream_currentFPS(const fn_call& fn);
+    as_value netstream_bufferLength(const fn_call& fn);
+    as_value netstream_bufferTime(const fn_call& fn);
+    as_value netstream_liveDelay(const fn_call& fn);
 
     void attachNetStreamInterface(as_object& o);
+    void attachPrototypeProperties(as_object& proto);
 
     // TODO: see where this can be done more centrally.
     void executeTag(const SimpleBuffer& _buffer, as_object& thisPtr);
@@ -122,7 +130,7 @@ netstream_class_init(as_object& where, const ObjectURI& uri)
     // NetStream is genuinely a built-in class, but its constructor calls
     // several native functions. It also calls NetConnection.call.
     registerBuiltinClass(where, netstream_new, attachNetStreamInterface,
-            0, uri);
+            attachPrototypeProperties, uri);
 }
 
 void
@@ -1852,8 +1860,14 @@ attachNetStreamInterface(as_object& o)
     o.init_member("receiveVideo", gl.createFunction(netstream_receiveVideo));
     o.init_member("send", vm.getNative(2101, 3));
 
-    // Properties
-    // TODO: attach to each instance rather then to the class ? check it ..
+}
+
+// Function to attach the properties of prototype
+// Attaching to all instances rather than to a class
+// 
+void
+attachPrototypeProperties(as_object& o)
+{
 
     o.init_readonly_property("time", &netstream_time);
     o.init_readonly_property("bytesLoaded", &netstream_bytesloaded);

-----------------------------------------------------------------------

Summary of changes:
 libcore/asobj/NetStream_as.cpp                     |   20 +-
 testsuite/actionscript.all/NetStream.as            |   47 ++--
 .../misc-haxe.all/classes.all/net/NetStream_as.hx  |  398 ++++++++++----------
 3 files changed, 240 insertions(+), 225 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

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