Amended failing Element#identify test.

This commit is contained in:
Andrew Dupont 2008-04-24 14:22:35 -05:00 committed by Tobie Langel
parent a463068087
commit 2c03d1a837
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,5 @@
* Amended failing Element#identify test.
* Refactor unit tests. Unit tests are now dynamically generated from a JavaScript test file and optional HTML, JS and CSS fixtures. [Tobie Langel]
* Fix issue where Safari improperly reports an element as a descendant of itself.

View File

@ -444,9 +444,11 @@ new Test.Unit.Runner({
testElementIdentify: function() {
var parent = $('identification');
this.assertEqual(parent.down().identify(), 'predefined_id');
this.assertEqual(parent.down(1).identify(), 'anonymous_element_1');
this.assertEqual(parent.down(2).identify(), 'anonymous_element_2');
this.assertEqual(parent.down(3).identify(), 'anonymous_element_4');
this.assert(parent.down(1).identify().startsWith('anonymous_element_'));
this.assert(parent.down(2).identify().startsWith('anonymous_element_'));
this.assert(parent.down(3).identify().startsWith('anonymous_element_'));
this.assert(parent.down(3).id !== parent.down(2).id);
},
testElementClassNameMethod: function() {