2010-06-26 Tony Gentilcore <tonyg@chromium.org>
[WebKit.git] / LayoutTests / fast / js / script-line-number.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="resources/js-test-style.css">
5 <script src="resources/js-test-pre.js"></script>
6 </head>
7 <body>
8 <p id="description"></p>
9 <div id="console"></div>
10
11 <!-- Ensure that lines in a document.write() do not count. -->
12 <script>
13 document.write("\n\n\n");
14 </script>
15
16 <script src="resources/script-line-number.js" onload="try { nonExistentFunctionOnLine16(); } catch (e) { assertErrorOnLine(e, 16); }"></script>
17 <script>
18 try {
19     nonExistentFunctionOnLine19();
20 } catch (e) {
21     assertErrorOnLine(e, 19);
22 }
23 </script>
24 <script src="resources/js-test-post.js"></script>
25 </body>
26 </html>