Index: third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp |
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp |
index 4149ab56de284ed3ae2472874b93979613ff0dc8..98c5229b1cc0a617934c40288078611ad245bb3b 100644 |
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp |
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp |
@@ -116,17 +116,15 @@ class ResourceFetcherTest : public ::testing::Test {}; |
TEST_F(ResourceFetcherTest, StartLoadAfterFrameDetach) { |
KURL secureURL(ParsedURLString, "https://secureorigin.test/image.png"); |
- // Try to request a url. The request should fail, and a resource in an error |
- // state should be returned, and no resource should be present in the cache. |
+ // Try to request a url. The request should fail, no resource should be |
+ // returned, and no resource should be present in the cache. |
ResourceFetcher* fetcher = ResourceFetcher::create(nullptr); |
ResourceRequest resourceRequest(secureURL); |
resourceRequest.setRequestContext(WebURLRequest::RequestContextInternal); |
FetchRequest fetchRequest = |
FetchRequest(resourceRequest, FetchInitiatorInfo()); |
Resource* resource = RawResource::fetch(fetchRequest, fetcher); |
- ASSERT_TRUE(resource); |
- EXPECT_TRUE(resource->errorOccurred()); |
- EXPECT_TRUE(resource->resourceError().isAccessCheck()); |
+ EXPECT_FALSE(resource); |
EXPECT_FALSE(memoryCache()->resourceForURL(secureURL)); |
// Start by calling startLoad() directly, rather than via requestResource(). |