Skip to content

Commit

Permalink
moar
Browse files Browse the repository at this point in the history
  • Loading branch information
jfitisoff committed Jul 14, 2018
1 parent 16fd2e8 commit 60f84eb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions lib/dev/element_mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def class_map
end.to_h
end

# TODO: Watir::RadioSet
def method_map
mmap = {}
unprocessed = []
Expand Down
4 changes: 1 addition & 3 deletions lib/insite/constants.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

module Insite
METHOD_MAP = {Watir::Rect=>[:rect],
Watir::Menu=>[:menu],
Expand Down Expand Up @@ -169,7 +168,6 @@ module Insite
Watir::Use=>[:use],
Watir::TableCaption=>[:caption],
Watir::FieldSet=>[:fieldset, :field_set],
Watir::RadioSet=>[:radio_set],
Watir::FieldSetCollection=>[:fieldsets, :field_sets],
Watir::Input=>[:input],
Watir::Output=>[:output],
Expand Down Expand Up @@ -316,7 +314,7 @@ module Insite
bdis colgroup div font h6s kbds menuitems optgroups radial_gradient select_list svgs time
bdo colgroups divs fonts hatchpath keygen menus option radial_gradients select_lists switch times
bdos cols dl footer hatchpaths keygens mesh options radio selects switches titles
blockquote cursor dls footers head label meshes output radio_set small symbol tr
blockquote cursor dls footers head label meshes output small symbol tr
blockquotes cursors dt foreign_object header labels meshgradient outputs radios smalls symbols track
body data dts foreign_objects headers legend meshgradients p rb solidcolor table tracks
bodys datalist element form heads legends meshpatch param rbs solidcolors tables trs
Expand Down
1 change: 0 additions & 1 deletion lib/insite/element/generated/element_map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ module Insite
"Insite::RadialGradient"=>[:radial_gradient],
"Insite::RadialGradientCollection"=>[:radial_gradients],
"Insite::Radio"=>[:radio],
"Insite::RadioSet"=>[:radio_set],
"Insite::RadioCollection"=>[:radios],
"Insite::Rect"=>[:rect],
"Insite::RectCollection"=>[:rects],
Expand Down
8 changes: 4 additions & 4 deletions spec/element_instance_method_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
before(:all) { @s = new_angular_material_session }
after(:all) { @s.close }
let(:s) { @s }
let(:elem) { @s.mat_chip }
let(:elem) { @s.mat_chip_list.elements.first }

Insite::METHOD_MAP.each do |k, v|
v.each do |mth|
it "responds to \##{mth}" do
expect(
elem.send(mth)
).to be_truthy
tmp = elem.send(mth)
expect(tmp).to be_truthy
expect(tmp).to respond_to :collection?
end
end
end
Expand Down

0 comments on commit 60f84eb

Please sign in to comment.