Permalink
Browse files

Added EM, STRONG, and DL support.

Now only 383 failures.
  • Loading branch information...
1 parent 2b5b607 commit 986caabb052c89a8311f4451085b1dc3721795cb @TreyE TreyE committed with Tom Copeland Aug 31, 2010
Showing with 1,693 additions and 3,158 deletions.
  1. +42 −0 lib/safariwatir.rb
  2. +678 −1,301 results.html
  3. +973 −1,857 results.old.html
View
@@ -256,10 +256,18 @@ class Dd < ContentElement
def tag; "DD"; end
end
+ class Dl < ContentElement
+ def tag; "DL"; end
+ end
+
class Dt < ContentElement
def tag; "DT"; end
end
+ class Em < ContentElement
+ def tag; "EM"; end
+ end
+
class Image < HtmlElement
include Clickable
@@ -430,6 +438,10 @@ class Span < ContentElement
def tag; "SPAN"; end
end
+ class Strong < ContentElement
+ def tag; "STRONG"; end
+ end
+
class Map < InputElement
def tag; "MAP"; end
end
@@ -623,6 +635,16 @@ def divs
end
end
+ def dl(how, what)
+ Dl.new(self, scripter, how, what)
+ end
+
+ def dls
+ child_tag_list do |idx|
+ Dl.new(self, scripter, :index, idx)
+ end
+ end
+
def dt(how, what)
Dt.new(self, scripter, how, what)
end
@@ -633,6 +655,16 @@ def dts
end
end
+ def em(how, what)
+ Em.new(self, scripter, how, what)
+ end
+
+ def ems
+ child_tag_list do |idx|
+ Em.new(self, scripter, :index, idx)
+ end
+ end
+
def p(how, what)
P.new(self, scripter, how, what)
end
@@ -785,6 +817,16 @@ def spans
end
end
+ def strong(how, what)
+ Strong.new(self, scripter, how, what)
+ end
+
+ def strongs
+ child_tag_list do |idx|
+ Strong.new(self, scripter, :index, idx)
+ end
+ end
+
def table(how, what)
Table.new(self, scripter, how, what)
end
Oops, something went wrong.

0 comments on commit 986caab

Please sign in to comment.