[webkit-changes] cvs commit: LayoutTests/fast/js string-split-ignore-case-expected.txt string-split-ignore-case.html

Geoffrey ggaren at opensource.apple.com
Sat Dec 17 19:09:41 PST 2005


ggaren      05/12/17 19:09:41

  Modified:    .        ChangeLog
  Added:       fast/js  string-split-ignore-case-expected.txt
                        string-split-ignore-case.html
  Log:
          Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6119
          split() function ignores case insensitive modifier.
  
          * fast/js/string-split-ignore-case-expected.txt: Added.
          * fast/js/string-split-ignore-case.html: Added.
  
  Revision  Changes    Path
  1.163     +8 -0      LayoutTests/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/LayoutTests/ChangeLog,v
  retrieving revision 1.162
  retrieving revision 1.163
  diff -u -r1.162 -r1.163
  --- ChangeLog	17 Dec 2005 18:10:35 -0000	1.162
  +++ ChangeLog	18 Dec 2005 03:09:40 -0000	1.163
  @@ -1,3 +1,11 @@
  +2005-12-17  Geoffrey Garen  <ggaren at apple.com>
  +
  +        Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6119
  +        split() function ignores case insensitive modifier.
  +
  +        * fast/js/string-split-ignore-case-expected.txt: Added.
  +        * fast/js/string-split-ignore-case.html: Added.
  +
   2005-12-17  Mitz Pettel  <opendarwin.org at mitzpettel.com>
   
           Reviewed and landed by Darin.
  
  
  
  1.1                  LayoutTests/fast/js/string-split-ignore-case-expected.txt
  
  Index: string-split-ignore-case-expected.txt
  ===================================================================
  This test checks for a regression against http://bugzilla.opendarwin.org/show_bug.cgi?id=6119 split() function ignores case insensitive modifier.
  
  If the test passes, you will see a "success" message below.
  
  success
  
  "1s2S3".split(/s/i) yielded 1,2,3
  
  
  
  1.1                  LayoutTests/fast/js/string-split-ignore-case.html
  
  Index: string-split-ignore-case.html
  ===================================================================
  <html>
  <head>
  <script>
  function print(message) {
      var paragraph = document.createElement("p");
      paragraph.appendChild(document.createTextNode(message));
      document.getElementById("console").appendChild(paragraph);
  }
  
  function test() {
      if (window.layoutTestController) {
          layoutTestController.dumpAsText();
      }
  
      var source = "1s2S3";
      var regexp = /s/i; 
      var result = source.split(regexp);
      if (result.length == 3)
          print("success");
      else
          print("failure");
      print("\"" + source + "\".split(" + regexp + ") yielded " + result);
  }
  </script>
  </head>
  <body onload="test();">
  <p>This test checks for a regression against <i>http://bugzilla.opendarwin.org/show_bug.cgi?id=6119 split() function ignores case insensitive modifier</i>.</p>
  <p>If the test passes, you will see a "success" message below.</p>
  <hr>
  <div id='console'/>
  </body>
  </html>
  
  
  



More information about the webkit-changes mailing list