OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_A = | 6 var URL_A = |
7 "http://www.a.com:PORT/files/extensions/api_test/webnavigation/crash/a.htm
l"; | 7 "http://www.a.com:PORT/extensions/api_test/webnavigation/crash/a.html"; |
8 var URL_B = | 8 var URL_B = |
9 "http://www.a.com:PORT/files/extensions/api_test/webnavigation/crash/b.htm
l"; | 9 "http://www.a.com:PORT/extensions/api_test/webnavigation/crash/b.html"; |
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_A = fixPort(URL_A); | 16 URL_A = fixPort(URL_A); |
17 URL_B = fixPort(URL_B); | 17 URL_B = fixPort(URL_B); |
18 | 18 |
19 chrome.test.runTests([ | 19 chrome.test.runTests([ |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 url: URL_B }}], | 85 url: URL_B }}], |
86 [ navigationOrder("a-"), navigationOrder("b-") ]); | 86 [ navigationOrder("a-"), navigationOrder("b-") ]); |
87 | 87 |
88 // Notify the api test that we're waiting for the user. | 88 // Notify the api test that we're waiting for the user. |
89 chrome.test.notifyPass(); | 89 chrome.test.notifyPass(); |
90 }, | 90 }, |
91 ]); | 91 ]); |
92 }); | 92 }); |
93 }); | 93 }); |
94 }; | 94 }; |
OLD | NEW |