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

Side by Side Diff: LayoutTests/http/tests/webfont/popup-menu-load-webfont-after-open.html

Issue 1159833003: New SELECT Popup: Recalc style when a web font is loaded (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/forms/resources/picker-common.js ('k') | Source/core/css/CSSFontSelector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 window.enablePixelTesting = true;
5 </script>
6 <script src="../../js-test-resources/js-test.js"></script>
7 <script src="../../forms-test-resources/picker-common.js"></script>
8 <style>
9 @font-face {
10 font-family: 'TestFont';
11 src: url(slow-ahem-loading.cgi);
12 }
13 option {
14 font-family: TestFont;
15 }
16 </style>
17 <select id="menu">
18 <option>foo</option>
19 <option>bar</option>
20 </select>
21 <script>
22 description('Test that fonts loaded after a popup menu is opened triggers a styl e recalc.');
23
24 document.fonts.ready.then(onFontsReady);
25
26 openPicker(menu, function() {}, function () {
27 testFailed('picker didn\'t open')
28 finishJSTest();
29 });
30
31 function onFontsReady() {
32 finishJSTest();
33 }
34 </script>
35 </head>
36 <body>
37 </body>
38 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/resources/picker-common.js ('k') | Source/core/css/CSSFontSelector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698