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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/fontfaceset-check-platform-fonts.html

Issue 2629543004: Convert some fontfaceset tests to use jsharness (Closed)
Patch Set: Fix minor formatting issue Created 3 years, 10 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: third_party/WebKit/LayoutTests/fast/css/fontfaceset-check-platform-fonts.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/fontfaceset-check-platform-fonts.html b/third_party/WebKit/LayoutTests/fast/css/fontfaceset-check-platform-fonts.html
index 3fd6289a743489ff987caa39501f066c286c0e0e..5263db68bc96285957927eece2c16649cbaeeabc 100644
--- a/third_party/WebKit/LayoutTests/fast/css/fontfaceset-check-platform-fonts.html
+++ b/third_party/WebKit/LayoutTests/fast/css/fontfaceset-check-platform-fonts.html
@@ -1,11 +1,14 @@
<!DOCTYPE html>
-<script src="../../resources/js-test.js"></script>
+<script src='../../resources/testharness.js'></script>
+<script src='../../resources/testharnessreport.js'></script>
<script>
-description('Tests FontFaceSet#check() returns true for platform fonts');
-shouldBeTrue("document.fonts.check('10px Arial');");
-shouldBeFalse("document.fonts.check('10px Nonexistent');");
-shouldBeTrue("document.fonts.check('10px sans-serif');");
-shouldBeTrue("document.fonts.check('10px Nonexistent, monospace');");
-shouldBeFalse("document.fonts.check('10px Nonexistent1, Nonexistent2');");
+test(() => {
+ assert_true(document.fonts.check('10px Arial'));
+ assert_false(document.fonts.check('10px Nonexistent'));
+ assert_true(document.fonts.check('10px sans-serif'));
+ assert_true(document.fonts.check('10px Nonexistent, monospace'));
+ assert_false(document.fonts.check('10px Nonexistent1, Nonexistent2'));
+}, 'Tests FontFaceSet#check() returns true for platform fonts');
+
</script>

Powered by Google App Engine
This is Rietveld 408576698