Changeset 35153 in webkit


Ignore:
Timestamp:
Jul 12, 2008 4:42:06 PM (16 years ago)
Author:
weinig@apple.com
Message:

2008-07-12 Sam Weinig <sam@webkit.org>

Rubber-stamped by Oliver Hunt.

Update version of Selectors API test from http://ejohn.org/apps/selectortest/
and fix the spelling of the authors name.

  • fast/dom/SelectorAPI/resig-SelectorsAPI-test-expected.txt: Copied from fast/dom/SelectorAPI/ressig-SelectorsAPI-test-expected.txt.
  • fast/dom/SelectorAPI/resig-SelectorsAPI-test.xhtml: Copied from fast/dom/SelectorAPI/ressig-SelectorsAPI-test.xhtml.
  • fast/dom/SelectorAPI/ressig-SelectorsAPI-test-expected.txt: Removed.
  • fast/dom/SelectorAPI/ressig-SelectorsAPI-test.xhtml: Removed.
Location:
trunk/LayoutTests
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r35152 r35153  
     12008-07-12  Sam Weinig  <sam@webkit.org>
     2
     3        Rubber-stamped by Oliver Hunt.
     4
     5        Update version of Selectors API test from http://ejohn.org/apps/selectortest/
     6        and fix the spelling of the authors name.
     7
     8        * fast/dom/SelectorAPI/resig-SelectorsAPI-test-expected.txt: Copied from fast/dom/SelectorAPI/ressig-SelectorsAPI-test-expected.txt.
     9        * fast/dom/SelectorAPI/resig-SelectorsAPI-test.xhtml: Copied from fast/dom/SelectorAPI/ressig-SelectorsAPI-test.xhtml.
     10        * fast/dom/SelectorAPI/ressig-SelectorsAPI-test-expected.txt: Removed.
     11        * fast/dom/SelectorAPI/ressig-SelectorsAPI-test.xhtml: Removed.
     12
    1132008-07-12  Dan Bernstein  <mitz@apple.com>
    214
  • trunk/LayoutTests/fast/dom/SelectorAPI/resig-SelectorsAPI-test-expected.txt

    r35145 r35153  
    33Testrunner by John Resig, tests by John Resig, Disruptive Innovations, W3C CSS Working Group, jQuery JavaScript Library.
    44
    5 99.3%: 4117 passed, 29 failed
     599.6%: 4135 passed, 17 failed
    66PASS Element supports querySelector
    77PASS Element supports querySelectorAll
     
    866866PASS Element: SVG Good Resolver #1 (xHTML|*#root3 xHTML|div svg *|circle)
    867867PASS Namespaces Resolved: xHTML
    868 FAIL Element: SVG Good Resolver #2 (xHTML|*#root3 xHTML|div svg *|circle) Expected: ['circle2','circle3'] Received: ['circle1','circle2','circle3']
     868PASS Element: SVG Good Resolver #2 (xHTML|*#root3 xHTML|div svg *|circle)
    869869PASS Namespaces Resolved: xHTML
    870870PASS Element: SVG Good Resolver #3 (xHTML|*#root3 xHTML|div svg *|circle)
    871871PASS Namespaces Resolved: xHTML
    872 FAIL Element: SVG Good Resolver #4 (xHTML|*#root3 xHTML|div svg *|circle) Expected: ['circle2','circle3'] Received: ['circle1','circle2','circle3']
     872PASS Element: SVG Good Resolver #4 (xHTML|*#root3 xHTML|div svg *|circle)
    873873PASS Namespaces Resolved: xHTML
    874874PASS Element: SVG Good Resolver #5 (xHTML|*#root3 xHTML|div svg *|circle)
    875875PASS Namespaces Resolved: xHTML
    876 FAIL Element: SVG Good Resolver #6 (xHTML|*#root3 xHTML|div svg *|circle) Expected: ['circle2','circle3'] Received: ['circle1','circle2','circle3']
     876PASS Element: SVG Good Resolver #6 (xHTML|*#root3 xHTML|div svg *|circle)
    877877PASS Namespaces Resolved: xHTML
    878878PASS Element: SVG Good Resolver #7 (xHTML|*#root3 xHTML|div svg *|circle)
    879879PASS Namespaces Resolved: xHTML
    880 FAIL Element: SVG Good Resolver #8 (xHTML|*#root3 xHTML|div svg *|circle) Expected: ['circle2','circle3'] Received: ['circle1','circle2','circle3']
     880PASS Element: SVG Good Resolver #8 (xHTML|*#root3 xHTML|div svg *|circle)
    881881PASS Namespaces Resolved: xHTML
    882882PASS Element: SVG Bad Resolver #1 (xHTML|*#root3 xHTML|div svg *|circle)
     
    11871187PASS Element: Select all
    11881188PASS Element: Select all elements, no comment nodes
     1189PASS Element: :root Selector (:root)
     1190PASS Element: :root All Selector
    11891191PASS Element: Element Selector (#root3 p)
    11901192PASS Element: Parent Element (#root3 div p)
     
    20472049PASS Disconnected Element: SVG Good Resolver #1 (xHTML|*#root3 xHTML|div svg *|circle)
    20482050PASS Namespaces Resolved: xHTML
    2049 FAIL Disconnected Element: SVG Good Resolver #2 (xHTML|*#root3 xHTML|div svg *|circle) Expected: ['circle2','circle3'] Received: ['circle1','circle2','circle3']
     2051PASS Disconnected Element: SVG Good Resolver #2 (xHTML|*#root3 xHTML|div svg *|circle)
    20502052PASS Namespaces Resolved: xHTML
    20512053PASS Disconnected Element: SVG Good Resolver #3 (xHTML|*#root3 xHTML|div svg *|circle)
    20522054PASS Namespaces Resolved: xHTML
    2053 FAIL Disconnected Element: SVG Good Resolver #4 (xHTML|*#root3 xHTML|div svg *|circle) Expected: ['circle2','circle3'] Received: ['circle1','circle2','circle3']
     2055PASS Disconnected Element: SVG Good Resolver #4 (xHTML|*#root3 xHTML|div svg *|circle)
    20542056PASS Namespaces Resolved: xHTML
    20552057PASS Disconnected Element: SVG Good Resolver #5 (xHTML|*#root3 xHTML|div svg *|circle)
    20562058PASS Namespaces Resolved: xHTML
    2057 FAIL Disconnected Element: SVG Good Resolver #6 (xHTML|*#root3 xHTML|div svg *|circle) Expected: ['circle2','circle3'] Received: ['circle1','circle2','circle3']
     2059PASS Disconnected Element: SVG Good Resolver #6 (xHTML|*#root3 xHTML|div svg *|circle)
    20582060PASS Namespaces Resolved: xHTML
    20592061PASS Disconnected Element: SVG Good Resolver #7 (xHTML|*#root3 xHTML|div svg *|circle)
    20602062PASS Namespaces Resolved: xHTML
    2061 FAIL Disconnected Element: SVG Good Resolver #8 (xHTML|*#root3 xHTML|div svg *|circle) Expected: ['circle2','circle3'] Received: ['circle1','circle2','circle3']
     2063PASS Disconnected Element: SVG Good Resolver #8 (xHTML|*#root3 xHTML|div svg *|circle)
    20622064PASS Namespaces Resolved: xHTML
    20632065PASS Disconnected Element: SVG Bad Resolver #1 (xHTML|*#root3 xHTML|div svg *|circle)
     
    23682370PASS Disconnected Element: Select all
    23692371PASS Disconnected Element: Select all elements, no comment nodes
     2372PASS Disconnected Element: :root Selector (:root)
     2373PASS Disconnected Element: :root All Selector (:root *)
    23702374PASS Disconnected Element: Element Selector (#root3 p)
    23712375PASS Disconnected Element: Parent Element (#root3 div p)
     
    37073711PASS Document: SVG Good Resolver #1 (xHTML|*#root3 xHTML|div svg *|circle)
    37083712PASS Namespaces Resolved: xHTML
    3709 FAIL Document: SVG Good Resolver #2 (xHTML|*#root3 xHTML|div svg *|circle) Expected: ['circle2','circle3'] Received: ['circle1','circle2','circle3']
     3713PASS Document: SVG Good Resolver #2 (xHTML|*#root3 xHTML|div svg *|circle)
    37103714PASS Namespaces Resolved: xHTML
    37113715PASS Document: SVG Good Resolver #3 (xHTML|*#root3 xHTML|div svg *|circle)
    37123716PASS Namespaces Resolved: xHTML
    3713 FAIL Document: SVG Good Resolver #4 (xHTML|*#root3 xHTML|div svg *|circle) Expected: ['circle2','circle3'] Received: ['circle1','circle2','circle3']
     3717PASS Document: SVG Good Resolver #4 (xHTML|*#root3 xHTML|div svg *|circle)
    37143718PASS Namespaces Resolved: xHTML
    37153719PASS Document: SVG Good Resolver #5 (xHTML|*#root3 xHTML|div svg *|circle)
    37163720PASS Namespaces Resolved: xHTML
    3717 FAIL Document: SVG Good Resolver #6 (xHTML|*#root3 xHTML|div svg *|circle) Expected: ['circle2','circle3'] Received: ['circle1','circle2','circle3']
     3721PASS Document: SVG Good Resolver #6 (xHTML|*#root3 xHTML|div svg *|circle)
    37183722PASS Namespaces Resolved: xHTML
    37193723PASS Document: SVG Good Resolver #7 (xHTML|*#root3 xHTML|div svg *|circle)
    37203724PASS Namespaces Resolved: xHTML
    3721 FAIL Document: SVG Good Resolver #8 (xHTML|*#root3 xHTML|div svg *|circle) Expected: ['circle2','circle3'] Received: ['circle1','circle2','circle3']
     3725PASS Document: SVG Good Resolver #8 (xHTML|*#root3 xHTML|div svg *|circle)
    37223726PASS Namespaces Resolved: xHTML
    37233727PASS Document: SVG Bad Resolver #1 (xHTML|*#root3 xHTML|div svg *|circle)
     
    40284032PASS Document: Select all
    40294033PASS Document: Select all elements, no comment nodes
     4034PASS Document: :root Selector (:root)
     4035PASS Document: :root All Selector
    40304036PASS Document: Element Selector (#root3 p)
    40314037PASS Document: Element Selector (body)
  • trunk/LayoutTests/fast/dom/SelectorAPI/resig-SelectorsAPI-test.xhtml

    r35144 r35153  
    224224  </style>
    225225  <script><![CDATA[
    226     if (window.layoutTestController) {
    227         layoutTestController.dumpAsText();
    228         layoutTestController.waitUntilDone();
    229     }
    230  
     226  if (window.layoutTestController) {
     227      layoutTestController.dumpAsText();
     228      layoutTestController.waitUntilDone();
     229  }
     230
    231231        window.onload = function(){
     232        // if ( window.location.hash.indexOf("target") == -1 )
     233        //  window.location.hash = "#target";
    232234
    233235                var root = document.getElementById("root");
     
    556558                                var namespaced = /\|[^=]/.test( q );
    557559                                var prepend = namespaced ? "xHTML|*#root3 " : "#root3 ";
    558                                 q = (restrict === false ? "" : prepend) + q.replace(/,/g, ", " + prepend);
     560                                q = (restrict === false || restrict === ":root" ? "" : prepend) + q.replace(/,/g, ", " + prepend);
    559561                                var nq = q.replace(/>/g, "&gt;").replace(/</g, "&lt;");
    560562
     
    650652                        t( "SVG", "xHTML|div svg|svg", ["svg2","svg3"] );
    651653                        t( "SVG", "xHTML|div svg|svg *|circle", ["circle2","circle3"] );
    652                         t( "SVG", "xHTML|div svg *|circle", ["circle2","circle3"], true, ["circle1"] );
     654                        t( "SVG", "xHTML|div svg *|circle", ["circle1","circle2","circle3"], true, ["circle1"] );
    653655                        t( "SVG", "xHTML|div svg|svg svg|circle", ["circle2","circle3"] );
    654656
     
    670672                                        good = false;
    671673                        assert( good, type + ": Select all elements, no comment nodes" );
     674
     675                        if ( root == document ) {
     676                                t( ":root Selector", ":root", ["html"], false );
     677                        } else {
     678                                t( ":root Selector", ":root", [], ":root" );
     679
     680                                if ( !root.parentNode ) {
     681                                        t( ":root All Selector", ":root *", [], ":root" );
     682                                }
     683                        }
     684
     685                        if ( root.parentNode || root == document ) {
     686                                assert( query(":root *").length == query("*").length - (root == document ? 1 : 0), type + ": :root All Selector" );
     687                        }
    672688
    673689                        t( "Element Selector", "p", ["firstp","ap","sndp","en","sap","first"] );
Note: See TracChangeset for help on using the changeset viewer.