[webkit-changes] cvs commit: LayoutTests/fast/js regexp-lastindex-expected.txt regexp-lastindex.html

Geoffrey ggaren at opensource.apple.com
Thu Nov 3 10:13:34 PST 2005


ggaren      05/11/03 10:13:34

  Modified:    .        ChangeLog
  Added:       fast/js  regexp-lastindex-expected.txt regexp-lastindex.html
  Log:
          Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=5602
          REGRESSION: RegExp("[^\\s$]+", "g") returns extra matches
  
          * fast/js/regexp-lastindex.html: Added.
          * fast/js/regexp-lastindex-expected.txt: Added.
  
  Revision  Changes    Path
  1.68      +8 -0      LayoutTests/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/LayoutTests/ChangeLog,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- ChangeLog	3 Nov 2005 02:21:34 -0000	1.67
  +++ ChangeLog	3 Nov 2005 18:13:34 -0000	1.68
  @@ -1,3 +1,11 @@
  +2005-11-03  Geoffrey Garen  <ggaren at apple.com>
  +        
  +        Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=5602
  +        REGRESSION: RegExp("[^\\s$]+", "g") returns extra matches
  +
  +        * fast/js/regexp-lastindex.html: Added.
  +        * fast/js/regexp-lastindex-expected.txt: Added.
  +
   2005-11-02  David Harrison  <harrison at apple.com>
   
           Reviewed by Justin.
  
  
  
  1.1                  LayoutTests/fast/js/regexp-lastindex-expected.txt
  
  Index: regexp-lastindex-expected.txt
  ===================================================================
  Test for regression against http://bugzilla.opendarwin.org/show_bug.cgi?id=5602 REGRESSION: RegExp("[^\\s$]+", "g") returns extra matches
  
  The following line should be "abcdefg;".
  
  abcdefg;
  The following line should be "1; 2; 3; 4; 5; 6; 7; 8; 9;".
  
  1; 2; 3; 4; 5; 6; 7; 8; 9;
  
  
  
  1.1                  LayoutTests/fast/js/regexp-lastindex.html
  
  Index: regexp-lastindex.html
  ===================================================================
  <html>
  <head>
  <title>RegExp regression</title>
  </head>
  <body>
  <script>
  if (window.layoutTestController)
      window.layoutTestController.dumpAsText();
  </script>
  <p>
  Test for regression against http://bugzilla.opendarwin.org/show_bug.cgi?id=5602
  REGRESSION: RegExp("[^\\s$]+", "g") returns extra matches
  </p>
  <p>
  The following line should be "abcdefg;".
  </p>
  <script type="text/javascript">
  var re = new RegExp("[^\\s$]+", "g");
  var match;
  while (match = re.exec("  abcdefg"))
  document.write(match + "; ");
  </script>
  <p>
  The following line should be "1; 2; 3; 4; 5; 6; 7; 8; 9;".
  </p>
  <script>
  var re = new RegExp(/\d/g);
  var match
  while (match = re.exec("123456789"))
      document.write(match + "; ");
  </script>
  </body>
  
  
  



More information about the webkit-changes mailing list