Changeset 96176 in webkit


Ignore:
Timestamp:
Sep 27, 2011 6:12:10 PM (13 years ago)
Author:
timothy_horton@apple.com
Message:

svg/custom/oversized-pattern-scale.svg is useless because the interesting part of the test is off the screen
https://bugs.webkit.org/show_bug.cgi?id=68945

Reviewed by Darin Adler.

Change oversized-pattern-scale so that the interesting part of the pattern is on the screen,
and so that it doesn't draw a scrollbar (making it platform-independent).

Change transformed-pattern-clamp-svg-root so that it doesn't draw a gradient, making it platform-independent.

  • svg/custom/oversized-pattern-scale-expected.png:
  • svg/custom/oversized-pattern-scale-expected.txt:
  • svg/custom/oversized-pattern-scale.svg:
  • svg/custom/transformed-pattern-clamp-svg-root-expected.png:
  • svg/custom/transformed-pattern-clamp-svg-root-expected.txt:
  • svg/custom/transformed-pattern-clamp-svg-root.svg:
Location:
trunk/LayoutTests
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r96174 r96176  
     12011-09-27  Tim Horton  <timothy_horton@apple.com>
     2
     3        svg/custom/oversized-pattern-scale.svg is useless because the interesting part of the test is off the screen
     4        https://bugs.webkit.org/show_bug.cgi?id=68945
     5
     6        Reviewed by Darin Adler.
     7       
     8        Change oversized-pattern-scale so that the interesting part of the pattern is on the screen,
     9        and so that it doesn't draw a scrollbar (making it platform-independent).
     10       
     11        Change transformed-pattern-clamp-svg-root so that it doesn't draw a gradient, making it platform-independent.
     12
     13        * svg/custom/oversized-pattern-scale-expected.png:
     14        * svg/custom/oversized-pattern-scale-expected.txt:
     15        * svg/custom/oversized-pattern-scale.svg:
     16        * svg/custom/transformed-pattern-clamp-svg-root-expected.png:
     17        * svg/custom/transformed-pattern-clamp-svg-root-expected.txt:
     18        * svg/custom/transformed-pattern-clamp-svg-root.svg:
     19
    1202011-09-27  Tony Chang  <tony@chromium.org>
    221
  • trunk/LayoutTests/svg/custom/oversized-pattern-scale-expected.txt

    r96155 r96176  
    1 layer at (0,0) size 8192x585
    2   RenderView at (0,0) size 800x585
    3 layer at (0,0) size 8192x585
    4   RenderSVGRoot {svg} at (0,0) size 8192x100
     1layer at (0,0) size 800x600
     2  RenderView at (0,0) size 800x600
     3layer at (0,0) size 512x600
     4  RenderSVGRoot {svg} at (0,0) size 512x100
    55    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
    66      RenderSVGResourcePattern {pattern} [id="pattern"] [patternUnits=userSpaceOnUse] [patternContentUnits=userSpaceOnUse]
    7         RenderSVGPath {rect} at (0,0) size 4096x585 [fill={[type=SOLID] [color=#000000]}] [x=0.00] [y=0.00] [width=4096.00] [height=8192.00]
    8     RenderSVGPath {rect} at (0,0) size 8192x100 [fill={[type=PATTERN] [id="pattern"]}] [x=0.00] [y=0.00] [width=8192.00] [height=100.00]
     7        RenderSVGPath {rect} at (0,0) size 256x600 [fill={[type=SOLID] [color=#000000]}] [x=0.00] [y=0.00] [width=256.00] [height=8192.00]
     8    RenderSVGPath {rect} at (0,0) size 512x100 [fill={[type=PATTERN] [id="pattern"]}] [x=0.00] [y=0.00] [width=512.00] [height=100.00]
  • trunk/LayoutTests/svg/custom/oversized-pattern-scale.svg

    r96155 r96176  
    11<?xml version="1.0"?>
    2 <svg xmlns="http://www.w3.org/2000/svg" width="8192">
    3 <title>The black square should be 4096 pixels wide.</title>
     2<svg xmlns="http://www.w3.org/2000/svg" width="512">
     3<title>The black square should be 256 pixels wide.</title>
    44<defs>
    55<pattern id="pattern" width="8192" height="8192" patternUnits="userSpaceOnUse">
    6 <rect x="0" y="0" width="4096" height="8192" fill="black" style="stroke:none" />
     6<rect x="0" y="0" width="256" height="8192" fill="black" style="stroke:none" />
    77</pattern>
    88</defs>
    9 <rect width="8192" height="100" x="0" y="0" fill="url(#pattern)" />
     9<rect width="512" height="100" x="0" y="0" fill="url(#pattern)" />
    1010</svg>
    1111
  • trunk/LayoutTests/svg/custom/transformed-pattern-clamp-svg-root-expected.txt

    r96155 r96176  
    66      RenderSVGResourceLinearGradient {linearGradient} [id="gradient"] [gradientUnits=objectBoundingBox] [start=(0,0)] [end=(0,1)]
    77        RenderSVGGradientStop {stop} [offset=0.00] [color=#FFFFFF]
    8         RenderSVGGradientStop {stop} [offset=1.00] [color=#000000]
     8        RenderSVGGradientStop {stop} [offset=0.50] [color=#FFFFFF]
     9        RenderSVGGradientStop {stop} [offset=0.50] [color=#008000]
     10        RenderSVGGradientStop {stop} [offset=1.00] [color=#008000]
    911      RenderSVGResourcePattern {pattern} [id="shot"] [patternUnits=userSpaceOnUse] [patternContentUnits=userSpaceOnUse]
    1012        RenderSVGPath {rect} at (0,0) size 200x200 [fill={[type=LINEAR-GRADIENT] [id="gradient"]}] [x=0.00] [y=0.00] [width=400.00] [height=400.00]
    11     RenderSVGPath {rect} at (0,0) size 200x200 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,-100.00)}] [fill={[type=PATTERN] [id="shot"]}] [x=0.00] [y=100.00] [width=200.00] [height=200.00]
     13    RenderSVGPath {rect} at (0,0) size 200x200 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,-100.00)}] [stroke={[type=SOLID] [color=#000000]}] [fill={[type=PATTERN] [id="shot"]}] [x=0.00] [y=100.00] [width=200.00] [height=200.00]
  • trunk/LayoutTests/svg/custom/transformed-pattern-clamp-svg-root.svg

    r96155 r96176  
    11<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="200" width="200">
    2 <title>The rectangle should be filled with a single smooth gradient.</title>
     2<title>The rectangle should be split; white on the top, green on the bottom.</title>
    33<defs>
    44  <linearGradient id="gradient" x2="0%" y2="100%">
    55    <stop offset="0" stop-color="white"/>
    6     <stop offset="1" stop-color="black"/>
     6    <stop offset="0.5" stop-color="white"/>
     7    <stop offset="0.5" stop-color="green"/>
     8    <stop offset="1" stop-color="green"/>
    79  </linearGradient>
    810  <pattern id="shot" patternUnits="userSpaceOnUse" width="400" height="400">
     
    1012  </pattern>
    1113</defs>
    12 <rect transform="translate(0,-100)" x="0" y="100" width="200" height="200" fill="url(#shot)"/>
     14<rect transform="translate(0,-100)" x="0" y="100" width="200" height="200" fill="url(#shot)" stroke="black"/>
    1315</svg>
Note: See TracChangeset for help on using the changeset viewer.