aboutsummaryrefslogtreecommitdiffstats
path: root/tests/control.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-03 14:45:43 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-03 14:45:43 -0500
commitd79e96ca09562b07d40fc39d14938967ab908a64 (patch)
treed9519391960982896f4a99b0ab02643b95fe82d8 /tests/control.rs
parentee52eb364d071d4dc9c1e2dae22bcf8848d9d14c (diff)
downloadvt100-rust-d79e96ca09562b07d40fc39d14938967ab908a64.tar.gz
vt100-rust-d79e96ca09562b07d40fc39d14938967ab908a64.zip
rename some methods
Diffstat (limited to 'tests/control.rs')
-rw-r--r--tests/control.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/control.rs b/tests/control.rs
index accc17e..7e45add 100644
--- a/tests/control.rs
+++ b/tests/control.rs
@@ -20,7 +20,7 @@ fn bs() {
assert_eq!(screen.cell(0, 3).unwrap().contents(), "");
assert_eq!(screen.cell(1, 0).unwrap().contents(), "");
assert_eq!(
- screen.window_contents(0, 0, 23, 79),
+ screen.contents(0, 0, 23, 79),
"faa\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
);
@@ -32,7 +32,7 @@ fn bs() {
assert_eq!(screen.cell(1, 4).unwrap().contents(), "");
assert_eq!(screen.cell(2, 0).unwrap().contents(), "");
assert_eq!(
- screen.window_contents(0, 0, 23, 79),
+ screen.contents(0, 0, 23, 79),
"faa\nbarx\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
);
}
@@ -55,7 +55,7 @@ fn tab() {
assert_eq!(screen.cell(0, 10).unwrap().contents(), "r");
assert_eq!(screen.cell(0, 11).unwrap().contents(), "");
assert_eq!(
- screen.window_contents(0, 0, 23, 79),
+ screen.contents(0, 0, 23, 79),
"foo bar\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
);
}
@@ -78,7 +78,7 @@ fn lf_with(b: u8) {
assert_eq!(screen.cell(1, 5).unwrap().contents(), "r");
assert_eq!(screen.cell(1, 6).unwrap().contents(), "");
assert_eq!(
- screen.window_contents(0, 0, 23, 79),
+ screen.contents(0, 0, 23, 79),
"foo\n bar\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
);
}
@@ -110,7 +110,7 @@ fn cr() {
assert_eq!(screen.cell(0, 4).unwrap().contents(), "");
assert_eq!(screen.cell(1, 0).unwrap().contents(), "");
assert_eq!(
- screen.window_contents(0, 0, 23, 79),
+ screen.contents(0, 0, 23, 79),
"baro\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
);
}