Add crashtest for bug 306911 (and include dbaron's additional testcases)

This commit is contained in:
jruderman@hmc.edu 2007-12-11 19:32:45 -08:00
parent eb5e54e8ca
commit 67c2c2d9f3
5 changed files with 205 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <listbox id="thelist" flex="1"> <listitem label="Item1" value="item1">
<listitem label="Item2" value="item2"/>
</listitem> </listbox>
</window>

View File

@ -0,0 +1,99 @@
<?xml version="1.0"?>
<!DOCTYPE window>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<tabbox>
<tabs>
<tab label="full grid" />
<tab label="grid alone" />
<tab label="columns alone" />
<tab label="rows alone" />
<tab label="column alone" />
<tab label="row alone" />
<tab label="wacky" />
</tabs>
<tabpanels>
<tabpanel>
<grid>
<rows style="color: blue">
<row>
<label value="row 1,1" />
<label value="row 1,2" />
</row>
<row>
<label value="row 2,1" />
<label value="row 2,2" />
</row>
</rows>
<columns style="color: fuchsia; opacity: 0.7">
<column>
<label value="column 1,1" />
<label value="column 1,2" />
</column>
<column>
<label value="column 2,1" />
<label value="column 2,2" />
</column>
</columns>
</grid>
</tabpanel>
<tabpanel>
<grid>
<label value="Text inside grid" />
</grid>
</tabpanel>
<tabpanel>
<columns>
<label value="Text inside columns" />
</columns>
</tabpanel>
<tabpanel>
<rows>
<label value="Text inside rows" />
</rows>
</tabpanel>
<tabpanel>
<column>
<label value="Text inside column" />
</column>
</tabpanel>
<tabpanel>
<row>
<label value="Text inside row" />
</row>
</tabpanel>
<tabpanel>
<grid>
<label value="Text inside grid one" />
<rows style="color: blue">
<label value="Text inside rows #1" />
<row>
<label value="row 1,1" />
<label value="row 1,2" />
</row>
<label value="Text inside rows #2" />
<row>
<label value="row 2,1" />
<label value="row 2,2" />
</row>
<label value="Text inside rows #3" />
</rows>
<label value="Text inside grid two" style="opacity: 0.7" />
<columns style="color: fuchsia; opacity: 0.7">
<label value="Text inside columns #1" />
<column>
<label value="column 1,1" />
<label value="column 1,2" />
</column>
<label value="Text inside columns #2" />
<column>
<label value="column 2,1" />
<label value="column 2,2" />
</column>
<label value="Text inside columns #3" />
</columns>
<label value="Text inside grid three" style="opacity: 0.4" />
</grid>
</tabpanel>
</tabpanels>
</tabbox>
</window>

View File

@ -0,0 +1,98 @@
<?xml version="1.0"?>
<!-- vim:sw=4:ts=4:noet:
-->
<!DOCTYPE window>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<tabbox>
<tabs>
<tab label="no group" />
<tab label="wacky orientations" />
</tabs>
<tabpanels>
<tabpanel>
<grid>
<row>
<label value="row 1,1" />
<label value="row 1,2" />
</row>
<row>
<label value="row 2,1" />
<label value="row 2,2" />
</row>
<column>
<label value="column 1,1" />
<label value="column 1,2" />
</column>
<column>
<label value="column 2,1" />
<label value="column 2,2" />
</column>
</grid>
</tabpanel>
<tabpanel>
<grid>
<rows style="color: green">
<row>
<label value="rows+row 1" />
<label value="rows+row 2" />
</row>
<column>
<label value="rows+column 1" />
<label value="rows+column 2" />
</column>
<rows style="color: purple">
<row>
<label value="rows+rows+row 1" />
<label value="rows+rows+row 2" />
</row>
<column>
<label value="rows+rows+column 1" />
<label value="rows+rows+column 2" />
</column>
</rows>
<columns style="color: blue">
<row>
<label value="rows+columns+row 1" />
<label value="rows+columns+row 2" />
</row>
<column>
<label value="rows+columns+column 1" />
<label value="rows+columns+column 2" />
</column>
</columns>
</rows>
<columns style="opacity: 0.7; color: lime">
<row>
<label value="columns+row 1" />
<label value="columns+row 2" />
</row>
<column>
<label value="columns+column 1" />
<label value="columns+column 2" />
</column>
<rows style="color: fuchsia">
<row>
<label value="columns+rows+row 1" />
<label value="columns+rows+row 2" />
</row>
<column>
<label value="columns+rows+column 1" />
<label value="columns+rows+column 2" />
</column>
</rows>
<columns style="color: aqua">
<row>
<label value="columns+columns+row 1" />
<label value="columns+columns+row 2" />
</row>
<column>
<label value="columns+columns+column 1" />
<label value="columns+columns+column 2" />
</column>
</columns>
</columns>
</grid>
</tabpanel>
</tabpanels>
</tabbox>
</window>

View File

@ -0,0 +1,3 @@
load 306911-crash.xul
load 306911-grid-testcases.xul
load 306911-grid-testcases2.xul

View File

@ -3,3 +3,4 @@
include ../../testing/crashtest/sanity/crashtests.list
include ../../gfx/src/mac/crashtests/crashtests.list
include ../../layout/xul/base/src/grid/crashtests/crashtests.list