| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../js/resources/js-test-pre.js"></script> | 2 <script src="../js/resources/js-test-pre.js"></script> |
| 3 <form id="test-form"> | 3 <form id="test-form"> |
| 4 <input id="test-input"> | 4 <input id="test-input"> |
| 5 </form> | 5 </form> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 description('Tests the lookup in inline event handlers'); | 8 description('Tests the lookup in inline event handlers'); |
| 9 | 9 |
| 10 function dispatchClick(element) | 10 function dispatchClick(element) |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 div.setAttribute('onclick', 'result = this'); | 60 div.setAttribute('onclick', 'result = this'); |
| 61 dispatchClick(div); | 61 dispatchClick(div); |
| 62 shouldBe('result', 'div'); | 62 shouldBe('result', 'div'); |
| 63 | 63 |
| 64 div.event = 'FAIL'; | 64 div.event = 'FAIL'; |
| 65 div.setAttribute('onclick', 'result = event'); | 65 div.setAttribute('onclick', 'result = event'); |
| 66 dispatchClick(div); | 66 dispatchClick(div); |
| 67 shouldNotBe('result', '"FAIL"'); | 67 shouldNotBe('result', '"FAIL"'); |
| 68 | 68 |
| 69 </script> | 69 </script> |
| 70 <script src="../js/resources/js-test-post.js"></script> | |
| OLD | NEW |