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

Side by Side Diff: LayoutTests/fast/text-autosizing/font-scale-factor-change.html

Issue 209353003: Clean up handling of autosizing state changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@crap_base
Patch Set: Fix segfault in unit test. Created 6 years, 9 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 <meta name="viewport" content="width=320">
5 <style>
6 html { font-size: 16px; }
7 body { width: 320px; margin: 0; overflow-y: hidden; }
8 </style>
9 <script src="resources/autosizingTest.js"></script>
10 </head>
11 <body>
12 <div>
13 This test verifies that the page updates correctly after a dynamic change to the font scale factor.
14
15 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sapien sapien , tempus id egestas a, consectetur et felis. Ut pharetra mi eget lectus laoreet rutrum. Mauris tellus odio, egestas vitae sodales in, vehicula eget ante. Pellen tesque id egestas arcu. Quisque tellus quam, rhoncus ac elementum vel, volutpat vel felis. Aliquam ut leo dolor, eget egestas tellus. Nunc ut velit gravida nisl fringilla rutrum eget at arcu. Vivamus et pretium mauris.
16 </div>
17 <script>
18 if (window.testRunner)
19 testRunner.waitUntilDone();
20
21 setTimeout(function() {
22 setFontScaleFactor(2);
23
24 if (window.testRunner)
25 testRunner.notifyDone();
26 }, 0);
27
28 </script>
29 </body>
30 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/text-autosizing/font-scale-factor-change-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698