<?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>144241</bug_id>
          
          <creation_ts>2015-04-26 16:32:28 -0700</creation_ts>
          <short_desc>Import tests from TC39 tests262</short_desc>
          <delta_ts>2016-08-30 11:27:27 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>157807</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="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>benjamin</cc>
    
    <cc>darin</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1088870</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-04-26 16:32:28 -0700</bug_when>
    <thetext>We should import tests from https://github.com/tc39/test262

Their tests for class syntax, for example, caught a few bugs as well as crashes!
I&apos;ve been using their python script to run tests as follows:
./tools/packaging/test262.py --command=&quot;/Volumes/Data/webkit/Tools/Scripts/run-jsc --no-show-dyld&quot;

after applying the following change to run-jsc:

Index: Tools/Scripts/run-jsc
===================================================================
--- Tools/Scripts/run-jsc	(revision 183315)
+++ Tools/Scripts/run-jsc	(working copy)
@@ -39,17 +39,23 @@
 my $usage = &quot;Usage: run-jsc [--count run_count] shell_file [file2...]&quot;;
 
 my $count = 1;
-GetOptions(&quot;count|c=i&quot; =&gt; \$count);
+my $noShowDyld = 0;
+GetOptions((&quot;count|c=i&quot; =&gt; \$count, &quot;no-show-dyld&quot; =&gt; \$noShowDyld));
 
 my $jsc = jscProductDir() . &quot;/jsc @ARGV&quot;;
 
 my $dyld = jscProductDir();
 
 $ENV{&quot;DYLD_FRAMEWORK_PATH&quot;} = $dyld;
-print STDERR &quot;Running $count time(s): DYLD_FRAMEWORK_PATH=$dyld $jsc\n&quot;;
+
+if (!$noShowDyld) {
+    print STDERR &quot;Running $count time(s): DYLD_FRAMEWORK_PATH=$dyld $jsc\n&quot;;
+}
+
 while ($count--) {
-    if (system(&quot;$jsc&quot;) != 0) {
-        last;
+    my $exit_code = system(&quot;$jsc&quot;);
+    if ($exit_code != 0) {
+        exit($exit_code &gt;&gt; 8);
     }
 }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1089059</commentid>
    <comment_count>1</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2015-04-27 10:12:05 -0700</bug_when>
    <thetext>This is really exciting issue!
As far as I know, we can execute each test262 test by executing it with the test harness script. So I think we can adopt test262 into JSC tests :D

I&apos;ll check the current W3C test import process...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1224643</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2016-08-30 11:27:27 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>