<?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>90234</bug_id>
          
          <creation_ts>2012-06-28 18:14:14 -0700</creation_ts>
          <short_desc>transitions-test-helpers.js is flaky</short_desc>
          <delta_ts>2012-08-09 22:09:49 -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>CSS</component>
          <version>528+ (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="Mike Lawther">mikelawther</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>thorton</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>660016</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Lawther">mikelawther</who>
    <bug_when>2012-06-28 18:14:14 -0700</bug_when>
    <thetext>As part of http://trac.webkit.org/changeset/121351, I landed LayoutTests/css3/calc/transitions.html that uses the transitions test framework.

It is failing flakily, with the error &quot;CONSOLE MESSAGE: line 263: TypeError: &apos;undefined&apos; is not a function (evaluating &apos;callback()&apos;)&quot; See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpectations=true&amp;tests=css3%2Fcalc%2F for results on other platforms - it fails on Mac, Win and Linux.

Line 263 is in this function in http://trac.webkit.org/browser/trunk/LayoutTests/transitions/resources/transition-test-helpers.js:

function waitForAnimationStart(callback, delay)
{
    var delayTimeout = delay ? 1000 * delay + 10 : 0;
    // Why the two setTimeouts? Well, for hardware animations we need to ensure that the hardware animation
    // has started before we try to pause it, and timers fire before animations get committed in the runloop.
    window.setTimeout(function() {
        window.setTimeout(function() {
            callback();  // &lt;-- line 263
        }, 0);
    }, delayTimeout);
}

which is called from one place:

function startTest(expected, usePauseAPI, callback)
{
    if (callback)
        callback();

    waitForAnimationStart(function() {
        runTest(expected, usePauseAPI);
    });
}

and the callback is always provided.

More data from my local testing on MacOS 10.6.8:
 - using --run-singly with NRWT I can&apos;t make transitions.html flake
 - I&apos;ve tried dumb things like renaming callback to callbackfoo - the error still flakily occurs, complaining about callbackfoo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>692197</commentid>
    <comment_count>1</comment_count>
    <who name="Mike Lawther">mikelawther</who>
    <bug_when>2012-08-09 22:09:49 -0700</bug_when>
    <thetext>Flakiness resolved in http://trac.webkit.org/changeset/125111 - it was a problem with another test, not the framework.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>