<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>148149</bug_id>
          
          <creation_ts>2015-08-18 15:57:15 -0700</creation_ts>
          <short_desc>Fix a rare flakiness in svg/animations/svgPreserveAspectRatio-animation-1.html</short_desc>
          <delta_ts>2015-08-18 17:44:00 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Said Abou-Hallawa">sabouhallawa</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>thorton</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1118671</commentid>
    <comment_count>0</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2015-08-18 15:57:15 -0700</bug_when>
    <thetext>https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;showExpectations=true&amp;revision=188590&amp;tests=svg%2Fanimations%2FsvgPreserveAspectRatio-animation-1.html 

FAIL rootSVGElement.preserveAspectRatio.animVal.align should be 2. Was 7.
FAIL rootSVGElement.preserveAspectRatio.animVal.meetOrSlice should be 1. Was 2.

shows that the test is somehow flaky. After looking at the failure results. Here is what is happening:

1. The preserveAspectRatio of the SVG root element is set initially to &quot;xMaxYMin meet&quot;.
2. An animation element is created to animate the preserveAspectRatio from &quot;xMinYMin meet&quot; to &quot;xMaxYMid slice&quot; in 4s.
3. The script svg/animations/resources/SVGAnimationTestCase.js fakes the animation to able to sample the changes in the animated attributes. It works by splitting the animation period in two halves. The first half the attribute value is set to the from-value and the second half the attribute value is set to the to-value. In this test case the animation period is 4s. So the first two second preserveAspectRatio = &quot;xMinYMin meet&quot; and the last two seconds preserveAspectRatio from &quot;xMaxYMid slice&quot;.
4. We are sampling the animation exactly at the 2.0 seconds which is the time the change in the animated value happens. The expected file is assuming preserveAspectRatio to be the from-value (&quot;xMinYMin meet&quot; or &quot;2 1&quot;). But the failure results shows that its value is the to-value (&quot;xMaxYMid slice&quot; or &quot;7 2&quot;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1118673</commentid>
    <comment_count>1</comment_count>
      <attachid>259306</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2015-08-18 15:59:59 -0700</bug_when>
    <thetext>Created attachment 259306
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1118742</commentid>
    <comment_count>2</comment_count>
      <attachid>259306</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-08-18 17:43:56 -0700</bug_when>
    <thetext>Comment on attachment 259306
Patch

Clearing flags on attachment: 259306

Committed r188613: &lt;http://trac.webkit.org/changeset/188613&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1118743</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-08-18 17:44:00 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>259306</attachid>
            <date>2015-08-18 15:59:59 -0700</date>
            <delta_ts>2015-08-18 17:43:56 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-148149-20150818160001.patch</filename>
            <type>text/plain</type>
            <size>3288</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDE4ODYwNSkKKysrIExheW91dFRlc3RzL0NoYW5nZUxvZwkod29y
a2luZyBjb3B5KQpAQCAtMSwzICsxLDE4IEBACisyMDE1LTA4LTE4ICBTYWlkIEFib3UtSGFsbGF3
YSAgPHNhYm91aGFsbGF3YUBhcHBsZS5jb20+CisKKyAgICAgICAgRml4IGEgcmFyZSBmbGFraW5l
c3MgaW4gc3ZnL2FuaW1hdGlvbnMvc3ZnUHJlc2VydmVBc3BlY3RSYXRpby1hbmltYXRpb24tMS5o
dG1sCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNDgx
NDkKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKyAgICAgICAgCisgICAg
ICAgIERvIG5vdCBzYW1wbGUgdGhlIFNWRyBhbmltYXRpb24gYXQgdGhlIG1pZGRsZSBvZiB0aGUg
YW5pbWF0aW9uIHBlcmlvZC4gQXQKKyAgICAgICAgdGhhdCB0aW1lLCB0aGUgU1ZHIGFuaW1hdGlv
biB0ZXN0IHNjcmlwdCBjaGFuZ2VzIHRoZSB2YWx1ZSBvZiB0aGUgYW5pbWF0ZWQKKyAgICAgICAg
YXR0cmlidXRlIGZyb20gdGhlIGZyb20tdmFsdWUgdG8gdGhlIHRvLXZhbHVlLiBJdCBpcyBzYWZl
ciB0byBzYW1wbGUKKyAgICAgICAgaW1tZ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GUx
XSwKLSAgICAgICAgWyJhbmltYXRpb24iLCAyLjAsICAgc2FtcGxlMl0sCisgICAgICAgIFsiYW5p
bWF0aW9uIiwgMS45OTksIHNhbXBsZTJdLAorICAgICAgICBbImFuaW1hdGlvbiIsIDIuMDAxLCBz
YW1wbGUzXSwKICAgICAgICAgWyJhbmltYXRpb24iLCAzLjk5OSwgc2FtcGxlM10sCiAgICAgICAg
IFsiYW5pbWF0aW9uIiwgNC4wMDEsIHNhbXBsZTFdCiAgICAgXTsK
</data>

          </attachment>
      

    </bug>

</bugzilla>