Layout Regression Test for bug# 331684

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Layout Regression Test for bug# 331684

agb5
I want to contribute to mozille by providing a Layout Regression Test for
bug# 331684
I have a simple test case, but the bug is visible only then the browser
window is resized.
Also the bug depends on the width of an element being set in javascript
onload.
Can the automated layout regression tests system handle such a complex case
?

This is the test html: http://www.jigzone.com/xmockup/bugs/resizeTestFF.php

What is the best way to add this code as a standard regression test?


_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout
Reply | Threaded
Open this post in threaded view
|

Re: Layout Regression Test for bug# 331684

Boris Zbarsky
agb5 wrote:
> I have a simple test case, but the bug is visible only then the browser
> window is resized.
> Also the bug depends on the width of an element being set in javascript
> onload.
> Can the automated layout regression tests system handle such a complex case
> ?

It can't really do window resizing well.  It _can_ handle things happening onload.

Do you see the bug if you change the width of the body via script instead of
resizing the browser window?  So something like:

// do onload stuff
document.body.offsetWidth;  // flush out layout
// modify width of body via document.body.style.width = "200px" or whatever

> What is the best way to add this code as a standard regression test?

If there's a web page that shows the bug without user interaction, it can just
be added to the regression tests.

-Boris
_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout
Reply | Threaded
Open this post in threaded view
|

Re: Layout Regression Test for bug# 331684

agb5
Boris,
I modified the page to use script as you suggested and the bug is evident
without user interaction.
http://www.jigzone.com/xmockup/bugs/resizeTestFF.php

Now are there any volunteers to fix the bug?
I would have a go myself but it might take me months to set it up and figure
it out.

-Adam.


"Boris Zbarsky" <[hidden email]> wrote in message
news:-[hidden email]...

> agb5 wrote:
>> I have a simple test case, but the bug is visible only then the browser
>> window is resized.
>> Also the bug depends on the width of an element being set in javascript
>> onload.
>> Can the automated layout regression tests system handle such a complex
>> case ?
>
> It can't really do window resizing well.  It _can_ handle things happening
> onload.
>
> Do you see the bug if you change the width of the body via script instead
> of resizing the browser window?  So something like:
>
> // do onload stuff
> document.body.offsetWidth;  // flush out layout
> // modify width of body via document.body.style.width = "200px" or
> whatever
>
>> What is the best way to add this code as a standard regression test?
>
> If there's a web page that shows the bug without user interaction, it can
> just be added to the regression tests.
>
> -Boris


_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout
Reply | Threaded
Open this post in threaded view
|

Re: Layout Regression Test for bug# 331684

Martijn-4
On 7/17/06, agb5 <[hidden email]> wrote:
> Boris,
> I modified the page to use script as you suggested and the bug is evident
> without user interaction.
> http://www.jigzone.com/xmockup/bugs/resizeTestFF.php
>
> Now are there any volunteers to fix the bug?
> I would have a go myself but it might take me months to set it up and figure
> it out.

Adam, thanks for the testcase.
Maybe you could add the testcase to the bug? Because url testcase
sometimes tend to get lost/moved.

Thanks,
Martijn


> -Adam.
>
>
> "Boris Zbarsky" <[hidden email]> wrote in message
> news:-[hidden email]...
> > agb5 wrote:
> >> I have a simple test case, but the bug is visible only then the browser
> >> window is resized.
> >> Also the bug depends on the width of an element being set in javascript
> >> onload.
> >> Can the automated layout regression tests system handle such a complex
> >> case ?
> >
> > It can't really do window resizing well.  It _can_ handle things happening
> > onload.
> >
> > Do you see the bug if you change the width of the body via script instead
> > of resizing the browser window?  So something like:
> >
> > // do onload stuff
> > document.body.offsetWidth;  // flush out layout
> > // modify width of body via document.body.style.width = "200px" or
> > whatever
> >
> >> What is the best way to add this code as a standard regression test?
> >
> > If there's a web page that shows the bug without user interaction, it can
> > just be added to the regression tests.
> >
> > -Boris
>
>
> _______________________________________________
> dev-tech-layout mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-tech-layout
>
_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout