aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/gfx/lib.rs
diff options
context:
space:
mode:
authorAdrian Heine <mail@adrianheine.de>2016-01-04 10:36:14 +0100
committerAdrian Heine <mail@adrianheine.de>2016-01-04 15:23:26 +0100
commit3f61d63e72c57f318807e06409084bf04fa08ded (patch)
tree8e86dc75572e4afd8bb86bb1f169ba4bd9dc0ab8 /tests/unit/gfx/lib.rs
parent5ad9207a99295284f1525844b734f189d1a25255 (diff)
downloadservo-3f61d63e72c57f318807e06409084bf04fa08ded.tar.gz
servo-3f61d63e72c57f318807e06409084bf04fa08ded.zip
Add failing test for FontCacheTask::add_web_font
This test tries to add a web font to the `FontCacheTask`. The added web font corresponds to the following CSS font definition: ``` @font-face { font-family: "test family"; src: local(test font face); } ``` This test fails, since `FontCacheTask` tries to get the value for the key "test font face" from `self.web_families`, but previously initialized a value for the key "test family".
Diffstat (limited to 'tests/unit/gfx/lib.rs')
-rw-r--r--tests/unit/gfx/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/gfx/lib.rs b/tests/unit/gfx/lib.rs
index 9a5040b6fe1..3bac7b06edc 100644
--- a/tests/unit/gfx/lib.rs
+++ b/tests/unit/gfx/lib.rs
@@ -3,5 +3,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
extern crate gfx;
+extern crate ipc_channel;
+extern crate style;
+#[cfg(test)] mod font_cache_task;
#[cfg(test)] mod text_util;