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

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: Created 5 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 side-by-side diff with in-line comments
Download patch
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..b9a436167fc52368ca977ea3d2bbe0348543f225
--- /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 {
tkent 2015/05/29 05:41:02 Indentation in this <style> is inconsistent.
keishi 2015/05/29 07:30:51 Done.
+ 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 for FontFaceSet.status attribute');
tkent 2015/05/29 05:41:02 Update the description
keishi 2015/05/29 07:30:51 Done.
+
+document.fonts.ready.then(onFontsReady);
+
+openPicker(menu, function() {}, function () {
+ testFailed('picker didn\'t open')
+ finishJSTest();
+});
+
+function onFontsReady() {
+ finishJSTest();
+}
+</script>
+</head>
+<body>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698