Make area structs accessible from area tests

This commit is contained in:
Manish Goregaokar 2017-01-11 12:22:11 -08:00
parent 980dde7e15
commit d3be70b4de
2 changed files with 5 additions and 2 deletions

View file

@ -10,6 +10,10 @@ pub use dom::bindings::cell::DOMRefCell;
pub use dom::bindings::js::JS; pub use dom::bindings::js::JS;
pub use dom::node::Node; pub use dom::node::Node;
pub mod area {
pub use dom::htmlareaelement::{Area, Shape};
}
pub mod size_of { pub mod size_of {
use dom::characterdata::CharacterData; use dom::characterdata::CharacterData;
use dom::element::Element; use dom::element::Element;

View file

@ -8,8 +8,7 @@
// except according to those terms. // except according to those terms.
use euclid::point::Point2D; use euclid::point::Point2D;
use script::dom::htmlareaelement::Area; use script::test::area::{Area, Shape};
use script::dom::htmlareaelement::Shape;
#[test] #[test]
fn garbage_input() { fn garbage_input() {