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

Unified Diff: content/test/data/gpu/screenshot_sync_divs.html

Issue 1679593002: Reenable and strengthen screenshot_sync test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 10 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 | « content/test/data/gpu/screenshot_sync_canvas.html ('k') | content/test/gpu/gpu_tests/screenshot_sync.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/gpu/screenshot_sync_divs.html
diff --git a/content/test/data/gpu/screenshot_sync_divs.html b/content/test/data/gpu/screenshot_sync_divs.html
new file mode 100644
index 0000000000000000000000000000000000000000..2e3638a87f160d8a10ac07c9a8db47502d1dfd64
--- /dev/null
+++ b/content/test/data/gpu/screenshot_sync_divs.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Synchronized screenshot test with divs</title>
+<style>
+ html, body { margin: 0; }
+</style>
+</head>
+<body>
+ <div id="backgrounddiv" style="position: absolute; left; 0px; top: 0px; width: 256px; height: 256px; will-change: transform; background-color: rgb(0, 255, 0);">.</div>
+ <div id="testdiv" style="position: absolute; left; 0px; top: 0px; width: 192px; height: 192px; will-change: transform; background-color: rgb(255, 0, 0);">.</div>
vmiura 2016/02/06 02:44:37 Please inset inner div so it does not also start a
Ken Russell (switch to Gerrit) 2016/02/06 02:45:15 Done.
+
+ <script>
+ function draw(r, g, b) {
+ document.getElementById('testdiv').style.background =
+ 'rgb(' + r + ', ' + g + ', ' + b + ')';
+ document.getElementById('backgrounddiv').style.background =
+ 'rgb(' + r + ', ' + g + ', ' + b + ')';
+ }
+ </script>
+ </body>
+</html>
« no previous file with comments | « content/test/data/gpu/screenshot_sync_canvas.html ('k') | content/test/gpu/gpu_tests/screenshot_sync.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698