[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

darin darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:01:06 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 346be8133369d8a9255bb63789590f6c785506e3
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Oct 13 02:13:28 2003 +0000

    A few more files from the Mozilla tests. Soon I will make it so we can
    run the tests.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5173 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/tests/mozilla/importList.html b/JavaScriptCore/tests/mozilla/importList.html
new file mode 100644
index 0000000..f9f167f
--- /dev/null
+++ b/JavaScriptCore/tests/mozilla/importList.html
@@ -0,0 +1,69 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+  <head>
+    <title>Import Test List</title>
+    <script language="JavaScript">
+      function onRadioClick (name)
+      {
+	  var radio = document.forms["foo"].elements[name];
+	  radio.checked = !radio.checked;
+	  return false;
+      }
+
+      function doImport()
+      {
+          var lines =
+              document.forms["foo"].elements["testList"].value.split(/\r?\n/);
+          var suites = window.opener.suites;
+          var elems = window.opener.document.forms["testCases"].elements;
+
+          if (document.forms["foo"].elements["clear_all"].checked)
+              window.opener.selectNone();
+
+          for (var l in lines)
+          {
+              if (lines[l].search(/^\s$|\s*\#/) == -1)
+              {
+                  var ary = lines[l].match (/(.*)\/(.*)\/(.*)/);
+
+                  if (!ary) 
+                      if (!confirm ("Line " + lines[l] + " is confusing, " +
+                                    "continue with import?"))
+                          return;
+                      else
+                          continue;
+                  
+                  if (suites[ary[1]] && suites[ary[1]].testDirs[ary[2]] &&
+                      suites[ary[1]].testDirs[ary[2]].tests[ary[3]])
+                      elems[suites[ary[1]].testDirs[ary[2]].tests[ary[3]]].
+                          checked = true;    
+              }
+          }
+
+          window.opener.updateTotals();
+
+	  window.close();
+                  
+      }
+      </script>
+  </head>
+
+  <body>
+    
+    <form name="foo">
+      <textarea rows="25" cols="50" name="testList"></textarea><br>
+      <input type="radio" name="clear_all" checked 
+        onclick="return onRadioClick('clear_all');">
+      &nbsp;Clear all selections berofe import.<br>
+      <input type="button" value="Import" onclick="doImport();">
+      <input type="button" value="Cancel" onclick="window.close();">
+    </form>
+
+    <hr>
+    <address><a href="mailto:rginda at netscape.com"></a></address>
+<!-- Created: Wed Nov 17 13:52:23 PST 1999 -->
+<!-- hhmts start -->
+Last modified: Wed Nov 17 14:18:42 PST 1999
+<!-- hhmts end -->
+  </body>
+</html>
diff --git a/JavaScriptCore/tests/mozilla/menufoot.html b/JavaScriptCore/tests/mozilla/menufoot.html
new file mode 100644
index 0000000..da7902e
--- /dev/null
+++ b/JavaScriptCore/tests/mozilla/menufoot.html
@@ -0,0 +1,8 @@
+
+    </form>
+
+    <hr>
+    <address><a href="mailto:rginda at netscape.com"></a></address>
+<!-- Created: Fri Oct 29 21:32:20 PDT 1999 -->
+  </body>
+</html>
diff --git a/JavaScriptCore/tests/mozilla/menuhead.html b/JavaScriptCore/tests/mozilla/menuhead.html
new file mode 100644
index 0000000..827dc43
--- /dev/null
+++ b/JavaScriptCore/tests/mozilla/menuhead.html
@@ -0,0 +1,138 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+  <head>
+    <title>Core JavaScript Tests</title>
+
+    <script language="JavaScript">
+      function selectAll (suite, testDir)
+      {
+	  if (typeof suite == "undefined")
+	      for (var suite in suites)
+		  setAllDirs (suite, true);
+	  else if (typeof testDir == "undefined")
+	      setAllDirs (suite, true);
+	  else
+	      setAllTests (suite, testDir, true);
+	  updateTotals();
+      }
+
+      function selectNone (suite, testDir)
+      {
+	  
+	  if (typeof suite == "undefined")
+	      for (var suite in suites)
+		  setAllDirs (suite, false);
+	  else if (typeof testDir == "undefined")
+	      setAllDirs (suite, false);
+	  else
+	      setAllTests (suite, testDir, false);
+	  updateTotals();	
+      }
+
+      function setAllDirs (suite, value)
+      {
+	  var dir;
+	  for (dir in suites[suite].testDirs)
+	      setAllTests (suite, dir, value);
+
+      }
+
+      function setAllTests (suite, testDir, value)
+      {
+	  var test, radioName;
+	  
+	  for (test in suites[suite].testDirs[testDir].tests)
+	  {
+	      radioName = suites[suite].testDirs[testDir].tests[test];
+	      document.forms["testCases"].elements[radioName].checked = value;
+	  }
+
+      }
+
+      function createList ()
+      {
+	  var suite, testDir, test, radioName;
+	  var elements = document.forms["testCases"].elements;
+
+	  var win = window.open ("about:blank", "other_window");
+	  win.document.open();
+	  win.document.write ("<pre>\n");
+	  
+	  win.document.write ("# Created " + new Date() + "\n");
+
+	  for (suite in suites)
+	      win.document.write ("# " + suite + ": " + 
+				  elements["SUMMARY_" + suite].value + "\n");
+	  win.document.write ("# TOTAL: " + elements["TOTAL"].value + "\n");
+
+	  for (suite in suites)
+	      for (testDir in suites[suite].testDirs)
+		  for (test in suites[suite].testDirs[testDir].tests)
+		  {  
+		      radioName = suites[suite].testDirs[testDir].tests[test];
+		      if (elements[radioName].checked)
+			  win.document.write (suite + "/" + testDir + "/" + 
+					      elements[radioName].value + "\n");
+		  }
+	  
+	  win.document.close();
+
+      }
+
+      function onRadioClick (name)
+      {
+	  var radio = document.forms["testCases"].elements[name];
+	  radio.checked = !radio.checked;
+	  setTimeout ("updateTotals();", 100);
+	  return false;
+      }
+    
+      function updateTotals()
+      {
+	  var suite, testDir, test, radioName, selected, available, pct;
+	  var totalAvailable = 0, totalSelected = 0;
+	  
+	  var elements = document.forms["testCases"].elements;
+
+	  for (suite in suites)
+	  {
+	      selected = available = 0;
+	      for (testDir in suites[suite].testDirs)
+		  for (test in suites[suite].testDirs[testDir].tests)
+		  {  
+		      available++
+		      radioName = suites[suite].testDirs[testDir].tests[test];
+		      if (elements[radioName].checked)
+			  selected++;
+		  }
+	      totalSelected += selected;
+	      totalAvailable += available;
+	      pct = parseInt((selected / available) * 100);
+	      if (isNaN(pct))
+		  pct = 0;
+	      
+	      elements["SUMMARY_" + suite].value = selected + "/" + available +
+                  " (" + pct + "%) selected";
+	  }
+
+	  pct = parseInt((totalSelected / totalAvailable) * 100);
+	  if (isNaN(pct))
+	      pct = 0;
+	      
+	  elements["TOTAL"].value = totalSelected + "/" + totalAvailable + " (" +
+	      pct + "%) selected";
+
+      }
+    
+    </script>
+
+  </head>
+
+  <body bgcolor="white" onLoad="updateTotals()">
+    <a name='top_of_page'></a>
+    <h1>Core JavaScript Tests</h1>
+
+    <form name="testCases">
+    <input type='button' value='Export Test List' onClick='createList();'>
+    <input type='button' value='Import Test List' 
+      onClick='window.open("importList.html", "other_window");'>
diff --git a/JavaScriptCore/tests/mozilla/runtests.pl b/JavaScriptCore/tests/mozilla/runtests.pl
new file mode 100644
index 0000000..f6f05fb
--- /dev/null
+++ b/JavaScriptCore/tests/mozilla/runtests.pl
@@ -0,0 +1,495 @@
+#!/tools/ns/bin/perl5
+#
+# simple script that executes JavaScript tests.  you have to build the
+# stand-alone, js shell executable (which is not the same as the dll that gets
+# built for mozilla).  see the readme at
+# http://lxr.mozilla.org/mozilla/source/js/src/README.html for instructions on
+# how to build the jsshell.
+#
+# this is just a quick-n-dirty script.  for full reporting, you need to run
+# the test driver, which requires java and is currently not available on
+# mozilla.org.
+#
+# this test looks for an executable JavaScript shell in
+# %MOZ_SRC/mozilla/js/src/[platform]-[platform-version]-OPT.OBJ/js,
+# which is the default build location when you build using the instructions
+# at http://lxr.mozilla.org/mozilla/source/js/src/README.html
+#
+#
+# christine at netscape.com
+#
+
+&parse_args;
+&setup_env;
+&main_test_loop;
+&cleanup_env;
+
+#
+# given a main directory, assume that there is a file called 'shell.js'
+# in it.  then, open all the subdirectories, and look for js files.
+# for each test.js that is found, execute the shell, and pass shell.js
+# and the test.js as file arguments.  redirect all process output to a
+# file.
+#
+sub main_test_loop {
+    foreach $suite ( &get_subdirs( $test_dir )) {
+        foreach $subdir (&get_subdirs( $suite, $test_dir )) {
+            @jsfiles = &get_js_files($subdir);
+            execute_js_tests(@jsfiles);
+        }
+    }
+}
+
+#
+# given a directory, return an array of all subdirectories
+#
+sub get_subdirs{
+    local ($dir, $path)  = @_;
+    local @subdirs;
+
+    local $dir_path = $path . $dir;
+    chdir $dir_path;
+
+    opendir ( DIR, ${dir_path} );
+    local @testdir_contents = readdir( DIR );
+    closedir( DIR );
+
+    foreach (@testdir_contents) {
+        if ( (-d $_) && ($_ !~ 'CVS') && ( $_ ne '.') && ($_ ne '..')) {
+            @subdirs[$#subdirs+1] = $_;
+        }
+    }
+    chdir $path;
+    return @subdirs;
+}
+
+#
+# given a directory, return an array of all the js files that are in it.
+#
+sub get_js_files {
+    ( $test_subdir ) = @_;
+    local @js_file_array;
+
+    $current_test_dir = $test_dir  ."/". $suite . "/" .$test_subdir;
+    chdir $current_test_dir;
+
+    opendir ( TEST_SUBDIR, ${current_test_dir} );
+    @subdir_files = readdir( TEST_SUBDIR );
+    closedir( TOP_LEVEL_BUILD_DIR );
+
+    foreach ( @subdir_files ) {
+        if ( $_ =~ /\.js$/ ) {
+            $js_file_array[$#js_file_array+1] = $_;
+        }
+    }
+
+    return @js_file_array;
+}
+
+#
+# given an array of test.js files, execute the shell command and pass
+# the shell.js and test.js files as file arguments.  redirect process
+# output to a file.  if $js_verbose is set (not recommended), write all
+# testcase output to the output file.  if $js_quiet is set, only write
+# failed test case information to the output file.  the default setting
+# is to write a line for each test file, and whether each file passed
+# or failed.
+#
+sub execute_js_tests {
+    (@js_file_array) = @_;
+
+    $js_printed_suitename = 0;
+    if ( !$js_quiet ) {
+        &js_print_suitename;
+    }
+
+    foreach $js_test (@js_file_array) {
+        $js_printed_filename = 0;
+        $js_test_bugnumber = 0;
+        $runtime_error = "";
+
+        local $passed = -1;
+
+        # create the test command
+        $test_command =
+            $shell_command .
+            " -f $test_dir/$suite/shell.js " .
+            " -f $test_dir/$suite/$subdir/$js_test";
+
+        if ( !$js_quiet ) {
+            &js_print_filename;
+        } else {
+            print '.';
+        }
+
+        $test_path = $test_dir ."/" . $suite ."/". $test_subdir ."/". $js_test;
+
+
+        if ( !-e $test_path ) {
+            &js_print( " FAILED! file not found\n",
+                "<font color=#990000>", "</font><br>\n");
+        } else {
+            open( RUNNING_TEST,  "$test_command" . ' 2>&1 |');
+
+
+			# this is where we want the tests to provide a lot more information
+			# that this script must parse so that we can  
+
+        	while( <RUNNING_TEST> ){
+    	        if ( $js_verbose && !$js_quiet ) {
+    	            &js_print ($_ ."\n", "", "<br>\n");
+                }
+                if ( $_ =~ /BUGNUMBER/ ) {
+                    $js_test_bugnumber = $_;
+                }
+				if ( $_ =~ /PASSED/ && $passed == -1 ) {
+					$passed = 1;
+				}
+                if ( $_ =~ /FAILED/ && $_ =~ /expected/) {
+                    &js_print_suitename;
+                    &js_print_filename;
+                    &js_print_bugnumber;
+
+                    local @msg = split ( "FAILED", $_ );
+                    &js_print ( $passed ? "\n" : "" );
+                    &js_print( "    " . $msg[0], "&nbsp;&nbsp;<tt>" );
+                    &js_print( "FAILED", "<font color=#990000>", "</font>");
+                    &js_print( $msg[1], "", "</tt><br>\n" );
+                    $passed = 0;
+                }
+                if ( $_ =~ /$js_test/ ) {
+                    $runtime_error .= $_;
+                }
+    	    }
+    	    close( RUNNING_TEST );
+
+            #
+            # figure out whether the test passed or failed.  print out an
+            # appropriate level of output based on the value of $js_quiet
+            #
+            if ( $js_test =~ /-n\.js$/ ) {
+                if ( $runtime_error ) {
+                    if ( !$js_quiet ) {
+                        &js_print( " PASSED!\n ",
+                            "<font color=#009900>&nbsp;&nbsp",
+                            "</font><br>" );
+                        if ( $js_errors ) {
+                            &js_print( $runtime_error, "<pre>", "</pre>");
+                        }
+                    }
+                } else {
+                    &js_print_suitename;
+                    &js_print_filename;
+                    &js_print_bugnumber;
+                    &js_print( " FAILED! ", "&nbsp;&nbsp;<font color=#990000>",
+                        "</font>");
+                    &js_print( " Should have resulted in an error\n",
+                        "","<br>" );
+                }
+            } else {
+                if ( $passed == 1 && !$js_quiet) {
+                    &js_print( " PASSED!\n " , "&nbsp;&nbsp;<font color=#009900>",
+                        "</font><br>" );
+                } else {
+					if ($passed == -1) {
+						&js_print_suitename;
+						&js_print_filename;
+						&js_print_bugnumber;
+						&js_print( " FAILED!\n " , "&nbsp;&nbsp;<font color=#990000>",
+						"</font><br>" );
+						&js_print( " Missing 'PASSED' in output\n", "","<br>" );
+						&js_print( $log, "output:<br><pre>", "</pre>" );
+                     }
+				}						
+
+            }
+        }
+    }
+}
+
+#
+# figure out what os we're on, the default name of the object directory
+#
+sub setup_env {
+    # MOZ_SRC must be set, so we can figure out where the
+    # JavaScript executable is
+    $moz_src = $ENV{"MOZ_SRC"}
+        || die( "You need to set your MOZ_SRC environment variable.\n" );
+    $src_dir = $moz_src . '/mozilla/js/src/';
+
+    # JS_TEST_DIR must be set so we can figure out where the tests are.
+    $test_dir = $ENV{"JS_TEST_DIR"};
+
+    # if it's not set, look for it relative to $moz_src
+    if ( !$test_dir ) {
+        $test_dir = $moz_src . '/mozilla/js/tests/';
+    }
+
+    # make sure that the test dir exists
+    if ( ! -e $test_dir ) {
+        die "The JavaScript Test Library could not be found at $test_dir.\n" .
+            "Check the tests out from /mozilla/js/tests or\n" .
+            "Set the value of your JS_TEST_DIR environment variable\n " .
+            "to the location of the test library.\n";
+    }
+
+    # make sure that the test dir ends with a trailing slash
+    $test_dir .= '/';
+
+    chdir $src_dir;
+
+    # figure out which platform we're on, and figure out where the object
+    # directory is
+
+    $machine_os = `uname -s`;
+
+    if ( $machine_os =~ /WIN/ ) {
+        $machine_os = 'WIN';
+        $object_dir = ($js_debug) ? 'Debug' : 'Release';
+        $js_exe = 'jsshell.exe';
+    } else {
+        chop $machine_os;
+        $js_exe = 'js';
+
+        # figure out what the object directory is.  on all platforms,
+        # it's the directory that ends in OBJ.  if $js_debug is set,
+        # look the directory that ends with or DBG.OBJ; otherwise
+        # look for the directory that ends with OPT.OBJ
+
+        opendir ( SRC_DIR_FILES, $src_dir );
+        @src_dir_files = readdir( SRC_DIR_FILES );
+        closedir ( SRC_DIR_FILES );
+
+        $object_pattern = $js_debug ? 'DBG.OBJ' : 'OPT.OBJ';
+
+        foreach (@src_dir_files) {
+            if ( $_ =~ /$object_pattern/ && $_ =~ $machine_os) {
+                $object_dir = $_;
+            }
+        }
+    }
+    if ( ! $object_dir ) {
+        die( "Couldn't find an object directory in $src_dir.\n" );
+    }
+
+    # figure out what the name of the javascript executable should be, and
+    # make sure it's there.  if it's not there, give a helpful message so
+    # the user can figure out what they need to do next.
+
+
+    if ( ! $js_exe_full_path ) {
+        $shell_command = $src_dir . $object_dir .'/'. $js_exe;
+    } else {
+        $shell_command = $js_exe_full_path;
+    }
+
+    if ( !-e $shell_command ) {
+        die ("Could not find JavaScript shell executable $shell_command.\n" .
+            "Check the value of your MOZ_SRC environment variable.\n" .
+            "Currently, MOZ_SRC is set to $ENV{\"MOZ_SRC\"}\n".
+            "See the readme at http://lxr.mozilla.org/mozilla/src/js/src/ " .
+            "for instructions on building the JavaScript shell.\n" );
+    }
+
+    # set the output file name.  let's base its name on the date and platform,
+    # and give it a sequence number.
+
+    if ( $get_output ) {
+        $js_output = &get_output;
+    }
+    if ($js_output) {
+        print( "Writing results to $js_output\n" );
+        chdir $test_dir;
+        open( JS_OUTPUT, "> ${js_output}" ) ||
+            die "Can't open log file $js_output\n";
+        close JS_OUTPUT;
+    }
+
+    # get the start time
+    $start_time = time;
+
+    # print out some nice stuff
+    $start_date = &get_date;
+    &js_print( "JavaScript tests started: " . $start_date, "<p><tt>", "</tt></p>" );
+
+    &js_print ("Executing all the tests under $test_dir\n against " .
+        "$shell_command\n", "<p><tt>", "</tt></p>" );
+}
+
+#
+# parse arguments.  see usage for what arguments are expected.
+#
+sub parse_args {
+    $i = 0;
+    while( $i < @ARGV ){
+        if ( $ARGV[$i] eq '--threaded' ) {
+            $js_threaded = 1;
+        } elsif ( $ARGV[$i] eq '--d' ) {
+            $js_debug = 1;
+        } elsif ( $ARGV[$i] eq '--14' ) {
+            $js_version = '14';
+        } elsif ( $ARGV[$i] eq '--v' ) {
+            $js_verbose = 1;
+        } elsif ( $ARGV[$i] eq '-f' ) {
+            $js_output = $ARGV[++$i];
+        } elsif ( $ARGV[$i] eq '--o' ) {
+            $get_output = 1;
+        } elsif ($ARGV[$i] eq '--e' ) {
+            $js_errors = 1;
+        } elsif ($ARGV[$i] eq '--q' ) {
+            $js_quiet = 1;
+        } elsif ($ARGV[$i] eq '--h' ) {
+            die &usage;
+        } elsif ( $ARGV[$i] eq '-E' ) {
+            $js_exe_full_path = $ARGV[$i+1];
+            $i++;
+        } else {
+            die &usage;
+        }
+        $i++;
+    }
+
+    #
+    # if no output options are provided, show some output and write to file
+    #
+    if ( !$js_verbose && !$js_output && !$get_output ) {
+        $get_output = 1;
+    }
+}
+
+#
+# print the arguments that this script expects
+#
+sub usage {
+    die ("usage: $0\n" .
+        "--q       Quiet mode -- only show information for tests that failed\n".
+        "--e       Show runtime error messages for negative tests\n" .
+        "--v       Verbose output -- show all test cases (not recommended)\n" .
+        "--o       Send output to file whose generated name is based on date\n".
+        "--d       Look for a debug JavaScript executable (default is optimized)\n" .
+        "-f <file> Redirect output to file named <file>\n"
+        );
+}
+
+#
+# if $js_output is set, print to file as well as stdout
+#
+sub js_print {
+    ($string, $start_tag, $end_tag) = @_;
+
+    if ($js_output) {
+        open( JS_OUTPUT, ">> ${js_output}" ) ||
+            die "Can't open log file $js_output\n";
+
+        print JS_OUTPUT "$start_tag $string $end_tag";
+        close JS_OUTPUT;
+    }
+    print $string;
+}
+
+#
+# close open files
+#
+sub cleanup_env {
+    # print out some nice stuff
+    $end_date = &get_date;
+    &js_print( "\nTests complete at $end_date", "<hr><tt>", "</tt>" );
+
+    # print out how long it took to complete
+    $end_time = time;
+
+    $test_seconds = ( $end_time - $start_time );
+
+    &js_print( "Start Date: $start_date\n", "<tt><br>" );
+    &js_print( "End Date:   $end_date\n", "<br>" );
+    &js_print( "Test Time:  $test_seconds seconds\n", "<br>" );
+
+    if ($js_output ) {
+        if ( !$js_verbose) {
+            &js_print( "Results were written to " . $js_output ."\n",
+                "<br>", "</tt>" );
+        }
+        close JS_OUTPUT;
+    }
+}
+
+
+#
+# get the current date and time
+#
+sub get_date {
+    &get_localtime;
+    $now = $year ."/". $mon ."/". $mday ." ". $hour .":".
+        $min .":". $sec ."\n";
+    return $now;
+
+}
+sub get_localtime {
+    ( $sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst ) =
+        localtime;
+    $mon++;
+    $mon = &zero_pad($mon);
+    $year= ($year < 2000) ? "19" . $year : $year;
+    $mday= &zero_pad($mday);
+    $sec = &zero_pad($sec);
+    $min = &zero_pad($min);
+    $hour = &zero_pad($hour);
+}
+sub zero_pad {
+    local ($string) = @_;
+    $string = ($string < 10) ? "0" . $string : $string;
+    return $string;
+}
+
+#
+# generate an output file name based on the date
+#
+sub get_output {
+    &get_localtime;
+
+    chdir $test_dir;
+
+    $js_output = $test_dir ."/". $year .'-'. $mon .'-'. $mday ."\.1.html";
+
+    $output_file_found = 0;
+
+    while ( !$output_file_found ) {
+        if ( -e $js_output ) {
+        # get the last sequence number - everything after the dot
+            @seq_no = split( /\./, $js_output, 2 );
+            $js_output = $seq_no[0] .".". (++$seq_no[1]) . "\.html";
+        } else {
+            $output_file_found = 1;
+        }
+    }
+    return $js_output;
+}
+
+sub js_print_suitename {
+    if ( !$js_printed_suitename ) {
+        &js_print( "$suite\\$subdir\n", "<hr><font size+=1><b>",
+            "</font></b><br>" );
+    }
+    $js_printed_suitename = 1;
+}
+
+sub js_print_filename {
+    if ( !$js_printed_filename ) {
+        &js_print( "$js_test\n", "<b>", "</b><br>" );
+        $js_printed_filename = 1;
+    }
+}
+
+sub js_print_bugnumber {
+    if ( !$js_printed_bugnumber ) {
+        if ( $js_bugnumber =~ /^http/ ) {
+            &js_print( "$js_bugnumber", "<a href=$js_bugnumber>", "</a>" );
+        } else {
+            &js_print( "$js_bugnumber",
+                "<a href=http://scopus.mcom.com/bugsplat/show_bug.cgi?id=" .
+                    $js_bugnumber .">",
+                "</a>" );
+        }
+        $js_printed_bugnumber = 1;
+    }
+}
diff --git a/JavaScriptCore/tests/mozilla/js1_2/regexp/regress-6359.js b/JavaScriptCore/tests/mozilla/template.js
similarity index 73%
copy from JavaScriptCore/tests/mozilla/js1_2/regexp/regress-6359.js
copy to JavaScriptCore/tests/mozilla/template.js
index 20ac50f..e953183 100644
--- a/JavaScriptCore/tests/mozilla/js1_2/regexp/regress-6359.js
+++ b/JavaScriptCore/tests/mozilla/template.js
@@ -20,16 +20,16 @@
 */
 
 /**
- *  File Name:          regress-6359.js
+ *  File Name:          template.js
  *  Reference:          ** replace with bugzilla URL or document reference **
  *  Description:        ** replace with description of test **
  *  Author:             ** replace with your e-mail address **
  */
 
-    var SECTION = "js1_2";       // provide a document reference (ie, ECMA section)
+    var SECTION = "";       // provide a document reference (ie, ECMA section)
     var VERSION = "ECMA_2"; // Version of JavaScript or ECMA
-    var TITLE   = "Regression test for bugzilla # 6359";       // Provide ECMA section title or a description
-    var BUGNUMBER = "http://bugzilla.mozilla.org/show_bug.cgi?id=6359";     // Provide URL to bugsplat or bugzilla report
+    var TITLE   = "";       // Provide ECMA section title or a description
+    var BUGNUMBER = "";     // Provide URL to bugsplat or bugzilla report
 
     startTest();               // leave this alone
 
@@ -51,18 +51,5 @@
      *
      */
 
-    AddTestCase( '/(a*)b\1+/("baaac").length',
-                2,
-                /(a*)b\1+/("baaac").length );
-
-    AddTestCase( '/(a*)b\1+/("baaac")[0]',
-                "b",
-                /(a*)b\1+/("baaac")[0]);
-
-    AddTestCase( '/(a*)b\1+/("baaac")[1]',
-                "",
-                /(a*)b\1+/("baaac")[1]);
-
-
     test();       // leave this alone.  this executes the test cases and
                   // displays results.

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list