[webkit-changes] cvs commit: LayoutTests/fast/dom namednodemap-namelookup-expected.txt namednodemap-namelookup.html

Eric eseidel at opensource.apple.com
Tue Oct 4 23:09:12 PDT 2005


eseidel     05/10/04 23:09:12

  Modified:    .        ChangeLog
  Added:       fast/dom namednodemap-namelookup-expected.txt
                        namednodemap-namelookup.html
  Log:
  Bug #: 4285884
  Submitted by: eseidel
  Reviewed by: mjs
          Test direct name lookup in DOMNamedNodeMap, like FireFox/IE.
          <rdar://problem/4285884> Gap.com throws exception "Undefined value" because of Safari doesn't support indexing into a named node map by name
  
          * fast/dom/namednodemap-namelookup-expected.txt: Added.
          * fast/dom/namednodemap-namelookup.html: Added.
  
  Revision  Changes    Path
  1.8       +10 -0     LayoutTests/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/LayoutTests/ChangeLog,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ChangeLog	4 Oct 2005 20:23:52 -0000	1.7
  +++ ChangeLog	5 Oct 2005 06:09:11 -0000	1.8
  @@ -1,3 +1,13 @@
  +up2005-10-04  Eric Seidel  <eseidel at apple.com>
  +
  +        Reviewed by mjs.
  +
  +        Test direct name lookup in DOMNamedNodeMap, like FireFox/IE.
  +        <rdar://problem/4285884> Gap.com throws exception "Undefined value" because of Safari doesn't support indexing into a named node map by name
  +
  +        * fast/dom/namednodemap-namelookup-expected.txt: Added.
  +        * fast/dom/namednodemap-namelookup.html: Added.
  +
   2005-10-04  Beth Dakin  <bdakin at apple.com>
   
           Reviewed by Darin.
  
  
  
  1.1                  LayoutTests/fast/dom/namednodemap-namelookup-expected.txt
  
  Index: namednodemap-namelookup-expected.txt
  ===================================================================
  Success
  
  
  
  1.1                  LayoutTests/fast/dom/namednodemap-namelookup.html
  
  Index: namednodemap-namelookup.html
  ===================================================================
  <html>
  <body>
  <div id="div" name="divname" item="canoveride"></div>
  <pre>
  <script>
  if (window.layoutTestController) {
  	layoutTestController.dumpAsText();
  }
  var hadError = false;
  var myDiv = document.getElementById("div");
  var attribute = myDiv.attributes["name"];
  if (attribute != "[object Attr]") {
  	document.writeln('ERROR: attributes["name"] should be an attribute object: ' + attribute);
  	hadError = true;
  }
  
  attribute = myDiv.attributes["item"];
  if (attribute.value) {
  	document.writeln('ERROR: attributes["item"].value : ' + attribute.value);
  	hadError = true;
  }
  
  if (!hadError)
  	document.writeln("Success");
  
  </script>
  </pre>
  </body>
  </html>
  
  
  



More information about the webkit-changes mailing list