[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Try.as
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Try.as |
Date: |
Wed, 11 Jun 2008 15:22:16 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/06/11 15:22:16
Modified files:
. : ChangeLog
testsuite/actionscript.all: Try.as
Log message:
More tests.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6900&r2=1.6901
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Try.as?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6900
retrieving revision 1.6901
diff -u -b -r1.6900 -r1.6901
--- ChangeLog 11 Jun 2008 14:40:26 -0000 1.6900
+++ ChangeLog 11 Jun 2008 15:22:15 -0000 1.6901
@@ -1,3 +1,8 @@
+2008-06-11 Benjamin Wolsey <address@hidden>
+
+ * testsuite/actionscript.all/Try.as: more tests, only build with
+ ming 0.4 beta 6.
+
2008-06-11 Sandro Santilli <address@hidden>
* libmedia/sound_handler.h: drop the Buffer here, use the one in
Index: testsuite/actionscript.all/Try.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Try.as,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- testsuite/actionscript.all/Try.as 11 Jun 2008 12:09:33 -0000 1.1
+++ testsuite/actionscript.all/Try.as 11 Jun 2008 15:22:16 -0000 1.2
@@ -21,7 +21,7 @@
// execute it like this gnash -1 -r 0 -v out.swf
-rcsid="$Id: Try.as,v 1.1 2008/06/11 12:09:33 bwy Exp $";
+rcsid="$Id: Try.as,v 1.2 2008/06/11 15:22:16 bwy Exp $";
#include "check.as"
// Some of the test variants.
@@ -32,6 +32,8 @@
// Try catch
// Try (throw) catch
+#if MING_VERSION_CODE >= 00040006
+
throwfunc = function()
{
throw "try";
@@ -42,7 +44,7 @@
try {
throw "try";
}
- catch (e) {};
+ catch (g) {};
};
r = "1: ";
@@ -54,7 +56,7 @@
#if OUTPUT_VERSION < 7
xcheck_equals(r, "1: try body catch finally .");
#else
-check_equals(r, "1: try body catch undefined finally .");
+xcheck_equals(r, "1: try body catch undefined finally .");
#endif
r = "2: ";
@@ -108,9 +110,79 @@
xcheck_equals(r, "7: try finally finally2 thrown .");
+try {
+ try {
+ r = "8: ";
+ try { r += "try "; throw ("thrown"); r += "body "; }
+ finally { r += "finally "; };
+ }
+ finally {
+ r += "finally2 ";
+ try {
+ r += "try2 ";
+ }
+ catch (h) { r += "catch2 "; r += h +" "; };
+ };
+}
+catch (i) { r += i + " "; };
+r += ".";
+#if OUTPUT_VERSION < 7
+xcheck_equals(r, "8: try finally finally2 try2 catch2 thrown .");
+#else
+xcheck_equals(r, "8: try finally finally2 try2 catch2 undefined thrown .");
+#endif
+
+try {
+ try {
+ r = "9: ";
+ try { r += "try "; throw ("thrown"); r += "body "; }
+ finally { r += "finally "; };
+ }
+ catch (j) { r += "catch "; r += j + " "; }
+ finally {
+ r += "finally2 ";
+ try {
+ r += "try2 ";
+ }
+ catch (k) { r += "catch2 "; r += k +" "; };
+ };
+}
+catch (l) { r+= "catch3 "; r += l + " "; };
+r += ".";
+#if OUTPUT_VERSION < 7
+xcheck_equals(r, "9: try finally catch thrown finally2 try2 catch2 catch3
.");
+#else
+xcheck_equals(r, "9: try finally catch thrown finally2 try2 catch2 undefined
catch3 undefined .");
+#endif
+
+r = "10: ";
+try {
+ try { throw "try"; }
+ catch (e) { throw "catch"; }
+ finally { throw "finally"; };
+}
+catch (m) { r+= "catch " + m; };
+r += ".";
+check_equals(r, "10: catch finally.");
+
+r = "10: ";
+try {
+ try { throw "try"; }
+ catch (e) { throw "catch"; }
+ finally { throw "finally"; };
+}
+catch (m) { r+= "catch " + m; };
+r += ".";
+check_equals(r, "10: catch finally.");
+
+
//try { throwfunc(); }
//catch (g) { trace ("catch"); trace (g); };
//try { throw "thrown"; }
//finally { };
//trace ("Don't reach this point");
+
+totals();
+
+#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Try.as,
Benjamin Wolsey <=