Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / function-redefinition.html
blob5b5dc6dd66c13966be399bea5ee8e7c6f934cf83
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>
8 test1 = "FAIL";
9 var test2 = "FAIL"
10 function test3() {
11 return "FAIL";
13 </script>
14 <script>
15 function test1() {
16 return "SUCCESS";
19 function test2() {
20 return "SUCCESS";
23 function test3() {
24 return "SUCCESS";
27 shouldBeTrue("typeof test1 == 'function'");
28 shouldBeTrue("typeof test2 == 'function'");
29 shouldBeTrue("typeof test3 == 'function'");
30 shouldBe("test3()", '"SUCCESS"');
31 </script>
32 </body>
33 </html>