Changeset 1661
- Timestamp:
- 07/04/05 15:05:40 (3 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/assertions.rb (modified) (1 diff)
- trunk/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb (modified) (1 diff)
- trunk/actionpack/lib/action_controller/vendor/html-scanner/html/version.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r1648 r1661 116 116 * Support :render option for :verify #1440 [TobiasLuetke] 117 117 118 * Updated vendor copy of html-scanner lib to 0.5. 1, for bug fixes and optimizations118 * Updated vendor copy of html-scanner lib to 0.5.2, for bug fixes and optimizations. The :content option may be used as expected--to find a tag whose textual content is a particular value--in assert_tag, now. 119 119 120 120 * Changed test requests to come from 0.0.0.0 instead of 127.0.0.1 such that they don't trigger debugging screens on exceptions, but instead call rescue_action_in_public trunk/actionpack/lib/action_controller/assertions.rb
r1659 r1661 192 192 # to match on the children, and only matching children will be 193 193 # counted. 194 # * <tt>:content</tt>: (text nodes only). The content of the node must 195 # match the given value. 194 # * <tt>:content</tt>: the textual content of the node must match the 195 # given value. This will not match HTML tags in the body of a 196 # tag--only text. 196 197 # 197 198 # Conditions are matched using the following algorithm: trunk/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb
r1416 r1661 380 380 def match(conditions) 381 381 conditions = validate_conditions(conditions) 382 383 # only Text nodes have content384 return false if conditions[:content]382 383 # check content of child nodes 384 return false unless children.find { |child| child.match(conditions[:content]) } if conditions[:content] 385 385 386 386 # test the name trunk/actionpack/lib/action_controller/vendor/html-scanner/html/version.rb
r1416 r1661 4 4 MAJOR = 0 5 5 MINOR = 5 6 TINY = 16 TINY = 2 7 7 8 8 STRING = [ MAJOR, MINOR, TINY ].join(".")