OLD | NEW |
1 <script src="../resources/get-host-info.sub.js"></script> | 1 <script src="/common/get-host-info.sub.js"></script> |
2 <script src="test-helpers.sub.js?pipe=sub"></script> | 2 <script src="test-helpers.sub.js?pipe=sub"></script> |
3 <script> | 3 <script> |
4 var image_path = base_path() + 'fetch-access-control.py?PNGIMAGE'; | 4 var image_path = base_path() + 'fetch-access-control.py?PNGIMAGE'; |
5 var host_info = get_host_info(); | 5 var host_info = get_host_info(); |
6 var results = ''; | 6 var results = ''; |
7 | 7 |
8 function test1() { | 8 function test1() { |
9 var img = document.createElement('img'); | 9 var img = document.createElement('img'); |
10 document.body.appendChild(img); | 10 document.body.appendChild(img); |
11 img.onload = function() { | 11 img.onload = function() { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } | 71 } |
72 | 72 |
73 function finish() { | 73 function finish() { |
74 results += 'finish'; | 74 results += 'finish'; |
75 window.parent.postMessage({results: results}, host_info['HTTPS_ORIGIN']); | 75 window.parent.postMessage({results: results}, host_info['HTTPS_ORIGIN']); |
76 } | 76 } |
77 </script> | 77 </script> |
78 | 78 |
79 <body onload='test1();'> | 79 <body onload='test1();'> |
80 </body> | 80 </body> |
OLD | NEW |