Skip to content

Commit

Permalink
Make area structs accessible from area tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Jan 11, 2017
1 parent 980dde7 commit d3be70b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions components/script/test.rs
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/script/htmlareaelement.rs
Expand Up @@ -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() {
Expand Down

0 comments on commit d3be70b

Please sign in to comment.