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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/hidpi/clip-text-in-hidpi.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 <span style="background-color:red; -webkit-background-clip:text; -webkit-text-fi ll-color:transparent">This text should be nice and sharp. devicePixelRatio is: < /span>
3 <span id="test"></span>
3 <script> 4 <script>
4 function startTest() {
5 if (window.testRunner) {
6 testRunner.waitUntilDone();
7 testRunner.setBackingScaleFactor(2, finishTest);
8 }
9 }
10
11 function finishTest() { 5 function finishTest() {
12 var test = document.getElementById("test"); 6 var test = document.getElementById("test");
13 test.innerHTML = window.devicePixelRatio; 7 test.innerHTML = window.devicePixelRatio;
14 setTimeout(function() { testRunner.notifyDone(); }, 0); 8 setTimeout(function() { testRunner.notifyDone(); }, 0);
15 } 9 }
10 if (window.testRunner) {
11 testRunner.waitUntilDone();
12 testRunner.setBackingScaleFactor(2, finishTest);
13 }
16 </script> 14 </script>
17 </head>
18 <body onload="startTest();">
19 <span style="background-color:red; -webkit-background-clip:text; -webkit-tex t-fill-color:transparent">This text should be nice and sharp. devicePixelRatio i s: </span>
20 <span id="test"></span>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698