gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/DefineE...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/DefineE...
Date: Tue, 18 Dec 2007 10:46:29 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/12/18 10:46:28

Modified files:
        .              : ChangeLog 
        testsuite/misc-ming.all: DefineEditTextVariableNameTest2.c 

Log message:
                  Found out the "toString not invoked" was a bogus deduction.
                  Added checking of total tests run.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5202&r2=1.5203
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest2.c?cvsroot=gnash&r1=1.5&r2=1.6

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5202
retrieving revision 1.5203
diff -u -b -r1.5202 -r1.5203
--- ChangeLog   18 Dec 2007 07:49:56 -0000      1.5202
+++ ChangeLog   18 Dec 2007 10:46:28 -0000      1.5203
@@ -1,3 +1,9 @@
+2007-12-18 Sandro Santilli <address@hidden>
+
+       * testsuite/misc-ming.all/DefineEditTextVariableNameTest2.c:
+         Found out the "toString not invoked" was a bogus deduction.
+         Added checking of total tests run.
+
 2007-12-17 Sandro Santilli <address@hidden>
 
        * testsuite/actionscript.all/TextField.as: test maxChars having

Index: testsuite/misc-ming.all/DefineEditTextVariableNameTest2.c
===================================================================
RCS file: 
/sources/gnash/gnash/testsuite/misc-ming.all/DefineEditTextVariableNameTest2.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- testsuite/misc-ming.all/DefineEditTextVariableNameTest2.c   19 Sep 2007 
14:20:51 -0000      1.5
+++ testsuite/misc-ming.all/DefineEditTextVariableNameTest2.c   18 Dec 2007 
10:46:28 -0000      1.6
@@ -55,7 +55,6 @@
 add_text_field(SWFMovie mo, SWFBlock font, const char* varname, const char* 
text)
 {
   SWFTextField tf;
-  SWFDisplayItem it;
 
   tf = newSWFTextField();
 
@@ -202,17 +201,19 @@
 
   add_actions(mo, "Object.prototype.toString = function() {return 
'TO_STRING';}; ");
   check_equals(mo, "typeof(dtext4.text)", "'string'");
-  // Object.prototype.toString not invoked for dtext4.text!
+  // Object.prototype.toString not invoked for dtext4.text (associated 
variable didn't change it's value)
   check_equals(mo, "dtext4.text", "'[object Object]'");
+  add_actions(mo, "edit_text_var = new Object();");
+  check_equals(mo, "dtext4.text", "'TO_STRING'");
   check_equals(mo, "typeof(dtext4.text.toString)", "'function'");
-  check_equals(mo, "dtext4.text.toString()", "'[object Object]'");
-  check_equals(mo, "dtext4.text.valueOf()", "'[object Object]'");
+  check_equals(mo, "dtext4.text.toString()", "'TO_STRING'");
+  check_equals(mo, "dtext4.text.valueOf()", "'TO_STRING'");
   SWFMovie_nextFrame(mo);
   
   // Frame 12: dtext4.text still not updated
   // Deduction: dtext4.text won't update if edit_text_var is untouched.
   check_equals(mo, "edit_text_var.toString()", "'TO_STRING'");
-  check_equals(mo, "dtext4.text", "'[object Object]'");
+  check_equals(mo, "dtext4.text", "'TO_STRING'");
   SWFMovie_nextFrame(mo);
   
   // Frame 13: dtext4.text updated. 
@@ -223,7 +224,7 @@
   SWFMovie_nextFrame(mo);
   
   // Frame 14: end
-  add_actions(mo, "totals(); stop();");
+  add_actions(mo, "totals(36); stop();");
   SWFMovie_nextFrame(mo); 
  
   // Output movie




reply via email to

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