Changeset 8704
- Timestamp:
- 01/23/08 12:45:28 (8 months ago)
- Files:
-
- spinoffs/prototype/trunk/CHANGELOG (modified) (1 diff)
- spinoffs/prototype/trunk/test/unit/selector.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/trunk/CHANGELOG
r8703 r8704 1 1 *SVN* 2 3 * Add tests for Element#match. [Tobie Langel] 2 4 3 5 * Fix Element#writeAttribute to work with 'cellspacing' and 'cellpadding' attributes in IE. Closes #9983. [/dev/urandom, Tobie Langel] spinoffs/prototype/trunk/test/unit/selector.html
r8692 r8704 230 230 testElementMatch: function() {with(this) { 231 231 var span = $('dupL1'); 232 232 233 // tests that should pass 233 234 assert(span.match('span')); … … 249 250 assert(!$('link_2').match('a[rel^=external]')); 250 251 assert($('link_1').match('a[rel^=external]')); 252 253 assert(span.match({ match: function(element) { return true }}), 'custom selector'); 254 assert(!span.match({ match: function(element) { return false }}), 'custom selector'); 251 255 }}, 252 256