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

Anders andersca at opensource.apple.com
Sun Dec 4 15:30:29 PST 2005


andersca    05/12/04 15:30:29

  Modified:    .        ChangeLog
  Added:       fast/js  test-propertyIsEnumerable-expected.txt
                        test-propertyIsEnumerable.html
  Log:
  2005-12-04  Anders Carlsson  <andersca at mac.com>
  
          Reviewed by Geoffrey.
  
          Add new tests for
          <http://bugzilla.opendarwin.org/show_bug.cgi?id=3999>
  
          * fast/js/test-propertyIsEnumerable-expected.txt: Added.
          * fast/js/test-propertyIsEnumerable.html: Added.
  
  Revision  Changes    Path
  1.125     +10 -0     LayoutTests/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/LayoutTests/ChangeLog,v
  retrieving revision 1.124
  retrieving revision 1.125
  diff -u -r1.124 -r1.125
  --- ChangeLog	4 Dec 2005 01:22:25 -0000	1.124
  +++ ChangeLog	4 Dec 2005 23:30:28 -0000	1.125
  @@ -1,3 +1,13 @@
  +2005-12-04  Anders Carlsson  <andersca at mac.com>
  +
  +        Reviewed by Geoffrey.
  +
  +        Add new tests for
  +        <http://bugzilla.opendarwin.org/show_bug.cgi?id=3999>
  +
  +        * fast/js/test-propertyIsEnumerable-expected.txt: Added.
  +        * fast/js/test-propertyIsEnumerable.html: Added.
  +
   2005-12-03  Geoffrey Garen  <ggaren at apple.com>
   
           Layout test for <rdar://problem/4364302> leftmargin and topmargin 
  
  
  
  1.1                  LayoutTests/fast/js/test-propertyIsEnumerable-expected.txt
  
  Index: test-propertyIsEnumerable-expected.txt
  ===================================================================
  This tests that propertyIsEnumerable works according to the ECMA spec. If this test is successful, "SUCCESS" should be shown below.
  
  SUCCESS
  
  
  
  
  1.1                  LayoutTests/fast/js/test-propertyIsEnumerable.html
  
  Index: test-propertyIsEnumerable.html
  ===================================================================
  <html>
    <head>
      <script>
          function debug(str) {
              var c = document.getElementById('console')
              c.innerHTML += str + "<br>"
          }
      
          function runTests () {
              if (window.layoutTestController)
                  layoutTestController.dumpAsText();
                  
              a = new Array();
              a.foo='bar'
  
              // 'length' should not be enumerable
              if (a.propertyIsEnumerable ('length') != false) {
                  debug("FAILURE: 'length' should not be enumerable.")
                  return;
              }
              
              // 'foo' is a custom property and should thus be enumerable
              if (a.propertyIsEnumerable ('foo') != true) {
                  debug("FAILURE: 'foo' should be enumerable.")
                  return;
              }
              
              // 'non-existant' is a non-existant property and shouldn't be enumerable
              if (a.propertyIsEnumerable ('non-existant') != false) {
                  debug("FAILURE: 'non-existant' should not be enumerable.")
                  return;
              }
              
              debug('SUCCESS')
          }
      </script>
    </head>
  <body onload="runTests();">
  	 <p>This tests that propertyIsEnumerable works according to the ECMA spec. If this test is successful, "SUCCESS" should be shown below.</p>
      <pre id="console"></pre>
    </body>
  </html>
  
  



More information about the webkit-changes mailing list