2 function testUnsuccessfulAccess() {
4 chrome
.app
.getDetailsForFrame(frames
[0]);
6 if (e
.indexOf("Access denied") == 0)
14 function getFrameURL(host
) {
15 var result
= "http://" + host
;
18 result
+= location
.port
;
20 result
+= location
.pathname
;
24 var iframe
= document
.createElement("iframe");
25 iframe
.src
= getFrameURL("app.com");
26 document
.documentElement
.appendChild(iframe
);