OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <p id="description">Tests that form submissions (via an onclick handler) inside
an iframe generate history entries.</p> | 4 <p id="description">Tests that form submissions (via an onclick handler) inside
an iframe generate history entries.</p> |
5 | 5 |
6 <div id="manual-explanation" style="display: none; color: blue">When running thi
s test outside of DRT, please click on the "Submit" button.</div> | 6 <div id="manual-explanation" style="display: none; color: blue">When running thi
s test outside of DRT, please click on the "Submit" button.</div> |
7 | 7 |
8 <pre id="console"></pre> | 8 <pre id="console"></pre> |
9 | 9 |
10 <script> | 10 <script> |
(...skipping 21 matching lines...) Expand all Loading... |
32 frameNode.offsetTop + submitButtonNode.offsetTop + submitButtonN
ode.offsetHeight / 2); | 32 frameNode.offsetTop + submitButtonNode.offsetTop + submitButtonN
ode.offsetHeight / 2); |
33 eventSender.mouseDown(); | 33 eventSender.mouseDown(); |
34 eventSender.mouseUp(); | 34 eventSender.mouseUp(); |
35 } else { | 35 } else { |
36 document.getElementById('manual-explanation').style.display = '';
| 36 document.getElementById('manual-explanation').style.display = '';
|
37 } | 37 } |
38 }, 0); | 38 }, 0); |
39 } | 39 } |
40 </script> | 40 </script> |
41 | 41 |
42 <iframe id="the-frame" src="resources/form-with-onclick-submit.html" onload="sub
mitForm()"></iframe> | 42 <iframe id="the-frame" name="the-frame" src="resources/form-with-onclick-submit.
html" onload="submitForm()"></iframe> |
43 | 43 |
44 </body> | 44 </body> |
45 </html> | 45 </html> |
OLD | NEW |