(t *testing.T)
| 312 | } |
| 313 | |
| 314 | func TestSetTitleHeadless(t *testing.T) { |
| 315 | exp := "Title set to: test title\n" |
| 316 | Run(RunOptions{ |
| 317 | HeadlessMode: true, |
| 318 | NoRun: true, |
| 319 | }, &testScene{}) |
| 320 | var buf bytes.Buffer |
| 321 | log.SetOutput(&buf) |
| 322 | if SetTitle("test title"); !strings.HasSuffix(buf.String(), exp) { |
| 323 | t.Errorf("Did not properly log title set. Got: %v, wanted: %v", buf.String(), exp) |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | func TestGetTitle(t *testing.T) { |
| 328 | Run(RunOptions{ |