2009/5/8 Marnen Laibow-Koser <rails-mailing-l...@andreas-s.net>

>
> Colin Law wrote:
> [...]
> > I cannot check that they actually will be hidden when printing.  Is
> > there
> > any way to do this?
>
> Several ideas come to mind.
>
> * Use JavaScript to check that display:hidden is properly set.


I cannot see how to integrate this into an automated test.


>
> * Generate a PDF file with the browser's Print command, then parse it
> somehow.
> * The same, but start with a reference rendering, get a checksum from
> the reference rendering, and raise a flag if the checksum changes.


The same question here, I would like this to be integrated into an automated
test, would it be possible to invoke a browser from the rails test
environment to do the print to PDF?  Would I want to?

Maybe I am asking the impossible, or at least the 'not worth the effort'.


>
>
> I hope these are a shove in the right direction...
>
>
>
> >
> > Any suggestions will be appreciated.
> >
> > Colin
>
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> mar...@marnen.org
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to