1 <script src="test-helpers.js?pipe=sub"></script>
3 var image_path = base_path() + 'fetch-access-control.php?PNGIMAGE';
4 var host_info = get_host_info();
8 var img = document.createElement('img');
9 document.body.appendChild(img);
10 img.onload = function() {
13 img.onerror = function() {
17 img.src = host_info['HTTPS_ORIGIN'] + image_path;
21 var img = document.createElement('img');
22 document.body.appendChild(img);
23 img.onload = function() {
26 img.onerror = function() {
30 img.src = host_info['HTTPS_REMOTE_ORIGIN'] + image_path;
34 var img = document.createElement('img');
35 document.body.appendChild(img);
36 img.onload = function() {
40 img.onerror = function() {
43 img.src = host_info['HTTP_ORIGIN'] + image_path;
47 var img = document.createElement('img');
48 document.body.appendChild(img);
49 img.onload = function() {
53 img.onerror = function() {
56 img.src = host_info['HTTP_REMOTE_ORIGIN'] + image_path;
61 window.parent.postMessage({results: results}, host_info['HTTPS_ORIGIN']);
65 <body onload='test1();'>