| Index: chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/test.js
|
| diff --git a/chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/test.js b/chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/test.js
|
| index b2760dd9c90c3abdb6f38dc88c00e49b32447090..c0a3918299a9ad29802932c16b137cb904fb5f05 100644
|
| --- a/chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/test.js
|
| +++ b/chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/test.js
|
| @@ -3,22 +3,38 @@
|
| // found in the LICENSE file.
|
|
|
| chrome.test.getConfig(function(config) {
|
| + chrome.extension.onRequest.addListener(
|
| + function(request, sender, sendResponse) {
|
| + if (request == 'parent')
|
| + chrome.test.succeed();
|
| + else
|
| + chrome.test.fail('Unexpected request: ' + JSON.stringify(request));
|
| + }
|
| + );
|
| chrome.test.runTests([
|
| - function onRequest() {
|
| - chrome.extension.onRequest.addListener(
|
| - function(request, sender, sendResponse) {
|
| - if (request == "parent")
|
| - chrome.test.succeed();
|
| - else
|
| - chrome.test.fail("Unexpected request: " + JSON.stringify(request));
|
| - }
|
| - );
|
| + function testDontInjectInAboutBlankFrame() {
|
| chrome.test.log("Creating tab...");
|
| var test_url =
|
| ("http://localhost:PORT/extensions/" +
|
| "test_file_with_about_blank_iframe.html")
|
| .replace(/PORT/, config.testServer.port);
|
| chrome.tabs.create({ url: test_url });
|
| + },
|
| + function testDontInjectInAboutSrcdocFrame() {
|
| + chrome.test.log('Creating tab...');
|
| + var test_url =
|
| + ('http://localhost:PORT/extensions/' +
|
| + 'api_test/webnavigation/srcdoc/a.html')
|
| + .replace(/PORT/, config.testServer.port);
|
| + chrome.tabs.create({ url: test_url });
|
| + },
|
| + function testDontInjectInNestedAboutFrames() {
|
| + chrome.test.log('Creating tab...');
|
| + var test_url =
|
| + ('http://localhost:PORT/extensions/' +
|
| + 'test_file_with_about_blank_in_srcdoc.html')
|
| + .replace(/PORT/, config.testServer.port);
|
| + chrome.tabs.create({ url: test_url });
|
| }
|
| ]);
|
| });
|
|
|