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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/subresource_filter/image-allow-disallow-transitions-expected.html

Issue 2535383003: Collapse images disallowed by the Safe Browsing Subresource Filter. (Closed)
Patch Set: Initial draft. 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
Index: third_party/WebKit/LayoutTests/http/tests/subresource_filter/image-allow-disallow-transitions-expected.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/subresource_filter/image-allow-disallow-transitions-expected.html b/third_party/WebKit/LayoutTests/http/tests/subresource_filter/image-allow-disallow-transitions-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..05c61444b8bd1f8992d38728a476a33f9770524f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/subresource_filter/image-allow-disallow-transitions-expected.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<body>
+<script type="text/javascript">
+var STATES = ["primary", "fallback", "collapsed"];
+
+let table = document.createElement("table");
+let headerRow = table.insertRow();
+headerRow.insertCell().innerHTML = "- - - - \\ Final<br>Initial \\";
+for (let finalState of STATES) {
+ headerRow.insertCell().textContent = finalState;
+}
+
+for (let initialState of STATES) {
+ let row = table.insertRow();
+ row.insertCell().textContent = initialState;
+ for (let finalState of STATES) {
+ let cell = row.insertCell();
+ let img = document.createElement("img");
+ if (finalState == "primary")
+ img.src = "resources/alpha.png";
+ else if (finalState == "fallback")
+ img.src = "non-existent.png"
+ cell.appendChild(img);
+ }
+}
+document.body.appendChild(table);
+</script>

Powered by Google App Engine
This is Rietveld 408576698