Sha256: f926a7474a95e6526e6ea4c3d56fc679e978820dd50974f8a617a240e4a904a2

Contents?: true

Size: 440 Bytes

Versions: 8

Compression:

Stored size: 440 Bytes

Contents

class AccessibleApp < TestApp
  get '/accessible' do
    '<form><label for="foo">Foo</label>' +
    '<input type="text" name="foo" id="foo"/></form>' +
    '<a href="/inaccessible">inaccessible</a>'
  end

  get '/inaccessible' do
    '<div role="zomg"></div>'
  end

  get '/excluded' do
    '<form><input type="text" name="foo" id="foo"/></form>'
  end

  get '/alert' do
    '<a href="#" onclick="alert(\'whoa!\')">Alert!</a>'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
capybara-accessible-0.1.9 spec/accessible_app.rb
capybara-accessible-0.1.8 spec/accessible_app.rb
capybara-accessible-0.1.7 spec/accessible_app.rb
capybara-accessible-0.1.6 spec/accessible_app.rb
capybara-accessible-0.1.5 spec/accessible_app.rb
capybara-accessible-0.1.4 spec/accessible_app.rb
capybara-accessible-0.1.1 spec/accessible_app.rb
capybara-accessible-0.1.0 spec/accessible_app.rb