Re: [yapcom] Talk Display is Blocked in Tests

[prev] [thread] [next] [lurker] [Date index for 2003/12/20]

From: Gabor Szabo
Subject: Re: [yapcom] Talk Display is Blocked in Tests
Date: 15:29 on 20 Dec 2003

On Fri, 19 Dec 2003, Shlomi Fish wrote:

> Hi!
>
> I'm trying to write a test to check if long lines of a talk are wrapped. Here
> it is:
>
>     unlike($result, qr/<pre>.*[^\n]{80}.*<\/pre>/s, "Make sure there are no
> long lines");
> }
> >>>
>
> The problem is that I get an "Access to administrators only" notice and so it
> breaks the test. How can I make sure the test will still run?

The user who submitted the proposal should be able to look at it as well.
Please check if this is the case.

Also once we set the accepted bit the abstract should be visible to any
user. Unfortunately I have not written any tests for this yet.

That's about your issue.
On the other hand I think you cannot really check how a browser will show
you the long lines unless you look at it.

The solution to the long line problem would be either to break the lines
by the script or to remove the <pre> tags. In the latter case we have to
deal with the formatting people already introduced e.g. numbered lists.
For this we might replae all "\n" by "<br />".



Gabor

Generated at 17:35 on 06 Jun 2004 by mariachi 0.52