Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: LayoutTests/fast/js/exception-linenums-in-html-2.html

Issue 14195011: Removed WONTFIX tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head><title>title</title>
3 <script src="resources/js-test-pre.js"></script>
4 </head>
5 <body>
6 <script>
7 description('This test exercises the source URL and line number that is embedded in JavaScript exceptions, which is displayed in places like the JavaScript cons ole. It differs from <span style="font-family: monospace;">exception-linenums-i n-html-1.html</span> in that it only works if <a href="https://bugs.webkit.org/s how_bug.cgi?id=3905">Bugzilla Bug 3905</a> has been fixed.');
8
9 function exceptionInFunction()
10 {
11 throw Exception();
12 }
13
14 var e = undefined;
15
16 try {
17 // Raises an exception that gets picked up by KJS_CHECKEXCEPTION
18 document.documentElement.innerHTML(foo);
19 } catch (exception) {
20 e = exception;
21 }
22 shouldBe("typeof e.sourceURL", '"string"');
23 shouldBe("e.line", '18');
24
25 e = undefined;
26 try {
27 // Raises an exception that gets picked up by KJS_CHECKEXCEPTIONVALUE
28 document.documentElement.appendChild('').prefix = '';
29 } catch (exception) {
30 e = exception;
31 }
32 shouldBe("typeof e.sourceURL", '"string"');
33 shouldBe("e.line", '28');
34
35 e = undefined;
36 try {
37 // Raises an exception that gets picked up by KJS_CHECKEXCEPTIONREFERENCE
38 document.documentElement.appendChild('').innerHTML = '';
39 } catch (exception) {
40 e = exception;
41 }
42 shouldBe("typeof e.sourceURL", '"string"');
43 shouldBe("e.line", '38');
44
45 e = undefined;
46 try {
47 // Raises an exception that gets picked up by KJS_CHECKEXCEPTIONLIST
48 document.getElementById(1());
49 } catch (exception) {
50 e = exception;
51 }
52 shouldBe("typeof e.sourceURL", '"string"');
53 shouldBe("e.line", '48');
54
55 e = undefined;
56 // Raises an exception inside a function to check that its line number
57 // isn't overwritten in the assignment node.
58 try {
59 var a = exceptionInFunction();
60 } catch (exception) {
61 e = exception;
62 }
63 shouldBe("typeof e.sourceURL", '"string"');
64 shouldBe("e.line", '11');
65 </script>
66 <script src="resources/js-test-post.js"></script>
67 </body>
68 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698