<?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>37259</bug_id>
          
          <creation_ts>2010-04-08 02:05:24 -0700</creation_ts>
          <short_desc>fast/dom/SelectorAPI/dumpNodeList tests fail when run out of order</short_desc>
          <delta_ts>2010-04-08 02:51:24 -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>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>mitz</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>210092</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-04-08 02:05:24 -0700</bug_when>
    <thetext>fast/dom/SelectorAPI/dumpNodeList tests fail when run out of order

fast/dom/SelectorAPI/dumpNodeList-almost-strict.html
fast/dom/SelectorAPI/dumpNodeList.html

For whatever reason &quot;dump&quot; is not always defined on the value returned from querySelectorAll.

It&apos;s possible that bad prototypes are bleeding through from a previous test?  Or that querySelectorAll is returning something other than an Element or a NodeList?

One easy way to fix this test would be to use functions which check instanceof instead of bothering with modifying the prototypes.  That way we could ASSERT in the case of objects we don&apos;t understand.

Also, we could simply check for the existance of &quot;dump&quot; before calling it, and print some debugging message if it&apos;s not there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>210093</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-04-08 02:06:02 -0700</bug_when>
    <thetext>This was noticed while running new-run-webkit-tests which does not guarantee test order as it will run tests in parallel (by directory).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>210105</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-04-08 02:50:54 -0700</bug_when>
    <thetext>Committed r57268: &lt;http://trac.webkit.org/changeset/57268&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>210106</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-04-08 02:51:24 -0700</bug_when>
    <thetext>The above commit was to update test_expectations.txt to note these tests as flaky until this bug can be fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>