[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9663: Failing tests for try.
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9663: Failing tests for try. |
Date: |
Wed, 03 Sep 2008 13:02:18 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9663
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Wed 2008-09-03 13:02:18 +0200
message:
Failing tests for try.
modified:
testsuite/actionscript.all/Try.as
=== modified file 'testsuite/actionscript.all/Try.as'
--- a/testsuite/actionscript.all/Try.as 2008-07-20 13:02:21 +0000
+++ b/testsuite/actionscript.all/Try.as 2008-09-03 11:02:18 +0000
@@ -47,6 +47,16 @@
catch (g) {};
};
+throwfunc3 = function()
+{
+ try {
+ throw "throw";
+ }
+ finally {
+ return "finally";
+ };
+};
+
r = "1: ";
try { r +="try "; r +="body "; }
catch (a) { r +="catch "; r += a + " "; }
@@ -74,7 +84,7 @@
try { r += "try "; throw ("thrown"); r += "body "; }
finally { r += "finally "; };
}
-catch (c) { r += c + " "; };
+catch (c) { trace (c); r += c + " "; };
r += ".";
check_equals(r, "4: try finally thrown .");
@@ -154,7 +164,7 @@
r += ".";
check_equals(r, "10: catch finally.");
-r = "10: ";
+r = "11: ";
try {
try { throw "try"; }
catch (e) { throw "catch"; }
@@ -162,8 +172,40 @@
}
catch (m) { r+= "catch " + m; };
r += ".";
-check_equals(r, "10: catch finally.");
-
-totals();
+check_equals(r, "11: catch finally.");
+
+throwNoCatchFunc = function()
+{
+ throw "throw";
+ return "return";
+};
+
+r = "12: ";
+try {
+ r += "try ";
+ r += throwNoCatchFunc() + " ";
+}
+catch (n) {
+ r += n + " ";
+}
+finally {
+ r += "finally";
+};
+r += ".";
+xcheck_equals(r, "12: try throw finally.");
+
+
+r = "13: ";
+try {
+ r += "try ";
+ r += throwfunc3();
+} catch (e) {
+ r += " " + e;
+};
+r += ".";
+xcheck_equals(r, "13: try finally.");
+
+
+totals(13);
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9663: Failing tests for try.,
Benjamin Wolsey <=