| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 onload = function() { | 5 onload = function() { |
| 6 var URL_LOAD = | 6 var URL_LOAD = |
| 7 "http://127.0.0.1:PORT/files/extensions/api_test/webnavigation/targetBlank
/a.html"; | 7 "http://127.0.0.1:PORT/extensions/api_test/webnavigation/targetBlank/a.htm
l"; |
| 8 var URL_TARGET = | 8 var URL_TARGET = |
| 9 "http://127.0.0.1:PORT/files/extensions/api_test/webnavigation/targetBlank
/b.html"; | 9 "http://127.0.0.1:PORT/extensions/api_test/webnavigation/targetBlank/b.htm
l"; |
| 10 chrome.tabs.create({"url": "about:blank"}, function(tab) { | 10 chrome.tabs.create({"url": "about:blank"}, function(tab) { |
| 11 var tabId = tab.id; | 11 var tabId = tab.id; |
| 12 chrome.test.getConfig(function(config) { | 12 chrome.test.getConfig(function(config) { |
| 13 var fixPort = function(url) { | 13 var fixPort = function(url) { |
| 14 return url.replace(/PORT/g, config.testServer.port); | 14 return url.replace(/PORT/g, config.testServer.port); |
| 15 }; | 15 }; |
| 16 URL_LOAD = fixPort(URL_LOAD); | 16 URL_LOAD = fixPort(URL_LOAD); |
| 17 URL_TARGET = fixPort(URL_TARGET); | 17 URL_TARGET = fixPort(URL_TARGET); |
| 18 | 18 |
| 19 chrome.test.runTests([ | 19 chrome.test.runTests([ |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 "b-onCreatedNavigationTarget", | 97 "b-onCreatedNavigationTarget", |
| 98 "b-onBeforeNavigate" ]]); | 98 "b-onBeforeNavigate" ]]); |
| 99 | 99 |
| 100 // Notify the api test that we're waiting for the user. | 100 // Notify the api test that we're waiting for the user. |
| 101 chrome.test.notifyPass(); | 101 chrome.test.notifyPass(); |
| 102 }, | 102 }, |
| 103 ]); | 103 ]); |
| 104 }); | 104 }); |
| 105 }); | 105 }); |
| 106 }; | 106 }; |
| OLD | NEW |