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

Unified Diff: Source/WebKit/chromium/tests/WebFrameTest.cpp

Issue 14495011: Revert "Create errors (especially cancellation errors) internally to WebCore, rather" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | « Source/WebKit/chromium/tests/AssociatedURLLoaderTest.cpp ('k') | Source/core/html/PluginDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/tests/WebFrameTest.cpp
diff --git a/Source/WebKit/chromium/tests/WebFrameTest.cpp b/Source/WebKit/chromium/tests/WebFrameTest.cpp
index 1a7b59af1f65ac1238b53924b13a2491ace96c8c..118dfdd4c9a8683b7789a690c91e6d0621abab5a 100644
--- a/Source/WebKit/chromium/tests/WebFrameTest.cpp
+++ b/Source/WebKit/chromium/tests/WebFrameTest.cpp
@@ -1238,6 +1238,18 @@ public:
EXPECT_FALSE(isRedirect);
return WebNavigationPolicyCurrentTab;
}
+
+ virtual WebURLError cancelledError(WebFrame*, const WebURLRequest& request)
+ {
+ // Return a dummy error so the DocumentLoader doesn't assert when
+ // the reload cancels it.
+ WebURLError webURLError;
+ webURLError.domain = "";
+ webURLError.reason = 1;
+ webURLError.isCancellation = true;
+ webURLError.unreachableURL = WebURL();
+ return webURLError;
+ }
};
TEST_F(WebFrameTest, ReloadDoesntSetRedirect)
« no previous file with comments | « Source/WebKit/chromium/tests/AssociatedURLLoaderTest.cpp ('k') | Source/core/html/PluginDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698