[webkit-changes] cvs commit: LayoutTests/fast/dom/HTMLDocument document-plugins-expected.txt document-plugins.html

Geoffrey ggaren at opensource.apple.com
Wed Jan 4 13:05:25 PST 2006


ggaren      06/01/04 13:05:25

  Modified:    .        ChangeLog
               khtml/ecma kjs_html.cpp
               .        ChangeLog
  Added:       fast/dom/HTMLDocument document-plugins-expected.txt
                        document-plugins.html
  Log:
  LayoutTests:
  
          Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6311
          document.plugins doesn't exist
  
          * fast/dom/HTMLDocument/document-plugins-expected.txt: Added.
          * fast/dom/HTMLDocument/document-plugins.html: Added.
  
  WebCore:
  
          Reviewed by darin.
  
          - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=6311
          document.plugins doesn't exist
  
          * khtml/ecma/kjs_html.cpp: Added 'plugins' as synonym for 'embeds'
  
  Revision  Changes    Path
  1.87      +10 -1     WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.86
  retrieving revision 1.87
  diff -u -r1.86 -r1.87
  --- ChangeLog	4 Jan 2006 20:01:48 -0000	1.86
  +++ ChangeLog	4 Jan 2006 21:05:23 -0000	1.87
  @@ -1,4 +1,13 @@
  -2005-12-30  Geoffrey Garen  <ggaren at apple.com>
  +2006-01-04  Geoffrey Garen  <ggaren at apple.com>
  +
  +        Reviewed by darin.
  +
  +        - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=6311
  +        document.plugins doesn't exist
  +
  +        * khtml/ecma/kjs_html.cpp: Added 'plugins' as synonym for 'embeds'
  +
  +2006-01-04  Geoffrey Garen  <ggaren at apple.com>
    
            Reviewed by darin.
    
  
  
  
  1.164     +1 -0      WebCore/khtml/ecma/kjs_html.cpp
  
  Index: kjs_html.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_html.cpp,v
  retrieving revision 1.163
  retrieving revision 1.164
  diff -u -r1.163 -r1.164
  --- kjs_html.cpp	31 Dec 2005 00:14:22 -0000	1.163
  +++ kjs_html.cpp	4 Jan 2006 21:05:23 -0000	1.164
  @@ -153,6 +153,7 @@
     cookie		HTMLDocument::Cookie		DontDelete
     images		HTMLDocument::Images		DontDelete|ReadOnly
     embeds		HTMLDocument::Embeds		DontDelete|ReadOnly
  +  plugins		HTMLDocument::Embeds		DontDelete|ReadOnly
     applets		HTMLDocument::Applets		DontDelete|ReadOnly
     links			HTMLDocument::Links		DontDelete|ReadOnly
     forms			HTMLDocument::Forms		DontDelete|ReadOnly
  
  
  
  1.221     +9 -1      LayoutTests/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/LayoutTests/ChangeLog,v
  retrieving revision 1.220
  retrieving revision 1.221
  diff -u -r1.220 -r1.221
  --- ChangeLog	4 Jan 2006 20:01:50 -0000	1.220
  +++ ChangeLog	4 Jan 2006 21:05:24 -0000	1.221
  @@ -1,4 +1,12 @@
  -2005-01-04  Geoffrey Garen  <ggaren at apple.com>
  +2006-01-04  Geoffrey Garen  <ggaren at apple.com>
  +
  +        Layout test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6311
  +        document.plugins doesn't exist
  +
  +        * fast/dom/HTMLDocument/document-plugins-expected.txt: Added.
  +        * fast/dom/HTMLDocument/document-plugins.html: Added.
  +
  +2006-01-04  Geoffrey Garen  <ggaren at apple.com>
    
            Layout test for <rdar://problem/4214080> document.embeds: 
            embeds[0].Play() undefined at languageguide.org prevents audio playing 
  
  
  
  1.1                  LayoutTests/fast/dom/HTMLDocument/document-plugins-expected.txt
  
  Index: document-plugins-expected.txt
  ===================================================================
  This test checks for whether document.plugins matches document.embeds.
  
  If the test passes, you will see a pass message below.
  
  PASS
  
   
  
  
  
  1.1                  LayoutTests/fast/dom/HTMLDocument/document-plugins.html
  
  Index: document-plugins.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 pass = true;
      
      var embeds = document.embeds;
      var plugins = document.plugins;
      
      if (embeds[0].id != 'embed0' || embeds[1].id != 'embed1')
          pass = false;
      if (plugins[0] != embeds[0] || plugins[1] != embeds[1])
          pass = false;
  
      print(pass ? "PASS" : "FAIL");
  }
  </script>
  </head>
  <body onload="test();">
  <p>This test checks for whether document.plugins matches document.embeds.</p>
  <p>If the test passes, you will see a pass message below.</p>
  <hr>
  <div id='console'></div>
  <embed id = 'embed0' width=0 height=0>
  <embed id = 'embed1' width=0 height=0>
  </body>
  </html>
  
  
  



More information about the webkit-changes mailing list