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

Unified Diff: chrome/test/data/extensions/api_test/webnavigation/test_getFrame.html

Issue 10805066: Pass the render process id to the FrameNavigationState. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/webnavigation/test_getFrame.html
diff --git a/chrome/test/data/extensions/api_test/webnavigation/test_getFrame.html b/chrome/test/data/extensions/api_test/webnavigation/test_getFrame.html
index 24886f8bf5d3b90aa7b06443992ab0595cd8ec98..36ec7eb299b51662922bcf25d383e88a8861c2dc 100644
--- a/chrome/test/data/extensions/api_test/webnavigation/test_getFrame.html
+++ b/chrome/test/data/extensions/api_test/webnavigation/test_getFrame.html
@@ -1,6 +1,7 @@
<script>
var URL = chrome.extension.getURL("getFrame/a.html");
var tabId = -1;
+var processId = -1;
chrome.test.runTests([
function testGetFrame() {
@@ -13,8 +14,9 @@ chrome.test.runTests([
return;
if (details.url != URL)
return;
+ processId = details.processId;
chrome.webNavigation.getFrame(
- {tabId: tabId, frameId: 0},
+ {tabId: tabId, frameId: 0, processId: processId},
function(details) {
chrome.test.assertEq({errorOccurred: false, url: URL},
details);
@@ -27,7 +29,7 @@ chrome.test.runTests([
function testGetInvalidFrame() {
chrome.webNavigation.getFrame(
- {tabId: tabId, frameId: 1},
+ {tabId: tabId, frameId: 1, processId: processId},
function (details) {
chrome.test.assertEq(null, details);
chrome.test.succeed();
@@ -38,8 +40,12 @@ chrome.test.runTests([
chrome.webNavigation.getAllFrames(
{tabId: tabId},
function (details) {
- chrome.test.assertEq([{errorOccurred: false, frameId: 0, url: URL}],
- details);
+ chrome.test.assertEq(
+ [{errorOccurred: false,
+ frameId: 0,
+ processId: processId,
+ url: URL}],
+ details);
chrome.test.succeed();
});
}

Powered by Google App Engine
This is Rietveld 408576698