| 547 | |
| 548 | #[test] |
| 549 | fn test_sdl_console_colors() { |
| 550 | let mut test = SdlTest::default(); |
| 551 | |
| 552 | test.console().print("Default colors").unwrap(); |
| 553 | test.console().print("").unwrap(); |
| 554 | test.console().set_color(Some(14), Some(4)).unwrap(); |
| 555 | test.console().print("Cyan on blue").unwrap(); |
| 556 | test.console().set_color(None, Some(1)).unwrap(); |
| 557 | test.console().print("Default on red").unwrap(); |
| 558 | test.console().set_color(Some(11), None).unwrap(); |
| 559 | test.console().print("Yellow on default").unwrap(); |
| 560 | test.console().set_color(None, None).unwrap(); |
| 561 | test.console().print("").unwrap(); |
| 562 | test.console().print("Back to default colors").unwrap(); |
| 563 | |
| 564 | test.verify("sdl/src", "sdl-colors"); |
| 565 | } |
| 566 | |
| 567 | #[test] |
| 568 | fn test_sdl_console_scroll_and_wrap() { |