[Rails] Re: Testing alternate css for printing

2009-05-09 Thread Colin Law
Many thanks for the suggestions, I think maybe I will just stick with checking the class for the moment. I suppose the only thing that should make it fail would be an accidental edit of the stylesheet or somehow overriding the display property with another style. Thinking about it there are lots

[Rails] Re: Testing alternate css for printing

2009-05-09 Thread Marnen Laibow-Koser
Colin Law wrote: [...] >> * Use JavaScript to check that display:hidden is properly set. > > > I cannot see how to integrate this into an automated test. Hmm, gotta think about that some more. But there should be a way. > > >> >> * Generate a PDF file with the browser's Print command, then

[Rails] Re: Testing alternate css for printing

2009-05-08 Thread Colin Law
2009/5/8 Marnen Laibow-Koser > > 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 th

[Rails] Re: Testing alternate css for printing

2009-05-08 Thread Marnen Laibow-Koser
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. * Generate a PDF file with the browser's Print command, then parse it somehow. *