gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r11708: Also test that mutating the


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11708: Also test that mutating the synthetized object doesn't show the modification on next synthesis
Date: Thu, 17 Dec 2009 01:20:26 +0100
User-agent: Bazaar (2.0.2)

------------------------------------------------------------
revno: 11708
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Thu 2009-12-17 01:20:26 +0100
message:
  Also test that mutating the synthetized object doesn't show the modification 
on next synthesis
modified:
  testsuite/actionscript.all/String.as
=== modified file 'testsuite/actionscript.all/String.as'
--- a/testsuite/actionscript.all/String.as      2009-12-17 00:01:11 +0000
+++ b/testsuite/actionscript.all/String.as      2009-12-17 00:20:26 +0000
@@ -1318,10 +1318,15 @@
 saved2={}; a.saveMe(saved2);
 check_equals(saved1.value, 'string');
 check_equals(saved2.value, 'another string');
+// Test that the syntethized object return is always a new one!
+saved2.value.prop = 6;
+saved3 = {}; a.saveMe(saved3); 
+check(saved2.value.prop != saved3.value.prop);
+check(saved2.value !== saved3.value);
 
 //----- END OF TESTS
 
-var baseTests = 325;
+var baseTests = 327;
 var asmTests = 23;
 var ge6Tests = 16;
 


reply via email to

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