WebCore:
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jul 2005 08:54:15 +0000 (08:54 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jul 2005 08:54:15 +0000 (08:54 +0000)
        - imported much of the w3c DOM test suite:

DOM Level 1 Core (html version)
DOM Level 2 Core (html version)
DOM Level 2 Events (html version)
DOM Level 2 HTML (html version)

For now I left out the XHTML versions.

        Test cases added: (NONE)

        * layout-tests/dom/html/level1/core/*
* layout-tests/dom/html/level2/core/*
        * layout-tests/dom/html/level2/events/*
        * layout-tests/dom/html/level2/html/*

WebKitTools:

        Reviewed by Darin.

- new script to review the DOM layout test results and see where we stand
on actual success and failure

        * Scripts/check-dom-results: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9904 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/dom/html/level2/html/applets/DOMTSApplet.dat [new file with mode: 0644]
LayoutTests/dom/html/level2/html/applets/org/w3c/domts/DOMTSApplet.class [new file with mode: 0644]
LayoutTests/dom/html/level2/html/resources/COPYRIGHT.html [new file with mode: 0644]
WebKitTools/ChangeLog
WebKitTools/Scripts/check-dom-results [new file with mode: 0755]

diff --git a/LayoutTests/dom/html/level2/html/applets/DOMTSApplet.dat b/LayoutTests/dom/html/level2/html/applets/DOMTSApplet.dat
new file mode 100644 (file)
index 0000000..e1370ba
Binary files /dev/null and b/LayoutTests/dom/html/level2/html/applets/DOMTSApplet.dat differ
diff --git a/LayoutTests/dom/html/level2/html/applets/org/w3c/domts/DOMTSApplet.class b/LayoutTests/dom/html/level2/html/applets/org/w3c/domts/DOMTSApplet.class
new file mode 100644 (file)
index 0000000..1793309
Binary files /dev/null and b/LayoutTests/dom/html/level2/html/applets/org/w3c/domts/DOMTSApplet.class differ
diff --git a/LayoutTests/dom/html/level2/html/resources/COPYRIGHT.html b/LayoutTests/dom/html/level2/html/resources/COPYRIGHT.html
new file mode 100644 (file)
index 0000000..e13d9aa
--- /dev/null
@@ -0,0 +1,106 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
+    <title>W3C IPR SOFTWARE NOTICE</title>
+<style type="text/css">
+<!--
+html, body { background: #fff; color: #000; } /* body for Windows IE3 */
+-->
+</style>
+  </head>
+  <body>
+    <h1>
+      W3C IPR SOFTWARE NOTICE
+    </h1>
+    <h3>
+      Copyright &copy; 2002-2004 <a href="http://www.w3.org/">World Wide Web
+      Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
+      Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
+      National de Recherche en Informatique et en Automatique</a>, <a
+      href="http://www.keio.ac.jp/">Keio University</a>). All Rights
+      Reserved.
+    </h3>
+    <p>
+      The DOM Conformance Test Suite for Level 2 html is published under
+      the W3C Software Copyright Notice and License. The software
+      license requires "Notice of any changes or modifications to the
+      W3C files, including the date changes were made."  Consequently,
+      modified versions of the DOM ECMAScript or Java tests must
+      document that they do not conform to the DOM Conformance Test
+      Suites; in the case of the Java language binding, the package
+      names can no longer be in the 'org.w3c' package.
+    </p>
+    <p>
+      <b>Note:</b> The original version of the W3C Software Copyright Notice
+      and License could be found at <a
+      href='http://www.w3.org/Consortium/Legal/copyright-software-19980720'>http://www.w3.org/Consortium/Legal/copyright-software-19980720</a>
+    </p>
+    <h3>
+      Copyright &copy; 1994-2004 <a href="http://www.w3.org/">World Wide Web
+      Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
+      Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
+      National de Recherche en Informatique et en Automatique</a>, <a
+      href="http://www.keio.ac.jp/">Keio University</a>). All Rights
+      Reserved. http://www.w3.org/Consortium/Legal/
+    </h3>
+    <p>
+      This W3C work (including software, documents, or other related items) is
+      being provided by the copyright holders under the following license. By
+      obtaining, using and/or copying this work, you (the licensee) agree that
+      you have read, understood, and will comply with the following terms and
+      conditions:
+    </p>
+    <p>
+      Permission to use, copy, and modify this software and its documentation,
+      with or without modification,&nbsp; for any purpose and without fee or
+      royalty is hereby granted, provided that you include the following on ALL
+      copies of the software and documentation or portions thereof, including
+      modifications, that you make:
+    </p>
+    <ol>
+      <li>
+       The full text of this NOTICE in a location viewable to users of the
+       redistributed or derivative work.
+      </li>
+      <li>
+       Any pre-existing intellectual property disclaimers, notices, or terms
+       and conditions. If none exist, a short notice of the following form
+       (hypertext is preferred, text is permitted) should be used within the
+       body of any redistributed or derivative code: "Copyright &copy;
+       [$date-of-software] <a href="http://www.w3.org/">World Wide Web
+       Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
+       Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
+       National de Recherche en Informatique et en Automatique</a>, <a
+       href="http://www.keio.ac.jp/">Keio University</a>).  All Rights
+       Reserved. http://www.w3.org/Consortium/Legal/"
+      </li>
+      <li>
+       Notice of any changes or modifications to the W3C files, including the
+       date changes were made. (We recommend you provide URIs to the location
+       from which the code is derived.)
+      </li>
+    </ol>
+    <p>
+      THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
+      HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
+      INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
+      FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
+      DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
+      TRADEMARKS OR OTHER RIGHTS.
+    </p>
+    <p>
+      COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
+      CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
+      DOCUMENTATION.
+    </p>
+    <p>
+      The name and trademarks of copyright holders may NOT be used in
+      advertising or publicity pertaining to the software without specific,
+      written prior permission. Title to copyright in this software and any
+      associated documentation will at all times remain with copyright
+      holders.
+    </p>
+  </body>
+</html>
index b517f795fb178320adf7cd8fcccc2278b41b4f66..5a799b12ce0901265d433cf11a6217a6202274f4 100644 (file)
@@ -1,3 +1,12 @@
+2005-07-26  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Darin.
+
+       - new script to review the DOM layout test results and see where we stand
+       on actual success and failure
+
+        * Scripts/check-dom-results: Added.
+
 2005-07-25  Darin Adler  <darin@apple.com>
 
         * Scripts/webkitdirs.pm: Check in missing line of code.
diff --git a/WebKitTools/Scripts/check-dom-results b/WebKitTools/Scripts/check-dom-results
new file mode 100755 (executable)
index 0000000..5afa94f
--- /dev/null
@@ -0,0 +1,100 @@
+#!/usr/bin/perl -w
+
+use strict;
+use FindBin;
+use Cwd;
+use lib $FindBin::Bin;
+use webkitdirs;
+
+chdirWebKit();
+
+my $verbose = $ARGV[0] && $ARGV[0] eq "-v";
+
+my $workingDir = getcwd();
+my $WebCoreDirectory = "$workingDir/WebCore";
+my $testDirectory = "$WebCoreDirectory/layout-tests";
+
+my @suites = ( {"name" => "DOM Level 1 Core   (html)", "directory" => "dom/html/level1/core"},
+              {"name" => "DOM Level 2 Core   (html)", "directory" => "dom/html/level2/core"},
+              {"name" => "DOM Level 2 Events (html)", "directory" => "dom/html/level2/events"},
+              {"name" => "DOM Level 2 HTML   (html)", "directory" => "dom/html/level2/html"} );
+
+my $totalCount = 0;
+my $totalSuccesses = 0;
+my $totalDisabled = 0;
+my $totalFailed = 0;
+
+foreach my $suite (@suites) {
+
+    my %suite = %$suite;
+    my $directory = $suite{"directory"};
+    my $name = $suite{"name"};
+    my @results = `find "${testDirectory}/${directory}" -name "*-expected.txt"`;
+    my @disabled = `find "${testDirectory}/${directory}" -name "*.html-disabled"`;
+
+    my @failures = ();
+    my $count = 0;
+
+    foreach my $result (@results) {
+       $count++;
+       my $success = 0;
+       open RESULT, "<$result";
+       while (<RESULT>) {
+           if (/Success/) {
+               $success = 1;
+               last;
+           }
+       }
+       close RESULT;
+       if (!$success) {
+           push @failures, $result;
+       }
+    }
+
+    my $disabledCount = (scalar @disabled);
+    my $failureCount = (scalar @failures);
+
+    $count += $disabledCount;
+
+    my $successCount = $count - $failureCount - $disabledCount;
+    my $percentage = (sprintf "%.1f", ($successCount * 100.0 / $count));
+    
+    print "${name}: ${successCount} out of ${count} tests succeeded (${percentage}%)\n";
+    if ($verbose) {
+       print "\n";
+       if (@disabled) {
+           print "    Disabled:\n";
+           
+           foreach my $failure (sort @disabled) {
+               $failure =~ s|.*/||;
+               $failure =~ s|-disabled||;
+               print "        ${directory}/${failure}";
+           }
+       }
+       if (@failures) {
+           print "    Failed:\n";
+           
+           foreach my $failure (sort @failures) {
+               $failure =~ s|.*/||;
+               $failure =~ s|-expected\.txt|.html|;
+               print "        ${directory}/${failure}";
+           }
+       }
+
+       print "\n";
+    }
+
+    $totalCount += $count;
+    $totalSuccesses += $successCount;
+    $totalDisabled += $disabledCount;
+    $totalFailed += $failureCount;
+}
+
+
+my $totalPercentage = (sprintf "%.1f", ($totalSuccesses * 100.0 / $totalCount));
+my $totalDisabledPercentage = (sprintf "%.1f", ($totalDisabled * 100.0 / $totalCount));
+my $totalFailedPercentage = (sprintf "%.1f", ($totalFailed * 100.0 / $totalCount));
+
+print "Total: ${totalSuccesses} out of ${totalCount} tests succeeded (${totalPercentage}%)\n";
+print "       ${totalDisabled} tests disabled (${totalDisabledPercentage}%)\n";
+print "       ${totalFailed} tests failed (${totalFailedPercentage}%)\n";