(t *testing.T)
| 145 | } |
| 146 | |
| 147 | func TestRunNegativeMSAAPanic(t *testing.T) { |
| 148 | defer func() { |
| 149 | r := recover() |
| 150 | if r == nil { |
| 151 | t.Error("No panic when MSAA was set to -5") |
| 152 | } |
| 153 | if r != "MSAA has to be greater or equal to 0" { |
| 154 | t.Errorf("Wrong panic when MSAA was set to -5, got: %v", r) |
| 155 | } |
| 156 | }() |
| 157 | Run(RunOptions{ |
| 158 | NoRun: true, |
| 159 | HeadlessMode: true, |
| 160 | MSAA: -5, |
| 161 | }, &testScene{}) |
| 162 | } |
| 163 | |
| 164 | func TestRunStandardInputs(t *testing.T) { |
| 165 | var buf bytes.Buffer |