| 400 | end |
| 401 | |
| 402 | def test_3 |
| 403 | |
| 404 | # standalone layout view |
| 405 | lv = RBA::LayoutView::new |
| 406 | |
| 407 | cv = lv.cellview(lv.create_layout(1)) |
| 408 | cv.layout.create_cell("TOP") |
| 409 | cv.cell = cv.layout.top_cell |
| 410 | |
| 411 | assert_equal(lv.cellview(cv.index).cell.name, "TOP") |
| 412 | |
| 413 | # insert layer with default initializer |
| 414 | lp = lv.insert_layer(lv.begin_layers) |
| 415 | lp.fill_color = 0xffff31cc |
| 416 | assert_equal(lv.begin_layers.current.fill_color, 0xffff31cc) |
| 417 | |
| 418 | lv.clear_layers |
| 419 | |
| 420 | lp = lv.insert_layer(0, lv.begin_layers) |
| 421 | lp.fill_color = 0xffff31cc |
| 422 | assert_equal(lv.begin_layers.current.fill_color, 0xffff31cc) |
| 423 | |
| 424 | # should not segfault |
| 425 | begin |
| 426 | lv.insert_layer(42, lv.begin_layers(42)) |
| 427 | assert_equal(true, false) |
| 428 | rescue => ex |
| 429 | end |
| 430 | |
| 431 | end |
| 432 | |
| 433 | def test_4 |
| 434 |
nothing calls this directly
no test coverage detected