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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/hidpi/gradient-with-scaled-ancestor.html

Issue 1908463002: Modernize fast/hidpi layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add NeedsManualRebaseline Created 4 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
1 <html> 1 <!DOCTYPE html>
2 <head> 2 <body style="overflow:hidden;">
3 <script> 3 <div style="transform:scale(1.5); -webkit-transform-origin:top left;">
4 function startTest() { 4 <div style="height:300px;width:300px;background-image:-webkit-repeating- linear-gradient(top left, red 10%, blue 30%);border:1px solid">
5 if (window.testRunner) { 5 </div>
6 testRunner.waitUntilDone(); 6 </div>
7 testRunner.setBackingScaleFactor(2, finishTest); 7 <script>
8 }
9 }
10
11 function finishTest() { 8 function finishTest() {
12 setTimeout(function() { testRunner.notifyDone(); }, 0); 9 setTimeout(function() { testRunner.notifyDone(); }, 0);
13 } 10 }
14 </script> 11 if (window.testRunner) {
15 </head> 12 testRunner.waitUntilDone();
16 <body onload="startTest();" style="overflow:hidden;"> 13 testRunner.setBackingScaleFactor(2, finishTest);
17 <div style="transform:scale(1.5); -webkit-transform-origin:top left;"> 14 }
18 <div style="height:300px;width:300px;background-image:-webkit-repeat ing-linear-gradient(top left, red 10%, blue 30%);border:1px solid"> 15 </script>
19 </div>
20 </div>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698