aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/tests
diff options
context:
space:
mode:
Diffstat (limited to 'components/gfx/tests')
-rw-r--r--components/gfx/tests/font_context.rs8
-rw-r--r--components/gfx/tests/font_template.rs7
-rw-r--r--components/gfx/tests/text_util.rs2
3 files changed, 1 insertions, 16 deletions
diff --git a/components/gfx/tests/font_context.rs b/components/gfx/tests/font_context.rs
index d4dea69597d..6be4cbe263b 100644
--- a/components/gfx/tests/font_context.rs
+++ b/components/gfx/tests/font_context.rs
@@ -2,13 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-extern crate app_units;
-extern crate gfx;
-extern crate servo_arc;
-extern crate servo_atoms;
-extern crate style;
-extern crate webrender_api;
-
use app_units::Au;
use gfx::font::{
fallback_font_families, FontDescriptor, FontFamilyDescriptor, FontFamilyName, FontSearchScope,
@@ -31,6 +24,7 @@ use style::values::computed::font::{
};
use style::values::computed::font::{FontStretch, FontWeight, SingleFontFamily};
use style::values::generics::font::FontStyle;
+use webrender_api;
struct TestFontSource {
handle: FontContextHandle,
diff --git a/components/gfx/tests/font_template.rs b/components/gfx/tests/font_template.rs
index 8d1935f738d..132e067cf1a 100644
--- a/components/gfx/tests/font_template.rs
+++ b/components/gfx/tests/font_template.rs
@@ -2,13 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#[cfg(not(target_os = "macos"))]
-extern crate gfx;
-#[cfg(not(target_os = "macos"))]
-extern crate servo_atoms;
-#[cfg(not(target_os = "macos"))]
-extern crate style;
-
// Test doesn't yet run on Mac, see https://github.com/servo/servo/pull/19928 for explanation.
#[cfg(not(target_os = "macos"))]
#[test]
diff --git a/components/gfx/tests/text_util.rs b/components/gfx/tests/text_util.rs
index c35a06a2e2f..297823041d8 100644
--- a/components/gfx/tests/text_util.rs
+++ b/components/gfx/tests/text_util.rs
@@ -2,8 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-extern crate gfx;
-
use gfx::text::util::{transform_text, CompressionMode};
#[test]