Diff
Modified: trunk/LayoutTests/ChangeLog (149742 => 149743)
--- trunk/LayoutTests/ChangeLog 2013-05-08 16:17:45 UTC (rev 149742)
+++ trunk/LayoutTests/ChangeLog 2013-05-08 16:33:31 UTC (rev 149743)
@@ -1,3 +1,24 @@
+2013-05-08 David Kilzer <[email protected]>
+
+ Add layout tests for test cases in Bug 5206
+ <http://webkit.org/b/5206>
+
+ Reviewed by Eric Seidel.
+
+ These issues were likely fixed in r89257 for Bug 62613.
+
+ * fast/js/parse-error-external-script-in-eval-expected.txt: Added.
+ * fast/js/parse-error-external-script-in-eval.html: Added.
+ * fast/js/parse-error-external-script-in-new-Function-expected.txt: Added.
+ Note that the line number in this result is relative to the line
+ number of the second argument to the new Function() method.
+ * fast/js/parse-error-external-script-in-new-Function.html: Added.
+ * fast/js/resources/parse-error-external-script-in-eval.js: Added.
+ * fast/js/resources/parse-error-external-script-in-new-Function.js: Added.
+
+ * platform/chromium/fast/js/parse-error-external-script-in-eval-expected.txt: Added.
+ * platform/chromium/fast/js/parse-error-external-script-in-new-Function-expected.txt: Added.
+
2013-05-08 Eric Carlson <[email protected]>
[Mac] Inband text tracks are not in track menu on Lion
Added: trunk/LayoutTests/fast/js/parse-error-external-script-in-eval-expected.txt (0 => 149743)
--- trunk/LayoutTests/fast/js/parse-error-external-script-in-eval-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/js/parse-error-external-script-in-eval-expected.txt 2013-05-08 16:33:31 UTC (rev 149743)
@@ -0,0 +1,2 @@
+CONSOLE MESSAGE: line 2: SyntaxError: Expected an identifier but found 'error' instead
+This tests that a line number and error message is printed for a parse error in a separate source file using eval().
Added: trunk/LayoutTests/fast/js/parse-error-external-script-in-eval.html (0 => 149743)
--- trunk/LayoutTests/fast/js/parse-error-external-script-in-eval.html (rev 0)
+++ trunk/LayoutTests/fast/js/parse-error-external-script-in-eval.html 2013-05-08 16:33:31 UTC (rev 149743)
@@ -0,0 +1,19 @@
+<html>
+<head>
+<script>
+if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.waitUntilDone();
+}
+</script>
+<script src=""
+<script>
+if (window.layoutTestController) {
+ layoutTestController.notifyDone();
+}
+</script>
+</head>
+<body>
+This tests that a line number and error message is printed for a parse error in a separate source file using eval().
+</body>
+</html>
Added: trunk/LayoutTests/fast/js/parse-error-external-script-in-new-Function-expected.txt (0 => 149743)
--- trunk/LayoutTests/fast/js/parse-error-external-script-in-new-Function-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/js/parse-error-external-script-in-new-Function-expected.txt 2013-05-08 16:33:31 UTC (rev 149743)
@@ -0,0 +1,2 @@
+CONSOLE MESSAGE: line 3: SyntaxError: Expected an identifier but found 'error' instead
+This tests that a line number and error message is printed for a parse error in a separate source file using new Function().
Added: trunk/LayoutTests/fast/js/parse-error-external-script-in-new-Function.html (0 => 149743)
--- trunk/LayoutTests/fast/js/parse-error-external-script-in-new-Function.html (rev 0)
+++ trunk/LayoutTests/fast/js/parse-error-external-script-in-new-Function.html 2013-05-08 16:33:31 UTC (rev 149743)
@@ -0,0 +1,19 @@
+<html>
+<head>
+<script>
+if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.waitUntilDone();
+}
+</script>
+<script src=""
+<script>
+if (window.layoutTestController) {
+ layoutTestController.notifyDone();
+}
+</script>
+</head>
+<body>
+This tests that a line number and error message is printed for a parse error in a separate source file using new Function().
+</body>
+</html>
Added: trunk/LayoutTests/fast/js/resources/parse-error-external-script-in-eval.js (0 => 149743)
--- trunk/LayoutTests/fast/js/resources/parse-error-external-script-in-eval.js (rev 0)
+++ trunk/LayoutTests/fast/js/resources/parse-error-external-script-in-eval.js 2013-05-08 16:33:31 UTC (rev 149743)
@@ -0,0 +1,3 @@
+
+eval("\n\nsyntax error");
+
Added: trunk/LayoutTests/fast/js/resources/parse-error-external-script-in-new-Function.js (0 => 149743)
--- trunk/LayoutTests/fast/js/resources/parse-error-external-script-in-new-Function.js (rev 0)
+++ trunk/LayoutTests/fast/js/resources/parse-error-external-script-in-new-Function.js 2013-05-08 16:33:31 UTC (rev 149743)
@@ -0,0 +1,3 @@
+
+var f = new Function("x", "\n\nsyntax error");
+
Added: trunk/LayoutTests/platform/chromium/fast/js/parse-error-external-script-in-eval-expected.txt (0 => 149743)
--- trunk/LayoutTests/platform/chromium/fast/js/parse-error-external-script-in-eval-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/chromium/fast/js/parse-error-external-script-in-eval-expected.txt 2013-05-08 16:33:31 UTC (rev 149743)
@@ -0,0 +1,2 @@
+CONSOLE MESSAGE: line 3: Uncaught SyntaxError: Unexpected identifier
+This tests that a line number and error message is printed for a parse error in a separate source file using eval().
Added: trunk/LayoutTests/platform/chromium/fast/js/parse-error-external-script-in-new-Function-expected.txt (0 => 149743)
--- trunk/LayoutTests/platform/chromium/fast/js/parse-error-external-script-in-new-Function-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/chromium/fast/js/parse-error-external-script-in-new-Function-expected.txt 2013-05-08 16:33:31 UTC (rev 149743)
@@ -0,0 +1,2 @@
+CONSOLE MESSAGE: line 4: Uncaught SyntaxError: Unexpected identifier
+This tests that a line number and error message is printed for a parse error in a separate source file using new Function().