OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../js/resources/js-test-pre.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
3 <form action="javascript:void(0)" onsubmit="runTest(username.value)"> | 3 <form action="javascript:void(0)" onsubmit="runTest(username.value)"> |
4 <input type="text" value="abc" name="username"> | 4 <input type="text" value="abc" name="username"> |
5 <input type="submit" name="login" value="Login"> | 5 <input type="submit" name="login" value="Login"> |
6 </form> | 6 </form> |
7 <script> | 7 <script> |
8 | 8 |
9 description('This test tests that a lazy event listener attached to a form eleme
nt keeps its form in the scope chain when the listener is called by JavaScript.'
); | 9 description('This test tests that a lazy event listener attached to a form eleme
nt keeps its form in the scope chain when the listener is called by JavaScript.'
); |
10 | 10 |
11 var result; | 11 var result; |
12 | 12 |
(...skipping 12 matching lines...) Expand all Loading... |
25 | 25 |
26 f.oldF = f.onsubmit; | 26 f.oldF = f.onsubmit; |
27 | 27 |
28 f.onsubmit = function() { | 28 f.onsubmit = function() { |
29 this.oldF(); | 29 this.oldF(); |
30 }; | 30 }; |
31 | 31 |
32 f.login.click(); | 32 f.login.click(); |
33 | 33 |
34 </script> | 34 </script> |
35 <script src="../js/resources/js-test-pre.js"></script> | 35 <script src="../../resources/js-test.js"></script> |
OLD | NEW |