aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-01-19 11:53:49 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2018-01-20 15:33:15 +0100
commitc2ed7c963262e58f4222d7b958da04b773e20014 (patch)
tree27f9a249fa19908325af743d3f2b25cd21bd5889
parenta17a1fd06e25578f503c5d15ce662d1bf0d142f2 (diff)
downloadservo-c2ed7c963262e58f4222d7b958da04b773e20014.tar.gz
servo-c2ed7c963262e58f4222d7b958da04b773e20014.zip
Merge gfx and gfx_tests
-rw-r--r--Cargo.lock10
-rw-r--r--components/gfx/Cargo.toml2
-rw-r--r--components/gfx/tests/text_util.rs (renamed from tests/unit/gfx/text_util.rs)2
-rw-r--r--components/gfx/text/glyph.rs2
-rw-r--r--python/servo/testing_commands.py2
-rw-r--r--tests/unit/gfx/Cargo.toml16
-rw-r--r--tests/unit/gfx/lib.rs9
7 files changed, 6 insertions, 37 deletions
diff --git a/Cargo.lock b/Cargo.lock
index cdd4c1f1f46..cd08ec8f173 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1102,16 +1102,6 @@ dependencies = [
]
[[package]]
-name = "gfx_tests"
-version = "0.0.1"
-dependencies = [
- "cssparser 0.23.2 (registry+https://github.com/rust-lang/crates.io-index)",
- "gfx 0.0.1",
- "ipc-channel 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
- "style 0.0.1",
-]
-
-[[package]]
name = "gfx_traits"
version = "0.0.1"
dependencies = [
diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml
index c9220a2c080..5eea73f321f 100644
--- a/components/gfx/Cargo.toml
+++ b/components/gfx/Cargo.toml
@@ -9,6 +9,8 @@ publish = false
[lib]
name = "gfx"
path = "lib.rs"
+test = false
+doctest = false
[features]
unstable = ["simd"]
diff --git a/tests/unit/gfx/text_util.rs b/components/gfx/tests/text_util.rs
index f0253179145..7729a6f78a7 100644
--- a/tests/unit/gfx/text_util.rs
+++ b/components/gfx/tests/text_util.rs
@@ -2,6 +2,8 @@
* 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::{CompressionMode, transform_text};
#[test]
diff --git a/components/gfx/text/glyph.rs b/components/gfx/text/glyph.rs
index e765f48ee20..0c3386aca7d 100644
--- a/components/gfx/text/glyph.rs
+++ b/components/gfx/text/glyph.rs
@@ -392,7 +392,7 @@ impl<'a> GlyphInfo<'a> {
/// Simple glyphs are stored inline in the `entry_buffer`, detailed glyphs are
/// stored as pointers into the `detail_store`.
///
-/// ~~~ignore
+/// ~~~ascii
/// +- GlyphStore --------------------------------+
/// | +---+---+---+---+---+---+---+ |
/// | entry_buffer: | | s | | s | | s | s | | d = detailed
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index dfe78c0f36b..21ff295ac11 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -231,7 +231,7 @@ class MachCommands(CommandBase):
else:
test_patterns.append(test)
- self_contained_tests = ["msg", "selectors"]
+ self_contained_tests = ["gfx", "msg", "selectors"]
if not packages:
packages = set(os.listdir(path.join(self.context.topdir, "tests", "unit"))) - set(['.DS_Store'])
packages |= set(self_contained_tests)
diff --git a/tests/unit/gfx/Cargo.toml b/tests/unit/gfx/Cargo.toml
deleted file mode 100644
index 46495840ce0..00000000000
--- a/tests/unit/gfx/Cargo.toml
+++ /dev/null
@@ -1,16 +0,0 @@
-[package]
-name = "gfx_tests"
-version = "0.0.1"
-authors = ["The Servo Project Developers"]
-license = "MPL-2.0"
-
-[lib]
-name = "gfx_tests"
-path = "lib.rs"
-doctest = false
-
-[dependencies]
-cssparser = "0.23.0"
-gfx = {path = "../../../components/gfx"}
-ipc-channel = "0.9"
-style = {path = "../../../components/style"}
diff --git a/tests/unit/gfx/lib.rs b/tests/unit/gfx/lib.rs
deleted file mode 100644
index a8120a50138..00000000000
--- a/tests/unit/gfx/lib.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * 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(test)]
-
-extern crate gfx;
-
-mod text_util;