Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: LayoutTests/fast/forms/form-submit-in-image-document.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <body> 2 <body>
3 <script src="../js/resources/js-test-pre.js"></script> 3 <script src="../js/resources/js-test-pre.js"></script>
4 4
5 <iframe src="resources/logo.gif"></iframe> 5 <iframe src="resources/logo.gif"></iframe>
6 6
7 <script> 7 <script>
8 description('Test if Blink does not crash by form submission in a document with null encoding.'); 8 description('Test if Blink does not crash by form submission in a document with null encoding.');
9 jsTestIsAsync = true; 9 jsTestIsAsync = true;
10 10
11 function finish() { 11 function finish() {
12 testPassed('if not crashed'); 12 testPassed('if not crashed');
13 finishJSTest(); 13 finishJSTest();
14 } 14 }
15 15
16 window.onload = function() { 16 window.onload = function() {
17 var doc = document.querySelector('iframe').contentDocument; 17 var doc = document.querySelector('iframe').contentDocument;
18 var form = doc.createElement('form'); 18 var form = doc.createElement('form');
19 form.action = 'javascript:parent.finish()'; 19 form.action = 'javascript:parent.finish()';
20 form.innerHTML = '<input type="hidden" name="hidden">'; 20 form.innerHTML = '<input type="hidden" name="hidden">';
21 doc.body.appendChild(form); 21 doc.body.appendChild(form);
22 form.submit(); 22 form.submit();
23 }; 23 };
24 </script> 24 </script>
25 <script src="../js/resources/js-test-post.js"></script>
26 </body> 25 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698