aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/script/textinput.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/script/textinput.rs')
-rw-r--r--tests/unit/script/textinput.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/script/textinput.rs b/tests/unit/script/textinput.rs
index 75a49c824dc..c5071f36090 100644
--- a/tests/unit/script/textinput.rs
+++ b/tests/unit/script/textinput.rs
@@ -23,11 +23,11 @@ fn text_input(lines: Lines, s: &str) -> TextInput<DummyClipboardContext> {
#[test]
fn test_set_content_ignores_max_length() {
let mut textinput = TextInput::new(
- Lines::Single, "".to_owned(), DummyClipboardContext::new(""), Some(1)
+ Lines::Single, DOMString::from(""), DummyClipboardContext::new(""), Some(1)
);
- textinput.set_content("mozilla rocks".to_owned());
- assert_eq!(textinput.get_content(), "mozilla rocks".to_owned());
+ textinput.set_content(DOMString::from("mozilla rocks"));
+ assert_eq!(textinput.get_content(), DOMString::from("mozilla rocks"));
}
#[test]