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: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1641-g9c59dacd
Date: Fri, 05 Jul 2013 12:26:12 +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  9c59dacd00aac021711f4f2d926ef36a91f8ffe7 (commit)
      from  f641ed19f3aeff439463534e738bf5b41a6dea7c (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=9c59dacd00aac021711f4f2d926ef36a91f8ffe7


commit 9c59dacd00aac021711f4f2d926ef36a91f8ffe7
Author: Sandro Santilli <address@hidden>
Date:   Fri Jul 5 14:24:46 2013 +0200

    Test that NetStream prototype should _not_ be initialized once
    
    Thanks Benjamin for commit reviews ! :)

diff --git a/testsuite/actionscript.all/NetStream.as 
b/testsuite/actionscript.all/NetStream.as
index f287d0e..b6171e4 100644
--- a/testsuite/actionscript.all/NetStream.as
+++ b/testsuite/actionscript.all/NetStream.as
@@ -208,10 +208,30 @@ check_equals ( typeof(netstreamObj.bytesLoaded), 
'undefined' );
 // bytesLoaded (read-only)
 check_equals ( typeof(netstreamObj.bytesTotal), 'undefined' );
 
+// See when NetStream object is populated
+check(! NetStream.prototype.hasOwnProperty('currentFps'));
+nc = { isConnected: true };
+netstreamObj = new NetStream(nc);
+check(! NetStream.prototype.hasOwnProperty('currentFps'));
+nc = new NetConnection();
+check(! NetStream.prototype.hasOwnProperty('currentFps'));
+netstreamObj = new NetStream(nc);
+check(! NetStream.prototype.hasOwnProperty('currentFps'));
+nc.connect(null);
+check(! NetStream.prototype.hasOwnProperty('currentFps'));
+netstreamObj = new NetStream(nc); // Here's when !
+check(NetStream.prototype.hasOwnProperty('currentFps')); 
+var NetStreamProtoBackup = NetStream.prototype;
+NetStream.prototype = {};
+netstreamObj = new NetStream(); 
+check(!NetStream.prototype.hasOwnProperty('currentFps')); 
+netstreamObj = new NetStream(nc); // And prototype is populated again!
+check(NetStream.prototype.hasOwnProperty('currentFps')); 
+
 #endif // OUTPUT_VERSION >= 6
 
 #if OUTPUT_VERSION < 6
 check_totals(0);
 #else
-check_totals(66);
+check_totals(74);
 #endif

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

Summary of changes:
 testsuite/actionscript.all/NetStream.as |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

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