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

Unified Diff: chrome/test/data/extensions/api_test/webnavigation/navigation2/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
« no previous file with comments | « chrome/test/data/extensions/api_test/webnavigation/navigation1/test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/webnavigation/navigation2/test.html
diff --git a/chrome/test/data/extensions/api_test/webnavigation/navigation2/test.html b/chrome/test/data/extensions/api_test/webnavigation/navigation2/test.html
index e97a67a4f784e70c4ca01691c6c58002cfdda198..f55b927aa1c507e7f43ef5dcccf6bc225bb5ced9 100644
--- a/chrome/test/data/extensions/api_test/webnavigation/navigation2/test.html
+++ b/chrome/test/data/extensions/api_test/webnavigation/navigation2/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);
@@ -107,7 +112,12 @@ chrome.tabs.getSelected(null, function(tab) {
frameId: 1,
tabId: tabId,
timeStamp: 0,
- url: getURL('iframeFail/c.html') }]]);
+ url: getURL('iframeFail/c.html') }],
+ [ "onCompleted",
+ { frameId: 0,
+ tabId: tabId,
+ timeStamp: 0,
+ url: getURL('iframeFail/d.html') }]]);
chrome.tabs.update(tabId, { url: getURL('iframeFail/d.html') });
},
@@ -150,6 +160,16 @@ chrome.tabs.getSelected(null, function(tab) {
tabId: tabId,
timeStamp: 0,
url: getURL('iframeFail/b.html') }],
+ [ "onCompleted",
+ { frameId: 1,
+ tabId: tabId,
+ timeStamp: 0,
+ url: getURL('iframeFail/b.html') }],
+ [ "onCompleted",
+ { frameId: 0,
+ tabId: tabId,
+ timeStamp: 0,
+ url: getURL('iframeFail/a.html') }],
[ "onBeforeNavigate",
{ frameId: 1,
requestId: 0,
« no previous file with comments | « chrome/test/data/extensions/api_test/webnavigation/navigation1/test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698