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

Side by Side Diff: third_party/WebKit/LayoutTests/csspaint/geometry-background-image.html

Issue 2868003002: CSSPaint: Move layout tests in csspaint/ to http/tests/csspaint/ (Closed)
Patch Set: rebase Created 3 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/run-after-layout-and-paint.js"></script>
5 <script src="resources/test-runner-geometry-logging.js"></script>
6 <style>
7 div {
8 background-image: paint(logging-green);
9 background-color: red;
10 }
11 </style>
12 <script>
13 function runTest() {
14 testRunnerGeometryLogging([{
15 func: function(el) {
16 el.style.width = '100px';
17 el.style.height = '100px';
18 },
19 expected: {width: 100, height: 100},
20 }, {
21 func: function(el) {
22 el.style.width = '200px';
23 el.style.height = '200px';
24 },
25 expected: {width: 200, height: 200},
26 }, {
27 func: function(el) {
28 el.style.width = '100px';
29 el.style.height = '100px';
30 if (window.internals)
31 window.internals.setPageScaleFactor(2);
32 },
33 expected: {width: 100, height: 100},
34 }]);
35 }
36 </script>
37 </head>
38 <body onload="runTest()">
39 <p>This tests the geometry information in the paint callback.</p>
40 <p>See the devtools console for test output.</p>
41 </body>
42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698