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

Unified Diff: third_party/WebKit/Source/core/html/parser/CSSPreloadScannerTest.cpp

Issue 2544583003: Ensure CSS scanner does not mark preloads as referenced (Closed)
Patch Set: Created 4 years 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 | « third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/CSSPreloadScannerTest.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/CSSPreloadScannerTest.cpp b/third_party/WebKit/Source/core/html/parser/CSSPreloadScannerTest.cpp
index ff92e2b089bb724a7f831a1a3ecef1cca1e1c64a..428b8935041311e655b1590af299e90c495524a7 100644
--- a/third_party/WebKit/Source/core/html/parser/CSSPreloadScannerTest.cpp
+++ b/third_party/WebKit/Source/core/html/parser/CSSPreloadScannerTest.cpp
@@ -58,6 +58,7 @@ TEST_F(CSSPreloadScannerTest, ScanFromResourceClient) {
const char* data = "@import url('http://127.0.0.1/preload.css');";
resource->appendData(data, strlen(data));
+ EXPECT_EQ(Resource::PreloadNotReferenced, resource->getPreloadResult());
EXPECT_EQ(1u, resourceClient->m_preloads.size());
EXPECT_EQ("http://127.0.0.1/preload.css",
resourceClient->m_preloads.front()->resourceURL());
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698