Sha256: 12791fadbb05d21e742897fda3a4d1c3eadb7923042909030eb65daf4ac5a739
Contents?: true
Size: 801 Bytes
Versions: 3
Compression:
Stored size: 801 Bytes
Contents
describe "Element#show" do before(:all) do elem = Element.new :div, :id => "element_show_spec" elem.html = [ "<div id='testing_show_hidden' style='display: none;'></div>", "<div id='testing_show_visible'></div>" ].join("") Document.body << elem end it "should show elements on the page" do Document[:testing_show_hidden].show Document[:testing_show_hidden].visible?.should == true Document[:testing_show_hidden].hidden?.should == false end it "should leave already visible elements visible" do Document[:testing_show_visible].show Document[:testing_show_visible].visible?.should == true Document[:testing_show_visible].hidden?.should == false end after :all do Document[:element_show_spec].remove end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opal-0.2.2 | opals/opal/browser/spec/element/show_spec.rb |
opal-0.2.0 | opals/opal/browser/spec/element/show_spec.rb |
opal-0.1.0 | opals/browser/spec/element/show_spec.rb |