| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 chrome.test.getConfig(function(config) { | 2 chrome.test.getConfig(function(config) { |
| 3 | 3 |
| 4 function doReq(domain, expectSuccess) { | 4 function doReq(domain, expectSuccess) { |
| 5 var req = new XMLHttpRequest(); | 5 var req = new XMLHttpRequest(); |
| 6 var url = domain + ":PORT/files/extensions/test_file.txt"; | 6 var url = domain + ":PORT/files/extensions/test_file.txt"; |
| 7 url = url.replace(/PORT/, config.testServer.port); | 7 url = url.replace(/PORT/, config.testServer.port); |
| 8 | 8 |
| 9 chrome.test.log("Requesting url: " + url); | 9 chrome.test.log("Requesting url: " + url); |
| 10 req.open("GET", url, true); | 10 req.open("GET", url, true); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 function disallowedSubdomain() { | 50 function disallowedSubdomain() { |
| 51 doReq("http://foob.com", false); | 51 doReq("http://foob.com", false); |
| 52 }, | 52 }, |
| 53 function disallowedSSL() { | 53 function disallowedSSL() { |
| 54 doReq("https://a.com", false); | 54 doReq("https://a.com", false); |
| 55 } | 55 } |
| 56 ]); | 56 ]); |
| 57 }); | 57 }); |
| 58 | 58 |
| 59 </script> | 59 </script> |
| OLD | NEW |