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

Unified Diff: LayoutTests/fast/css/fontface-properties.html

Issue 23717059: [Font Load Events] Implement FontFaceSet methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | « no previous file | LayoutTests/fast/css/fontloader-css-change-in-callback.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/fontface-properties.html
diff --git a/LayoutTests/fast/css/fontface-properties.html b/LayoutTests/fast/css/fontface-properties.html
index 948eb8624194ecce54d297ebacfa21f5dd047200..5c59bdcd789dda7fda1df268d17fbde188b2b851 100644
--- a/LayoutTests/fast/css/fontface-properties.html
+++ b/LayoutTests/fast/css/fontface-properties.html
@@ -16,15 +16,8 @@
<script>
description('Test getting/setting FontFace properties.');
-window.jsTestIsAsync = true;
-
function runTests() {
- document.fonts.onloadingdone = verify;
- document.fonts.loadFont({'font': 'italic small-caps 10px Ahem'});
-}
-
-function verify(e) {
- ahemFace = e.fontfaces[0];
+ ahemFace = document.fonts.match('italic small-caps 10px Ahem')[0];
shouldBeEqualToString('ahemFace.family', 'Ahem');
shouldBeEqualToString('ahemFace.style', 'italic');
shouldBeEqualToString('ahemFace.weight', '300');
@@ -81,15 +74,12 @@ function verify(e) {
shouldThrow("face.unicodeRange = 'U+'", syntaxError);
shouldThrow("face.variant = '???'", syntaxError);
shouldThrow("face.featureSettings = null", syntaxError);
-
- finishJSTest();
}
if (document.fonts)
runTests();
else {
testFailed('document.fonts does not exist');
- finishJSTest();
}
</script>
</head>
« no previous file with comments | « no previous file | LayoutTests/fast/css/fontloader-css-change-in-callback.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698