Commit 9e076f28 authored by pam@chromium.org's avatar pam@chromium.org

2008-10-17 Pamela Greene <pam@chromium.org>

        Add a number of new tests.
        See https://bugs.webkit.org/show_bug.cgi?id=21407

        Reviewed by Alexey Proskuryakov.

        * fast/css/border-height.html: Added.
        * fast/dom/Window/orphaned-frame-access-expected.txt: Added.
        * fast/dom/Window/orphaned-frame-access.html: Added.
        * fast/forms/image-border.html: Added.
        * fast/forms/input-field-text-truncated.html: Added.
        * fast/forms/input-type-text-min-width.html: Added.
        * fast/forms/textarea-scrollbar-height-expected.txt: Added.
        * fast/forms/textarea-scrollbar-height.html: Added.
        * fast/forms/textarea-width.html: Added.
        * fast/overflow/overflow_hidden.html: Added.
        * fast/parser/resources/xml-declaration-missing-ending-mark.xml: Added.
        * fast/parser/xml-declaration-missing-ending-mark-expected.txt: Added.
        * fast/parser/xml-declaration-missing-ending-mark.html: Added.
        * fast/text/international/hindi-spacing.html: Added.
        * http/tests/misc/crash-multiple-family-fontface-expected.txt: Added.
        * http/tests/misc/crash-multiple-family-fontface.html: Added.
        * platform/mac/fast/css/border-height-expected.checksum: Added.
        * platform/mac/fast/css/border-height-expected.png: Added.
        * platform/mac/fast/css/border-height-expected.txt: Added.
        * platform/mac/fast/forms/image-border-expected.checksum: Added.
        * platform/mac/fast/forms/image-border-expected.png: Added.
        * platform/mac/fast/forms/image-border-expected.txt: Added.
        * platform/mac/fast/forms/input-field-text-truncated-expected.checksum: Added.
        * platform/mac/fast/forms/input-field-text-truncated-expected.png: Added.
        * platform/mac/fast/forms/input-field-text-truncated-expected.txt: Added.
        * platform/mac/fast/forms/input-type-text-min-width-expected.checksum: Added.
        * platform/mac/fast/forms/input-type-text-min-width-expected.png: Added.
        * platform/mac/fast/forms/input-type-text-min-width-expected.txt: Added.
        * platform/mac/fast/forms/textarea-width-expected.checksum: Added.
        * platform/mac/fast/forms/textarea-width-expected.png: Added.
        * platform/mac/fast/forms/textarea-width-expected.txt: Added.
        * platform/mac/fast/overflow/overflow_hidden-expected.checksum: Added.
        * platform/mac/fast/overflow/overflow_hidden-expected.png: Added.
        * platform/mac/fast/overflow/overflow_hidden-expected.txt: Added.
        * platform/mac/fast/text/international/hindi-spacing-expected.checksum: Added.
        * platform/mac/fast/text/international/hindi-spacing-expected.png: Added.
        * platform/mac/fast/text/international/hindi-spacing-expected.txt: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6e72e895
2008-10-17 Pamela Greene <pam@chromium.org>
Add a number of new tests.
See https://bugs.webkit.org/show_bug.cgi?id=21407
Reviewed by Alexey Proskuryakov.
* fast/css/border-height.html: Added.
* fast/dom/Window/orphaned-frame-access-expected.txt: Added.
* fast/dom/Window/orphaned-frame-access.html: Added.
* fast/forms/image-border.html: Added.
* fast/forms/input-field-text-truncated.html: Added.
* fast/forms/input-type-text-min-width.html: Added.
* fast/forms/textarea-scrollbar-height-expected.txt: Added.
* fast/forms/textarea-scrollbar-height.html: Added.
* fast/forms/textarea-width.html: Added.
* fast/overflow/overflow_hidden.html: Added.
* fast/parser/resources/xml-declaration-missing-ending-mark.xml: Added.
* fast/parser/xml-declaration-missing-ending-mark-expected.txt: Added.
* fast/parser/xml-declaration-missing-ending-mark.html: Added.
* fast/text/international/hindi-spacing.html: Added.
* http/tests/misc/crash-multiple-family-fontface-expected.txt: Added.
* http/tests/misc/crash-multiple-family-fontface.html: Added.
* platform/mac/fast/css/border-height-expected.checksum: Added.
* platform/mac/fast/css/border-height-expected.png: Added.
* platform/mac/fast/css/border-height-expected.txt: Added.
* platform/mac/fast/forms/image-border-expected.checksum: Added.
* platform/mac/fast/forms/image-border-expected.png: Added.
* platform/mac/fast/forms/image-border-expected.txt: Added.
* platform/mac/fast/forms/input-field-text-truncated-expected.checksum: Added.
* platform/mac/fast/forms/input-field-text-truncated-expected.png: Added.
* platform/mac/fast/forms/input-field-text-truncated-expected.txt: Added.
* platform/mac/fast/forms/input-type-text-min-width-expected.checksum: Added.
* platform/mac/fast/forms/input-type-text-min-width-expected.png: Added.
* platform/mac/fast/forms/input-type-text-min-width-expected.txt: Added.
* platform/mac/fast/forms/textarea-width-expected.checksum: Added.
* platform/mac/fast/forms/textarea-width-expected.png: Added.
* platform/mac/fast/forms/textarea-width-expected.txt: Added.
* platform/mac/fast/overflow/overflow_hidden-expected.checksum: Added.
* platform/mac/fast/overflow/overflow_hidden-expected.png: Added.
* platform/mac/fast/overflow/overflow_hidden-expected.txt: Added.
* platform/mac/fast/text/international/hindi-spacing-expected.checksum: Added.
* platform/mac/fast/text/international/hindi-spacing-expected.png: Added.
* platform/mac/fast/text/international/hindi-spacing-expected.txt: Added.
2008-10-17 Pamela Greene <pam@chromium.org>
Fix potential race by running two passes of test to defer notifyDone.
......
<!DOCTYPE HTML>
<html>
<body>
<p>The very tall div below (> 4095 pixels) should have a 1-pixel dotted border on the right and bottom and
a wider solid border on the left.</p>
<div style="width:500px; height:4096px; border-left: 4px solid #8394B2; border-right: 1px dotted #000; border-bottom: 1px dotted #000;"></div>
</body>
</html>
This tests access to a window with a null frame. You should see "PASS" for each of the three tests below.
property: PASS ... array: PASS ... missing property: PASS.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<title>Null frame access tests</title>
<script>
window.onload = function() {
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
var tag = document.getElementById('subframe');
var win = tag.contentWindow;
// remove the element so the window has a null frame
tag.parentNode.removeChild(tag);
// schedule to run after the frame is null
setTimeout(function() {
document.body.appendChild(document.createTextNode(win.test || 'property: PASS ... '));
document.body.appendChild(document.createTextNode(win[20] || 'array: PASS ... '));
document.body.appendChild(document.createTextNode(win.Comment || 'missing property: PASS.'));
if (window.layoutTestController)
layoutTestController.notifyDone();
}, 0);
};
</script>
</head>
<body>
This tests access to a window with a null frame. You should see "PASS" for each of the three tests below.<br /><br />
<iframe id="subframe" src="data:text/html,&lt;script&gt;window.test='FAIL ... ';window[20]='FAIL ... ';&lt;/script&gt;" />
</body>
</html>
<html>
<body>
<p>The first empty image box below should have the default grey "no border" border.
The second should have a 1-pixel solid black border. They should be the same otherwise.</p>
border:0<img alt="" border="0" width="338" height="50px"><hr>
border:1<img alt="" border="1" width="338" height="50px">
</body>
</html>
<html>
<head>
</head>
<body style="font-size:11px;">
<p>Text inside input field should not be cut off at the bottom when its font
is larger than the body font size. If the descenders in "something gjpqy" below
are all visible, the test passes. If they are cut off by the bottom of the
input box, the test fails.</p>
<input id="a1" style="font-size:1.1em;width: 300px;" type="text" value="something gjpqy" />
</body>
</html>
<html>
<body >
This test checks if correct min width is applied to "input type=text". To match IE and Firefox,
the input field below should show "1987", with the 7 slightly truncated.
See https://bugs.webkit.org/show_bug.cgi?id=15312 .<br />
<input size="1" value="198765" type="text">
</body>
</html>
Vertical scrollbar should not be created when there is no overflow.
This test passes if the list item below, bordered in blue, has no vertical scrollbar.
list item
This test: PASSED!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
body {font:13px/1.22 arial;}
li {overflow:auto;}
</style>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
function checkForVerticalScrollbar() {
var actual_height = document.getElementById('list_item').clientHeight;
var scroll_height = document.getElementById('list_item').scrollHeight;
if (actual_height == scroll_height )
document.getElementById('sourceViewDiv').innerHTML=' This test: PASSED!';
}
</script>
</head>
<body onload="checkForVerticalScrollbar()">
<p> <b> Vertical scrollbar should not be created when there is no overflow. </b> </p>
<p> This test passes if the list item below, bordered in blue, has no vertical scrollbar. </p>
<ul >
<li id="list_item" style="border:1px solid blue;">
list item
</li>
</ul>
<div id='sourceViewDiv'>This test: FAILED</div>
</body>
</html>
<html>
<head>
<style type="text/css">
.input{font-size:10px; color:#333; font-family:Verdana,Helvetica,sans-serif;}
</style>
</head>
<body>
<div>This text area should be drawn with a reasonable width. To meet the specified 'cols="88"',
it should wrap after the X in the third set of capital letters. Alternatively, to match IE,
it should wrap at 66 characters (after the X in the third set of digits).
See https://bugs.webkit.org/show_bug.cgi?id=15312 .</div><br />
<textarea rows="20" cols="88" wrap="soft" class="input">
1234567890abcdefghijABCDEFGHIJ1234567890abcdefghijABCDEFGHIJ12345X7890abcdefghijABCDEFGXIJ1234567890abcdefghijABCDEFGHIJ
</textarea>
</body>
</html>
<!DOCTYPE HTML>
<html style="overflow: hidden">
<script>
function check () {
var mylink = document.getElementsByTagName('a');
location = mylink[0];
}
</script>
<body onload="check()">
<p>Scrolling should occur even when the frame's overflow is hidden (i.e. it has no visible scrollbars).</p>
<div style="height: 2000px">
<a href="#top">Click here</a> </div>
<h2 id="top">Test Passed</h2>
<p>The test should have automatically scrolled down to show "Test Passed" above.</p>
</body>
</html>
<?xml version="1.0">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<p>CRASH: Omitting terminal question mark in &lt;?xml...?&gt; declaration (above) causes access violation.</p>
<p>Although the crash was originally observed in an XML file with the .html extension, this tests the XML
parser instead.<br />
<p>If you don't crash, you pass.</p>
</body>
</html>
CRASH: Omitting terminal question mark in <?xml...?> declaration (above) causes access violation.
This tests the both the HTML parser (.html extension), which is where the crash was observed, and the XML parser (in an iframe).
See https://bugs.webkit.org/show_bug.cgi?id=17814
If you don't crash, you pass. A parsing error in the "xml-parser" subframe is expected.
--------
Frame: 'xml-parser'
--------
This page contains the following errors:
error on line 1 at column 19: Blank needed here
Below is a rendering of the page up to the first error.
<?xml version="1.0">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<p>CRASH: Omitting terminal question mark in &lt;?xml...?&gt; declaration (above) causes access violation.</p>
<p>This tests the both the HTML parser (.html extension), which is where the crash was observed, and the XML
parser (in an iframe).<br />
See https://bugs.webkit.org/show_bug.cgi?id=17814</p>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.dumpChildFramesAsText();
}
</script>
<p>If you don't crash, you pass. A parsing error in the "xml-parser" subframe is expected.</p>
<iframe id="xml-parser" src="resources/xml-declaration-missing-ending-mark.xml"></iframe>
</body>
</html>
<html>
This tests the width of a breaking space after a Hindi character to ensure that it's measured properly and enough
space is left for it. Neither the Hindi on the button below nor the same text on two lines below that should be
truncated at either end.<br />
<input type="button" value="किसी भी तरह आगे ब" /><br>
<span>किसी भी तरह आगे ब</span>Foo<br>
<span style="font-family:'Times New Roman'">किसी भी तरह आगे ब</span>Foo<br>
</html>
Try to reference a custom font (@font-face) which was defined with more than 1 font-family.
PASS if does not crash
<html>
<head>
<style>
@font-face {
font-family:morris,xx;
/* Important: src cannot be local to trigger the crash */
src:url(doesNotExist.ttf);
}
body {
font:12px morris;
}
</style>
<script>
if (window.layoutTestController)
window.layoutTestController.dumpAsText();
</script>
</head>
<body>
<p>Try to reference a custom font (@font-face) which was defined with more than 1 font-family.</p>
<p>PASS if does not crash</p>
</body>
</html>
7b7e805b9d35fedf415b0d380a34ee6e
\ No newline at end of file
layer at (0,0) size 785x4173
RenderView at (0,0) size 785x600
layer at (0,0) size 785x4173
RenderBlock {HTML} at (0,0) size 785x4173
RenderBody {BODY} at (8,16) size 769x4149
RenderBlock {P} at (0,0) size 769x36
RenderText {#text} at (0,0) size 737x36
text run at (0,0) width 737: "The very tall div below (> 4095 pixels) should have a 1-pixel dotted border on the right and bottom and a wider solid"
text run at (0,18) width 112: "border on the left."
RenderBlock {DIV} at (0,52) size 505x4097 [border: (1px dotted #000000) (4px solid #8394B2)]
1e874148862ab2d1ea756f183d2617a9
\ No newline at end of file
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,8) size 784x584
RenderBlock {P} at (0,0) size 784x36
RenderText {#text} at (0,0) size 769x36
text run at (0,0) width 523: "The first empty image box below should have the default grey \"no border\" border. "
text run at (523,0) width 246: "The second should have a 1-pixel solid"
text run at (0,18) width 313: "black border. They should be the same otherwise."
RenderBlock (anonymous) at (0,52) size 784x54
RenderText {#text} at (0,36) size 53x18
text run at (0,36) width 53: "border:0"
RenderImage {IMG} at (53,0) size 338x50
RenderBlock {HR} at (0,114) size 784x2 [border: (1px inset #000000)]
RenderBlock (anonymous) at (0,124) size 784x56
RenderText {#text} at (0,38) size 53x18
text run at (0,38) width 53: "border:1"
RenderImage {IMG} at (53,0) size 340x52 [border: (1px solid #000000)]
RenderText {#text} at (0,0) size 0x0
RenderText {#text} at (0,0) size 0x0
RenderText {#text} at (0,0) size 0x0
dc2665936c5d27b3a3a76726f9669bbc
\ No newline at end of file
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,8) size 784x584
RenderBlock {P} at (0,0) size 784x26
RenderText {#text} at (0,0) size 778x26
text run at (0,0) width 778: "Text inside input field should not be cut off at the bottom when its font is larger than the body font size. If the descenders in \"something gjpqy\" below are all visible, the"
text run at (0,13) width 343: "test passes. If they are cut off by the bottom of the input box, the test fails."
RenderBlock (anonymous) at (0,37) size 784x25
RenderTextControl {INPUT} at (0,2) size 300x21 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
RenderText {#text} at (0,0) size 0x0
RenderText {#text} at (0,0) size 0x0
RenderText {#text} at (0,0) size 0x0
layer at (11,50) size 294x15
RenderBlock {DIV} at (3,3) size 294x15
RenderText {#text} at (1,0) size 99x15
text run at (1,0) width 99: "something gjpqy"
827ed73a013904a025b43aa23c1d60e7
\ No newline at end of file
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,8) size 784x584
RenderText {#text} at (0,0) size 769x36
text run at (0,0) width 769: "This test checks if correct min width is applied to \"input type=text\". To match IE and Firefox, the input field below should"
text run at (0,18) width 615: "show \"1987\", with the 7 slightly truncated. See https://bugs.webkit.org/show_bug.cgi?id=15312 ."
RenderBR {BR} at (615,32) size 0x0
RenderTextControl {INPUT} at (2,38) size 15x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
RenderText {#text} at (0,0) size 0x0
RenderText {#text} at (0,0) size 0x0
RenderText {#text} at (0,0) size 0x0
layer at (13,49) size 9x13 scrollWidth 44
RenderBlock {DIV} at (3,3) size 9x13
RenderText {#text} at (1,0) size 42x13
text run at (1,0) width 42: "198765"
9e8ea3b8bda53431d42981dd8b49dd80
\ No newline at end of file
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,8) size 784x584
RenderBlock {DIV} at (0,0) size 784x54
RenderText {#text} at (0,0) size 784x54
text run at (0,0) width 773: "This text area should be drawn with a reasonable width. To meet the specified 'cols=\"88\"', it should wrap after the X in the"
text run at (0,18) width 161: "third set of capital letters. "
text run at (161,18) width 623: "Alternatively, to match IE, it should wrap at 66 characters (after the X in the third set of digits). See"
text run at (0,36) width 313: "https://bugs.webkit.org/show_bug.cgi?id=15312 ."
RenderBlock (anonymous) at (0,54) size 784x260
RenderBR {BR} at (0,0) size 0x18
RenderTextControl {TEXTAREA} at (0,18) size 551x242 [color=#333333] [bgcolor=#FFFFFF] [border: (1px solid #333333)]
RenderText {#text} at (0,0) size 0x0
RenderText {#text} at (0,0) size 0x0
RenderText {#text} at (0,0) size 0x0
layer at (9,81) size 549x240
RenderBlock {DIV} at (1,1) size 549x240
RenderText {#text} at (3,0) size 543x24
text run at (3,0) width 543: "1234567890abcdefghijABCDEFGHIJ1234567890abcdefghijABCDEFGHIJ12345X7890abcdefghijABCDEFGXIJ12"
text run at (3,12) width 165: "34567890abcdefghijABCDEFGHIJ"
text run at (168,12) width 0: " "
RenderBR {BR} at (3,24) size 0x12
9718606c05c4511a9945173ed22b1122
\ No newline at end of file
layer at (0,0) size 800x2150
RenderView at (0,0) size 800x600
layer at (0,0) size 800x2150
RenderBlock {HTML} at (0,0) size 800x2150
RenderBody {BODY} at (8,16) size 784x2118
RenderBlock {P} at (0,0) size 784x18
RenderText {#text} at (0,0) size 612x18
text run at (0,0) width 612: "Scrolling should occur even when the frame's overflow is hidden (i.e. it has no visible scrollbars)."
RenderBlock {DIV} at (0,34) size 784x2000
RenderInline {A} at (0,0) size 65x18 [color=#0000EE]
RenderText {#text} at (0,0) size 65x18
text run at (0,0) width 65: "Click here"
RenderText {#text} at (0,0) size 0x0
RenderBlock {H2} at (0,2053) size 784x28
RenderText {#text} at (0,0) size 119x28
text run at (0,0) width 119: "Test Passed"
RenderBlock {P} at (0,2100) size 784x18
RenderText {#text} at (0,0) size 503x18
text run at (0,0) width 503: "The test should have automatically scrolled down to show \"Test Passed\" above."
scrolled to 0,1550
5dc7b51152a2c6c222d4405bc469a834
\ No newline at end of file
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,8) size 784x584
RenderText {#text} at (0,0) size 777x36
text run at (0,0) width 777: "This tests the width of a breaking space after a Hindi character to ensure that it's measured properly and enough space is left"
text run at (0,18) width 752: "for it. Neither the Hindi on the button below nor the same text on two lines below that should be truncated at either end."
RenderBR {BR} at (752,32) size 0x0
RenderButton {INPUT} at (2,38) size 103x18 [bgcolor=#C0C0C0]
RenderBlock (anonymous) at (8,2) size 87x13
RenderText at (0,0) size 87x13
text run at (0,0) width 87: "\x{915}\x{93F}\x{938}\x{940} \x{92D}\x{940} \x{924}\x{930}\x{939} \x{906}\x{917}\x{947} \x{92C}"
RenderBR {BR} at (107,51) size 0x0
RenderInline {SPAN} at (0,0) size 122x18
RenderText {#text} at (0,58) size 122x18
text run at (0,58) width 122: "\x{915}\x{93F}\x{938}\x{940} \x{92D}\x{940} \x{924}\x{930}\x{939} \x{906}\x{917}\x{947} \x{92C}"
RenderText {#text} at (122,58) size 25x18
text run at (122,58) width 25: "Foo"
RenderBR {BR} at (147,72) size 0x0
RenderInline {SPAN} at (0,0) size 122x17
RenderText {#text} at (0,76) size 122x17
text run at (0,76) width 122: "\x{915}\x{93F}\x{938}\x{940} \x{92D}\x{940} \x{924}\x{930}\x{939} \x{906}\x{917}\x{947} \x{92C}"
RenderText {#text} at (122,76) size 25x18
text run at (122,76) width 25: "Foo"
RenderBR {BR} at (147,90) size 0x0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment