diff --git a/components/script/test.rs b/components/script/test.rs index 31353b5ffa3..83523c47817 100644 --- a/components/script/test.rs +++ b/components/script/test.rs @@ -10,6 +10,10 @@ pub use dom::bindings::cell::DOMRefCell; pub use dom::bindings::js::JS; pub use dom::node::Node; +pub mod area { + pub use dom::htmlareaelement::{Area, Shape}; +} + pub mod size_of { use dom::characterdata::CharacterData; use dom::element::Element; diff --git a/tests/unit/script/htmlareaelement.rs b/tests/unit/script/htmlareaelement.rs index 91abc612576..b7257e8b540 100644 --- a/tests/unit/script/htmlareaelement.rs +++ b/tests/unit/script/htmlareaelement.rs @@ -8,8 +8,7 @@ // except according to those terms. use euclid::point::Point2D; -use script::dom::htmlareaelement::Area; -use script::dom::htmlareaelement::Shape; +use script::test::area::{Area, Shape}; #[test] fn garbage_input() {