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

Unified Diff: third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp

Issue 2231523002: Make ResourceFetcher return Resources with LoadError instead of nullptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comment from japhet@. Created 4 years, 3 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
Index: third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp b/third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp
index 136068acae4cf0db9790acfa6c5c396a022162f9..79a9c03ff301c5a15706e39f3ffd960e561d5f94 100644
--- a/third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp
@@ -86,7 +86,7 @@ protected:
WebElement webElement = mainFrame()->document().querySelector("img");
ASSERT_TRUE(isHTMLImageElement(webElement));
HTMLImageElement* imageElement = toHTMLImageElement(webElement);
- EXPECT_EQ(loaded, !!imageElement->cachedImage());
+ EXPECT_EQ(loaded, !!imageElement->naturalWidth());
}
const std::string& baseURL() const { return m_baseURL; }

Powered by Google App Engine
This is Rietveld 408576698