relevance / blue-ridge

Framework for JavaScript Testing (currently a Rails Plugin)
http://groups.google.com/group/blueridgejs
MIT License
480 stars 40 forks source link

Use of $ in test_runner.js a problem when using jQuery.noConfict() #25

Closed aiwilliams closed 14 years ago

aiwilliams commented 14 years ago

See http://github.com/relevance/blue-ridge/blob/master/lib/test_runner.js#L39

That $.trim works better as window.jQuery.trim when I'm using prototype.js. Once I do, I get a different problem:

"test_runner.js", line 39: uncaught JavaScript runtime exception: TypeError: Cannot find function children in object Element #182 LI.

aiwilliams commented 14 years ago

As you likely know almost immediately, until all '$' references in that file are replaced with window.jQuery (or whatever), the runner does not work too with with prototype.js.

karnowski commented 14 years ago

Adam, thanks for catching this! Fixed.