(t *testing.T)
| 112 | } |
| 113 | |
| 114 | func TestGameWidthHeight(t *testing.T) { |
| 115 | Run(RunOptions{ |
| 116 | HeadlessMode: true, |
| 117 | NoRun: true, |
| 118 | Width: 100, |
| 119 | Height: 50, |
| 120 | }, &testScene{}) |
| 121 | if GameWidth() != 100 { |
| 122 | t.Error("Width didn't return the proper value.") |
| 123 | } |
| 124 | if GameHeight() != 50 { |
| 125 | t.Error("Height didn't return the proper value.") |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | func TestSetFPSLimit(t *testing.T) { |
| 130 | Run(RunOptions{ |
nothing calls this directly
no test coverage detected