<?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>23168</bug_id>
          
          <creation_ts>2009-01-07 11:34:38 -0800</creation_ts>
          <short_desc>Improve DRT API existence test in animation-test-helpers.js &amp; transition-test-helpers.js</short_desc>
          <delta_ts>2015-08-12 06:14:14 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Pierre-Olivier Latour">pol</assigned_to>
          <cc>darwinmagnaye420</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104740</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2009-01-07 11:34:38 -0800</bug_when>
    <thetext>animation-test-helper.js has this:

var hasPauseAnimationAPI = window.layoutTestController &amp;&amp; layoutTestController.pauseAnimationAtTimeOnElementWithId;

That expression does not evaluate to boolean; hasPauseAnimationAPI is &apos;undefined&apos; if the API is not present.

A better form is:

 var hasPauseAnimationAPI = (&apos;layoutTestController&apos; in window) &amp;&amp; (&apos;pauseAnimationAtTimeOnElementWithId&apos; in layoutTestController);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104770</commentid>
    <comment_count>1</comment_count>
    <who name="Pierre-Olivier Latour">pol</who>
    <bug_when>2009-01-07 13:42:56 -0800</bug_when>
    <thetext>Same issue in transition-test-helpers.js</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104790</commentid>
    <comment_count>2</comment_count>
    <who name="Pierre-Olivier Latour">pol</who>
    <bug_when>2009-01-07 14:57:15 -0800</bug_when>
    <thetext>Sending        LayoutTests/ChangeLog
Sending        LayoutTests/animations/animation-test-helpers.js
Sending        LayoutTests/transitions/transition-test-helpers.js
Transmitting file data ...
Committed revision 39687.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>