LayoutTests/ChangeLog

112012-08-20 Bruno de Oliveira Abinader <bruno.abinader@basyskom.com>
22
 3 [css3-text] Add repaint tests for -webkit-text-decoration-line
 4 https://bugs.webkit.org/show_bug.cgi?id=94480
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 Changeset r125205 introduced new CSS3 property "-webkit-text-decoration-line".
 9 This bug intends to add repaint layout tests for this property.
 10
 11 * fast/css3-text-decoration/repaint/repaint-text-decoration-line-expected.png: Added.
 12 * fast/css3-text-decoration/repaint/repaint-text-decoration-line-expected.txt: Added.
 13 * fast/css3-text-decoration/repaint/repaint-text-decoration-line.html: Added.
 14
 152012-08-20 Bruno de Oliveira Abinader <bruno.abinader@basyskom.com>
 16
317 [css3-text] Add getComputedStyle tests for -webkit-text-decoration-line
418 https://bugs.webkit.org/show_bug.cgi?id=94108
519

LayoutTests/fast/css3-text-decoration/repaint/repaint-text-decoration-line-expected.png

Exception raised during decoding git binary patch:
Error running git apply --directory=/tmp
with patch:
diff --git a/PrettyPatch20260325-3100-1y9xzzh.bin b/PrettyPatch20260325-3100-1y9xzzh.bin
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 0
HcmV?d00001

...
error: invalid path '/tmp/PrettyPatch20260325-3100-1y9xzzh.bin'

/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:924:in `run_git_apply_on_patch'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:935:in `extract_contents_from_git_binary_literal_chunk'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:950:in `extract_contents_from_remote'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:713:in `initialize'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:845:in `new'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:845:in `block in parse'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:845:in `collect'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:845:in `parse'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:21:in `prettify'
/var/www/html/PrettyPatch/prettify.rb:30:in `<main>'

LayoutTests/fast/css3-text-decoration/repaint/repaint-text-decoration-line-expected.txt

 1layer at (0,0) size 800x600
 2 RenderView at (0,0) size 800x600
 3layer at (0,0) size 800x600
 4 RenderBlock {HTML} at (0,0) size 800x600
 5 RenderBody {BODY} at (8,8) size 784x582
 6 RenderBlock {P} at (0,0) size 784x10
 7 RenderInline {SPAN} at (0,0) size 140x10
 8 RenderText {#text} at (0,0) size 140x10
 9 text run at (0,0) width 140: "underline text"
 10 RenderBlock {P} at (0,20) size 784x10
 11 RenderInline {SPAN} at (0,0) size 130x10
 12 RenderText {#text} at (0,0) size 130x10
 13 text run at (0,0) width 130: "overline text"
 14 RenderBlock {P} at (0,40) size 784x10
 15 RenderInline {SPAN} at (0,0) size 170x10
 16 RenderText {#text} at (0,0) size 170x10
 17 text run at (0,0) width 170: "line-through text"
 18 RenderBlock {P} at (0,60) size 784x10
 19 RenderInline {SPAN} at (0,0) size 350x10
 20 RenderText {#text} at (0,0) size 350x10
 21 text run at (0,0) width 350: "underline + overline + line-through"
 22 RenderBlock {P} at (0,80) size 784x10
 23 RenderInline {SPAN} at (0,0) size 160x10
 24 RenderText {#text} at (0,0) size 160x10
 25 text run at (0,0) width 160: "undecorated text"
 26 RenderBlock {P} at (0,100) size 784x10
 27 RenderInline {SPAN} at (0,0) size 160x10
 28 RenderText {#text} at (0,0) size 160x10
 29 text run at (0,0) width 160: "undecorated text"
 30 RenderBlock {P} at (0,120) size 784x10
 31 RenderInline {SPAN} at (0,0) size 140x10
 32 RenderText {#text} at (0,0) size 140x10
 33 text run at (0,0) width 140: "underline text"
 34 RenderBlock {P} at (0,140) size 784x10
 35 RenderInline {SPAN} at (0,0) size 140x10
 36 RenderText {#text} at (0,0) size 140x10
 37 text run at (0,0) width 140: "underline text"
 38 RenderBlock {P} at (0,160) size 784x10
 39 RenderInline {SPAN} at (0,0) size 140x10
 40 RenderInline {SPAN} at (0,0) size 140x10
 41 RenderText {#text} at (0,0) size 140x10
 42 text run at (0,0) width 140: "underline text"
 43 RenderBlock {P} at (0,180) size 784x10
 44 RenderInline {SPAN} at (0,0) size 130x10
 45 RenderInline {SPAN} at (0,0) size 130x10
 46 RenderText {#text} at (0,0) size 130x10
 47 text run at (0,0) width 130: "overline text"

LayoutTests/fast/css3-text-decoration/repaint/repaint-text-decoration-line.html

 1<html>
 2 <head>
 3 <script src="../../repaint/resources/repaint.js" type="text/javascript"></script>
 4 <script type="text/javascript">
 5 function repaintTest() {
 6 document.getElementById("test-underline").style.webkitTextDecorationLine = 'underline';
 7 document.getElementById("test-overline").style.webkitTextDecorationLine = 'overline';
 8 document.getElementById("test-line-through").style.webkitTextDecorationLine = 'line-through';
 9 document.getElementById("test-all").style.webkitTextDecorationLine = 'underline overline line-through';
 10 document.getElementById("test-invalid-blink").style.webkitTextDecorationLine = 'blink';
 11 document.getElementById("test-invalid-inherit").style.webkitTextDecorationLine = 'inherit';
 12 document.getElementById("test-initial-explicit").style.webkitTextDecorationLine = 'initial';
 13 document.getElementById("test-initial-empty").style.webkitTextDecorationLine = '';
 14 document.getElementById("test-parent").style.webkitTextDecorationLine = 'underline';
 15 document.getElementById("test-ancestor").style.webkitTextDecorationLine = 'overline';
 16 }
 17 </script>
 18 </head>
 19 <body onload="runRepaintTest();" style="font: 10px Ahem; -webkit-font-smoothing: none;">
 20 <!-- Valid values repaint ("webkit-text-decoration-line" overwrites "text-decoration" on repaintTest(). -->
 21 <p><span id="test-underline" style="text-decoration: none;">underline text</span></p>
 22 <p><span id="test-overline" style="text-decoration: none;">overline text</span></p>
 23 <p><span id="test-line-through" style="text-decoration: none;">line-through text</span></p>
 24 <p><span id="test-all" style="text-decoration: none;">underline + overline + line-through</span></p>
 25 <!-- Parent value is not set, so fallback to initial "none" value. -->
 26 <p><span id="test-invalid-inherit" style="text-decoration: underline;">undecorated text</span></p>
 27
 28 <!-- Explicit 'initial' value computed style is 'none'. -->
 29 <p><span id="test-initial-explicit" style="text-decoration: underline;">undecorated text</span></p>
 30
 31 <!-- "text-decoration-line" property does not accept 'blink' value. -->
 32 <p><span id="test-invalid-blink" style="text-decoration: underline;">underline text</span></p>
 33
 34 <!-- Empty value treated as invalid, so fallback to last valid value "underline". -->
 35 <p><span id="test-initial-empty" style="text-decoration: underline;">underline text</span></p>
 36
 37 <!-- Ancestor inherits "-webkit-text-decoration-line" value from parent on repaintTest(). -->
 38 <p><span id="test-parent"><span>underline text</span></span></p>
 39
 40 <!-- Ancestor overwrites parent value on repaintTest(). -->
 41 <p><span style="-webkit-text-decoration-style: underline;"><span id="test-ancestor">overline text</span></span></p>
 42 </body>
 43</html>