1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 chrome
.extension
.onRequest
.addListener(function(data
) {
8 chrome
.test
.fail("Unexpected request: " + JSON
.stringify(data
));
11 chrome
.test
.notifyPass();
14 chrome
.test
.getConfig(function(config
) {
15 var test_file_url
= "http://localhost:PORT/extensions/test_file.html"
16 .replace(/PORT/, config
.testServer
.port
);
19 var w
= window
.open(test_file_url
);
22 var iframe
= document
.createElement("iframe");
23 iframe
.src
= test_file_url
;
24 document
.getElementById("iframeContainer").appendChild(iframe
);