asserts on the content of the view i.e. the stuff within the view's frame.
(matcher *TextMatcher)
| 304 | |
| 305 | // asserts on the content of the view i.e. the stuff within the view's frame. |
| 306 | func (self *ViewDriver) Content(matcher *TextMatcher) *ViewDriver { |
| 307 | self.t.matchString(matcher, fmt.Sprintf("%s: Unexpected content.", self.context), |
| 308 | func() string { |
| 309 | return self.getView().Buffer() |
| 310 | }, |
| 311 | ) |
| 312 | |
| 313 | return self |
| 314 | } |
| 315 | |
| 316 | // asserts on the selected line of the view. If you are selecting a range, |
| 317 | // you should use the SelectedLines method instead. |
no test coverage detected