| 457 | end |
| 458 | |
| 459 | def test_7 |
| 460 | |
| 461 | a = MyAction::new |
| 462 | |
| 463 | assert_equal(a.is_effective_visible?, true) |
| 464 | a.hidden = true |
| 465 | assert_equal(a.is_effective_visible?, false) |
| 466 | a.hidden = false |
| 467 | assert_equal(a.is_effective_visible?, true) |
| 468 | a.visible = false |
| 469 | assert_equal(a.is_effective_visible?, false) |
| 470 | a.visible = true |
| 471 | assert_equal(a.is_effective_visible?, true) |
| 472 | a.dyn_visible = false |
| 473 | assert_equal(a.is_effective_visible?, false) |
| 474 | a.dyn_visible = true |
| 475 | assert_equal(a.is_effective_visible?, true) |
| 476 | |
| 477 | assert_equal(a.is_effective_enabled?, true) |
| 478 | a.enabled = false |
| 479 | assert_equal(a.is_effective_enabled?, false) |
| 480 | a.enabled = true |
| 481 | assert_equal(a.is_effective_enabled?, true) |
| 482 | a.dyn_enabled = false |
| 483 | assert_equal(a.is_effective_enabled?, false) |
| 484 | a.dyn_enabled = true |
| 485 | assert_equal(a.is_effective_enabled?, true) |
| 486 | |
| 487 | end |
| 488 | |
| 489 | end |
| 490 | |