| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="resources/js-test-pre.js"></script> | 4 <script src="resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 test1 = "FAIL"; | 8 test1 = "FAIL"; |
| 9 var test2 = "FAIL" | 9 var test2 = "FAIL" |
| 10 function test3() { | 10 function test3() { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 function test3() { | 23 function test3() { |
| 24 return "SUCCESS"; | 24 return "SUCCESS"; |
| 25 } | 25 } |
| 26 | 26 |
| 27 shouldBeTrue("typeof test1 == 'function'"); | 27 shouldBeTrue("typeof test1 == 'function'"); |
| 28 shouldBeTrue("typeof test2 == 'function'"); | 28 shouldBeTrue("typeof test2 == 'function'"); |
| 29 shouldBeTrue("typeof test3 == 'function'"); | 29 shouldBeTrue("typeof test3 == 'function'"); |
| 30 shouldBe("test3()", '"SUCCESS"'); | 30 shouldBe("test3()", '"SUCCESS"'); |
| 31 </script> | 31 </script> |
| 32 <script src="resources/js-test-post.js"></script> | |
| 33 </body> | 32 </body> |
| 34 </html> | 33 </html> |
| OLD | NEW |