1 <script src=
"../../resources/get-host-info.js"></script>
2 <script src=
"test-helpers.js?pipe=sub"></script>
4 var image_path
= base_path() + 'fetch-access-control.php?PNGIMAGE';
5 var host_info
= get_host_info();
9 var img
= document
.createElement('img');
10 document
.body
.appendChild(img
);
11 img
.onload = function() {
14 img
.onerror = function() {
18 img
.src
= host_info
['HTTPS_ORIGIN'] + image_path
;
22 var img
= document
.createElement('img');
23 document
.body
.appendChild(img
);
24 img
.onload = function() {
27 img
.onerror = function() {
31 img
.src
= host_info
['HTTPS_REMOTE_ORIGIN'] + image_path
;
35 var img
= document
.createElement('img');
36 document
.body
.appendChild(img
);
37 img
.onload = function() {
41 img
.onerror = function() {
44 img
.src
= host_info
['HTTP_ORIGIN'] + image_path
;
48 var img
= document
.createElement('img');
49 document
.body
.appendChild(img
);
50 img
.onload = function() {
54 img
.onerror = function() {
57 img
.src
= host_info
['HTTP_REMOTE_ORIGIN'] + image_path
;
61 var img
= document
.createElement('img');
62 document
.body
.appendChild(img
);
63 img
.onload = function() {
66 img
.onerror = function() {
70 img
.src
= './dummy?generate-png';
75 window
.parent
.postMessage({results
: results
}, host_info
['HTTPS_ORIGIN']);
79 <body onload='test1();'
>