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

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

Issue 4448003: Implement onCompleted event for the webNavigation API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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/navigation1/test.html
diff --git a/chrome/test/data/extensions/api_test/webnavigation/navigation1/test.html b/chrome/test/data/extensions/api_test/webnavigation/navigation1/test.html
index f8a0e3f5b88ce1d1953ccd68aa51b757f6e0b6b5..cbbfd99b1ffaca2dac8660d887f72b2024e0c50a 100644
--- a/chrome/test/data/extensions/api_test/webnavigation/navigation1/test.html
+++ b/chrome/test/data/extensions/api_test/webnavigation/navigation1/test.html
@@ -47,6 +47,11 @@ chrome.experimental.webNavigation.onDOMContentLoaded.addListener(
captureEvent("onDOMContentLoaded", details);
});
+chrome.experimental.webNavigation.onCompleted.addListener(
+ function(details) {
+ captureEvent("onCompleted", details);
+});
+
chrome.experimental.webNavigation.onErrorOccurred.addListener(
function(details) {
captureEvent("onErrorOccurred", details);
@@ -77,6 +82,11 @@ chrome.tabs.getSelected(null, function(tab) {
{ frameId: 0,
tabId: tabId,
timeStamp: 0,
+ url: getURL('simpleLoad/a.html') }],
+ [ "onCompleted",
+ { frameId: 0,
+ tabId: tabId,
+ timeStamp: 0,
url: getURL('simpleLoad/a.html') }]]);
chrome.tabs.update(tabId, { url: getURL('simpleLoad/a.html') });
},
@@ -104,6 +114,11 @@ chrome.tabs.getSelected(null, function(tab) {
tabId: tabId,
timeStamp: 0,
url: getURL('clientRedirect/a.html') }],
+ [ "onCompleted",
+ { frameId: 0,
+ tabId: tabId,
+ timeStamp: 0,
+ url: getURL('clientRedirect/a.html') }],
[ "onBeforeNavigate",
{ frameId: 0,
requestId: 0,
@@ -121,6 +136,11 @@ chrome.tabs.getSelected(null, function(tab) {
{ frameId: 0,
tabId: tabId,
timeStamp: 0,
+ url: getURL('clientRedirect/b.html') }],
+ [ "onCompleted",
+ { frameId: 0,
+ tabId: tabId,
+ timeStamp: 0,
url: getURL('clientRedirect/b.html') }]]);
chrome.tabs.update(tabId, { url: getURL('clientRedirect/a.html') });
},
@@ -147,6 +167,11 @@ chrome.tabs.getSelected(null, function(tab) {
tabId: tabId,
timeStamp: 0,
url: getURL('forwardBack/a.html') }],
+ [ "onCompleted",
+ { frameId: 0,
+ tabId: tabId,
+ timeStamp: 0,
+ url: getURL('forwardBack/a.html') }],
[ "onBeforeNavigate",
{ frameId: 0,
requestId: 0,
@@ -165,6 +190,11 @@ chrome.tabs.getSelected(null, function(tab) {
tabId: tabId,
timeStamp: 0,
url: getURL('forwardBack/b.html') }],
+ [ "onCompleted",
+ { frameId: 0,
+ tabId: tabId,
+ timeStamp: 0,
+ url: getURL('forwardBack/b.html') }],
[ "onBeforeNavigate",
{ frameId: 0,
requestId: 0,
@@ -182,6 +212,11 @@ chrome.tabs.getSelected(null, function(tab) {
{ frameId: 0,
tabId: tabId,
timeStamp: 0,
+ url: getURL('forwardBack/a.html') }],
+ [ "onCompleted",
+ { frameId: 0,
+ tabId: tabId,
+ timeStamp: 0,
url: getURL('forwardBack/a.html') }]]);
chrome.tabs.update(tabId, { url: getURL('forwardBack/a.html') });
},
@@ -226,6 +261,16 @@ chrome.tabs.getSelected(null, function(tab) {
tabId: tabId,
timeStamp: 0,
url: getURL('iframe/b.html') }],
+ [ "onCompleted",
+ { frameId: 1,
+ tabId: tabId,
+ timeStamp: 0,
+ url: getURL('iframe/b.html') }],
+ [ "onCompleted",
+ { frameId: 0,
+ tabId: tabId,
+ timeStamp: 0,
+ url: getURL('iframe/a.html') }],
[ "onBeforeNavigate",
{ frameId: 1,
requestId: 0,
@@ -243,6 +288,11 @@ chrome.tabs.getSelected(null, function(tab) {
{ frameId: 1,
tabId: tabId,
timeStamp: 0,
+ url: getURL('iframe/c.html') }],
+ [ "onCompleted",
+ { frameId: 1,
+ tabId: tabId,
+ timeStamp: 0,
url: getURL('iframe/c.html') }]]);
chrome.tabs.update(tabId, { url: getURL('iframe/a.html') });
},
@@ -294,6 +344,11 @@ chrome.tabs.getSelected(null, function(tab) {
tabId: tabId,
timeStamp: 0,
url: getURL('iframe/f.html') }],
+ [ "onCompleted",
+ { frameId: 1,
+ tabId: tabId,
+ timeStamp: 0,
+ url: getURL('iframe/e.html') }],
[ "onCommitted",
{ frameId: 2,
tabId: tabId,
@@ -306,6 +361,16 @@ chrome.tabs.getSelected(null, function(tab) {
tabId: tabId,
timeStamp: 0,
url: getURL('iframe/f.html') }],
+ [ "onCompleted",
+ { frameId: 2,
+ tabId: tabId,
+ timeStamp: 0,
+ url: getURL('iframe/f.html') }],
+ [ "onCompleted",
+ { frameId: 0,
+ tabId: tabId,
+ timeStamp: 0,
+ url: getURL('iframe/d.html') }],
[ "onBeforeNavigate",
{ frameId: 2,
requestId: 0,
@@ -323,6 +388,11 @@ chrome.tabs.getSelected(null, function(tab) {
{ frameId: 2,
tabId: tabId,
timeStamp: 0,
+ url: getURL('iframe/g.html') }],
+ [ "onCompleted",
+ { frameId: 2,
+ tabId: tabId,
+ timeStamp: 0,
url: getURL('iframe/g.html') }]]);
chrome.tabs.update(tabId, { url: getURL('iframe/d.html') });
},
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/test/data/extensions/api_test/webnavigation/navigation2/test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698