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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/loading/resources/reference-css-no-cache.xhtml

Issue 2353903002: {CSS,XSL}StyleSheetResource should mark their clients as finished on checkNotify (Closed)
Patch Set: yhirano style 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/LayoutTests/http/tests/loading/resources/reference-css-no-cache.xhtml
diff --git a/third_party/WebKit/LayoutTests/http/tests/loading/resources/reference-css-no-cache.xhtml b/third_party/WebKit/LayoutTests/http/tests/loading/resources/reference-css-no-cache.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..86c61fc761726c25b1916b70ceac9fb08ca2e024
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/loading/resources/reference-css-no-cache.xhtml
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="./no-cache-xslt.php" type="text/xsl"?>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<link rel="stylesheet" type="text/css" href="./no-cache-css.php" />
+</head>
+<body>
+<div id="markred">This text should be red.</div>
+<div id="markgreen" style="">This text should be green.</div>
+<script>
+window.addEventListener("message", function() {
+ const divRed = document.getElementById("markred");
+ const divGreen = document.getElementById("markgreen");
+ var styleRed = getComputedStyle(divRed, "");
+ var styleGreen = getComputedStyle(divGreen, "");
+ window.top.postMessage(window.name + " " + styleRed.color.toString() + " " + styleGreen.color.toString(), "*");
+});
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698