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

Unified Diff: LayoutTests/http/tests/css/css-resources-referrer-expected.html

Issue 314893003: Set referrer for CSS resources (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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: LayoutTests/http/tests/css/css-resources-referrer-expected.html
diff --git a/LayoutTests/http/tests/css/css-resources-referrer-expected.html b/LayoutTests/http/tests/css/css-resources-referrer-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..0f1252b905d00f2b31dcd2a2d7793ff23d6bd9b5
--- /dev/null
+++ b/LayoutTests/http/tests/css/css-resources-referrer-expected.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<style>
+@font-face {
+ font-family: face;
+ src: local('Ahem');
+}
+.image {
+ background-image: url('../resources/square100.png');
+}
+</style>
+
+<p>This page tests whether the referrer of css resources are set to the URL of the stylesheet.</p>
+
+<p>Following text should be rendered with ahem font.</p>
+
+<div style="font-family: face;">
+ Text for webfont defined in document.
+</div>
+<div style="font-family: face;">
+ Text for webfont defined in stylesheet.
+</div>
+<div style="font-family: face;">
+ Text for webfont defined in imported stylesheet.
+</div>
+
+<p>Background image of following text should be dark blue.</p>
+
+<div class="image">Image in document</div>
+<div class="image">Image in stylesheet</div>
+<div class="image">Image in imported stylesheet</div>
+
+<div class="image">Image set in document</div>
+<div class="image">Image set in stylesheet</div>
+<div class="image">Image set in imported stylesheet</div>
« no previous file with comments | « LayoutTests/http/tests/css/css-resources-referrer.html ('k') | LayoutTests/http/tests/css/css-resources-referrer-srcdoc.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698