зеркало из https://github.com/mozilla/pjs.git
new regression tests
This commit is contained in:
Родитель
3003596810
Коммит
96a485cfaa
|
@ -1,340 +1,35 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>BasicTableLayoutStrategy.cpp</title>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<base href='http://my.netscape.com/'>
|
||||
<style>
|
||||
td {
|
||||
text-height: 1em;
|
||||
font-family: Lucida Console;
|
||||
font-size: 8pt;
|
||||
}
|
||||
td#title {
|
||||
background-color: orange;
|
||||
color:black;
|
||||
font-family: serif;
|
||||
font-size: 12pt;
|
||||
font-weight: bold;
|
||||
}
|
||||
#a {
|
||||
background-color: #DDFFDD;
|
||||
color:black;
|
||||
}
|
||||
#d {
|
||||
background-color: #FFDDFF;
|
||||
color:black;
|
||||
}
|
||||
#c {
|
||||
background-color: lightblue;
|
||||
color:black;
|
||||
}
|
||||
#sp {
|
||||
width: 2px;
|
||||
background-color: black;
|
||||
color:black;
|
||||
}
|
||||
td#sk {
|
||||
background-color: lightgray;
|
||||
color:black;
|
||||
font-family: serif;
|
||||
font-size: 12pt;
|
||||
font-weight: bold;
|
||||
}
|
||||
table, td {border: 1px solid red;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="background-color: #EEEEEE;"><H3>BasicTableLayoutStrategy.cpp - Revision 3.152</H3>
|
||||
There were 4 changes made.<br>
|
||||
<UL>
|
||||
<LI><a href="#change0">1 lines were changed.</a></LI>
|
||||
<LI><a href="#change1">1 lines were added.</a></LI>
|
||||
<LI><a href="#change2">1 lines were changed.</a></LI>
|
||||
<LI><a href="#change3">1 lines were changed.</a></LI>
|
||||
</UL>
|
||||
<table><tr><td><fieldset style="border: 2px inset">
|
||||
<legend style="border: 2px inset">Legend</legend>
|
||||
<table>
|
||||
<tr><td id=a> </td><td>Added lines</td></tr>
|
||||
<tr><td id=c> </td><td>Changed lines</td></tr>
|
||||
<tr><td id=d> </td><td>Removed lines</td></tr>
|
||||
</table>
|
||||
</fieldset></td></tr></table>
|
||||
<hr></div><table BGCOLOR=White CELLPADDING=0 CELLSPACING=0 WIDTH="100%" COLS=3>
|
||||
<td id=title><center>BasicTableLayoutStrategy.cpp,3.152</center></td><td id=sp></td><td id=title><center>Disk File</center></td>
|
||||
<tr><td id=sk>Skipping to line 27</td><td id=sp></td><td id=sk> </td></tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>#include "nsIStyleContext.h"</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>#include "nsIStyleContext.h"</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>#include "nsStyleConsts.h"</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>#include "nsStyleConsts.h"</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>#include "nsVoidArray.h"</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>#include "nsVoidArray.h"</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>#include "nsHTMLIIDs.h"</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>#include "nsHTMLIIDs.h"</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> </pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> </pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=c>
|
||||
<a name="change0"></a><pre>#if 1</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=c>
|
||||
<pre>#if 0</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>static PRBool gsDebugAssign = PR_FALSE;</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>static PRBool gsDebugAssign = PR_FALSE;</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>static PRBool gsDebugBalance = PR_FALSE;</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>static PRBool gsDebugBalance = PR_FALSE;</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>#else</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>#else</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>static PRBool gsDebugAssign = PR_TRUE;</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>static PRBool gsDebugAssign = PR_TRUE;</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>static PRBool gsDebugBalance = PR_TRUE;</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>static PRBool gsDebugBalance = PR_TRUE;</pre></td>
|
||||
</tr>
|
||||
<tr><td id=sk>Skipping to line 39</td><td id=sp></td><td id=sk> </td></tr>
|
||||
<tr>
|
||||
<td id=a>
|
||||
<a name="change1"></a><pre> </pre></td>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
|
||||
<td id=sp></td>
|
||||
<td id=a>
|
||||
<pre>static PRInt32 gsDebugCount = 0;</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> </pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> </pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>PRBool CanAllocate(PRInt32 aTypeToAllocate,</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>PRBool CanAllocate(PRInt32 aTypeToAllocate,</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> PRInt32 aTypeAlreadyAllocated,</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> PRInt32 aTypeAlreadyAllocated,</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> nsTableColFrame* aColFrame,</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> nsTableColFrame* aColFrame,</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> PRBool& aConsiderAdj)</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> PRBool& aConsiderAdj)</pre></td>
|
||||
</tr>
|
||||
<tr><td id=sk>Skipping to line 164</td><td id=sp></td><td id=sk> </td></tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>BasicTableLayoutStrategy::BalanceColumnWidths(nsIPresContext* aPresContext,</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>BasicTableLayoutStrategy::BalanceColumnWidths(nsIPresContext* aPresContext,</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> nsIStyleContext* aTableStyle,</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> nsIStyleContext* aTableStyle,</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> const nsHTMLReflowState& aReflowState,</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> const nsHTMLReflowState& aReflowState,</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> nscoord aMaxWidthIn)</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> nscoord aMaxWidthIn)</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>{</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>{</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=c>
|
||||
<a name="change2"></a><pre> if (gsDebugBalance) {printf("BalanceColumnWidths en max=%d\n", aMaxWidthIn); mTableFrame->Dump(aPresContext, PR_FALSE, PR_TRUE, PR_FALSE);}</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=c>
|
||||
<pre> if (gsDebugBalance) {printf("BalanceColumnWidths en max=%d count=%d \n", aMaxWidthIn, gsDebugCount++); mTableFrame->Dump(aPresContext, PR_FALSE, PR_TRUE, PR_FALSE);}</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> </pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> </pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> ContinuingFrameCheck();</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> ContinuingFrameCheck();</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> if (!aTableStyle) {</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> if (!aTableStyle) {</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> NS_ASSERTION(aTableStyle, "bad style arg");</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> NS_ASSERTION(aTableStyle, "bad style arg");</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> return PR_FALSE;</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> return PR_FALSE;</pre></td>
|
||||
</tr>
|
||||
<tr><td id=sk>Skipping to line 696</td><td id=sp></td><td id=sk> </td></tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>// Determine min, desired, fixed, and proportional sizes for the cols and </pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>// Determine min, desired, fixed, and proportional sizes for the cols and </pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>// and calculate min/max table width</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>// and calculate min/max table width</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>PRBool BasicTableLayoutStrategy::AssignPreliminaryColumnWidths(nsIPresContext* aPresContext,</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>PRBool BasicTableLayoutStrategy::AssignPreliminaryColumnWidths(nsIPresContext* aPresContext,</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> nscoord aMaxWidth)</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> nscoord aMaxWidth)</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre>{</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre>{</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=c>
|
||||
<a name="change3"></a><pre> if (gsDebugAssign) {printf("AssignPrelimColWidths en max=%d\n", aMaxWidth); mTableFrame->Dump(aPresContext, PR_FALSE, PR_TRUE, PR_FALSE);}</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=c>
|
||||
<pre> if (gsDebugAssign) {printf("AssignPrelimColWidths en max=%d count=%d \n", aMaxWidth, gsDebugCount++); mTableFrame->Dump(aPresContext, PR_FALSE, PR_TRUE, PR_FALSE);}</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> PRBool rv = PR_FALSE;</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> PRBool rv = PR_FALSE;</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> PRInt32 numRows = mTableFrame->GetRowCount();</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> PRInt32 numRows = mTableFrame->GetRowCount();</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> PRInt32 numCols = mTableFrame->GetColCount();</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> PRInt32 numCols = mTableFrame->GetColCount();</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> nscoord spacingX = mTableFrame->GetCellSpacingX();</pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> nscoord spacingX = mTableFrame->GetCellSpacingX();</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id=white>
|
||||
<pre> PRInt32 colX, rowX; </pre></td>
|
||||
<td id=sp></td>
|
||||
<td id=white>
|
||||
<pre> PRInt32 colX, rowX; </pre></td>
|
||||
</tr>
|
||||
</table></body></html>
|
||||
|
||||
<TABLE BORDER=1 WIDTH=100% BGCOLOR=CCCCCC>
|
||||
<TR VALIGN=TOP>
|
||||
<TD ROWSPAN=2 WIDTH=10%> </TD>
|
||||
<TD COLSPAN=6 WIDTH=70%> </TD>
|
||||
<TD WIDTH=10%> </TD>
|
||||
<TD ROWSPAN=2 WIDTH=10%> </TD>
|
||||
</TR>
|
||||
<TR VALIGN=TOP>
|
||||
<TD COLSPAN=3 WIDTH=10%>Find a Business</TD>
|
||||
<TD COLSPAN=3 WIDTH=10%>What's New</TD>
|
||||
<TD COLSPAN=1 WIDTH=10%>Search Tips</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD COLSPAN=9 HEIGHT=8> </TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
|
||||
<p>
|
||||
bug #17826 : Drag the right edge of the window and either widen or
|
||||
narrow the window; the column widths should oscillate as you resize
|
||||
the window (tested 1999122008 WinNT)
|
||||
</p>
|
||||
|
||||
</BODY></HTML>
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
doc {
|
||||
display: block;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
p {
|
||||
display: block;
|
||||
}
|
||||
|
||||
captionelement {
|
||||
display: table-caption;
|
||||
text-align: center;
|
||||
color: red;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheetx href="bug8411.css" type="text/css"?>
|
||||
<doc>
|
||||
<p>The following text is in a caption element whose style is set to display:table-caption. The element is not inside a table.</p>
|
||||
<captionelement>This is a caption element.</captionelement>
|
||||
<p>If there's no red text between this text and the previous text the caption is not displayed.</p>
|
||||
</doc>
|
|
@ -174,6 +174,7 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug8032-1.html
|
|||
file:///s|/mozilla/layout/html/tests/table/bugs/bug8032-2.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug8361.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug8381.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug8411.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug8499.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug8858.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug8950.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче