Skip to content

Commit

Permalink
Fixed a couple of 'return' statements.
Browse files Browse the repository at this point in the history
Signed-off-by: Tobie Langel <tobie.langel@gmail.com>
  • Loading branch information
Ihab Awad authored and tobie committed Feb 19, 2009
1 parent aaaeda0 commit 9fcf207
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/unit/dom_test.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ new Test.Unit.Runner({
'document.body.offsetHeight', 'document.body.offsetWidth', 'document.body.offsetHeight', 'document.body.offsetWidth',
'document.body.offsetTop', 'document.body.offsetLeft' 'document.body.offsetTop', 'document.body.offsetLeft'
].inject([], function(properties, prop) { ].inject([], function(properties, prop) {
if(!self.screen && prop.include('self.screen')) return; if (!self.screen && prop.include('self.screen')) return properties;
if (!document.body && prop.include('document.body')) return; if (!document.body && prop.include('document.body')) return properties;
properties.push(prop); properties.push(prop);
if (prop.include('.body') && document.documentElement) if (prop.include('.body') && document.documentElement)
properties.push(prop.sub('.body', '.documentElement')); properties.push(prop.sub('.body', '.documentElement'));
return properties; return properties;
}), }),


Expand All @@ -48,7 +48,7 @@ new Test.Unit.Runner({


testDollarFunction: function() { testDollarFunction: function() {
this.assertUndefined($()); this.assertUndefined($());

this.assertNull(document.getElementById('noWayThisIDExists')); this.assertNull(document.getElementById('noWayThisIDExists'));
this.assertNull($('noWayThisIDExists')); this.assertNull($('noWayThisIDExists'));


Expand All @@ -61,7 +61,7 @@ new Test.Unit.Runner({
this.assertRespondsTo('hide', elt); this.assertRespondsTo('hide', elt);
this.assertRespondsTo('childOf', elt); this.assertRespondsTo('childOf', elt);
}, },

testGetElementsByClassName: function() { testGetElementsByClassName: function() {
if (document.getElementsByClassName.toString().include('[native code]')) { if (document.getElementsByClassName.toString().include('[native code]')) {
this.info("browser uses native getElementsByClassName; skipping tests"); this.info("browser uses native getElementsByClassName; skipping tests");
Expand Down

0 comments on commit 9fcf207

Please sign in to comment.