Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / console / console-trim-long-urls.html
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
6 function onload()
7 {
8     //        0---------1---------2---------3---------4---------5---------6---------7---------8---------9---------0---------1---------2---------3---------4---------5---------6---------7---------8---------9---------0
9     var url = "http://example.com/2---------3---------4---------5---------6---------7---------8---------9---------0---------1---------2---------3---------4---------5---------6---------7---------8---------9---------0";
10
11     console.log("The URL is: %s", url);
12     console.log(url);
13
14     runTest();
15 }
16
17 function test()
18 {
19     InspectorTest.dumpConsoleMessages();
20     InspectorTest.completeTest();
21 }
22 </script>
23 </head>
24
25 <body onload="onload()">
26 <p>
27 Tests that a URL logged to the console is trimmed down to 150 characters.
28 </p>
29 </body>
30 </html>