summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/webview/settings/setFontFamily.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlvisual/webview/settings/setFontFamily.qml')
-rw-r--r--tests/auto/declarative/qmlvisual/webview/settings/setFontFamily.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/webview/settings/setFontFamily.qml b/tests/auto/declarative/qmlvisual/webview/settings/setFontFamily.qml
new file mode 100644
index 0000000..823469f
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/webview/settings/setFontFamily.qml
@@ -0,0 +1,11 @@
+import Qt 4.6
+import org.webkit 1.0
+
+WebView {
+ url: "test.html"
+ width: 300
+ height: 300
+ settings.standardFontFamily: font.name
+ // WebKit doesn't seem to honour any other FontFamily settings
+ FontLoader { id: font; source: "tarzeau_ocr_a.ttf" }
+}