Changeset 63728 in webkit


Ignore:
Timestamp:
Jul 20, 2010 12:20:22 AM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-07-20 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Import a number of fast/invalid tests into html5lib for easy of fixing
https://bugs.webkit.org/show_bug.cgi?id=42590

Working with these DOM dumps is much easier than staring at render
trees. Also, this infrastructure lets us cross-test with other
browsers.

  • html5lib/resources/tricky01.dat: Added.
  • html5lib/runner-expected-html5.txt:
  • html5lib/runner-expected.txt:
  • html5lib/runner.html:
Location:
trunk/LayoutTests
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r63727 r63728  
     12010-07-20  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Import a number of fast/invalid tests into html5lib for easy of fixing
     6        https://bugs.webkit.org/show_bug.cgi?id=42590
     7
     8        Working with these DOM dumps is much easier than staring at render
     9        trees.  Also, this infrastructure lets us cross-test with other
     10        browsers.
     11
     12        * html5lib/resources/tricky01.dat: Added.
     13        * html5lib/runner-expected-html5.txt:
     14        * html5lib/runner-expected.txt:
     15        * html5lib/runner.html:
     16
    1172010-07-20  Matthew Delaney  <mdelaney@apple.com>
    218
  • trunk/LayoutTests/html5lib/runner-expected-html5.txt

    r63402 r63728  
    286286
    287287resources/tables01.dat: PASS
     288
     289resources/tricky01.dat:
     2902
     2916
     2927
     293
     294Test 2 of 9 in resources/tricky01.dat failed. Input:
     295<html>
     296<font color=red><i>Italic and Red<p>Italic and Red </font> Just italic.</p> Italic only.</i> Plain
     297<p>I should not be red. <font color=red>Red. <i>Italic and red.</p>
     298<p>Italic and red. </i> Red.</font> I should not be red.</p>
     299<b>Bold <i>Bold and italic</b> Only Italic </i> Plain
     300Got:
     301| <html>
     302|   <head>
     303|   <body>
     304|     <font>
     305|       color="red"
     306|       <i>
     307|         "Italic and Red"
     308|     <i>
     309|       <p>
     310|         <font>
     311|           "Italic and Red "
     312|         " Just italic."
     313|       " Italic only."
     314|     " Plain
     315"
     316|     <p>
     317|       "I should not be red. "
     318|       <font>
     319|         color="red"
     320|         "Red. "
     321|         <i>
     322|           "Italic and red."
     323|     <font>
     324|       color="red"
     325|       <i>
     326|         "
     327"
     328|     <p>
     329|       <font>
     330|         <i>
     331|           "Italic and red. "
     332|         " Red."
     333|       " I should not be red."
     334|     "
     335"
     336|     <b>
     337|       "Bold "
     338|       <i>
     339|         "Bold and italic"
     340|     <i>
     341|       " Only Italic "
     342|     " Plain"
     343Expected:
     344| <html>
     345|   <head>
     346|   <body>
     347|     <font>
     348|       color="red"
     349|       <i>
     350|         "Italic and Red"
     351|     <i>
     352|       <p>
     353|         <font>
     354|           color="red"
     355|           "Italic and Red "
     356|         " Just italic."
     357|       " Italic only."
     358|     " Plain
     359"
     360|     <p>
     361|       "I should not be red. "
     362|       <font>
     363|         color="red"
     364|         "Red. "
     365|         <i>
     366|           "Italic and red."
     367|     <font>
     368|       color="red"
     369|       <i>
     370|         "
     371"
     372|     <p>
     373|       <font>
     374|         color="red"
     375|         <i>
     376|           "Italic and red. "
     377|         " Red."
     378|       " I should not be red."
     379|     "
     380"
     381|     <b>
     382|       "Bold "
     383|       <i>
     384|         "Bold and italic"
     385|     <i>
     386|       " Only Italic "
     387|     " Plain"
     388
     389Test 6 of 9 in resources/tricky01.dat failed. Input:
     390<TABLE>
     391  <CENTER>
     392  <FONT>You should see a 100x100 green Image below.
     393  </CENTER>
     394<IMG alt="Image" width=100 height=100 style="background-color:green">
     395<tr><td>
     396</td>
     397</tr>
     398</table>
     399Got:
     400| <html>
     401|   <head>
     402|   <body>
     403|     <center>
     404|       "
     405  "
     406|       <font>
     407|         "You should see a 100x100 green Image below.
     408  "
     409|     <font>
     410|       <img>
     411|         alt="Image"
     412|         height="100"
     413|         style="background-color:green"
     414|         width="100"
     415|       "
     416"
     417|     <table>
     418|       "
     419 
     420"
     421|       <tbody>
     422|         <tr>
     423|           <td>
     424|             "
     425"
     426|           "
     427"
     428|         "
     429"
     430Expected:
     431| <html>
     432|   <head>
     433|   <body>
     434|     <center>
     435|       "
     436  "
     437|       <font>
     438|         "You should see a 100x100 green Image below.
     439  "
     440|     <font>
     441|       "
     442"
     443|       <img>
     444|         alt="Image"
     445|         height="100"
     446|         style="background-color: green;"
     447|         width="100"
     448|       "
     449"
     450|     <font>
     451|       "
     452"
     453|     <font>
     454|       "
     455"
     456|     <table>
     457|       "
     458  "
     459|       <tbody>
     460|         <tr>
     461|           <td>
     462|             "
     463"
     464
     465Test 7 of 9 in resources/tricky01.dat failed. Input:
     466<table><tr><p><a><p>You should see this text.
     467Got:
     468| <html>
     469|   <head>
     470|   <body>
     471|     <p>
     472|       <a>
     473|     <table>
     474|       <tbody>
     475|         <tr>
     476|           <p>
     477|             <a>
     478|               "You should see this text."
     479Expected:
     480| <html>
     481|   <head>
     482|   <body>
     483|     <p>
     484|       <a>
     485|     <p>
     486|       <a>
     487|         "You should see this text."
     488|     <table>
     489|       <tbody>
     490|         <tr>
    288491#EOF
  • trunk/LayoutTests/html5lib/runner-expected.txt

    r63517 r63728  
    49344934|     <select>
    49354935|     <table>
     4936resources/tricky01.dat:
     49373
     49384
     49395
     49406
     49417
     49428
     49439
     4944
     4945Test 3 of 9 in resources/tricky01.dat failed. Input:
     4946<html><body>
     4947<p><font size="7">First paragraph.</p>
     4948<p>Second paragraph.</p></font>
     4949<b><p><i>Bold and Italic</b> Italic</p>
     4950Got:
     4951| <html>
     4952|   <head>
     4953|   <body>
     4954|     "
     4955"
     4956|     <p>
     4957|       <font>
     4958|         size="7"
     4959|         "First paragraph."
     4960|     <font>
     4961|       size="7"
     4962|       "
     4963"
     4964|       <p>
     4965|         "Second paragraph."
     4966|     "
     4967"
     4968|     <b>
     4969|     <p>
     4970|       <b>
     4971|         <i>
     4972|           "Bold and Italic"
     4973|       <i>
     4974|         " Italic"
     4975|     <i>
     4976Expected:
     4977| <html>
     4978|   <head>
     4979|   <body>
     4980|     "
     4981"
     4982|     <p>
     4983|       <font>
     4984|         size="7"
     4985|         "First paragraph."
     4986|     <font>
     4987|       size="7"
     4988|       "
     4989"
     4990|       <p>
     4991|         "Second paragraph."
     4992|     "
     4993"
     4994|     <b>
     4995|     <p>
     4996|       <b>
     4997|         <i>
     4998|           "Bold and Italic"
     4999|       <i>
     5000|         " Italic"
     5001
     5002Test 4 of 9 in resources/tricky01.dat failed. Input:
     5003<html>
     5004<dl>
     5005<dt><b>Boo
     5006<dd>Goo?
     5007</dl>
     5008</html>
     5009Got:
     5010| <html>
     5011|   <head>
     5012|   <body>
     5013|     <dl>
     5014|       "
     5015"
     5016|       <dt>
     5017|         <b>
     5018|           "Boo
     5019"
     5020|       <b>
     5021|         <dd>
     5022|           "Goo?
     5023"
     5024|     <b>
     5025|       "
     5026"
     5027Expected:
     5028| <html>
     5029|   <head>
     5030|   <body>
     5031|     <dl>
     5032|       "
     5033"
     5034|       <dt>
     5035|         <b>
     5036|           "Boo
     5037"
     5038|       <dd>
     5039|         <b>
     5040|           "Goo?
     5041"
     5042|     <b>
     5043|       "
     5044"
     5045
     5046Test 5 of 9 in resources/tricky01.dat failed. Input:
     5047<html><body>
     5048<label><a><div>Hello<div>World</div></a></label> 
     5049</body></html>
     5050Got:
     5051| <html>
     5052|   <head>
     5053|   <body>
     5054|     "
     5055"
     5056|     <label>
     5057|       <a>
     5058|       <div>
     5059|         <a>
     5060|           "Hello"
     5061|           <div>
     5062|             "World"
     5063|     " 
     5064"
     5065Expected:
     5066| <html>
     5067|   <head>
     5068|   <body>
     5069|     "
     5070"
     5071|     <label>
     5072|       <a>
     5073|       <div>
     5074|         <a>
     5075|           "Hello"
     5076|           <div>
     5077|             "World"
     5078|         " 
     5079"
     5080
     5081Test 6 of 9 in resources/tricky01.dat failed. Input:
     5082<TABLE>
     5083  <CENTER>
     5084  <FONT>You should see a 100x100 green Image below.
     5085  </CENTER>
     5086<IMG alt="Image" width=100 height=100 style="background-color:green">
     5087<tr><td>
     5088</td>
     5089</tr>
     5090</table>
     5091Got:
     5092| <html>
     5093|   <head>
     5094|   <body>
     5095|     <center>
     5096|       "
     5097  "
     5098|       <font>
     5099|         "You should see a 100x100 green Image below.
     5100  "
     5101|     <font>
     5102|       "
     5103"
     5104|       <img>
     5105|         alt="Image"
     5106|         height="100"
     5107|         style="background-color:green"
     5108|         width="100"
     5109|       "
     5110"
     5111|     <table>
     5112|       "
     5113  "
     5114|       <tbody>
     5115|         <tr>
     5116|           <td>
     5117|             "
     5118"
     5119|           "
     5120"
     5121|         "
     5122"
     5123Expected:
     5124| <html>
     5125|   <head>
     5126|   <body>
     5127|     <center>
     5128|       "
     5129  "
     5130|       <font>
     5131|         "You should see a 100x100 green Image below.
     5132  "
     5133|     <font>
     5134|       "
     5135"
     5136|       <img>
     5137|         alt="Image"
     5138|         height="100"
     5139|         style="background-color: green;"
     5140|         width="100"
     5141|       "
     5142"
     5143|     <font>
     5144|       "
     5145"
     5146|     <font>
     5147|       "
     5148"
     5149|     <table>
     5150|       "
     5151  "
     5152|       <tbody>
     5153|         <tr>
     5154|           <td>
     5155|             "
     5156"
     5157
     5158Test 7 of 9 in resources/tricky01.dat failed. Input:
     5159<table><tr><p><a><p>You should see this text.
     5160Got:
     5161| <html>
     5162|   <head>
     5163|   <body>
     5164|     <p>
     5165|       <a>
     5166|     <a>
     5167|       <p>
     5168|         "You should see this text."
     5169|     <table>
     5170|       <tbody>
     5171|         <tr>
     5172Expected:
     5173| <html>
     5174|   <head>
     5175|   <body>
     5176|     <p>
     5177|       <a>
     5178|     <p>
     5179|       <a>
     5180|         "You should see this text."
     5181|     <table>
     5182|       <tbody>
     5183|         <tr>
     5184
     5185Test 8 of 9 in resources/tricky01.dat failed. Input:
     5186<TABLE>
     5187<TR>
     5188<CENTER><CENTER><TD></TD></TR><TR>
     5189<FONT>
     5190<TABLE><tr></tr></TABLE>
     5191</P>
     5192<a></font><font></a>
     5193This page contains an insanely badly-nested tag sequence.
     5194Got:
     5195| <html>
     5196|   <head>
     5197|   <body>
     5198|     <center>
     5199|       <center>
     5200|     <font>
     5201|       "
     5202"
     5203|     <table>
     5204|       "
     5205"
     5206|       <tbody>
     5207|         <tr>
     5208|           "
     5209"
     5210|           <td>
     5211|         <tr>
     5212|           "
     5213"
     5214|     <table>
     5215|       <tbody>
     5216|         <tr>
     5217|     "
     5218"
     5219|     <p>
     5220|     "
     5221"
     5222|     <a>
     5223|       <font>
     5224|     <font>
     5225|       "
     5226This page contains an insanely badly-nested tag sequence."
     5227Expected:
     5228| <html>
     5229|   <head>
     5230|   <body>
     5231|     <center>
     5232|       <center>
     5233|     <font>
     5234|       "
     5235"
     5236|     <table>
     5237|       "
     5238"
     5239|       <tbody>
     5240|         <tr>
     5241|           "
     5242"
     5243|           <td>
     5244|         <tr>
     5245|           "
     5246"
     5247|     <table>
     5248|       <tbody>
     5249|         <tr>
     5250|     <font>
     5251|       "
     5252"
     5253|       <p>
     5254|       "
     5255"
     5256|       <a>
     5257|     <a>
     5258|       <font>
     5259|     <font>
     5260|       "
     5261This page contains an insanely badly-nested tag sequence."
     5262
     5263Test 9 of 9 in resources/tricky01.dat failed. Input:
     5264<html>
     5265<body>
     5266<b><nobr><div>This text is in a div inside a nobr</nobr>More text that should not be in the nobr, i.e., the
     5267nobr should have closed the div inside it implicitly. </b><pre>A pre tag outside everything else.</pre>
     5268</body>
     5269</html>
     5270Got:
     5271| <html>
     5272|   <head>
     5273|   <body>
     5274|     "
     5275"
     5276|     <b>
     5277|       <nobr>
     5278|         <div>
     5279|           "This text is in a div inside a nobr"
     5280|       "More text that should not be in the nobr, i.e., the
     5281nobr should have closed the div inside it implicitly. "
     5282|     <pre>
     5283|       "A pre tag outside everything else."
     5284|     "
     5285
     5286"
     5287Expected:
     5288| <html>
     5289|   <head>
     5290|   <body>
     5291|     "
     5292"
     5293|     <b>
     5294|       <nobr>
     5295|     <div>
     5296|       <b>
     5297|         <nobr>
     5298|           "This text is in a div inside a nobr"
     5299|         "More text that should not be in the nobr, i.e., the
     5300nobr should have closed the div inside it implicitly. "
     5301|       <pre>
     5302|         "A pre tag outside everything else."
     5303|       "
     5304
     5305"
  • trunk/LayoutTests/html5lib/runner.html

    r62523 r63728  
    6363        'resources/inbody01.dat',
    6464        'resources/isindex.dat',
    65         'resources/tables01.dat'
     65        'resources/tables01.dat',
     66        'resources/tricky01.dat'
    6667    ],
    6768    tests = [],
Note: See TracChangeset for help on using the changeset viewer.