<?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>257123</bug_id>
          
          <creation_ts>2023-05-22 08:30:15 -0700</creation_ts>
          <short_desc>Update &apos;testharness.js&apos; from upstream for WPT tests</short_desc>
          <delta_ts>2023-05-22 16:17:50 -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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>250872</dup_id>
          
          <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="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>gsnedders</cc>
    
    <cc>ntim</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1956955</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-22 08:30:15 -0700</bug_when>
    <thetext>Hi Team,

I noticed that we updated / upstreamed &apos;testharness.js&apos; last time about two years ago.

(Last Push) Commit: https://github.com/WebKit/WebKit/commit/3e631739e295a4f82140d130f26236c7721cbc8b

Latest Version (with History from WPT GitHub): https://github.com/web-platform-tests/wpt/commits/74236ab210e6d6dc8bd735ce3a586541bf066bd4/resources/testharness.js

I think it would be good to sync it after two years.

Any thoughts or opinions? or if there is something super planned in WPT realm, so we should hold out?

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1957122</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-05-22 15:14:39 -0700</bug_when>
    <thetext>If we do this (and we should do it at some point!) we should re-import all of resources/, not just testharness.js.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1957139</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-22 16:12:52 -0700</bug_when>
    <thetext>(In reply to Sam Sneddon [:gsnedders] from comment #1)
&gt; If we do this (and we should do it at some point!) we should re-import all
&gt; of resources/, not just testharness.js.

Thanks! I think it would be beyond my expertise, if it would&apos;ve been just copy paste of &apos;testharness.js&apos;, I was happy to do PR. :-)

Though still happy to learn something new on how to do this &apos;resource&apos; stuff. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1957142</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-05-22 16:17:34 -0700</bug_when>
    <thetext>What do you mean, I resync&apos;d testharness.js from upstream in January of this year (as part of the whole resources/ folder):
```
commit 4a4574451a99cffd3197fec02b0df9437594bfd2 (fork/250872_resync_wpt_resources_jan23, cdumez/250872_resync_wpt_resources_jan23)
Author: Chris Dumez &lt;cdumez@apple.com&gt;
Date:   Fri Jan 20 09:29:07 2023 -0800

    Resync web-platform-tests/resources from upstream
    https://bugs.webkit.org/show_bug.cgi?id=250872
    
    Reviewed by Tim Nguyen.
    
    Resync web-platform-tests/resources from upstream d20c3cdbf6e91f14dda92737e.
    
    * LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window-expected.txt:
    * LayoutTests/imported/w3c/web-platfrom-tests/html/user-activation/*: Updated since they would break otherwise after the resources/ folder re-sync.
    * LayoutTests/imported/w3c/web-platform-tests/resources/*: Updated.
    
    Canonical link: https://commits.webkit.org/259143@main
```

Are you looking at the wrong testharness.js ? Note that there is an old version is LayoutTests/resources but it is not used by WPT tests, only by some WebKit-specific tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1957145</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-05-22 16:17:50 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 250872 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>