<?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>15690</bug_id>
          
          <creation_ts>2007-10-25 09:36:35 -0700</creation_ts>
          <short_desc>Bug in layout test framework (setUpPage vs. setUpPageStatus)</short_desc>
          <delta_ts>2023-11-28 03:53:49 -0800</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>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</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>
          <dependson>15707</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christian Hansen">renselp</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>ian.eng.webkit</cc>
    
    <cc>manzasiamrama2</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59437</commentid>
    <comment_count>0</comment_count>
    <who name="Christian Hansen">renselp</who>
    <bug_when>2007-10-25 09:36:35 -0700</bug_when>
    <thetext>There seems to be a bug the test framework used by the layout tests.  Upon completion the setUpPage function overwrites itself when it really means to update setUpPageComplete.  I&apos;m not sure exactly what the consequences are but in any case it seems wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59443</commentid>
    <comment_count>1</comment_count>
    <who name="Christian Hansen">renselp</who>
    <bug_when>2007-10-25 10:51:33 -0700</bug_when>
    <thetext>Correction: not setUpPageComplete but setUpPageStatus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59484</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-10-25 19:10:00 -0700</bug_when>
    <thetext>Can you be more specific about this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59492</commentid>
    <comment_count>3</comment_count>
    <who name="Christian Hansen">renselp</who>
    <bug_when>2007-10-25 21:18:50 -0700</bug_when>
    <thetext>If you run dom/xhtml/level2/html/HTMLIFrameElement11.xhtml an exception is thrown at selfxhtml.js:715 and the actual test is never run.  However, the test is still marked as passed for some reason.

Also, if you look at the code in HTMLIFrameElement11.js (or any of the others like it) I think it is pretty obvious that overwriting setUpPage is not the intended behavior.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59496</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-10-25 22:03:41 -0700</bug_when>
    <thetext>Here are the results for this test, I don&apos;t see it marked as passed:

Test	http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLIFrameElement11
Status	failure
Message	titleLink: assertEquals failed, actual , expected NIST DOM HTML Test - FRAME.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59497</commentid>
    <comment_count>5</comment_count>
    <who name="Christian Hansen">renselp</who>
    <bug_when>2007-10-25 22:25:42 -0700</bug_when>
    <thetext>Sorry, I picked the wrong HTMLIFrameElement11 -- I meant dom/html/level2/html/HTMLIFrameElement11.html.  In safari 3.0.3 I get

Test:	http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLIFrameElement11
Status:	Success

But an error shows up in the javascript console:

Value complete (result of expression setUpPage) is not object.
selfhtml.js:692
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59508</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-10-25 23:35:58 -0700</bug_when>
    <thetext>Oh, that&apos;s a bad bug - thanks for catching it!

Interestingly, this particular test starts to crash for me when corrected :-(. I&apos;m going to see if this can be easily fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59513</commentid>
    <comment_count>7</comment_count>
    <who name="Christian Hansen">renselp</who>
    <bug_when>2007-10-26 00:00:23 -0700</bug_when>
    <thetext>Note that this is a potential problem for any test whose .js file was created from the same template, which I think is most of them.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59514</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-10-26 00:02:01 -0700</bug_when>
    <thetext>Yes, there were several thousand instances of this problem.

Filed &lt;http://www.w3.org/Bugs/Public/show_bug.cgi?id=5227&gt;, so that this could be fixed upstream, too.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64657</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-12-18 12:30:19 -0800</bug_when>
    <thetext>*** Bug 16494 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66140</commentid>
    <comment_count>10</comment_count>
    <who name="Feng Qian">ian.eng.webkit</who>
    <bug_when>2008-01-03 10:18:15 -0800</bug_when>
    <thetext>The bug in w3c is marked as fixed. How can we down steam changes to WebKit?

(In reply to comment #9)
&gt; *** Bug 16494 has been marked as a duplicate of this bug. ***
&gt; 

(In reply to comment #8)
&gt; Yes, there were several thousand instances of this problem.
&gt; 
&gt; Filed &lt;http://www.w3.org/Bugs/Public/show_bug.cgi?id=5227&gt;, so that this could
&gt; be fixed upstream, too.
&gt; </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66145</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-01-03 12:45:14 -0800</bug_when>
    <thetext>We need to fix bug 15707, which blocks this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110574</commentid>
    <comment_count>12</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-02-23 06:48:44 -0800</bug_when>
    <thetext>Fix committed r41140...r41145.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>