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

Unified Diff: third_party/WebKit/LayoutTests/fast/repaint/turbulence-filter-repaint.html

Issue 2294633002: Add new filter repaint test for turbulence, rebaseline existing test (Closed)
Patch Set: Fix indentation, add simple test description to help find errors Created 4 years, 4 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/fast/repaint/turbulence-filter-repaint.html
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/turbulence-filter-repaint.html b/third_party/WebKit/LayoutTests/fast/repaint/turbulence-filter-repaint.html
new file mode 100644
index 0000000000000000000000000000000000000000..7a1c56f2d1ad8d93af0dfd9c0bad5bede252a740
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/repaint/turbulence-filter-repaint.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ var img = document.getElementById('hashtagNoFilter');
+ img.setAttribute('id', 'filtered');
+}
+onload = runRepaintAndPixelTest;
+</script>
+<style>
+* {
+ margin: 0;
+ padding: 0;
+}
+img {
+ position: absolute;
+ top: 50px;
+ left: 50px;
+ width: 100px;
+ height: 100px;
+ margin: 50px;
+}
+#filtered {
+ filter: url(#turbulence);
+}
+#width {
+ position: absolute;
+ left: 90px;
+ top: 50px;
+ width: 120px;
+ height: 1em;
+ border-right: 1px solid black;
+ border-left: 1px solid black;
+ text-align: center;
+}
+</style>
+crbug.com/640264: Pass if the repaint rect covers the filtered region and there is no red.
+<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1">
+ <defs>
+ <filter id="turbulence">
+ <feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="1"/>
+ </filter>
+ </defs>
+</svg>
+<img id="hashtagNoFilter" src="resources/ducky.png">
+<div id="width" class="ruler">filtered width</div>

Powered by Google App Engine
This is Rietveld 408576698