gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/chec...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/chec...
Date: Thu, 16 Nov 2006 14:22:32 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/11/16 14:22:32

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: check.as 
        testsuite/misc-ming.all: ming_utils.c 

Log message:
                * testsuite/misc-ming.all/ming_utils.c                          
                  (add_xtrace_function):
                  don't duplicate visual traces to trace channel;
                  (get_dejagnu_actions) :
                  export (x)pass()/(x)fail()/report() on the _root, don't
                  visually print expected successes.
                * testsuite/actionscript.all/check.as:
                  when USE_DEJAGNU_MODULE is defined, really use the
                  module's *dejagnu*-like interface (includes printing summary).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1631&r2=1.1632
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/check.as?cvsroot=gnash&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/ming_utils.c?cvsroot=gnash&r1=1.13&r2=1.14

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1631
retrieving revision 1.1632
diff -u -b -r1.1631 -r1.1632
--- ChangeLog   16 Nov 2006 14:00:20 -0000      1.1631
+++ ChangeLog   16 Nov 2006 14:22:32 -0000      1.1632
@@ -1,5 +1,17 @@
 2006-11-16 Sandro Santilli <address@hidden>
 
+       * testsuite/misc-ming.all/ming_utils.c
+         (add_xtrace_function):
+         don't duplicate visual traces to trace channel;
+         (get_dejagnu_actions) :
+         export (x)pass()/(x)fail()/report() on the _root, don't
+         visually print expected successes.
+       * testsuite/actionscript.all/check.as:
+         when USE_DEJAGNU_MODULE is defined, really use the
+         module's *dejagnu*-like interface (includes printing summary).
+
+2006-11-16 Sandro Santilli <address@hidden>
+
        * testsuite/actionscript.all/: dejagnu_so_init.as, check.as:
          check for initialized Dejagnu module moved from init.as to
          check.as (we know it will NOT be initialized in first frame)

Index: testsuite/actionscript.all/check.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/check.as,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- testsuite/actionscript.all/check.as 16 Nov 2006 14:00:20 -0000      1.12
+++ testsuite/actionscript.all/check.as 16 Nov 2006 14:22:32 -0000      1.13
@@ -60,10 +60,29 @@
                + "    where expected.\n"
                + "In any case, we will fallback to trace mode\n\n" );
 }
+else
+{
+       info = function(msg) {
+               xtrace(msg);
+               trace(msg);
+       };
+       pass_check = function (msg) {
+               pass(msg);
+       };
+       xpass_check = function (msg) {
+               xpass(msg);
+       };
+       fail_check = function (msg) {
+               fail(msg);
+       };
+       xfail_check = function (msg) {
+               xfail(msg);
+       };
+}
 
-# define trace(x) if ( xtrace ) xtrace(x); else trace(x)
+# define trace(x) info(msg)
 
-#endif
+#else // ndef USE_DEJAGNU_MODULE
 
 // Define USE_RTRACE to use "report" trace
 #ifdef USE_RTRACE
@@ -82,6 +101,11 @@
 #define fail_check(text) trace("FAILED: "+text)
 #define xfail_check(text) trace("XFAILED: "+text)
 
+#define info(x) trace(x)
+
+
+#endif
+
 //
 // Use check(<expression>)
 //
@@ -116,8 +140,8 @@
                 " obtained: " + obt + \
                 " [" + __LINE__ + "]" ); \
 
-trace(rcsid);
-trace("SWF" + OUTPUT_VERSION + " - " + System.capabilities.version);
-trace("");
+info(rcsid);
+info("SWF" + OUTPUT_VERSION + " - " + System.capabilities.version);
+info("");
 
 #endif // _CHECK_AS_

Index: testsuite/misc-ming.all/ming_utils.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/ming_utils.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- testsuite/misc-ming.all/ming_utils.c        16 Nov 2006 14:00:20 -0000      
1.13
+++ testsuite/misc-ming.all/ming_utils.c        16 Nov 2006 14:22:32 -0000      
1.14
@@ -65,7 +65,6 @@
 
        add_clip_actions(mc,
                " _root.xtrace = function (msg) { "
-               " trace (msg); "
                " _root._trace_text += msg + '\n'; "
                "};");
 
@@ -166,28 +165,41 @@
                "};\n"
                "TestState.prototype.fail = function (why) {\n"
                " this.failed++;\n"
-               " _root.xtrace('FAILED: '+why);\n"
+               " var msg = 'FAILED: '+why;\n"
+               " _root.xtrace(msg);\n"
+               " trace (msg); "
                "};\n"
                "TestState.prototype.xfail = function(why) {\n"
                " this.failed++;\n"
-               " _root.xtrace('XFAILED: '+why);\n"
+               " var msg = 'XFAILED: '+why;\n"
+               " _root.xtrace(msg);\n"
+               " trace (msg); "
                "};\n"
                "TestState.prototype.pass = function(why) {\n"
                " this.passed++;\n"
-               " _root.xtrace('PASSED: '+why);\n"
+               " var msg = 'PASSED: '+why;\n"
+               // don't visually print successes, still use 'trace' for them
+               // " _root.xtrace(msg);\n"
+               " trace (msg); "
                "};\n"
                "TestState.prototype.xpass = function(why) {\n"
                " this.xpassed++;\n"
-               " _root.xtrace('XPASSED: '+why);\n"
+               " var msg = 'XPASSED: '+why;\n"
+               " _root.xtrace(msg);\n"
+               " trace (msg); "
                "};\n"
                "TestState.prototype.totals = function() {\n"
                " _root.xtrace('#passed: '+ this.passed);\n"
+               " trace('#passed: '+ this.passed);\n"
                " _root.xtrace('#failed: '+ this.failed);\n"
+               " trace('#failed: '+ this.failed);\n"
                " if ( this.xpassed ) {\n"
                "   _root.xtrace('#unexpected successes: '+ this.xpassed);\n"
+               "   trace('#unexpected successes: '+ this.xpassed);\n"
                " }\n"
                " if ( this.xfailed ) {\n"
                "   _root.xtrace('#expected failures: '+ this.xfailed);\n"
+               "   trace('#expected failures: '+ this.xfailed);\n"
                " }\n"
                "};\n"
                "_root.runtest = new TestState();\n"
@@ -207,6 +219,21 @@
                " if ( a ) _root.runtest.xpass(a);\n"
                " else _root.runtest.xfail(a);\n"
                "};\n"
+               "_root.fail = function(msg) {\n"
+               " _root.runtest.fail(msg);\n"
+               "};\n"
+               "_root.xfail = function(msg) {\n"
+               " _root.runtest.xfail(msg);\n"
+               "};\n"
+               "_root.pass = function(msg) {\n"
+               " _root.runtest.pass(msg);\n"
+               "};\n"
+               "_root.xpass = function(msg) {\n"
+               " _root.runtest.xpass(msg);\n"
+               "};\n"
+               "_root.totals = function() {\n"
+               " _root.runtest.totals();\n"
+               "};\n"
                "_root.dejagnu_module_initialized = 1;\n"
        );
 




reply via email to

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