Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: chrome/test/data/extensions/api_test/webnavigation/crossProcessHistory/test_crossProcessHistory.js

Issue 2850793005: Remove command line/field trial support and configs for Isolate Extensions. (Closed)
Patch Set: Remove more cases of "isolate.*extension" Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 getURL = chrome.extension.getURL; 6 var getURL = chrome.extension.getURL;
7 var URL_TEST = "http://127.0.0.1:PORT/test"; 7 var URL_TEST = "http://127.0.0.1:PORT/test";
8 chrome.tabs.create({"url": "about:blank"}, function(tab) { 8 chrome.tabs.create({"url": "about:blank"}, function(tab) {
9 var tabId = tab.id; 9 var tabId = tab.id;
10 chrome.test.getConfig(function(config) { 10 chrome.test.getConfig(function(config) {
11 var fixPort = function(url) { 11 var fixPort = function(url) {
12 return url.replace(/PORT/g, config.testServer.port); 12 return url.replace(/PORT/g, config.testServer.port);
13 }; 13 };
14 URL_TEST = fixPort(URL_TEST); 14 URL_TEST = fixPort(URL_TEST);
15 let areExtensionsIsolated = config.isolateExtensions;
16 15
17 chrome.test.runTests([ 16 chrome.test.runTests([
18 // Navigates to a different site, but then modifies the history using 17 // Navigates to a different site, but then modifies the history using
19 // history.pushState(). 18 // history.pushState().
20 function crossProcessHistory() { 19 function crossProcessHistory() {
21 expect([ 20 expect([
22 { label: "a-onBeforeNavigate", 21 { label: "a-onBeforeNavigate",
23 event: "onBeforeNavigate", 22 event: "onBeforeNavigate",
24 details: { frameId: 0, 23 details: { frameId: 0,
25 parentFrameId: -1, 24 parentFrameId: -1,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 event: "onBeforeNavigate", 147 event: "onBeforeNavigate",
149 details: { frameId: 1, 148 details: { frameId: 1,
150 parentFrameId: 0, 149 parentFrameId: 0,
151 processId: -1, 150 processId: -1,
152 tabId: 0, 151 tabId: 0,
153 timeStamp: 0, 152 timeStamp: 0,
154 url: URL_TEST + "5" }}, 153 url: URL_TEST + "5" }},
155 { label: "b-onCommitted", 154 { label: "b-onCommitted",
156 event: "onCommitted", 155 event: "onCommitted",
157 details: { frameId: 1, 156 details: { frameId: 1,
158 processId: (areExtensionsIsolated ? 1 : 0), 157 processId: 1,
159 tabId: 0, 158 tabId: 0,
160 timeStamp: 0, 159 timeStamp: 0,
161 transitionQualifiers: [], 160 transitionQualifiers: [],
162 transitionType: "auto_subframe", 161 transitionType: "auto_subframe",
163 url: URL_TEST + "5" }}, 162 url: URL_TEST + "5" }},
164 { label: "b-onDOMContentLoaded", 163 { label: "b-onDOMContentLoaded",
165 event: "onDOMContentLoaded", 164 event: "onDOMContentLoaded",
166 details: { frameId: 1, 165 details: { frameId: 1,
167 processId: (areExtensionsIsolated ? 1 : 0), 166 processId: 1,
168 tabId: 0, 167 tabId: 0,
169 timeStamp: 0, 168 timeStamp: 0,
170 url: URL_TEST + "5" }}, 169 url: URL_TEST + "5" }},
171 { label: "b-onCompleted", 170 { label: "b-onCompleted",
172 event: "onCompleted", 171 event: "onCompleted",
173 details: { frameId: 1, 172 details: { frameId: 1,
174 processId: (areExtensionsIsolated ? 1 : 0), 173 processId: 1,
175 tabId: 0, 174 tabId: 0,
176 timeStamp: 0, 175 timeStamp: 0,
177 url: URL_TEST + "5" }}], 176 url: URL_TEST + "5" }}],
178 [ navigationOrder("a-"), navigationOrder("b-"), 177 [ navigationOrder("a-"), navigationOrder("b-"),
179 [ "a-onCompleted", "b-onBeforeNavigate", 178 [ "a-onCompleted", "b-onBeforeNavigate",
180 "a-onHistoryStateUpdated"] ]); 179 "a-onHistoryStateUpdated"] ]);
181 180
182 chrome.tabs.update( 181 chrome.tabs.update(
183 tabId, 182 tabId,
184 { url: getURL('h.html?' + 183 { url: getURL('h.html?' +
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 chrome.tabs.update( 266 chrome.tabs.update(
268 tabId, 267 tabId,
269 { url: getURL('i.html?' + 268 { url: getURL('i.html?' +
270 config.testServer.port) }); 269 config.testServer.port) });
271 }, 270 },
272 271
273 ]); 272 ]);
274 }); 273 });
275 }); 274 });
276 }; 275 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698