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

$.print unavailable/incorrect #7

Closed stuarthalloway closed 15 years ago

stuarthalloway commented 15 years ago

The $.print function is alternately unavailable / underpowered. If you just add a call to $.print in the middle of a test, it fails (even though the jquery.print.js appears to have been included.)

If you call $.print from within a screw.matcher, it prints but not the value you would expect. For an array of ints I am seeing [{}] instead of [1,2,3]. This might be cause by smoke.core incorrectly trying to autodetect $.print availability

karnowski commented 15 years ago

I too am not seeing the $.print function in either command-line or in-browser tests. It's missing when using Firebug's console too. jQuery's internals are clearly using it, though, and Firebug shows the jquery.print.js is clearly loaded. Not sure what's going on.

This may be related to issue #5 where JavaScript libraries seem to be loaded twice.

karnowski commented 15 years ago

Ah, this is what I get for verifying a bug on Stu's machine. Come to find out, Stu was requiring jQuery twice. This caused the $.print function to be unavailable. I checked on my machine, and it's fine.