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

Unified Diff: chrome/test/data/extensions/api_test/webnavigation/test_failures.js

Issue 10785018: Send an webNavigation.onErrorOccurred when a load fails after the initial navigation was committed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates 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
« no previous file with comments | « chrome/test/data/extensions/api_test/webnavigation/failures/e.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/test_failures.js
diff --git a/chrome/test/data/extensions/api_test/webnavigation/test_failures.js b/chrome/test/data/extensions/api_test/webnavigation/test_failures.js
index 5f61510eec2925ee52e10025b17c033b046ecf05..49702938927d4d5280aa026ec1db2949b8da3652 100644
--- a/chrome/test/data/extensions/api_test/webnavigation/test_failures.js
+++ b/chrome/test/data/extensions/api_test/webnavigation/test_failures.js
@@ -151,6 +151,41 @@ function runTests() {
["c-onBeforeNavigate", "c-onErrorOccurred"]]);
chrome.tabs.update(tabId, { url: getURL('failures/a.html') });
},
+
+ // Cancel a navigation after it is already committed.
+ function cancel() {
+ expect([
+ { label: "onBeforeNavigate",
+ event: "onBeforeNavigate",
+ details: { frameId: 0,
+ tabId: 0,
+ timeStamp: 0,
+ url: getURL('failures/e.html') }},
+ { label: "onCommitted",
+ event: "onCommitted",
+ details: { frameId: 0,
+ tabId: 0,
+ timeStamp: 0,
+ transitionQualifiers: [],
+ transitionType: "link",
+ url: getURL('failures/e.html') }},
+ { label: "onDOMContentLoaded",
+ event: "onDOMContentLoaded",
+ details: { frameId: 0,
+ tabId: 0,
+ timeStamp: 0,
+ url: getURL('failures/e.html') }},
+ { label: "onErrorOccurred",
+ event: "onErrorOccurred",
+ details: { error: "net::ERR_ABORTED",
+ frameId: 0,
+ tabId: 0,
+ timeStamp: 0,
+ url: getURL('failures/e.html') }}],
+ [["onBeforeNavigate", "onCommitted", "onDOMContentLoaded",
+ "onErrorOccurred"]]);
+ chrome.tabs.update(tabId, { url: getURL('failures/e.html') });
+ },
]);
});
}
« no previous file with comments | « chrome/test/data/extensions/api_test/webnavigation/failures/e.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698