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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/resources/network-simulator.php

Issue 1793933002: Don't trigger a link resource fetch on media change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test and made mediaChanged() virtual Created 4 years, 9 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/LayoutTests/http/tests/resources/network-simulator.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/resources/network-simulator.php b/third_party/WebKit/LayoutTests/http/tests/resources/network-simulator.php
index 3de2bb92c538d4c757c6a219e553630295220fdb..0e969a9354dba7ca2ec50b359af484ed3954a7d5 100644
--- a/third_party/WebKit/LayoutTests/http/tests/resources/network-simulator.php
+++ b/third_party/WebKit/LayoutTests/http/tests/resources/network-simulator.php
@@ -44,6 +44,8 @@ function contentType($path)
return "image/jpeg";
if (preg_match("/\.png$/", $path))
return "image/png";
+ if (preg_match("/\.css$/", $path))
+ return "text/css";
return "text/plain";
}

Powered by Google App Engine
This is Rietveld 408576698