Index: Source/modules/fetch/FetchResponseDataTest.cpp |
diff --git a/Source/modules/fetch/FetchResponseDataTest.cpp b/Source/modules/fetch/FetchResponseDataTest.cpp |
index b7a7d9bfa1ca14ba95e3be793dbe511dce52eeb9..ac8718697b7eef5742d2346622102e73752cf314 100644 |
--- a/Source/modules/fetch/FetchResponseDataTest.cpp |
+++ b/Source/modules/fetch/FetchResponseDataTest.cpp |
@@ -78,4 +78,15 @@ TEST_F(FetchResponseDataTest, ToWebServiceWorkerOpaqueType) |
CheckHeaders(webResponse); |
} |
+TEST_F(FetchResponseDataTest, ToWebServiceWorkerOpaqueRedirectType) |
+{ |
+ WebServiceWorkerResponse webResponse; |
+ FetchResponseData* internalResponse = createInternalResponse(); |
+ FetchResponseData* opaqueRedirectResponseData = internalResponse->createOpaqueRedirectFilteredResponse(); |
+ |
+ opaqueRedirectResponseData->populateWebServiceWorkerResponse(webResponse); |
+ EXPECT_EQ(WebServiceWorkerResponseTypeOpaqueRedirect, webResponse.responseType()); |
+ CheckHeaders(webResponse); |
+} |
+ |
} // namespace WebCore |