Roll leveldb 3f7758:803d69 (v1.17 -> v1.18)
[chromium-blink-merge.git] / chrome / test / data / extensions / get_app_details_for_frame.html
blob81b4f2a56ed3a883938af42cccba4977ebd850cd
1 <script>
2 function testUnsuccessfulAccess() {
3 try {
4 chrome.app.getDetailsForFrame(frames[0]);
5 } catch (e) {
6 if (e.indexOf("Access denied") == 0)
7 return true;
8 else
9 throw e;
11 return false;
14 function getFrameURL(host) {
15 var result = "http://" + host;
16 if (location.port) {
17 result += ":";
18 result += location.port;
20 result += location.pathname;
21 return result;
24 var iframe = document.createElement("iframe");
25 iframe.src = getFrameURL("app.com");
26 document.documentElement.appendChild(iframe);
27 </script>