Introduce a script::test module to expose the APIs needed for unit tests.

This commit is contained in:
Ms2ger 2016-06-08 11:55:47 +02:00
parent b843be4975
commit 86d59212fe
5 changed files with 68 additions and 22 deletions

View file

@ -13,7 +13,7 @@ use msg::constellation_msg::CONTROL;
#[cfg(target_os = "macos")]
use msg::constellation_msg::SUPER;
use script::clipboard_provider::DummyClipboardContext;
use script::dom::bindings::str::DOMString;
use script::test::DOMString;
use script::textinput::{TextInput, TextPoint, Selection, Lines, Direction, SelectionDirection};
fn text_input(lines: Lines, s: &str) -> TextInput<DummyClipboardContext> {