tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / js / function-redefinition.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <script>
8 test1 = "FAIL";
9 var test2 = "FAIL"
10 function test3() {
11      return "FAIL";
12 }
13 </script> 
14 <script>
15 function test1() { 
16     return "SUCCESS";
17 }
18
19 function test2() { 
20     return "SUCCESS";
21 }
22
23 function test3() { 
24     return "SUCCESS";
25 }
26
27 shouldBeTrue("typeof test1 == 'function'");
28 shouldBeTrue("typeof test2 == 'function'");
29 shouldBeTrue("typeof test3 == 'function'");
30 shouldBe("test3()", '"SUCCESS"');
31 </script>
32 <script src="resources/js-test-post.js"></script>
33 </body>
34 </html>