aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/style/parsing/position.rs
diff options
context:
space:
mode:
authorJ. Ryan Stinnett <jryans@gmail.com>2017-04-13 14:53:59 +0800
committerJ. Ryan Stinnett <jryans@gmail.com>2017-04-14 17:22:14 +0800
commit0936dd24d0f4145742a530085830ab7d62fedd73 (patch)
tree9c28b0d86a72c8026ec8cf98135a9f8a6e03b5e5 /tests/unit/style/parsing/position.rs
parentf7896fd80bf42082d29f82d5393dc1f175735bb4 (diff)
downloadservo-0936dd24d0f4145742a530085830ab7d62fedd73.tar.gz
servo-0936dd24d0f4145742a530085830ab7d62fedd73.zip
Centralize ParserContext for tests
To simplify adding additional data to `ParserContext`, this moves test usages to a few shared locations, instead of being spread across many tests. MozReview-Commit-ID: 1OahV797eq
Diffstat (limited to 'tests/unit/style/parsing/position.rs')
-rw-r--r--tests/unit/style/parsing/position.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/unit/style/parsing/position.rs b/tests/unit/style/parsing/position.rs
index 04da426ded8..e5e8aa6379d 100644
--- a/tests/unit/style/parsing/position.rs
+++ b/tests/unit/style/parsing/position.rs
@@ -2,11 +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/. */
-use cssparser::Parser;
-use media_queries::CSSErrorReporterTest;
use parsing::parse;
-use style::parser::{Parse, ParserContext};
-use style::stylesheets::{CssRuleType, Origin};
+use style::parser::Parse;
use style::values::specified::position::*;
use style_traits::ToCss;