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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/css/image-value-cached.html

Issue 2168903002: Set request context when restoring cached CSSImageValue resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/css/resources/image-value-cached-iframe.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/css/image-value-cached.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/css/font-face-src-cached.html b/third_party/WebKit/LayoutTests/http/tests/css/image-value-cached.html
similarity index 53%
copy from third_party/WebKit/LayoutTests/http/tests/css/font-face-src-cached.html
copy to third_party/WebKit/LayoutTests/http/tests/css/image-value-cached.html
index e48c7b6ead14f4139aba01368e3eed92bbcad9b9..132d6778d87c125c47ccb06f512359474184dd27 100644
--- a/third_party/WebKit/LayoutTests/http/tests/css/font-face-src-cached.html
+++ b/third_party/WebKit/LayoutTests/http/tests/css/image-value-cached.html
@@ -3,32 +3,31 @@
<head>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
-<link rel="stylesheet" href="resources/font-face-via-https.css">
+<link rel="stylesheet" href="resources/image-value-via-https.css">
</head>
<body>
-<p>Outer page text</p>
<iframe></iframe>
<script>
async_test(function(t) {
window.addEventListener('load', t.step_func(function() {
if (window.internals) {
- // Check that the font face is in the Resource::Cached state.
+ // Check that the image is in the Resource::Cached state.
assert_true(window.internals.isLoadingFromMemoryCache(
- 'https://localhost:8443/css/resources/cors-ahem.php'))
+ 'https://localhost:8443/css/resources/abe.png'))
}
var iframe = document.querySelector('iframe');
// This will cause a renderer crash if DCHECKs are enabled and the request
- // for restoring the font face has SSL errors and doesn't have the
- // WebURLRequest::RequestContextFont context (crbug.com/624474).
- iframe.src = 'resources/font-face-src-cached-iframe.html';
+ // for restoring the image has SSL errors and doesn't have the
+ // WebURLRequest::RequestContextImage context (crbug.com/630215).
+ iframe.src = 'resources/image-value-cached-iframe.html';
iframe.addEventListener('load', t.step_func(function() {
t.done();
}));
}));
-}, 'Test using cached CSS font face src value resources (see ' +
- 'CSSFontFaceSrcValue::restoreCachedResourceIfNeeded)');
+}, 'Test using cached CSS image value resources (see ' +
+ 'CSSImageValue::restoreCachedResourceIfNeeded)');
</script>
</body>
</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/css/resources/image-value-cached-iframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698