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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/forms/resources/picker-common.js ('k') | Source/core/css/CSSFontSelector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/webfont/popup-menu-load-webfont-after-open.html
diff --git a/LayoutTests/http/tests/webfont/popup-menu-load-webfont-after-open.html b/LayoutTests/http/tests/webfont/popup-menu-load-webfont-after-open.html
new file mode 100644
index 0000000000000000000000000000000000000000..ca97b38fa795ce195e39669d9b30beca993cf27b
--- /dev/null
+++ b/LayoutTests/http/tests/webfont/popup-menu-load-webfont-after-open.html
@@ -0,0 +1,38 @@
+<html>
+<head>
+<script>
+window.enablePixelTesting = true;
+</script>
+<script src="../../js-test-resources/js-test.js"></script>
+<script src="../../forms-test-resources/picker-common.js"></script>
+<style>
+@font-face {
+ font-family: 'TestFont';
+ src: url(slow-ahem-loading.cgi);
+}
+option {
+ font-family: TestFont;
+}
+</style>
+<select id="menu">
+ <option>foo</option>
+ <option>bar</option>
+</select>
+<script>
+description('Test that fonts loaded after a popup menu is opened triggers a style recalc.');
+
+document.fonts.ready.then(onFontsReady);
+
+openPicker(menu, function() {}, function () {
+ testFailed('picker didn\'t open')
+ finishJSTest();
+});
+
+function onFontsReady() {
+ finishJSTest();
+}
+</script>
+</head>
+<body>
+</body>
+</html>
« 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