tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

reftest.list (13531B)


      1 # Tests related to SVG being used as an image
      2 
      3 # zoom/
      4 include zoom/reftest.list
      5 
      6 # Background-image tests
      7 == background-display-none-1.html  about:blank
      8 == background-simple-1.html  lime100x100-ref.html
      9 == background-simple-2.html  lime100x100-ref.html
     10 
     11 # Sightly trickier background-image test
     12 == background-viewBox-1.html  lime100x100-ref.html
     13 
     14 # background tests with the background area getting resized
     15 == background-resize-1.html  lime100x100-ref.html
     16 == background-resize-2.html  lime100x100-ref.html
     17 == background-resize-3.html  lime100x100-ref.html
     18 == background-resize-4.html  lime100x100-ref.html
     19 
     20 # Test for stretching background images by different amounts in each dimension
     21 == background-stretch-1.html background-stretch-1-ref.html
     22 
     23 # Tests for scaling background images
     24 fails-if(useDrawSnapshot) == background-scale-no-viewbox-1.html   background-scale-no-viewbox-1-ref.html
     25 fails-if(useDrawSnapshot) == background-scale-with-viewbox-1.html background-scale-with-viewbox-1-ref.html
     26 
     27 # Test for border-image
     28 == border-image-simple-1.html       lime100x100-ref.html
     29 == border-image-simple-2.html       lime100x100-ref.html
     30 
     31 # Test for canvas "drawImage" method
     32 == canvas-drawImage-simple-1a.html lime100x100-ref.html
     33 == canvas-drawImage-simple-1b.html lime100x100-ref.html
     34 
     35 == canvas-drawImage-scale-1a.html lime100x100-ref.html
     36 == canvas-drawImage-scale-1b.html lime100x100-ref.html
     37 == canvas-drawImage-scale-1c.html lime100x100-ref.html
     38 
     39 fuzzy(0-192,0-2151) == canvas-drawImage-scale-2a.html canvas-drawImage-scale-2-ref.html
     40 fuzzy(0-192,0-2151) == canvas-drawImage-scale-2b.html canvas-drawImage-scale-2-ref.html
     41 
     42 fuzzy(0-1,0-10000) == canvas-drawImage-alpha-1.html canvas-drawImage-alpha-1-ref.html
     43 #Same as scale-2a but with globalAlpha:
     44 fuzzy(0-1,0-40000) fuzzy-if(winWidget&&!swgl,1-73,180-40000) fuzzy-if(Android&&device,0-48,0-39989) == canvas-drawImage-alpha-2.html canvas-drawImage-alpha-2-ref.html
     45 
     46 == canvas-drawImage-slice-1a.html lime100x100-ref.html
     47 == canvas-drawImage-slice-1b.html lime100x100-ref.html
     48 
     49 == canvas-drawImage-origin-clean-1.html lime100x100-ref.html
     50 == canvas-drawImage-transform-restored.html canvas-drawImage-transform-restored-ref.html
     51 
     52 # Context paint tests (this feature is currently not part of any spec.)
     53 # context-fill:
     54 == context-fill-01.html blue100x100-ref.html
     55 test-pref(svg.context-properties.content.enabled,true) == context-fill-01.html lime100x100-ref.html
     56 == context-fill-02.html transparent100x100-w-border-ref.html
     57 test-pref(svg.context-properties.content.enabled,true) == context-fill-02.html lime100x100-w-border-ref.html
     58 test-pref(svg.context-properties.content.enabled,true) == context-fill-03.html lime100x100-50pct-ref.html
     59 # fuzz because on win8 the r & b components are off by one
     60 fuzzy-if(winWidget,0-1,0-10000) test-pref(svg.context-properties.content.enabled,true) == context-fill-04.html lime100x100-50pct-ref.html
     61 test-pref(svg.context-properties.content.enabled,true) == context-fill-05.html context-fill-or-stroke-05-ref.html
     62 test-pref(svg.context-properties.content.enabled,true) == context-fill-06.html lime100x100-ref.html
     63 test-pref(svg.context-properties.content.enabled,true) == context-fill-07.html context-fill-07-ref.html
     64 test-pref(svg.context-properties.content.enabled,true) == context-fill-08.html blue100x100-ref.html
     65 test-pref(svg.context-properties.content.enabled,true) == context-fill-bg-image-01.html blue100x100-ref.html
     66 # context-stroke:
     67 == context-stroke-01.html blue100x100-ref.html
     68 test-pref(svg.context-properties.content.enabled,true) == context-stroke-01.html lime100x100-ref.html
     69 == context-stroke-02.html transparent100x100-w-border-ref.html
     70 test-pref(svg.context-properties.content.enabled,true) == context-stroke-02.html lime100x100-w-border-ref.html
     71 test-pref(svg.context-properties.content.enabled,true) == context-stroke-03.html lime100x100-50pct-ref.html
     72 # fuzz because on win8 the r & b components are off by one
     73 fuzzy-if(winWidget,0-1,0-10000) test-pref(svg.context-properties.content.enabled,true) == context-stroke-04.html lime100x100-50pct-ref.html
     74 test-pref(svg.context-properties.content.enabled,true) == context-stroke-05.html context-fill-or-stroke-05-ref.html
     75 test-pref(svg.context-properties.content.enabled,true) == context-stroke-06.html lime100x100-ref.html
     76 test-pref(svg.context-properties.content.enabled,true) == context-stroke-07.html context-stroke-07-ref.html
     77 test-pref(svg.context-properties.content.enabled,true) == context-stroke-08.html blue100x100-border-ref.html
     78 test-pref(svg.context-properties.content.enabled,true) == context-stroke-bg-image-01.html blue100x100-border-ref.html
     79 # context-fill-opacity:
     80 == context-fill-opacity-01.html blue100x100-ref.html
     81 fuzzy-if(winWidget,0-1,0-10000) test-pref(svg.context-properties.content.enabled,true) == context-fill-opacity-01.html context-fill-or-stroke-opacity-01-ref.html # Bug 1377327
     82 fuzzy-if(winWidget,0-1,0-20000) test-pref(svg.context-properties.content.enabled,true) == context-fill-opacity-02.html context-fill-or-stroke-opacity-02-ref.html # Bug 1377327
     83 fuzzy-if(winWidget,0-1,0-10000) test-pref(svg.context-properties.content.enabled,true) == context-fill-opacity-03.html context-fill-or-stroke-opacity-03-ref.html # Bug 1377327
     84 fuzzy-if(winWidget,0-1,0-10000) test-pref(svg.context-properties.content.enabled,true) == context-fill-opacity-04.html blue100x100-ref.html # Bug 1377327
     85 fuzzy-if(winWidget,0-1,0-10000) test-pref(svg.context-properties.content.enabled,true) == context-fill-opacity-05.html blue100x100-ref.html # Bug 1377327
     86 # context-stroke-opacity:
     87 == context-stroke-opacity-01.html blue100x100-ref.html
     88 fuzzy-if(winWidget,0-1,0-10000) test-pref(svg.context-properties.content.enabled,true) == context-stroke-opacity-01.html context-fill-or-stroke-opacity-01-ref.html # Bug 1377327
     89 fuzzy-if(winWidget,0-1,0-20000) test-pref(svg.context-properties.content.enabled,true) == context-stroke-opacity-02.html context-fill-or-stroke-opacity-02-ref.html # Bug 1377327
     90 fuzzy-if(winWidget,0-1,0-10000) test-pref(svg.context-properties.content.enabled,true) == context-stroke-opacity-03.html context-fill-or-stroke-opacity-03-ref.html # Bug 1377327
     91 fuzzy-if(winWidget,0-1,0-10000) test-pref(svg.context-properties.content.enabled,true) == context-stroke-opacity-04.html blue100x100-ref.html # Bug 1377327
     92 fuzzy-if(winWidget,0-1,0-10000) test-pref(svg.context-properties.content.enabled,true) == context-stroke-opacity-05.html blue100x100-ref.html # Bug 1377327
     93 
     94 # Simple <img> tests
     95 == img-simple-1.html  lime100x100-ref.html
     96 == img-simple-2.html  lime100x100-ref.html
     97 fuzzy(0-255,0-350) fuzzy-if(geckoview,0-255,0-4063) fuzzy-if(Android13&&aarch64&&nogpu,0-255,0-4072) == img-simple-3.html img-simple-3-ref.html #Bug 1564891, bug 1574154
     98 == img-simple-4.html  lime100x100-ref.html
     99 fuzzy(0-255,0-90) fuzzy-if(geckoview,0-255,0-1286) == img-simple-5.html img-simple-5-ref.html
    100 == img-simple-6.html  lime100x100-ref.html
    101 fuzzy(0-255,0-27) == img-simple-7.html img-simple-7-ref.html
    102 
    103 # Test with mix of <html:img> and <svg:image> referring to the same images,
    104 # with a variety of preserveAspectRatio values in play.
    105 random == img-and-image-1.html img-and-image-1-ref.svg # bug 645267
    106 
    107 # More complex <img> tests
    108 == img-blobURI-1.html lime100x100-ref.html
    109 skip == img-blobURI-2.html lime100x100-ref.html
    110 fuzzy-if(winWidget,0-16,0-10) == img-content-outside-viewBox-1.html img-content-outside-viewBox-1-ref.html # winWidget is bug 1074161
    111 == img-display-none-1.html about:blank
    112 == img-dyn-1.html img-dyn-1-ref.html
    113 == img-foreignObject-1.html lime100x100-ref.html
    114 
    115 # The following tests check that content embedded via <iframe> and <embed>
    116 # doesn't load (or execute scripts) in SVG-as-an-image.
    117 # The "!=" lines are to test that the SVG content, when viewed directly (not as
    118 # an image), does actually render its external content (making it look
    119 # different from the reference case).  We don't do that check for
    120 # img-foreignObject-iframe-1a.html, though, because its SVG image tries to
    121 # alert(), and that'd trigger a reftest timeout if we loaded that file directly.
    122 == img-foreignObject-embed-1.html         lime100x100-ref.html
    123 skip != img-foreignObject-embed-1-helper.svg   lime100x100.svg    # Bug 1708599
    124 == img-foreignObject-iframe-1a.html       lime100x100-ref.html
    125 == img-foreignObject-iframe-1b.html       lime100x100-ref.html
    126 != img-foreignObject-iframe-1b-helper.svg lime100x100.svg
    127 
    128 == img-widthAndHeight-meet-1.html  img-widthAndHeight-meet-1-ref.html
    129 == img-widthAndHeight-meet-2.html  img-widthAndHeight-meet-2-ref.html
    130 fuzzy-if(!useDrawSnapshot,255-255,9-9) random-if(geckoview) == img-widthAndHeight-slice-1.html img-widthAndHeight-slice-1-ref.html
    131 == img-widthAndHeight-slice-2.html img-widthAndHeight-slice-2-ref.html
    132 
    133 == img-height-meet-1.html   img-height-meet-1-ref.html
    134 == img-height-meet-2.html   img-height-meet-2-ref.html
    135 fuzzy-if(!useDrawSnapshot,255-255,9-9) random-if(geckoview) == img-height-slice-1.html img-height-slice-1-ref.html
    136 == img-height-slice-2.html  img-height-slice-2-ref.html
    137 
    138 == img-width-meet-1.html   img-width-meet-1-ref.html
    139 == img-width-meet-2.html   img-width-meet-2-ref.html
    140 fuzzy-if(!useDrawSnapshot,255-255,3-9) random-if(geckoview) == img-width-slice-1.html img-width-slice-1-ref.html
    141 == img-width-slice-2.html  img-width-slice-2-ref.html
    142 
    143 # Alternate version of "width & height both non-%-valued" tests, but now
    144 # with no explicit viewBox, to trigger "synthesize-viewBox" behavior
    145 == img-novb-widthAndHeight-meet-1-em.html  img-novb-widthAndHeight-all-1-ref.html
    146 == img-novb-widthAndHeight-meet-1-px.html  img-novb-widthAndHeight-all-1-ref.html
    147 == img-novb-widthAndHeight-slice-1-em.html img-novb-widthAndHeight-all-1-ref.html
    148 == img-novb-widthAndHeight-slice-1-px.html img-novb-widthAndHeight-all-1-ref.html
    149 
    150 # Alternate versions of "only one dimension is non-%-valued" tests, but now
    151 # with no explicit viewBox, to trigger "synthesize-viewBox" behavior
    152 == img-novb-height-meet-1.html    img-novb-height-all-1-ref.html
    153 == img-novb-height-slice-1.html   img-novb-height-all-1-ref.html
    154 fuzzy(0-255,0-10) == img-novb-width-meet-1.html img-novb-width-all-1-ref.html
    155 fuzzy(0-255,0-10) == img-novb-width-slice-1.html img-novb-width-all-1-ref.html
    156 
    157 # with with a fragmentIdentifier viewBox
    158 == img-fragment-1a.html  img-fragment-1-ref.html
    159 == img-fragment-1b.html  img-fragment-1-ref.html
    160 == img-fragment-1c.html  img-fragment-1-ref.html
    161 == img-fragment-2a.html  img-fragment-2-ref.html
    162 == img-fragment-2b.html  img-fragment-2-ref.html
    163 == img-fragment-2c.html  img-fragment-2-ref.html
    164 
    165 == list-simple-1.html list-simple-1-ref.html
    166 
    167 == svg-image-simple-1.svg lime100x100.svg
    168 == svg-image-simple-2.svg lime100x100.svg
    169 == svg-image-simple-3.svg lime100x100.svg
    170 
    171 # tests for <svg> files that include themselves as an <image>
    172 fuzzy-if(winWidget,0-1,0-1) == svg-image-recursive-1a.svg  svg-image-recursive-1-ref.svg
    173 fuzzy-if(winWidget,0-1,0-1) == svg-image-recursive-1b.svg  svg-image-recursive-1-ref.svg
    174 fuzzy-if(winWidget,0-1,0-1) == svg-image-recursive-2a.svg  svg-image-recursive-2-ref.svg
    175 fuzzy-if(winWidget,0-1,0-1) == svg-image-recursive-2b.html svg-image-recursive-2-ref.svg
    176 
    177 # tests for external resources vs. data URIs in SVG as an image
    178 == svg-image-datauri-1.html            lime100x100.svg
    179 HTTP == svg-image-datauri-1.html       lime100x100.svg
    180 == svg-image-external-1.html           blue100x100.svg
    181 HTTP == svg-image-external-1.html      blue100x100.svg
    182 == svg-stylesheet-datauri-1.html       lime100x100.svg
    183 HTTP == svg-stylesheet-datauri-1.html  lime100x100.svg
    184 == svg-stylesheet-external-1.html      blue100x100.svg
    185 HTTP == svg-stylesheet-external-1.html blue100x100.svg
    186 
    187 # tests for SVG <image> that should have a synthetic viewBox
    188 == svg-image-synthetic-viewBox-01.svg svg-image-synthetic-viewBox-01-ref.svg
    189 
    190 # Test for painting problems with SVGs used in border images.
    191 # XXXseth: The underlying problems also apply to media fragments,
    192 # but the test case would be much simpler. This should be switched
    193 # over to use media fragments once bug 790640 lands.
    194 fuzzy(0-2,0-1) == svg-border-image-repaint-1.html svg-border-image-repaint-1-ref.html
    195 
    196 # Test that 'image-orientation: from-image' has no effect, since SVGs don't have EXIF data.
    197 == image-orientation-viewbox-and-size.html?from-image  image-orientation-viewbox-and-size.html?none
    198 == image-orientation-viewbox-no-size.html?from-image   image-orientation-viewbox-no-size.html?none
    199 
    200 # Tests that nonuniform scales work with SVG-as-image.
    201 == nonuniform-scale-2d.html?0.5&1.0  nonuniform-scale-ref.html?50&100
    202 == nonuniform-scale-2d.html?1.0&0.5  nonuniform-scale-ref.html?100&50
    203 == nonuniform-scale-3d.html?0.5&1.0&0.5  nonuniform-scale-ref.html?50&100
    204 == nonuniform-scale-3d.html?1.0&0.5&0.5  nonuniform-scale-ref.html?100&50
    205 
    206 # Sanity checks that nonuniform scales don't devolve to uniform scales.
    207 != nonuniform-scale-2d.html?0.3&1.0  nonuniform-scale-2d.html?0.3&0.3
    208 != nonuniform-scale-2d.html?0.3&1.0  nonuniform-scale-2d.html?1.0&1.0
    209 != nonuniform-scale-2d.html?1.0&0.3  nonuniform-scale-2d.html?0.3&0.3
    210 != nonuniform-scale-2d.html?1.0&0.3  nonuniform-scale-2d.html?1.0&1.0
    211 != nonuniform-scale-3d.html?0.3&1.0&0.3  nonuniform-scale-3d.html?0.3&0.3&0.3
    212 != nonuniform-scale-3d.html?0.3&1.0&0.3  nonuniform-scale-3d.html?1.0&1.0&1.0
    213 != nonuniform-scale-3d.html?1.0&0.3&0.3  nonuniform-scale-3d.html?0.3&0.3&0.3
    214 != nonuniform-scale-3d.html?1.0&0.3&0.3  nonuniform-scale-3d.html?1.0&1.0&1.0
    215 
    216 # Test for preserveAspectRatio with no-longer-supported "defer" keyword
    217 == defer-unsupported-1.svg  defer-unsupported-1-ref.svg