Upstream version 9.37.195.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / loading / form-action-using-replaceChild.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="/js-test-resources/js-test.js"></script>
5 <script>
6 if (window.testRunner) {
7   jsTestIsAsync = true;
8 }
9
10 window.addEventListener('message', function(event) {
11   document.write(event.data +
12     " The form was rendered correctly." +
13     " This test is for bug <a href=\"https://code.google.com/p/chromium/issues/detail?id=388664\">388664</a>\n");
14     if (window.testRunner)
15       finishJSTest();
16 }, false);
17 </script>
18
19 <iframe name="f" src="http://127.0.0.1:8000/loading/resources/frame-with-form-action-using-replace-child.html"></iframe>
20
21 <script>
22 window.onload = function() {
23   window.frames["f"].document.forms[0].submit();
24 }
25 </script>
26
27 </body>
28 </html>