Changeset 61605 in webkit
- Timestamp:
- Jun 22, 2010 12:13:09 AM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 22 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r61604 r61605 1 2010-06-21 Julien Chaffraix <jchaffraix@webkit.org> 2 3 Reviewed by Alexey Proskuryakov. 4 5 Tests for: 6 Space should be allowed between -- and > in comment end 7 https://bugs.webkit.org/show_bug.cgi?id=21945 8 9 * fast/css/word-space-extra.html: Tweaked the comment as -- > is now 10 a valid comment end. 11 12 * fast/parser/broken-comment-1-expected.txt: Added. 13 * fast/parser/broken-comment-1.html: Added. 14 * fast/parser/broken-comment-2-expected.txt: Added. 15 * fast/parser/broken-comment-2.html: Added. 16 * fast/parser/broken-comment-3-expected.txt: Added. 17 * fast/parser/broken-comment-3.html: Added. 18 * fast/parser/broken-comment-4-expected.txt: Added. 19 * fast/parser/broken-comment-4.html: Added. 20 * fast/parser/broken-comment-5-expected.txt: Added. 21 * fast/parser/broken-comment-5.html: Added. 22 * fast/parser/broken-comment-6-expected.txt: Added. 23 * fast/parser/broken-comment-6.html: Added. 24 Those test checks that broken comments in body are correctly parsed. 25 * fast/parser/broken-comment-in-head-1-expected.txt: Added. 26 * fast/parser/broken-comment-in-head-1.html: Added. 27 * fast/parser/broken-comment-in-head-2-expected.txt: Added. 28 * fast/parser/broken-comment-in-head-2.html: Added. 29 * fast/parser/broken-comment-in-head-3-expected.txt: Added. 30 * fast/parser/broken-comment-in-head-3.html: Added. 31 * fast/parser/broken-comment-in-head-4-expected.txt: Added. 32 * fast/parser/broken-comment-in-head-4.html: Added. 33 * fast/parser/broken-comment-in-head-5-expected.txt: Added. 34 * fast/parser/broken-comment-in-head-5.html: Added. 35 Those test checks that broken comments in head are correctly parsed. 36 37 * fast/parser/broken-comments-vs-parsing-mode.html: Needed to wrap the broken comment 38 in a title as we match FF here and would not recover from it. 39 40 * fast/parser/comments-expected.txt: 41 * fast/parser/comments.html: 42 Added more tests for comment parsing. Made sure that we close empty comments 43 <!--> and <!---> as is specified in HTML5. 44 1 45 2010-06-21 Adam Barth <abarth@webkit.org> 2 46 -
trunk/LayoutTests/fast/parser/broken-comments-vs-parsing-mode.html
r60786 r61605 1 1 <html> 2 <head> 3 <title> 2 4 <!-- A broken comment -> 5 </title> 6 </head> 3 7 <body> 4 8 <p><a href="https://bugs.webkit.org/show_bug.cgi?id=8626">bug 8626</a>: -
trunk/LayoutTests/fast/parser/comments-expected.txt
r61234 r61605 1 Output of this test should match WinIE(no strict SGML comment parsing).1 Output of this test should match HTML5 (no strict SGML comment parsing). 2 2 3 Basic comments (1 PASSED): 4 PASSED FAILED--> 3 Basic comments (2 PASSED): 4 PASSED PASSED 5 Comment series (3 PASSED): 6 PASSED PASSED PASSED 5 7 6 Comment series (1PASSED):7 PASSED FAILED-->8 Dash runs (5 PASSED): 9 PASSED PASSED PASSED PASSED PASSED 8 10 9 Dash runs (3PASSED):10 PASSED FAILED PASSED PASSED11 Empty comments (5 PASSED): 12 PASSED PASSED PASSED PASSED PASSED 11 13 12 Empty comments (2PASSED):13 PASSED FAILED-->PASSED14 Multiple lines (4 PASSED): 15 PASSED PASSED PASSED PASSED 14 16 15 Multiple lines (1PASSED):16 PASSED FAILED-->17 Compatibility (7 PASSED): 18 PASSED PASSED PASSED PASSED PASSED PASSED PASSED 17 19 18 Compatibility (2 PASSED): 19 PASSED FAILED--> PASSED FAILED--> 20 21 Tab after comment close: 22 FAILED: should be part of the comment --> 20 White space after comment close (4 PASSED): 21 PASSED PASSED PASSED PASSED 23 22 24 23 Text after comment close: 25 Extra comment after markup declaration close :24 Extra comment after markup declaration close (2 PASSED): 26 25 FAILED: extra comment end and markup declaration close --> 27 FAILED: extra comment end w/space and markup declaration close --> 26 PASSED PASSED 28 27 29 28 Nested comment (1 PASSED): -
trunk/LayoutTests/fast/parser/comments.html
r60786 r61605 2 2 <html> 3 3 <body> 4 <p>Output of this test should match WinIE(no strict SGML comment parsing).</p>4 <p>Output of this test should match HTML5 (no strict SGML comment parsing).</p> 5 5 6 6 <script> … … 8 8 layoutTestController.dumpAsText(); 9 9 </script> 10 <p>Basic comments ( 1PASSED):<br>10 <p>Basic comments (2 PASSED):<br> 11 11 <!-- basic comment -->PASSED 12 <!-- basic comment with spaces after comment end -- >FAILED--></p> 13 <p>Comment series (1 PASSED):<br> 12 <!-- basic comment with spaces after comment end -- >PASSED 13 <!-- basic comment with spaces after comment end - - >FAILED--></p> 14 <p>Comment series (3 PASSED):<br> 14 15 <!-- comment -- -- series-->PASSED 15 <!-- comment -- -- series with spaces after comment end-- >FAILED--></p> 16 <p>Dash runs (3 PASSED):<br> 16 <!-- comment -- -- series with space after comment end-- >PASSED 17 <!-- comment -- -- series with spaces after comment end-- >PASSED</p> 18 <!-- comment -- -- series with spaces after comment end- - >FAILED--></p> 19 <p>Dash runs (5 PASSED):<br> 17 20 <!------ Hello -->PASSED 18 <!------ Hello -- >FAILED 21 <!------ Hello -- >PASSED 22 <!------ Hello -- >PASSED 23 <!------ Hello - - >FAILED 19 24 <!-- --- Hello -->PASSED 20 25 <!-- Hello --->PASSED</p> 21 <p>Empty comments ( 2PASSED):<br>26 <p>Empty comments (5 PASSED):<br> 22 27 <!---->PASSED 23 <!---- >FAILED--> 24 <!>PASSED</p> 25 <p>Multiple lines (1 PASSED):<br> 28 <!---- >PASSED 29 <!>PASSED 30 <!-->PASSED 31 <!--->PASSED</p> 32 <p>Multiple lines (4 PASSED):<br> 26 33 <!-- here's a comment, a little longer, 27 34 which occupies more than one line -->PASSED 28 35 <!-- here's a comment, a little longer, 29 which occupies more than one line -- >FAILED--> 36 which occupies more than one line -- >PASSED 37 <!-- here's a comment, a little longer, 38 which occupies more than one line -- >PASSED 39 <!-- here's a comment, a little longer, 40 which occupies more than one line -- 41 >PASSED 42 <!-- here's a comment, a little longer, 43 which occupies more than one line - - >FAILED--> 30 44 </p> 31 45 32 <p>Compatibility ( 2PASSED):<br>46 <p>Compatibility (7 PASSED):<br> 33 47 <!-- Compatibility: comment series with --extraneous-- text -- between -- the comments -->PASSED 34 <!-- Compatibility: comment series with --extraneous-- text -- between -- the comments -- >FAILED--> 48 <!-- Compatibility: comment series with --extraneous-- text -- between -- the comments -- >PASSED 49 <!-- Compatibility: comment series with --extraneous-- text -- between -- the comments -- >PASSED 50 <!-- Compatibility: comment series with --extraneous-- text -- between -- the comments - - >FAILED--> 35 51 <!-- Compatibility: <!--extra comment start like www.the-leaky-cauldron.com has <rdar://problem/4226539>-->PASSED 36 <!-- Compatibility: <!--extra comment start like www.the-leaky-cauldron.com has <rdar://problem/4226539> -- >FAILED--> 52 <!-- Compatibility: <!--extra comment start like www.the-leaky-cauldron.com has <rdar://problem/4226539>-- >PASSED 53 <!-- Compatibility: <!--extra comment start like www.the-leaky-cauldron.com has <rdar://problem/4226539> -- >PASSED 54 <!-- Compatibility: <!--extra comment start like www.the-leaky-cauldron.com has <rdar://problem/4226539> -- >PASSED 55 <!-- Compatibility: <!--extra comment start like www.the-leaky-cauldron.com has <rdar://problem/4226539> - - >FAILED--> 37 56 </p> 38 57 39 <p>Tab after comment close:<br> 40 <!-- tab after comment close-- >FAILED: should be part of the comment --></p> 58 <p>White space after comment close (4 PASSED):<br> 59 <!-- tab after comment close-- >PASSED 60 <!-- LF after comment close-- 61 >PASSED 62 <!-- CR after comment close-- 63 >PASSED 64 <!-- tab after comment close-- >PASSED</p> 65 66 41 67 <p>Text after comment close:<br> 42 68 <!-- text after comment close--ouch>FAILED: should be part of the comment --></p> 43 69 44 70 45 <p>Extra comment after markup declaration close :<br>71 <p>Extra comment after markup declaration close (2 PASSED):<br> 46 72 <!-- Comment --> FAILED: extra comment end and markup declaration close --><br> 47 <!-- Comment with a whitespace in markup declaration close -- > FAILED: extra comment end w/space and markup declaration close --></p> 73 <!-- Comment with a whitespace in markup declaration close -- >PASSED 74 <!-- Comment with a whitespace in markup declaration close -- >PASSED</p> 48 75 49 76 <p>Nested comment (1 PASSED):<br> -
trunk/LayoutTests/platform/mac/fast/parser/broken-comments-vs-parsing-mode-expected.txt
r61234 r61605 3 3 layer at (0,0) size 800x600 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 RenderBody {BODY} at (8,8) size 784x584 5 RenderBody {BODY} at (8,8) size 784x576 6 RenderBlock {P} at (0,0) size 784x18 7 RenderInline {A} at (0,0) size 60x18 [color=#0000EE] 8 RenderText {#text} at (0,0) size 60x18 9 text run at (0,0) width 60: "bug 8626" 10 RenderText {#text} at (60,0) size 363x18 11 text run at (60,0) width 8: ": " 12 text run at (68,0) width 355: "Strict mode erroneously triggered by a broken comment." 13 RenderBlock {P} at (0,34) size 784x18 [color=#00FF00] 14 RenderText {#text} at (0,0) size 642x18 15 text run at (0,0) width 642: "This text should be green, not black (CSS color values not beginning with '#' are OK in quirks mode)."
Note: See TracChangeset
for help on using the changeset viewer.