Index: test/webkit/eval-throw-return-expected.txt |
diff --git a/test/webkit/concat-while-having-a-bad-time-expected.txt b/test/webkit/eval-throw-return-expected.txt |
similarity index 59% |
copy from test/webkit/concat-while-having-a-bad-time-expected.txt |
copy to test/webkit/eval-throw-return-expected.txt |
index f949db98fd7b911d30b20281c82ee0f801405c77..662531a38f0880a6631e4c602ee623612da15ae5 100644 |
--- a/test/webkit/concat-while-having-a-bad-time-expected.txt |
+++ b/test/webkit/eval-throw-return-expected.txt |
@@ -21,12 +21,27 @@ |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-Tests the behavior of Array.prototype.concat while the array is having a bad time due to one of the elements we are concatenating. |
+This test verifies the result returned by the eval function when exceptions are thrown and caught whithin the contents of the evaluated string. |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
-PASS [42].concat() is [42] |
+PASS eval("1;") is 1 |
+PASS eval("1; try { foo = [2,3,throwFunc(), 4]; } catch (e){}") is 1 |
+PASS eval("1; try { 2; throw \"\"; } catch (e){}") is 2 |
+PASS eval("1; try { 2; throwFunc(); } catch (e){}") is 2 |
+PASS eval("1; try { 2; throwFunc(); } catch (e){3;} finally {}") is 3 |
+PASS eval("1; try { 2; throwFunc(); } catch (e){3;} finally {4;}") is 4 |
+PASS eval("function blah() { 1; }\n blah();") is undefined |
+PASS eval("var x = 1;") is undefined |
+PASS eval("if (true) { 1; } else { 2; }") is 1 |
+PASS eval("if (false) { 1; } else { 2; }") is 2 |
+PASS eval("try{1; if (true) { 2; throw \"\"; } else { 2; }} catch(e){}") is 2 |
+PASS eval("1; var i = 0; do { ++i; 2; } while(i!=1);") is 2 |
+PASS eval("try{1; var i = 0; do { ++i; 2; throw \"\"; } while(i!=1);} catch(e){}") is 2 |
+PASS eval("1; try{2; throwOnReturn();} catch(e){}") is 2 |
+PASS eval("1; twoFunc();") is undefined |
+PASS eval("1; with ( { a: 0 } ) { 2; }") is 2 |
PASS successfullyParsed is true |
TEST COMPLETE |