diff options
-rw-r--r-- | lib/blink/type.rb | 3 | ||||
-rw-r--r-- | test/types/tc_type.rb | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/lib/blink/type.rb b/lib/blink/type.rb index 57b9e0f3f..f603c5e24 100644 --- a/lib/blink/type.rb +++ b/lib/blink/type.rb @@ -42,6 +42,9 @@ class Blink::Type < Blink::Element @name = :blink # a little fakery, since Blink itself isn't a type @namevar = :notused + @states = [] + @parameters = [:notused] + @allowedmethods = [:noop,:debug] @@metaparams = [ diff --git a/test/types/tc_type.rb b/test/types/tc_type.rb index 9cfb1f421..cd36a4ec0 100644 --- a/test/types/tc_type.rb +++ b/test/types/tc_type.rb @@ -11,6 +11,10 @@ require 'test/unit' class TestType < Test::Unit::TestCase def test_typemethods + assert_nothing_raised() { + Blink::Type.buildstatehash + } + Blink::Type.eachtype { |type| name = nil assert_nothing_raised() { @@ -29,6 +33,18 @@ class TestType < Test::Unit::TestCase assert( type.namevar ) + + assert_not_nil( + type.states + ) + + assert_not_nil( + type.validstates + ) + + assert( + type.validparameter(type.namevar) + ) } end end |