Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / toString-try-else.html
blobbdb4460e5fffcc59995679946051255a02a51fd5
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
9 description(
10 "This test checks that toString() round-trip on a function that has a else clause directly \
11 followed by an else clause puts whitespace between the two on decompilation."
15 function testTryElse() { if (x) {} else try {} finally {} }
17 unevalf = function(x) { return '(' + x.toString() + ')'; };
19 // Test round trip.
20 shouldBe("unevalf(eval(unevalf(testTryElse)))", "unevalf(testTryElse)");
21 </script>
22 </body>
23 </html>