⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 194580 in webkit


Ignore:
Timestamp:
Jan 5, 2016, 1:28:20 AM (11 years ago)
Author:
youenn.fablet@crf.canon.fr
Message:

Update web-platform-tests test suite
https://bugs.webkit.org/show_bug.cgi?id=151984

Reviewed by Daniel Bates.

LayoutTests/imported/w3c:

Bumping WPT test revision from dd553279c3 to 5932fd48d519a83b4cca6ed69778547a4fdfc5ae.
New revision includes test improvements, test renaming to ensure WebKit test expectations do not clash and XHR test clean-up.

  • resources/ImportExpectations: Updated to not include new tests. Improved ordering.
  • resources/TestRepositories: Updated revision.
  • resources/web-platform-tests-modules.json: Updated revision.
  • web-platform-tests/README.md:
  • web-platform-tests/XMLHttpRequest/XMLHttpRequest-withCredentials-expected.txt:
  • web-platform-tests/XMLHttpRequest/XMLHttpRequest-withCredentials.js:
  • web-platform-tests/XMLHttpRequest/interfaces-expected.txt:
  • web-platform-tests/XMLHttpRequest/open-url-worker-simple.htm:
  • web-platform-tests/XMLHttpRequest/resources/empty-div-utf8-html.py: Added.

(main):

  • web-platform-tests/XMLHttpRequest/resources/img-utf8-html.py: Added.

(main):

  • web-platform-tests/XMLHttpRequest/resources/w3c-import.log:
  • web-platform-tests/XMLHttpRequest/send-content-type-charset-expected.txt:
  • web-platform-tests/XMLHttpRequest/send-content-type-charset.htm:
  • web-platform-tests/XMLHttpRequest/send-content-type-string-expected.txt:
  • web-platform-tests/XMLHttpRequest/send-content-type-string.htm:
  • web-platform-tests/XMLHttpRequest/send-entity-body-document-expected.txt:
  • web-platform-tests/XMLHttpRequest/send-entity-body-document.htm:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-aborted.html:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-abortedonmain.html:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-overrides.html:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-overridesexpires.html:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-simple.html:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-synconmain.html:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-twice.html:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-aborted.html:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overrides.html:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overridesexpires.html:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-simple.html:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-synconworker.html:
  • web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-twice.html:
  • web-platform-tests/dom/common.js:

(myExtractContents):
(myInsertNode):

  • web-platform-tests/dom/interfaces-expected.txt:
  • web-platform-tests/dom/lists/DOMTokenList-stringifier-expected.txt:
  • web-platform-tests/dom/lists/DOMTokenList-stringifier.html:
  • web-platform-tests/dom/nodes/Document-Element-getElementsByTagName.js:

(test_getElementsByTagName):

  • web-platform-tests/dom/nodes/Document-createElement-namespace-expected.txt:
  • web-platform-tests/dom/nodes/Document-createElement-namespace-tests/empty.html: Added.
  • web-platform-tests/dom/nodes/Document-createElement-namespace-tests/empty.svg: Added.
  • web-platform-tests/dom/nodes/Document-createElement-namespace-tests/empty.xhtml: Added.
  • web-platform-tests/dom/nodes/Document-createElement-namespace-tests/empty.xml: Added.
  • web-platform-tests/dom/nodes/Document-createElement-namespace.html:
  • web-platform-tests/dom/nodes/Document-getElementsByTagName-expected.txt:
  • web-platform-tests/dom/nodes/DocumentType-literal-xhtml-expected.txt: Added.
  • web-platform-tests/dom/nodes/DocumentType-literal-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/DocumentType-literal.xhtml.
  • web-platform-tests/dom/nodes/Element-childElementCount-dynamic-add-xhtml-expected.txt: Added.
  • web-platform-tests/dom/nodes/Element-childElementCount-dynamic-add-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-dynamic-add.xhtml.
  • web-platform-tests/dom/nodes/Element-childElementCount-nochild-xhtml-expected.txt: Added.
  • web-platform-tests/dom/nodes/Element-childElementCount-nochild-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-nochild.xhtml.
  • web-platform-tests/dom/nodes/Element-children-expected.txt:
  • web-platform-tests/dom/nodes/Element-children.html:
  • web-platform-tests/dom/nodes/Element-classlist-expected.txt:
  • web-platform-tests/dom/nodes/Element-classlist.html:
  • web-platform-tests/dom/nodes/Element-firstElementChild-xhtml-expected.txt: Added.
  • web-platform-tests/dom/nodes/Element-firstElementChild-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-firstElementChild.xhtml.
  • web-platform-tests/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess-expected.txt: Added.
  • web-platform-tests/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess-iframe-expected.txt: Added.
  • web-platform-tests/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess-iframe.xml: Added.
  • web-platform-tests/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess.html: Added.
  • web-platform-tests/dom/nodes/Element-getElementsByTagName-expected.txt:
  • web-platform-tests/dom/nodes/Element-matches-expected.txt:
  • web-platform-tests/dom/nodes/Element-nextElementSibling-xhtml-expected.txt: Added.
  • web-platform-tests/dom/nodes/Element-nextElementSibling-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-nextElementSibling.xhtml.
  • web-platform-tests/dom/nodes/Element-previousElementSibling-xhtml-expected.txt: Added.
  • web-platform-tests/dom/nodes/Element-previousElementSibling-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-previousElementSibling.xhtml.
  • web-platform-tests/dom/nodes/MutationObserver-childList-expected.txt:
  • web-platform-tests/dom/nodes/MutationObserver-childList.html:
  • web-platform-tests/dom/nodes/MutationObserver-document-expected.txt:
  • web-platform-tests/dom/nodes/MutationObserver-document.html:
  • web-platform-tests/dom/nodes/Node-contains-xhtml-expected.txt: Removed.
  • web-platform-tests/dom/nodes/Node-contains-xhtml.xhtml: Removed.
  • web-platform-tests/dom/nodes/Node-isEqualNode-expected.txt:
  • web-platform-tests/dom/nodes/Node-isEqualNode-iframe1-expected.txt: Added.
  • web-platform-tests/dom/nodes/Node-isEqualNode-iframe1.xml: Added.
  • web-platform-tests/dom/nodes/Node-isEqualNode-iframe2-expected.txt: Added.
  • web-platform-tests/dom/nodes/Node-isEqualNode-iframe2.xml: Added.
  • web-platform-tests/dom/nodes/Node-isEqualNode.xhtml:
  • web-platform-tests/dom/nodes/Node-lookupNamespaceURI-expected.txt:
  • web-platform-tests/dom/nodes/Node-lookupNamespaceURI.html:
  • web-platform-tests/dom/nodes/ParentNode-querySelector-All-expected.txt:
  • web-platform-tests/dom/nodes/ParentNode-querySelector-All-xht-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-xhtml-expected.txt.
  • web-platform-tests/dom/nodes/ParentNode-querySelector-All-xht.xht: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-xhtml.xht.
  • web-platform-tests/dom/nodes/attributes-expected.txt:
  • web-platform-tests/dom/nodes/attributes.html:
  • web-platform-tests/dom/nodes/getElementsByClassName-10.xml:
  • web-platform-tests/dom/nodes/getElementsByClassName-11.xml:
  • web-platform-tests/dom/nodes/resources/ParentNode-querySelector-All-content.xht: Removed.
  • web-platform-tests/dom/nodes/selectors.js:
  • web-platform-tests/dom/nodes/w3c-import.log:
  • web-platform-tests/dom/ranges/Range-deleteContents-expected.txt:
  • web-platform-tests/dom/ranges/Range-deleteContents.html:
  • web-platform-tests/dom/ranges/Range-extractContents-expected.txt:
  • web-platform-tests/dom/ranges/Range-insertNode-expected.txt:
  • web-platform-tests/dom/ranges/Range-intersectsNode-expected.txt:
  • web-platform-tests/dom/ranges/Range-intersectsNode.html:
  • web-platform-tests/dom/ranges/Range-mutations.html:
  • web-platform-tests/dom/ranges/Range-surroundContents-expected.txt:
  • web-platform-tests/dom/ranges/Range-surroundContents.html:
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case-xhtml-expected.txt: Added.
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case.xhtml.
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id-xhtml-expected.txt: Added.
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id.xhtml.
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace-xhtml-expected.txt: Added.
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.xhtml.
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-expected.txt:
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-xhtml-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-expected.txt.
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements.xhtml.
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements.html:
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef-xhtml-expected.txt: Added.
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef.xhtml.
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param-xhtml-expected.txt: Added.
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param.xhtml.
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/w3c-import.log:
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-03-expected.txt:
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-03.html:
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09-expected.txt:
  • web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09.html:
  • web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-06-expected.txt:
  • web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-06.html:
  • web-platform-tests/html/dom/documents/resource-metadata-management/document-lastModified-01.html:
  • web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/010-expected.txt:
  • web-platform-tests/html/dom/elements-embedded.js:
  • web-platform-tests/html/dom/elements-text.js:
  • web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-ref-expected.html: Added.
  • web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html: Added.
  • web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref-expected.html: Added.
  • web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref.html: Added.
  • web-platform-tests/html/dom/elements/global-attributes/w3c-import.log:
  • web-platform-tests/html/dom/interfaces-expected.txt:
  • web-platform-tests/html/dom/interfaces.html:
  • web-platform-tests/html/dom/reflection.js:

(ReflectionTests.doReflects):

  • web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resources/delayed-broken-video.py: Removed.
  • web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resources/w3c-import.log: Removed.
  • web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/w3c-import.log: Removed.
  • web-platform-tests/html/semantics/embedded-content/media-elements/location-of-the-media-resource/w3c-import.log: Removed.
  • web-platform-tests/html/semantics/embedded-content/media-elements/ready-states/w3c-import.log: Removed.
  • web-platform-tests/html/semantics/embedded-content/media-elements/seeking/w3c-import.log: Removed.
  • web-platform-tests/html/semantics/embedded-content/media-elements/synchronising-multiple-media-elements/media-controllers/w3c-import.log: Removed.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/w3c-import.log: Removed.
  • web-platform-tests/html/semantics/embedded-content/the-img-element/Image-constructor.html:
  • web-platform-tests/html/semantics/embedded-content/the-img-element/current-pixel-density/basic-expected.txt:
  • web-platform-tests/html/semantics/embedded-content/the-img-element/current-pixel-density/basic.html:
  • web-platform-tests/html/semantics/forms/constraints/form-validation-checkValidity-expected.txt:
  • web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valid-expected.txt:
  • web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing-expected.txt:
  • web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing.html:
  • web-platform-tests/html/semantics/forms/constraints/support/validator.js:

(validator.set_conditions):
(validator.set_dirty): Deleted.
(validator.pre_check): Deleted.

  • web-platform-tests/html/semantics/forms/textfieldselection/selection.html:
  • web-platform-tests/html/semantics/forms/the-form-element/form-autocomplete-expected.txt:
  • web-platform-tests/html/semantics/forms/the-form-element/form-autocomplete.html:
  • web-platform-tests/html/semantics/forms/the-label-element/label-attributes-expected.txt:
  • web-platform-tests/html/semantics/forms/the-label-element/label-attributes.html:
  • web-platform-tests/html/semantics/forms/the-label-element/labelable-elements-expected.txt:
  • web-platform-tests/html/semantics/forms/the-label-element/labelable-elements.html:
  • web-platform-tests/html/semantics/forms/the-option-element/option-text-recurse-expected.txt:
  • web-platform-tests/html/semantics/forms/the-option-element/option-text-recurse.html:
  • web-platform-tests/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-namedItem-expected.txt:
  • web-platform-tests/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-namedItem.html:
  • web-platform-tests/html/semantics/scripting-1/the-script-element/w3c-import.log:
  • web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-frameset.html:
  • web-platform-tests/html/semantics/selectors/pseudo-classes/disabled-expected.txt:
  • web-platform-tests/html/semantics/selectors/pseudo-classes/disabled.html:
  • web-platform-tests/html/semantics/tabular-data/attributes-common-to-td-and-th-elements/cellIndex-expected.txt:
  • web-platform-tests/html/semantics/tabular-data/attributes-common-to-td-and-th-elements/cellIndex.html:
  • web-platform-tests/html/semantics/tabular-data/html-table-section-element.js: Added.

(testRowsAttribute):

  • web-platform-tests/html/semantics/tabular-data/the-tbody-element/deleteRow-expected.txt:
  • web-platform-tests/html/semantics/tabular-data/the-tbody-element/deleteRow.html:
  • web-platform-tests/html/semantics/tabular-data/the-tbody-element/insertRow-expected.txt:
  • web-platform-tests/html/semantics/tabular-data/the-tbody-element/insertRow.html:
  • web-platform-tests/html/semantics/tabular-data/the-tr-element/deleteCell-expected.txt:
  • web-platform-tests/html/semantics/tabular-data/the-tr-element/deleteCell.html:
  • web-platform-tests/html/semantics/tabular-data/w3c-import.log: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/styling/w3c-import.log.
  • web-platform-tests/lint:
  • web-platform-tests/lint.whitelist:
  • web-platform-tests/media/2048x1360-random.jpg: Added.
  • web-platform-tests/media/w3c-import.log: Added.

LayoutTests:

Location:
trunk/LayoutTests
Files:
25 added
9 deleted
118 edited
1 copied
15 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r194568 r194580  
     12016-01-05  Youenn Fablet  <youenn.fablet@crf.canon.fr>
     2
     3        Update web-platform-tests test suite
     4        https://bugs.webkit.org/show_bug.cgi?id=151984
     5
     6        Reviewed by Daniel Bates.
     7
     8        * TestExpectations: updated expectations for newly failing tests.
     9
    1102016-01-04  Devin Rousso  <dcrousso+webkit@gmail.com>
    211
  • trunk/LayoutTests/TestExpectations

    r194217 r194580  
    237237imported/w3c/web-platform-tests/common/blank.html [ Skip ]
    238238imported/w3c/web-platform-tests/dom/nodes/Document-createElement-namespace-tests [ Skip ]
     239imported/w3c/web-platform-tests/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess-iframe.xml [ Skip ]
     240imported/w3c/web-platform-tests/dom/nodes/Node-isEqualNode-iframe1.xml [ Skip ]
     241imported/w3c/web-platform-tests/dom/nodes/Node-isEqualNode-iframe2.xml [ Skip ]
    239242imported/w3c/web-platform-tests/dom/nodes/Node-parentNode-iframe.html [ Skip ]
    240243imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-content.html [ Skip ]
     
    276279webkit.org/b/148736 [ Debug ] imported/w3c/web-platform-tests/html/dom/interfaces.html [ Skip ]
    277280webkit.org/b/148822 [ Debug ] imported/w3c/web-platform-tests/html/semantics/interfaces.html [ Skip ]
     281
     282# WPT tests that fail after doing full test repository reimport and need further investigation
     283imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm [ Pass Failure ]
     284imported/w3c/web-platform-tests/dom/nodes/MutationObserver-childList.html [ Timeout ]
     285imported/w3c/web-platform-tests/dom/nodes/Document-createElement-namespace.html [ Pass Failure ]
    278286
    279287# W3C XMLHttpRequest tests
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r194391 r194580  
     12016-01-05  Youenn Fablet  <youenn.fablet@crf.canon.fr>
     2
     3        Update web-platform-tests test suite
     4        https://bugs.webkit.org/show_bug.cgi?id=151984
     5
     6        Reviewed by Daniel Bates.
     7
     8        Bumping WPT test revision from dd553279c3 to 5932fd48d519a83b4cca6ed69778547a4fdfc5ae.
     9        New revision includes test improvements, test renaming to ensure WebKit test expectations do not clash and XHR test clean-up.
     10
     11        * resources/ImportExpectations: Updated to not include new tests. Improved ordering.
     12        * resources/TestRepositories: Updated revision.
     13        * resources/web-platform-tests-modules.json: Updated revision.
     14        * web-platform-tests/README.md:
     15        * web-platform-tests/XMLHttpRequest/XMLHttpRequest-withCredentials-expected.txt:
     16        * web-platform-tests/XMLHttpRequest/XMLHttpRequest-withCredentials.js:
     17        * web-platform-tests/XMLHttpRequest/interfaces-expected.txt:
     18        * web-platform-tests/XMLHttpRequest/open-url-worker-simple.htm:
     19        * web-platform-tests/XMLHttpRequest/resources/empty-div-utf8-html.py: Added.
     20        (main):
     21        * web-platform-tests/XMLHttpRequest/resources/img-utf8-html.py: Added.
     22        (main):
     23        * web-platform-tests/XMLHttpRequest/resources/w3c-import.log:
     24        * web-platform-tests/XMLHttpRequest/send-content-type-charset-expected.txt:
     25        * web-platform-tests/XMLHttpRequest/send-content-type-charset.htm:
     26        * web-platform-tests/XMLHttpRequest/send-content-type-string-expected.txt:
     27        * web-platform-tests/XMLHttpRequest/send-content-type-string.htm:
     28        * web-platform-tests/XMLHttpRequest/send-entity-body-document-expected.txt:
     29        * web-platform-tests/XMLHttpRequest/send-entity-body-document.htm:
     30        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-aborted.html:
     31        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-abortedonmain.html:
     32        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-overrides.html:
     33        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-overridesexpires.html:
     34        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-simple.html:
     35        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-synconmain.html:
     36        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-twice.html:
     37        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-aborted.html:
     38        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overrides.html:
     39        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overridesexpires.html:
     40        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-simple.html:
     41        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-synconworker.html:
     42        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-twice.html:
     43        * web-platform-tests/dom/common.js:
     44        (myExtractContents):
     45        (myInsertNode):
     46        * web-platform-tests/dom/interfaces-expected.txt:
     47        * web-platform-tests/dom/lists/DOMTokenList-stringifier-expected.txt:
     48        * web-platform-tests/dom/lists/DOMTokenList-stringifier.html:
     49        * web-platform-tests/dom/nodes/Document-Element-getElementsByTagName.js:
     50        (test_getElementsByTagName):
     51        * web-platform-tests/dom/nodes/Document-createElement-namespace-expected.txt:
     52        * web-platform-tests/dom/nodes/Document-createElement-namespace-tests/empty.html: Added.
     53        * web-platform-tests/dom/nodes/Document-createElement-namespace-tests/empty.svg: Added.
     54        * web-platform-tests/dom/nodes/Document-createElement-namespace-tests/empty.xhtml: Added.
     55        * web-platform-tests/dom/nodes/Document-createElement-namespace-tests/empty.xml: Added.
     56        * web-platform-tests/dom/nodes/Document-createElement-namespace.html:
     57        * web-platform-tests/dom/nodes/Document-getElementsByTagName-expected.txt:
     58        * web-platform-tests/dom/nodes/DocumentType-literal-xhtml-expected.txt: Added.
     59        * web-platform-tests/dom/nodes/DocumentType-literal-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/DocumentType-literal.xhtml.
     60        * web-platform-tests/dom/nodes/Element-childElementCount-dynamic-add-xhtml-expected.txt: Added.
     61        * web-platform-tests/dom/nodes/Element-childElementCount-dynamic-add-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-dynamic-add.xhtml.
     62        * web-platform-tests/dom/nodes/Element-childElementCount-nochild-xhtml-expected.txt: Added.
     63        * web-platform-tests/dom/nodes/Element-childElementCount-nochild-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-nochild.xhtml.
     64        * web-platform-tests/dom/nodes/Element-children-expected.txt:
     65        * web-platform-tests/dom/nodes/Element-children.html:
     66        * web-platform-tests/dom/nodes/Element-classlist-expected.txt:
     67        * web-platform-tests/dom/nodes/Element-classlist.html:
     68        * web-platform-tests/dom/nodes/Element-firstElementChild-xhtml-expected.txt: Added.
     69        * web-platform-tests/dom/nodes/Element-firstElementChild-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-firstElementChild.xhtml.
     70        * web-platform-tests/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess-expected.txt: Added.
     71        * web-platform-tests/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess-iframe-expected.txt: Added.
     72        * web-platform-tests/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess-iframe.xml: Added.
     73        * web-platform-tests/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess.html: Added.
     74        * web-platform-tests/dom/nodes/Element-getElementsByTagName-expected.txt:
     75        * web-platform-tests/dom/nodes/Element-matches-expected.txt:
     76        * web-platform-tests/dom/nodes/Element-nextElementSibling-xhtml-expected.txt: Added.
     77        * web-platform-tests/dom/nodes/Element-nextElementSibling-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-nextElementSibling.xhtml.
     78        * web-platform-tests/dom/nodes/Element-previousElementSibling-xhtml-expected.txt: Added.
     79        * web-platform-tests/dom/nodes/Element-previousElementSibling-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-previousElementSibling.xhtml.
     80        * web-platform-tests/dom/nodes/MutationObserver-childList-expected.txt:
     81        * web-platform-tests/dom/nodes/MutationObserver-childList.html:
     82        * web-platform-tests/dom/nodes/MutationObserver-document-expected.txt:
     83        * web-platform-tests/dom/nodes/MutationObserver-document.html:
     84        * web-platform-tests/dom/nodes/Node-contains-xhtml-expected.txt: Removed.
     85        * web-platform-tests/dom/nodes/Node-contains-xhtml.xhtml: Removed.
     86        * web-platform-tests/dom/nodes/Node-isEqualNode-expected.txt:
     87        * web-platform-tests/dom/nodes/Node-isEqualNode-iframe1-expected.txt: Added.
     88        * web-platform-tests/dom/nodes/Node-isEqualNode-iframe1.xml: Added.
     89        * web-platform-tests/dom/nodes/Node-isEqualNode-iframe2-expected.txt: Added.
     90        * web-platform-tests/dom/nodes/Node-isEqualNode-iframe2.xml: Added.
     91        * web-platform-tests/dom/nodes/Node-isEqualNode.xhtml:
     92        * web-platform-tests/dom/nodes/Node-lookupNamespaceURI-expected.txt:
     93        * web-platform-tests/dom/nodes/Node-lookupNamespaceURI.html:
     94        * web-platform-tests/dom/nodes/ParentNode-querySelector-All-expected.txt:
     95        * web-platform-tests/dom/nodes/ParentNode-querySelector-All-xht-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-xhtml-expected.txt.
     96        * web-platform-tests/dom/nodes/ParentNode-querySelector-All-xht.xht: Renamed from LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-xhtml.xht.
     97        * web-platform-tests/dom/nodes/attributes-expected.txt:
     98        * web-platform-tests/dom/nodes/attributes.html:
     99        * web-platform-tests/dom/nodes/getElementsByClassName-10.xml:
     100        * web-platform-tests/dom/nodes/getElementsByClassName-11.xml:
     101        * web-platform-tests/dom/nodes/resources/ParentNode-querySelector-All-content.xht: Removed.
     102        * web-platform-tests/dom/nodes/selectors.js:
     103        * web-platform-tests/dom/nodes/w3c-import.log:
     104        * web-platform-tests/dom/ranges/Range-deleteContents-expected.txt:
     105        * web-platform-tests/dom/ranges/Range-deleteContents.html:
     106        * web-platform-tests/dom/ranges/Range-extractContents-expected.txt:
     107        * web-platform-tests/dom/ranges/Range-insertNode-expected.txt:
     108        * web-platform-tests/dom/ranges/Range-intersectsNode-expected.txt:
     109        * web-platform-tests/dom/ranges/Range-intersectsNode.html:
     110        * web-platform-tests/dom/ranges/Range-mutations.html:
     111        * web-platform-tests/dom/ranges/Range-surroundContents-expected.txt:
     112        * web-platform-tests/dom/ranges/Range-surroundContents.html:
     113        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case-xhtml-expected.txt: Added.
     114        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case.xhtml.
     115        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id-xhtml-expected.txt: Added.
     116        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id.xhtml.
     117        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace-xhtml-expected.txt: Added.
     118        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.xhtml.
     119        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-expected.txt:
     120        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-xhtml-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-expected.txt.
     121        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements.xhtml.
     122        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements.html:
     123        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef-xhtml-expected.txt: Added.
     124        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef.xhtml.
     125        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param-xhtml-expected.txt: Added.
     126        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param-xhtml.xhtml: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param.xhtml.
     127        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/w3c-import.log:
     128        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-03-expected.txt:
     129        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-03.html:
     130        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09-expected.txt:
     131        * web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09.html:
     132        * web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-06-expected.txt:
     133        * web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-06.html:
     134        * web-platform-tests/html/dom/documents/resource-metadata-management/document-lastModified-01.html:
     135        * web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/010-expected.txt:
     136        * web-platform-tests/html/dom/elements-embedded.js:
     137        * web-platform-tests/html/dom/elements-text.js:
     138        * web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-ref-expected.html: Added.
     139        * web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html: Added.
     140        * web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref-expected.html: Added.
     141        * web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref.html: Added.
     142        * web-platform-tests/html/dom/elements/global-attributes/w3c-import.log:
     143        * web-platform-tests/html/dom/interfaces-expected.txt:
     144        * web-platform-tests/html/dom/interfaces.html:
     145        * web-platform-tests/html/dom/reflection.js:
     146        (ReflectionTests.doReflects):
     147        * web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resources/delayed-broken-video.py: Removed.
     148        * web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resources/w3c-import.log: Removed.
     149        * web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/w3c-import.log: Removed.
     150        * web-platform-tests/html/semantics/embedded-content/media-elements/location-of-the-media-resource/w3c-import.log: Removed.
     151        * web-platform-tests/html/semantics/embedded-content/media-elements/ready-states/w3c-import.log: Removed.
     152        * web-platform-tests/html/semantics/embedded-content/media-elements/seeking/w3c-import.log: Removed.
     153        * web-platform-tests/html/semantics/embedded-content/media-elements/synchronising-multiple-media-elements/media-controllers/w3c-import.log: Removed.
     154        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/w3c-import.log: Removed.
     155        * web-platform-tests/html/semantics/embedded-content/the-img-element/Image-constructor.html:
     156        * web-platform-tests/html/semantics/embedded-content/the-img-element/current-pixel-density/basic-expected.txt:
     157        * web-platform-tests/html/semantics/embedded-content/the-img-element/current-pixel-density/basic.html:
     158        * web-platform-tests/html/semantics/forms/constraints/form-validation-checkValidity-expected.txt:
     159        * web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valid-expected.txt:
     160        * web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing-expected.txt:
     161        * web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing.html:
     162        * web-platform-tests/html/semantics/forms/constraints/support/validator.js:
     163        (validator.set_conditions):
     164        (validator.set_dirty): Deleted.
     165        (validator.pre_check): Deleted.
     166        * web-platform-tests/html/semantics/forms/textfieldselection/selection.html:
     167        * web-platform-tests/html/semantics/forms/the-form-element/form-autocomplete-expected.txt:
     168        * web-platform-tests/html/semantics/forms/the-form-element/form-autocomplete.html:
     169        * web-platform-tests/html/semantics/forms/the-label-element/label-attributes-expected.txt:
     170        * web-platform-tests/html/semantics/forms/the-label-element/label-attributes.html:
     171        * web-platform-tests/html/semantics/forms/the-label-element/labelable-elements-expected.txt:
     172        * web-platform-tests/html/semantics/forms/the-label-element/labelable-elements.html:
     173        * web-platform-tests/html/semantics/forms/the-option-element/option-text-recurse-expected.txt:
     174        * web-platform-tests/html/semantics/forms/the-option-element/option-text-recurse.html:
     175        * web-platform-tests/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-namedItem-expected.txt:
     176        * web-platform-tests/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-namedItem.html:
     177        * web-platform-tests/html/semantics/scripting-1/the-script-element/w3c-import.log:
     178        * web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-frameset.html:
     179        * web-platform-tests/html/semantics/selectors/pseudo-classes/disabled-expected.txt:
     180        * web-platform-tests/html/semantics/selectors/pseudo-classes/disabled.html:
     181        * web-platform-tests/html/semantics/tabular-data/attributes-common-to-td-and-th-elements/cellIndex-expected.txt:
     182        * web-platform-tests/html/semantics/tabular-data/attributes-common-to-td-and-th-elements/cellIndex.html:
     183        * web-platform-tests/html/semantics/tabular-data/html-table-section-element.js: Added.
     184        (testRowsAttribute):
     185        * web-platform-tests/html/semantics/tabular-data/the-tbody-element/deleteRow-expected.txt:
     186        * web-platform-tests/html/semantics/tabular-data/the-tbody-element/deleteRow.html:
     187        * web-platform-tests/html/semantics/tabular-data/the-tbody-element/insertRow-expected.txt:
     188        * web-platform-tests/html/semantics/tabular-data/the-tbody-element/insertRow.html:
     189        * web-platform-tests/html/semantics/tabular-data/the-tr-element/deleteCell-expected.txt:
     190        * web-platform-tests/html/semantics/tabular-data/the-tr-element/deleteCell.html:
     191        * web-platform-tests/html/semantics/tabular-data/w3c-import.log: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/styling/w3c-import.log.
     192        * web-platform-tests/lint:
     193        * web-platform-tests/lint.whitelist:
     194        * web-platform-tests/media/2048x1360-random.jpg: Added.
     195        * web-platform-tests/media/w3c-import.log: Added.
     196
    11972015-12-23  Xabier Rodriguez Calvar  <calvaris@igalia.com>
    2198
  • trunk/LayoutTests/imported/w3c/resources/ImportExpectations

    r191546 r194580  
    7474web-platform-tests/cors [ Skip ]
    7575web-platform-tests/custom-elements [ Skip ]
     76web-platform-tests/cssom-view [ Skip ]
    7677#web-platform-tests/dom [ Pass ]
     78web-platform-tests/dom/collections/domstringmap-supported-property-names.html [ Skip ]
     79web-platform-tests/dom/collections/namednodemap-supported-property-names.html [ Skip ]
     80web-platform-tests/dom/nodes/Element-childElementCount-dynamic-add-svg.svg [ Skip ]
     81web-platform-tests/dom/nodes/Element-nextElementSibling-svg.svg [ Skip ]
     82web-platform-tests/dom/nodes/Element-lastElementChild-svg.svg [ Skip ]
     83web-platform-tests/dom/nodes/Element-firstElementChild-svg.svg [ Skip ]
     84web-platform-tests/dom/nodes/Element-childElement-null-svg.svg [ Skip ]
     85web-platform-tests/dom/nodes/Element-childElementCount-nochild-svg.svg [ Skip ]
     86web-platform-tests/dom/nodes/Element-childElementCount-svg.svg [ Skip ]
     87web-platform-tests/dom/nodes/Element-siblingElement-null-svg.svg [ Skip ]
     88web-platform-tests/dom/nodes/Element-childElementCount-dynamic-remove-svg.svg [ Skip ]
     89web-platform-tests/dom/nodes/Element-firstElementChild-namespace-svg.svg [ Skip ]
     90web-platform-tests/dom/nodes/Element-previousElementSibling-svg.svg [ Skip ]
    7791web-platform-tests/dom/events/Event-dispatch-propagation-stopped.html [ Skip ]
    7892web-platform-tests/dom/nodes/Document-createProcessingInstruction.xhtml [ Skip ]
     
    100114web-platform-tests/dom/nodes/Node-nodeName.xhtml [ Skip ]
    101115web-platform-tests/dom/nodes/ParentNode-querySelector-All.xht [ Skip ]
     116web-platform-tests/dom/ranges/Range-constructor.html [ Skip ]
    102117web-platform-tests/dom/traversal/unfinished [ Skip ]
    103118#web-platform-tests/domparsing [ Pass ]
     
    116131web-platform-tests/html/browsers [ Skip ]
    117132web-platform-tests/html/dom/documents/dom-tree-accessors/Document.currentScript.sub.html [ Skip ]
     133web-platform-tests/html/dom/dynamic-markup-insertion/document-writeln/document.writeln-03.html [ Skip ]
    118134web-platform-tests/html/dom/reflection-embedded.html [ Skip ]
    119135web-platform-tests/html/dom/reflection-forms.html [ Skip ]
     
    131147web-platform-tests/html/obsolete [ Skip ]
    132148web-platform-tests/html/rendering [ Skip ]
    133 
     149web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/ [ Skip ]
    134150web-platform-tests/html/semantics/document-metadata/styling/LinkStyle.html [ Skip ]
    135151web-platform-tests/html/semantics/embedded-content/media-elements/error-codes [ Skip ]
     
    157173web-platform-tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html [ Skip ]
    158174web-platform-tests/html/semantics/embedded-content/the-object-element/object-events.html [ Skip ]
     175web-platform-tests/html/semantics/forms/form-submission-0/url-encoded.html [ Skip ]
    159176web-platform-tests/html/semantics/forms/textfieldselection/select-event.html [ Skip ]
    160177web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setRangeText.html [ Skip ]
     178web-platform-tests/html/semantics/forms/the-input-element/maxlength.html [ Skip ]
     179web-platform-tests/html/semantics/forms/the-option-element/option-selected.html [ Skip ]
     180web-platform-tests/html/semantics/forms/the-select-element/select-ask-for-reset.html [ Skip ]
    161181web-platform-tests/html/semantics/interactive-elements/the-details-element/toggleEvent.html [ Skip ]
    162182web-platform-tests/html/semantics/scripting-1/the-script-element/async_001.htm [ Skip ]
     
    173193web-platform-tests/html/semantics/scripting-1/the-script-element/script-for-event.xhtml [ Skip ]
    174194web-platform-tests/html/semantics/scripting-1/the-script-element/script-text.xhtml [ Skip ]
     195web-platform-tests/html/semantics/tabular-data/the-tbody-element/rows.html [ Skip ]
     196web-platform-tests/html/semantics/tabular-data/the-tfoot-element [ Skip ]
     197web-platform-tests/html/semantics/tabular-data/the-thead-element [ Skip ]
     198web-platform-tests/html/semantics/tabular-data/the-tr-element/cells.html [ Skip ]
    175199web-platform-tests/html/syntax [ Skip ]
    176200web-platform-tests/html/tools [ Skip ]
     
    181205web-platform-tests/http [ Skip ]
    182206web-platform-tests/infrastructure [ Skip ]
     207web-platform-tests/innerText [ Skip ]
    183208web-platform-tests/js [ Skip ]
    184 web-platform-tests/media [ Skip ]
    185209web-platform-tests/media-source [ Skip ]
    186210web-platform-tests/mediacapture-streams [ Skip ]
     
    207231web-platform-tests/subresource-integrity [ Skip ]
    208232web-platform-tests/svg [ Skip ]
     233web-platform-tests/testharness_runner.html [ Skip ]
    209234web-platform-tests/touch-events [ Skip ]
    210235web-platform-tests/typedarrays [ Skip ]
     
    223248web-platform-tests/webvtt [ Skip ]
    224249web-platform-tests/workers [ Skip ]
    225 
    226 web-platform-tests/testharness_runner.html [ Skip ]
  • trunk/LayoutTests/imported/w3c/resources/TestRepositories

    r191043 r194580  
    1616        "name": "web-platform-tests",
    1717        "url": "https://github.com/w3c/web-platform-tests.git",
    18         "revision": "dd553279c3",
     18        "revision": "5932fd48d519a83b4cca6ed69778547a4fdfc5ae",
    1919        "paths_to_skip": [
    2020            "conformance-checkers",
  • trunk/LayoutTests/imported/w3c/resources/web-platform-tests-modules.json

    r191192 r194580  
    55            "."
    66        ],
    7         "url": "https://github.com/w3c/testharness.js/archive/7756b113373ec09f7159c68c4ba7eb8f0ad7c964.tar.gz",
    8         "url_subpath": "testharness.js-7756b113373ec09f7159c68c4ba7eb8f0ad7c964"
     7        "url": "https://github.com/w3c/testharness.js/archive/698441212391d5177b2f1806d97c7fd15cc46715.tar.gz",
     8        "url_subpath": "testharness.js-698441212391d5177b2f1806d97c7fd15cc46715"
    99    },
    1010    {
     
    1313            "resources"
    1414        ],
    15         "url": "https://github.com/darobin/webidl2.js/archive/997fb214e02980ef4c27137553857ae6da533590.tar.gz",
    16         "url_subpath": "webidl2.js-997fb214e02980ef4c27137553857ae6da533590"
     15        "url": "https://github.com/darobin/webidl2.js/archive/bd216bcd5596d60734450adc938155deab1e1a80.tar.gz",
     16        "url_subpath": "webidl2.js-bd216bcd5596d60734450adc938155deab1e1a80"
    1717    },
    1818    {
     
    2121            "."
    2222        ],
    23         "url": "https://github.com/w3c/wpt-tools/archive/92f14770d10d44027a1c27b72958578ddc381ce3.tar.gz",
    24         "url_subpath": "wpt-tools-92f14770d10d44027a1c27b72958578ddc381ce3"
     23        "url": "https://github.com/w3c/wpt-tools/archive/80bc792988aff1422f43b9e1d5909673eca960a2.tar.gz",
     24        "url_subpath": "wpt-tools-80bc792988aff1422f43b9e1d5909673eca960a2"
    2525    },
    2626    {
     
    5353            "tools"
    5454        ],
    55         "url": "https://github.com/w3c/wptserve/archive/b6b082fb70c592c6164c76aa167ae4dc284ebb69.tar.gz",
    56         "url_subpath": "wptserve-b6b082fb70c592c6164c76aa167ae4dc284ebb69"
     55        "url": "https://github.com/w3c/wptserve/archive/b12d799c0be4fab1055df9a1e4dd5e45646b46ea.tar.gz",
     56        "url_subpath": "wptserve-b12d799c0be4fab1055df9a1e4dd5e45646b46ea"
    5757    }
    5858]
  • trunk/LayoutTests/imported/w3c/web-platform-tests/README.md

    r191043 r194580  
    33
    44The Web Platform Tests Project is a W3C-coordinated attempt to build a
    5 cross-browser testsuite for the Web-platform stack. Writing tests in a
    6 way that allows them to be run in all browsers gives browser projects
     5cross-browser testsuite for the Web-platform stack.  However, for mainly
     6historic reasons, the CSS WG testsuite is in a separate repository,
     7[csswg-test](https://github.com/w3c/csswg-test). Writing tests in a way
     8that allows them to be run in all browsers gives browser projects
    79confidence that they are shipping software that is compatible with other
    810implementations, and that later implementations will be compatible with
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/XMLHttpRequest-withCredentials-expected.txt

    r191546 r194580  
    66      }" did not throw
    77PASS setting withCredentials when not in UNSENT, OPENED state (asynchronous)
    8 FAIL setting withCredentials when in DONE state (synchronous) assert_throws: function "function () { client.withCredentials = true }" did not throw
     8PASS setting withCredentials when in DONE state (synchronous)
    99
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/XMLHttpRequest-withCredentials.js

    r191546 r194580  
    4444    var client = new XMLHttpRequest()
    4545    client.open("GET", "resources/delay.py?ms=1000", false)
     46    client.send();
    4647    assert_throws("InvalidStateError", function() { client.withCredentials = true })
    4748  }, "setting withCredentials when in DONE state (synchronous)")
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/interfaces-expected.txt

    r194154 r194580  
    1818FAIL XMLHttpRequestEventTarget interface: existence and properties of interface object assert_own_property: self does not have own property "XMLHttpRequestEventTarget" expected property "XMLHttpRequestEventTarget" missing
    1919FAIL XMLHttpRequestEventTarget interface object length assert_own_property: self does not have own property "XMLHttpRequestEventTarget" expected property "XMLHttpRequestEventTarget" missing
     20FAIL XMLHttpRequestEventTarget interface object name assert_own_property: self does not have own property "XMLHttpRequestEventTarget" expected property "XMLHttpRequestEventTarget" missing
    2021FAIL XMLHttpRequestEventTarget interface: existence and properties of interface prototype object assert_own_property: self does not have own property "XMLHttpRequestEventTarget" expected property "XMLHttpRequestEventTarget" missing
    2122FAIL XMLHttpRequestEventTarget interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "XMLHttpRequestEventTarget" expected property "XMLHttpRequestEventTarget" missing
     
    2930FAIL XMLHttpRequestUpload interface: existence and properties of interface object assert_equals: class string of XMLHttpRequestUpload expected "[object Function]" but got "[object XMLHttpRequestUploadConstructor]"
    3031PASS XMLHttpRequestUpload interface object length
     32PASS XMLHttpRequestUpload interface object name
    3133FAIL XMLHttpRequestUpload interface: existence and properties of interface prototype object assert_own_property: should inherit from XMLHttpRequestEventTarget, but self has no such property expected property "XMLHttpRequestEventTarget" missing
    3234FAIL XMLHttpRequestUpload interface: existence and properties of interface prototype object's "constructor" property assert_true: XMLHttpRequestUpload.prototype.constructor is not writable expected true got false
     
    5254FAIL XMLHttpRequest interface: existence and properties of interface object assert_equals: class string of XMLHttpRequest expected "[object Function]" but got "[object XMLHttpRequestConstructor]"
    5355PASS XMLHttpRequest interface object length
     56PASS XMLHttpRequest interface object name
    5457FAIL XMLHttpRequest interface: existence and properties of interface prototype object assert_own_property: should inherit from XMLHttpRequestEventTarget, but self has no such property expected property "XMLHttpRequestEventTarget" missing
    5558FAIL XMLHttpRequest interface: existence and properties of interface prototype object's "constructor" property assert_true: XMLHttpRequest.prototype.constructor is not writable expected true got false
     
    156159FAIL FormData interface: existence and properties of interface object assert_equals: class string of FormData expected "[object Function]" but got "[object FormDataConstructor]"
    157160PASS FormData interface object length
     161PASS FormData interface object name
    158162PASS FormData interface: existence and properties of interface prototype object
    159163FAIL FormData interface: existence and properties of interface prototype object's "constructor" property assert_true: FormData.prototype.constructor is not writable expected true got false
     
    212216FAIL ProgressEvent interface: existence and properties of interface object assert_equals: class string of ProgressEvent expected "[object Function]" but got "[object ProgressEventConstructor]"
    213217PASS ProgressEvent interface object length
     218PASS ProgressEvent interface object name
    214219PASS ProgressEvent interface: existence and properties of interface prototype object
    215220FAIL ProgressEvent interface: existence and properties of interface prototype object's "constructor" property assert_true: ProgressEvent.prototype.constructor is not writable expected true got false
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-worker-simple.htm

    r191546 r194580  
    44    <meta charset="utf-8" />
    55    <title>XMLHttpRequest: relative URLs in worker scripts resolved by script URL</title>
    6     <link rel="stylesheet" href="/resources/testharness.css" />
    76    <script src="/resources/testharness.js"></script>
    87    <script src="/resources/testharnessreport.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/w3c-import.log

    r191546 r194580  
    2525/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/delay.py
    2626/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/echo-method.py
     27/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/empty-div-utf8-html.py
    2728/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/folder.txt
    2829/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/form.py
     
    3031/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/headers.py
    3132/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/image.gif
     33/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/img-utf8-html.py
    3234/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/img.jpg
    3335/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/infinite-redirects.py
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-content-type-charset-expected.txt

    r191546 r194580  
    77PASS If no charset= param is given, implementation should not add one - known MIME
    88FAIL charset given but wrong, fix it (unknown MIME, bogus charset) assert_equals: expected "text/x-thepiano;charset=UTF-8" but got "text/x-thepiano;charset= UTF-8"
    9 PASS charset given but wrong, fix it (known MIME, bogus charset)
     9FAIL charset given but wrong, fix it (known MIME, bogus charset) assert_equals: expected "text/plain;charset=utf-8;charset=UTF-8" but got "text/plain;charset=UTF-8;charset=UTF-8"
    1010PASS charset given but wrong, fix it (known MIME, actual charset)
    1111PASS If multiple charset parameters are given, all should be rewritten
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-content-type-charset.htm

    r191546 r194580  
    5959        "charset given but wrong, fix it (unknown MIME, bogus charset)"
    6060      )
    61       request( /**/
     61      request(
    6262        "text/plain;charset=utf-8;charset=waddup",
    63         "text/plain;charset=UTF-8;charset=UTF-8",
     63        "text/plain;charset=utf-8;charset=UTF-8",
    6464        "charset given but wrong, fix it (known MIME, bogus charset)"
    6565      )
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-content-type-string-expected.txt

    r191546 r194580  
    66
    77PASS XMLHttpRequest: send() - Content-Type
    8 FAIL XMLHttpRequest: send() - Content-Type 1 assert_equals: expected "application/xml;charset=windows-1252" but got "NO"
    9 FAIL XMLHttpRequest: send() - Content-Type 2 assert_equals: expected "text/html;charset=windows-1252" but got "NO"
     8FAIL XMLHttpRequest: send() - Content-Type 1 assert_equals: expected "application/xml;charset=UTF-8" but got "NO"
     9FAIL XMLHttpRequest: send() - Content-Type 2 assert_equals: expected "text/html;charset=UTF-8" but got "NO"
    1010
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-content-type-string.htm

    r191546 r194580  
    2121      function init(fr) { request(fr.contentDocument, fr.getAttribute("data-t")) }
    2222    </script>
    23     <iframe src='data:text/xml;charset=windows-1252,<%FF/>' onload="init(this)" data-t="application/xml;charset=windows-1252"></iframe>
    24     <iframe src='data:text/html;charset=windows-1252,%FF' onload="init(this)" data-t="text/html;charset=windows-1252"></iframe>
     23    <iframe src='data:text/xml;charset=windows-1252,<%FF/>' onload="init(this)" data-t="application/xml;charset=UTF-8"></iframe>
     24    <iframe src='data:text/html;charset=windows-1252,%FF' onload="init(this)" data-t="text/html;charset=UTF-8"></iframe>
    2525  </body>
    2626</html>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document-expected.txt

    r191546 r194580  
    1      
     1         
    22
    3 FAIL XMLHttpRequest: send() - Document Can't find variable: number
    4 FAIL XMLHttpRequest: send() - Document 1 Can't find variable: number
    5 FAIL XMLHttpRequest: send() - Document 2 Can't find variable: number
    6 FAIL XMLHttpRequest: send() - Document 3 Can't find variable: number
    7 FAIL XMLHttpRequest: send() - Document 4 Can't find variable: number
     3PASS XML document, windows-1252
     4PASS HTML document, invalid UTF-8
     5PASS HTML document, shift-jis
     6PASS img tag
     7PASS plain text file
     8PASS image file
     9PASS empty div
    810
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm

    r191546 r194580  
    1717      { contentType: 'text/html;charset=UTF-8', responseText : '<body>\u30C6\u30b9\u30c8<\/body>' } /* correctly serialized Shift-JIS */,
    1818      { contentType: 'text/html;charset=UTF-8', responseText: 'top' }, /* There's some markup included, but it's not really relevant for this test suite, so we do an indexOf() test */
    19       { contentType: 'text/html;charset=UTF-8' }
     19      { contentType: 'text/html;charset=UTF-8' },
     20      { contentType: 'text/html;charset=UTF-8', responseText: '<img>foo' },
     21      { contentType: 'text/html;charset=UTF-8', responseText: '<!DOCTYPE html><html><head></head><body><div></div></body></html>' }
    2022     ]
    2123
    2224
    23       function request(input, isHTML, title) {
     25      function request(input, number, title) {
    2426        test(function() {
    2527          var client = new XMLHttpRequest()
     
    3133          // However, arguably these things have little to do with the XHR functionality we're testing.
    3234          if(exp.responseText){ // This test does not want to assert anything about what markup a standalone IMG should be wrapped in. Hence the GIF test lacks a responseText expectation.
    33             assert_true(client.responseText.indexOf(exp.responseText) != -1);
     35            assert_true(client.responseText.indexOf(exp.responseText) != -1,
     36                        JSON.stringify(exp.responseText) + " not in " +
     37                        JSON.stringify(client.responseText));
    3438          }
    3539          assert_equals(client.responseXML, null)
    3640        }, title)
    3741      }
    38       function init(fr, number, title) { request(fr.contentDocument, number) }
     42      function init(fr, number, title) { request(fr.contentDocument, number, title) }
    3943    </script>
    4044    <!--
     
    5155    <iframe src='folder.txt' onload="init(this, 3, 'plain text file')"></iframe>
    5256    <iframe src='resources/image.gif' onload="init(this, 4, 'image file')"></iframe>
     57    <iframe src='resources/img-utf8-html.py' onload="init(this, 5, 'img tag')"></iframe>
     58    <iframe src='resources/empty-div-utf8-html.py' onload="init(this, 6, 'empty div')"></iframe>
    5359
    5460  </body>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-aborted.html

    r191546 r194580  
    1212    <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol/li[9]"/>
    1313    <link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/.. following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/../following-sibling::dd following::dt[1] following::dd[1]" />
    14     <link rel="stylesheet" href="/resources/testharness.css" />
    1514    <meta name=timeout content=long>
    1615    <script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-abortedonmain.html

    r191546 r194580  
    88    <link rel="help" href="https://xhr.spec.whatwg.org/#event-xhr-abort" data-tested-assertations="../.." />
    99    <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol/li[9]"/>
    10     <link rel="stylesheet" href="/resources/testharness.css" />
    1110    <meta name=timeout content=long>
    1211    <script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-overrides.html

    r191546 r194580  
    88    <link rel="help" href="https://xhr.spec.whatwg.org/#timeout-error" data-tested-assertations=".."/>
    99    <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol[1]/li[9]"/>
    10     <link rel="stylesheet" href="/resources/testharness.css" />
    1110    <meta name=timeout content=long>
    1211    <script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-overridesexpires.html

    r191546 r194580  
    99    <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol[1]/li[9]"/>
    1010    <link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/.. following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/../following-sibling::dd following::dt[1] following::dd[1]" />
    11     <link rel="stylesheet" href="/resources/testharness.css" />
    1211    <meta name=timeout content=long>
    1312    <script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-simple.html

    r191546 r194580  
    99    <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol[1]/li[9]"/>
    1010    <link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/.. following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/../following-sibling::dd following::dt[1] following::dd[1]" />
    11     <link rel="stylesheet" href="/resources/testharness.css" />
    1211    <meta name=timeout content=long>
    1312    <script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-synconmain.html

    r191546 r194580  
    66    <link rel="help" href="https://xhr.spec.whatwg.org/#the-timeout-attribute" data-tested-assertations="following::ol[1]/li[1]" />
    77    <link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="following::ol[1]/li[10]" />
    8     <link rel="stylesheet" href="/resources/testharness.css" />
    98    <meta name=timeout content=long>
    109    <script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-twice.html

    r191546 r194580  
    55    <title>XHR2 Timeout Property Tests</title>
    66    <link rel="help" href="https://xhr.spec.whatwg.org/#timeout-error" />
    7     <link rel="stylesheet" href="/resources/testharness.css" />
    87    <link rel="help" href="https://xhr.spec.whatwg.org/#the-timeout-attribute" data-tested-assertations="following::ol[1]/li[2]" />
    98    <link rel="help" href="https://xhr.spec.whatwg.org/#handler-xhr-ontimeout" data-tested-assertations="../.."/>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-aborted.html

    r191546 r194580  
    1212    <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol/li[9]"/>
    1313    <link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/.. following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/../following-sibling::dd following::dt[1] following::dd[1]" />
    14     <link rel="stylesheet" href="/resources/testharness.css" />
    1514    <meta name=timeout content=long>
    1615    <script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overrides.html

    r191546 r194580  
    88    <link rel="help" href="https://xhr.spec.whatwg.org/#timeout-error" data-tested-assertations=".."/>
    99    <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol[1]/li[9]"/>
    10     <link rel="stylesheet" href="/resources/testharness.css" />
    1110    <meta name=timeout content=long>
    1211    <script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-overridesexpires.html

    r191546 r194580  
    99    <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol[1]/li[9]"/>
    1010    <link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/.. following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/../following-sibling::dd following::dt[1] following::dd[1]" />
    11     <link rel="stylesheet" href="/resources/testharness.css" />
    1211    <meta name=timeout content=long>
    1312    <script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-simple.html

    r191546 r194580  
    99    <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol[1]/li[9]"/>
    1010    <link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/.. following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/../following-sibling::dd following::dt[1] following::dd[1]" />
    11     <link rel="stylesheet" href="/resources/testharness.css" />
    1211    <meta name=timeout content=long>
    1312    <script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-synconworker.html

    r191546 r194580  
    99    <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol[1]/li[9]"/>
    1010    <link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/.. following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/../following-sibling::dd following::dt[1] following::dd[1]" />
    11     <link rel="stylesheet" href="/resources/testharness.css" />
    1211    <meta name=timeout content=long>
    1312    <script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-worker-twice.html

    r191546 r194580  
    99    <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol[1]/li[9]"/>
    1010    <link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/.. following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/../following-sibling::dd following::dt[1] following::dd[1]" />
    11     <link rel="stylesheet" href="/resources/testharness.css" />
    1211    <meta name=timeout content=long>
    1312    <script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/common.js

    r189471 r194580  
    572572 */
    573573function myExtractContents(range) {
    574     // "If the context object's detached flag is set, raise an
    575     // INVALID_STATE_ERR exception and abort these steps."
    576     try {
    577         range.collapsed;
    578     } catch (e) {
    579         return "INVALID_STATE_ERR";
    580     }
    581 
    582574    // "Let frag be a new DocumentFragment whose ownerDocument is the same as
    583575    // the ownerDocument of the context object's start node."
     
    602594    var originalEndOffset = range.endOffset;
    603595
    604     // "If original start node and original end node are the same, and they are
    605     // a Text or Comment node:"
     596    // "If original start node is original end node, and they are a Text,
     597    // ProcessingInstruction, or Comment node:"
    606598    if (range.startContainer == range.endContainer
    607599    && (range.startContainer.nodeType == Node.TEXT_NODE
     600    || range.startContainer.nodeType == Node.PROCESSING_INSTRUCTION_NODE
    608601    || range.startContainer.nodeType == Node.COMMENT_NODE)) {
    609602        // "Let clone be the result of calling cloneNode(false) on original
     
    717710    }
    718711
    719     // "If first partially contained child is a Text or Comment node:"
     712    // "If first partially contained child is a Text, ProcessingInstruction, or
     713    // Comment node:"
    720714    if (firstPartiallyContainedChild
    721715    && (firstPartiallyContainedChild.nodeType == Node.TEXT_NODE
     716    || firstPartiallyContainedChild.nodeType == Node.PROCESSING_INSTRUCTION_NODE
    722717    || firstPartiallyContainedChild.nodeType == Node.COMMENT_NODE)) {
    723718        // "Let clone be the result of calling cloneNode(false) on original
     
    774769    }
    775770
    776     // "If last partially contained child is a Text or Comment node:"
     771    // "If last partially contained child is a Text, ProcessingInstruction, or
     772    // Comment node:"
    777773    if (lastPartiallyContainedChild
    778774    && (lastPartiallyContainedChild.nodeType == Node.TEXT_NODE
     775    || lastPartiallyContainedChild.nodeType == Node.PROCESSING_INSTRUCTION_NODE
    779776    || lastPartiallyContainedChild.nodeType == Node.COMMENT_NODE)) {
    780777        // "Let clone be the result of calling cloneNode(false) on original
     
    832829 */
    833830function myInsertNode(range, node) {
    834     // "If range's start node is either a ProcessingInstruction or Comment
    835     // node, or a Text node whose parent is null, throw an
     831    // "If range's start node is a ProcessingInstruction or Comment node, or is
     832    // a Text node whose parent is null, or is node, throw an
    836833    // "HierarchyRequestError" exception and terminate these steps."
    837834    if (range.startContainer.nodeType == Node.PROCESSING_INSTRUCTION_NODE
    838835            || range.startContainer.nodeType == Node.COMMENT_NODE
    839836            || (range.startContainer.nodeType == Node.TEXT_NODE
    840                 && !range.startContainer.parentNode)) {
     837                && !range.startContainer.parentNode)
     838            || range.startContainer == node) {
    841839                    return "HIERARCHY_REQUEST_ERR";
    842840    }
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/interfaces-expected.txt

    r194217 r194580  
    107107FAIL Event interface: existence and properties of interface object assert_equals: class string of Event expected "[object Function]" but got "[object EventConstructor]"
    108108PASS Event interface object length
     109PASS Event interface object name
    109110PASS Event interface: existence and properties of interface prototype object
    110111FAIL Event interface: existence and properties of interface prototype object's "constructor" property assert_true: Event.prototype.constructor is not writable expected true got false
     
    191192FAIL CustomEvent interface: existence and properties of interface object assert_equals: class string of CustomEvent expected "[object Function]" but got "[object CustomEventConstructor]"
    192193PASS CustomEvent interface object length
     194PASS CustomEvent interface object name
    193195PASS CustomEvent interface: existence and properties of interface prototype object
    194196FAIL CustomEvent interface: existence and properties of interface prototype object's "constructor" property assert_true: CustomEvent.prototype.constructor is not writable expected true got false
     
    224226FAIL EventTarget interface: existence and properties of interface object assert_equals: class string of EventTarget expected "[object Function]" but got "[object EventTargetConstructor]"
    225227PASS EventTarget interface object length
     228PASS EventTarget interface object name
    226229PASS EventTarget interface: existence and properties of interface prototype object
    227230FAIL EventTarget interface: existence and properties of interface prototype object's "constructor" property assert_true: EventTarget.prototype.constructor is not writable expected true got false
     
    235238FAIL NodeList interface: existence and properties of interface object assert_equals: class string of NodeList expected "[object Function]" but got "[object NodeListConstructor]"
    236239PASS NodeList interface object length
     240PASS NodeList interface object name
    237241PASS NodeList interface: existence and properties of interface prototype object
    238242FAIL NodeList interface: existence and properties of interface prototype object's "constructor" property assert_own_property: NodeList.prototype does not have own property "constructor" expected property "constructor" missing
     
    246250FAIL HTMLCollection interface: existence and properties of interface object assert_equals: class string of HTMLCollection expected "[object Function]" but got "[object HTMLCollectionConstructor]"
    247251PASS HTMLCollection interface object length
     252PASS HTMLCollection interface object name
    248253PASS HTMLCollection interface: existence and properties of interface prototype object
    249254FAIL HTMLCollection interface: existence and properties of interface prototype object's "constructor" property assert_own_property: HTMLCollection.prototype does not have own property "constructor" expected property "constructor" missing
     
    264269FAIL MutationObserver interface: existence and properties of interface object assert_equals: class string of MutationObserver expected "[object Function]" but got "[object MutationObserverConstructor]"
    265270PASS MutationObserver interface object length
     271PASS MutationObserver interface object name
    266272PASS MutationObserver interface: existence and properties of interface prototype object
    267273FAIL MutationObserver interface: existence and properties of interface prototype object's "constructor" property assert_true: MutationObserver.prototype.constructor is not writable expected true got false
     
    271277FAIL MutationRecord interface: existence and properties of interface object assert_equals: class string of MutationRecord expected "[object Function]" but got "[object MutationRecordConstructor]"
    272278PASS MutationRecord interface object length
     279PASS MutationRecord interface object name
    273280PASS MutationRecord interface: existence and properties of interface prototype object
    274281FAIL MutationRecord interface: existence and properties of interface prototype object's "constructor" property assert_true: MutationRecord.prototype.constructor is not writable expected true got false
     
    302309FAIL Node interface: existence and properties of interface object assert_equals: class string of Node expected "[object Function]" but got "[object NodeConstructor]"
    303310PASS Node interface object length
     311PASS Node interface object name
    304312FAIL Node interface: existence and properties of interface prototype object assert_equals: prototype of Node.prototype is not EventTarget.prototype expected object "[object EventTargetPrototype]" but got object "[object Object]"
    305313FAIL Node interface: existence and properties of interface prototype object's "constructor" property assert_true: Node.prototype.constructor is not writable expected true got false
     
    394402FAIL Document interface: existence and properties of interface object assert_equals: class string of Document expected "[object Function]" but got "[object DocumentConstructor]"
    395403PASS Document interface object length
     404PASS Document interface object name
    396405PASS Document interface: existence and properties of interface prototype object
    397406FAIL Document interface: existence and properties of interface prototype object's "constructor" property assert_true: Document.prototype.constructor is not writable expected true got false
     
    467476FAIL XMLDocument interface: existence and properties of interface object assert_equals: class string of XMLDocument expected "[object Function]" but got "[object DocumentConstructor]"
    468477PASS XMLDocument interface object length
     478FAIL XMLDocument interface object name assert_equals: wrong value for XMLDocument.name expected "XMLDocument" but got "Document"
    469479FAIL XMLDocument interface: existence and properties of interface prototype object assert_equals: prototype of XMLDocument.prototype is not Document.prototype expected Node object of unknown type but got Node object of unknown type
    470480FAIL XMLDocument interface: existence and properties of interface prototype object's "constructor" property assert_true: XMLDocument.prototype.constructor is not writable expected true got false
     
    639649FAIL DOMImplementation interface: existence and properties of interface object assert_equals: class string of DOMImplementation expected "[object Function]" but got "[object DOMImplementationConstructor]"
    640650PASS DOMImplementation interface object length
     651PASS DOMImplementation interface object name
    641652PASS DOMImplementation interface: existence and properties of interface prototype object
    642653FAIL DOMImplementation interface: existence and properties of interface prototype object's "constructor" property assert_true: DOMImplementation.prototype.constructor is not writable expected true got false
     
    660671FAIL DocumentFragment interface: existence and properties of interface object assert_equals: class string of DocumentFragment expected "[object Function]" but got "[object DocumentFragmentConstructor]"
    661672PASS DocumentFragment interface object length
     673PASS DocumentFragment interface object name
    662674PASS DocumentFragment interface: existence and properties of interface prototype object
    663675FAIL DocumentFragment interface: existence and properties of interface prototype object's "constructor" property assert_true: DocumentFragment.prototype.constructor is not writable expected true got false
     
    784796FAIL DocumentType interface: existence and properties of interface object assert_equals: class string of DocumentType expected "[object Function]" but got "[object DocumentTypeConstructor]"
    785797PASS DocumentType interface object length
     798PASS DocumentType interface object name
    786799PASS DocumentType interface: existence and properties of interface prototype object
    787800FAIL DocumentType interface: existence and properties of interface prototype object's "constructor" property assert_true: DocumentType.prototype.constructor is not writable expected true got false
     
    892905FAIL Element interface: existence and properties of interface object assert_equals: class string of Element expected "[object Function]" but got "[object ElementConstructor]"
    893906PASS Element interface object length
     907PASS Element interface object name
    894908PASS Element interface: existence and properties of interface prototype object
    895909FAIL Element interface: existence and properties of interface prototype object's "constructor" property assert_true: Element.prototype.constructor is not writable expected true got false
     
    11461160FAIL NamedNodeMap interface: existence and properties of interface object assert_equals: class string of NamedNodeMap expected "[object Function]" but got "[object NamedNodeMapConstructor]"
    11471161PASS NamedNodeMap interface object length
     1162PASS NamedNodeMap interface object name
    11481163PASS NamedNodeMap interface: existence and properties of interface prototype object
    11491164FAIL NamedNodeMap interface: existence and properties of interface prototype object's "constructor" property assert_own_property: NamedNodeMap.prototype does not have own property "constructor" expected property "constructor" missing
     
    11581173FAIL Attr interface: existence and properties of interface object assert_equals: class string of Attr expected "[object Function]" but got "[object AttrConstructor]"
    11591174PASS Attr interface object length
     1175PASS Attr interface object name
    11601176FAIL Attr interface: existence and properties of interface prototype object assert_equals: prototype of Attr.prototype is not Object.prototype expected object "[object Object]" but got Node object of unknown type
    11611177FAIL Attr interface: existence and properties of interface prototype object's "constructor" property assert_true: Attr.prototype.constructor is not writable expected true got false
     
    12001216FAIL CharacterData interface: existence and properties of interface object assert_equals: class string of CharacterData expected "[object Function]" but got "[object CharacterDataConstructor]"
    12011217PASS CharacterData interface object length
     1218PASS CharacterData interface object name
    12021219PASS CharacterData interface: existence and properties of interface prototype object
    12031220FAIL CharacterData interface: existence and properties of interface prototype object's "constructor" property assert_true: CharacterData.prototype.constructor is not writable expected true got false
     
    12251242FAIL Text interface: existence and properties of interface object assert_equals: class string of Text expected "[object Function]" but got "[object TextConstructor]"
    12261243PASS Text interface object length
     1244PASS Text interface object name
    12271245PASS Text interface: existence and properties of interface prototype object
    12281246FAIL Text interface: existence and properties of interface prototype object's "constructor" property assert_true: Text.prototype.constructor is not writable expected true got false
     
    13381356FAIL ProcessingInstruction interface: existence and properties of interface object assert_equals: class string of ProcessingInstruction expected "[object Function]" but got "[object ProcessingInstructionConstructor]"
    13391357PASS ProcessingInstruction interface object length
     1358PASS ProcessingInstruction interface object name
    13401359PASS ProcessingInstruction interface: existence and properties of interface prototype object
    13411360FAIL ProcessingInstruction interface: existence and properties of interface prototype object's "constructor" property assert_true: ProcessingInstruction.prototype.constructor is not writable expected true got false
     
    14481467FAIL Comment interface: existence and properties of interface object assert_equals: class string of Comment expected "[object Function]" but got "[object CommentConstructor]"
    14491468PASS Comment interface object length
     1469PASS Comment interface object name
    14501470PASS Comment interface: existence and properties of interface prototype object
    14511471FAIL Comment interface: existence and properties of interface prototype object's "constructor" property assert_true: Comment.prototype.constructor is not writable expected true got false
     
    15541574FAIL Range interface: existence and properties of interface object assert_equals: class string of Range expected "[object Function]" but got "[object RangeConstructor]"
    15551575PASS Range interface object length
     1576PASS Range interface object name
    15561577PASS Range interface: existence and properties of interface prototype object
    15571578FAIL Range interface: existence and properties of interface prototype object's "constructor" property assert_true: Range.prototype.constructor is not writable expected true got false
     
    17151736FAIL NodeIterator interface: existence and properties of interface object assert_equals: class string of NodeIterator expected "[object Function]" but got "[object NodeIteratorConstructor]"
    17161737PASS NodeIterator interface object length
     1738PASS NodeIterator interface object name
    17171739PASS NodeIterator interface: existence and properties of interface prototype object
    17181740FAIL NodeIterator interface: existence and properties of interface prototype object's "constructor" property assert_true: NodeIterator.prototype.constructor is not writable expected true got false
     
    17471769FAIL TreeWalker interface: existence and properties of interface object assert_equals: class string of TreeWalker expected "[object Function]" but got "[object TreeWalkerConstructor]"
    17481770PASS TreeWalker interface object length
     1771PASS TreeWalker interface object name
    17491772PASS TreeWalker interface: existence and properties of interface prototype object
    17501773FAIL TreeWalker interface: existence and properties of interface prototype object's "constructor" property assert_true: TreeWalker.prototype.constructor is not writable expected true got false
     
    17821805PASS TreeWalker interface: document.createTreeWalker(document.body, NodeFilter.SHOW_ALL, null, false) must inherit property "nextNode" with the proper type (10)
    17831806PASS NodeFilter interface: existence and properties of interface object
     1807PASS NodeFilter interface object name
    17841808PASS NodeFilter interface: existence and properties of interface prototype object
    17851809PASS NodeFilter interface: existence and properties of interface prototype object's "constructor" property
     
    18191843FAIL DOMTokenList interface: existence and properties of interface object assert_equals: class string of DOMTokenList expected "[object Function]" but got "[object DOMTokenListConstructor]"
    18201844PASS DOMTokenList interface object length
     1845PASS DOMTokenList interface object name
    18211846PASS DOMTokenList interface: existence and properties of interface prototype object
    18221847FAIL DOMTokenList interface: existence and properties of interface prototype object's "constructor" property assert_own_property: DOMTokenList.prototype does not have own property "constructor" expected property "constructor" missing
     
    18431868FAIL DOMSettableTokenList interface: existence and properties of interface object assert_equals: class string of DOMSettableTokenList expected "[object Function]" but got "[object DOMSettableTokenListConstructor]"
    18441869PASS DOMSettableTokenList interface object length
     1870PASS DOMSettableTokenList interface object name
    18451871PASS DOMSettableTokenList interface: existence and properties of interface prototype object
    18461872FAIL DOMSettableTokenList interface: existence and properties of interface prototype object's "constructor" property assert_own_property: DOMSettableTokenList.prototype does not have own property "constructor" expected property "constructor" missing
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/lists/DOMTokenList-stringifier-expected.txt

    r189632 r194580  
    11
    2 PASS DOMTokenList stringifier
     2FAIL DOMTokenList stringifier assert_equals: String(classList) should return the literal value expected "   a  a b " but got "a b"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/lists/DOMTokenList-stringifier.html

    r189471 r194580  
    77<script src="/resources/testharnessreport.js"></script>
    88<div id=log></div>
    9 <span class="   a  a b"></span>
     9<span class="   a  a b "></span>
    1010<script>
    1111test(function() {
     12  assert_equals(String(document.createElement("span").classList), "",
     13                "String(classList) should return the empty list for an undefined class attribute");
    1214  var span = document.querySelector("span");
    13   assert_equals(span.getAttribute("class"), "   a  a b",
     15  assert_equals(span.getAttribute("class"), "   a  a b ",
    1416                "getAttribute should return the literal value");
    15   assert_equals(span.className, "   a  a b",
     17  assert_equals(span.className, "   a  a b ",
    1618                "className should return the literal value");
    17   assert_equals(String(span.classList), "a b",
    18                 "String(classList) should compress whitespace");
    19   assert_equals(span.classList.toString(), "a b",
    20                 "classList.toString() should compress whitespace");
     19  assert_equals(String(span.classList), "   a  a b ",
     20                "String(classList) should return the literal value");
     21  assert_equals(span.classList.toString(), "   a  a b ",
     22                "classList.toString() should return the literal value");
    2123  assert_class_string(span.classList, "DOMTokenList");
    2224});
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-Element-getElementsByTagName.js

    r189471 r194580  
    5151
    5252  test(function() {
    53     var t = element.appendChild(document.createElement("pre"));
    54     t.id = "x";
    55     this.add_cleanup(function() {element.removeChild(t)});
     53    var t1 = element.appendChild(document.createElement("pre"));
     54    t1.id = "x";
     55    var t2 = element.appendChild(document.createElement("pre"));
     56    t2.setAttribute("name", "y");
     57    var t3 = element.appendChild(document.createElementNS("", "pre"));
     58    t3.setAttribute("id", "z");
     59    var t4 = element.appendChild(document.createElementNS("", "pre"));
     60    t4.setAttribute("name", "w");
     61    this.add_cleanup(function() {
     62      element.removeChild(t1)
     63      element.removeChild(t2)
     64      element.removeChild(t3)
     65      element.removeChild(t4)
     66    });
    5667
    5768    var list = context.getElementsByTagName('pre');
    5869    var pre = list[0];
    5970    assert_equals(pre.id, "x");
    60     assert_equals(list['x'], pre);
    6171
    62     assert_true('x' in list, "'x' in list");
    63     assert_true(list.hasOwnProperty('x'), "list.hasOwnProperty('x')");
     72    var exposedNames = { 'x': 0, 'y': 1, 'z': 2 };
     73    for (var exposedName in exposedNames) {
     74      assert_equals(list[exposedName], list[exposedNames[exposedName]]);
     75      assert_equals(list[exposedName], list.namedItem(exposedName));
     76      assert_true(exposedName in list, "'" + exposedName + "' in list");
     77      assert_true(list.hasOwnProperty(exposedName),
     78                  "list.hasOwnProperty('" + exposedName + "')");
     79    }
    6480
    65     assert_array_equals(Object.getOwnPropertyNames(list).sort(), ["0", "x"]);
     81    var unexposedNames = ["w"];
     82    for (var unexposedName of unexposedNames) {
     83      assert_false(unexposedName in list);
     84      assert_false(list.hasOwnProperty(unexposedName));
     85      assert_equals(list[unexposedName], undefined);
     86      assert_equals(list.namedItem(unexposedName), null);
     87    }
     88
     89    assert_array_equals(Object.getOwnPropertyNames(list).sort(),
     90                        ["0", "1", "2", "3", "x", "y", "z"]);
    6691
    6792    var desc = Object.getOwnPropertyDescriptor(list, '0');
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-createElement-namespace-expected.txt

    r191379 r194580  
    22PASS Created element's namespace in current document
    33PASS Created element's namespace in created HTML document
    4 PASS Created element's namespace in created XML document
     4FAIL Created element's namespace in created XML document assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
    55FAIL Created element's namespace in created XHTML document assert_equals: Wrong MIME type -- incorrect server config? expected "application/xml" but got "application/xhtml+xml"
    66FAIL Created element's namespace in created SVG document assert_equals: Wrong MIME type -- incorrect server config? expected "application/xml" but got "image/svg+xml"
    7 PASS Created element's namespace in created MathML document
    8 FAIL Created element's namespace in empty.html assert_equals: Wrong MIME type -- incorrect server config? expected "text/html" but got "application/json"
    9 FAIL Created element's namespace in empty.xhtml assert_equals: Wrong MIME type -- incorrect server config? expected "application/xhtml+xml" but got "application/json"
    10 FAIL Created element's namespace in empty.xml assert_equals: Wrong MIME type -- incorrect server config? expected "application/xml" but got "application/json"
    11 FAIL Created element's namespace in empty.svg assert_equals: Wrong MIME type -- incorrect server config? expected "image/svg+xml" but got "application/json"
     7FAIL Created element's namespace in created MathML document assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
     8PASS Created element's namespace in empty.html
     9PASS Created element's namespace in empty.xhtml
     10FAIL Created element's namespace in empty.xml assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
     11FAIL Created element's namespace in empty.svg assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
    1212PASS Created element's namespace in minimal_html.html
    1313PASS Created element's namespace in minimal_html.xhtml
    14 PASS Created element's namespace in minimal_html.xml
    15 PASS Created element's namespace in minimal_html.svg
     14FAIL Created element's namespace in minimal_html.xml assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
     15FAIL Created element's namespace in minimal_html.svg assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
    1616PASS Created element's namespace in xhtml.html
    1717PASS Created element's namespace in xhtml.xhtml
    18 PASS Created element's namespace in xhtml.xml
    19 PASS Created element's namespace in xhtml.svg
     18FAIL Created element's namespace in xhtml.xml assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
     19FAIL Created element's namespace in xhtml.svg assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
    2020PASS Created element's namespace in svg.html
    2121PASS Created element's namespace in svg.xhtml
    22 PASS Created element's namespace in svg.xml
    23 PASS Created element's namespace in svg.svg
     22FAIL Created element's namespace in svg.xml assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
     23FAIL Created element's namespace in svg.svg assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
    2424PASS Created element's namespace in mathml.html
    2525PASS Created element's namespace in mathml.xhtml
    26 PASS Created element's namespace in mathml.xml
    27 PASS Created element's namespace in mathml.svg
     26FAIL Created element's namespace in mathml.xml assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
     27FAIL Created element's namespace in mathml.svg assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
    2828PASS Created element's namespace in bare_xhtml.html
    2929PASS Created element's namespace in bare_xhtml.xhtml
    30 PASS Created element's namespace in bare_xhtml.xml
    31 PASS Created element's namespace in bare_xhtml.svg
     30FAIL Created element's namespace in bare_xhtml.xml assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
     31FAIL Created element's namespace in bare_xhtml.svg assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
    3232PASS Created element's namespace in bare_svg.html
    3333PASS Created element's namespace in bare_svg.xhtml
    34 PASS Created element's namespace in bare_svg.xml
    35 PASS Created element's namespace in bare_svg.svg
     34FAIL Created element's namespace in bare_svg.xml assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
     35FAIL Created element's namespace in bare_svg.svg assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
    3636PASS Created element's namespace in bare_mathml.html
    3737PASS Created element's namespace in bare_mathml.xhtml
    38 PASS Created element's namespace in bare_mathml.xml
    39 PASS Created element's namespace in bare_mathml.svg
     38FAIL Created element's namespace in bare_mathml.xml assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
     39FAIL Created element's namespace in bare_mathml.svg assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
    4040PASS Created element's namespace in xhtml_ns_removed.html
    4141PASS Created element's namespace in xhtml_ns_removed.xhtml
    42 PASS Created element's namespace in xhtml_ns_removed.xml
    43 PASS Created element's namespace in xhtml_ns_removed.svg
     42FAIL Created element's namespace in xhtml_ns_removed.xml assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
     43FAIL Created element's namespace in xhtml_ns_removed.svg assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
    4444PASS Created element's namespace in xhtml_ns_changed.html
    4545PASS Created element's namespace in xhtml_ns_changed.xhtml
    46 PASS Created element's namespace in xhtml_ns_changed.xml
    47 PASS Created element's namespace in xhtml_ns_changed.svg
     46FAIL Created element's namespace in xhtml_ns_changed.xml assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
     47FAIL Created element's namespace in xhtml_ns_changed.svg assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
    4848
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-createElement-namespace.html

    r191379 r194580  
    1414
    1515/**
    16  * Test that an element created using the Document object doc has the namespace
    17  * that would be expected for the given contentType.
     16 * Test that an element created using the Document object doc has the HTML
     17 * namespace.
    1818 */
    1919function testDoc(doc, contentType) {
    20   // WebKit doesn't support document.contentType, so they don't get this sanity
    21   // check :(
    2220  if (doc.contentType !== undefined) {
     21    // Sanity check
    2322    assert_equals(doc.contentType, contentType,
    2423                  "Wrong MIME type -- incorrect server config?");
    2524  }
    2625
    27   var expectedNamespace = contentType == "text/html" ||
    28                           contentType == "application/xhtml+xml"
    29                           ? "http://www.w3.org/1999/xhtml" : null;
    30 
    31   assert_equals(doc.createElement("x").namespaceURI, expectedNamespace);
     26  assert_equals(doc.createElement("x").namespaceURI, "http://www.w3.org/1999/xhtml");
    3227}
    3328
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-getElementsByTagName-expected.txt

    r190280 r194580  
    99PASS Should be able to set expando shadowing a proto prop (item)
    1010PASS Should be able to set expando shadowing a proto prop (namedItem)
    11 FAIL hasOwnProperty, getOwnPropertyDescriptor, getOwnPropertyNames assert_array_equals: lengths differ, expected 2 got 4
     11FAIL hasOwnProperty, getOwnPropertyDescriptor, getOwnPropertyNames assert_false: expected false got true
    1212PASS HTML element with uppercase tagName never matches in HTML Documents
    1313PASS Element in non-HTML namespace, no prefix, lowercase name
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-children-expected.txt

    r189471 r194580  
    22
    33PASS HTMLCollection edge cases
    4 FAIL HTMLCollection edge cases 1 assert_array_equals: lengths differ, expected 3 got 4
     4FAIL HTMLCollection edge cases 1 assert_array_equals: lengths differ, expected 6 got 7
    55
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-children.html

    r189471 r194580  
    44<script src="/resources/testharnessreport.js"></script>
    55<div id="log"></div>
    6 <div id="test"><img><img id=foo><img id=foo></div>
     6<div id="test"><img><img id=foo><img id=foo><img name="bar"></div>
    77<script>
     8setup(function() {
     9  // Add some non-HTML elements in there to test what happens with those.
     10  var container = document.getElementById("test");
     11  var child = document.createElementNS("", "img");
     12  child.setAttribute("id", "baz");
     13  container.appendChild(child);
     14
     15  child = document.createElementNS("", "img");
     16  child.setAttribute("name", "qux");
     17  container.appendChild(child);
     18});
     19
    820test(function() {
    921  var container = document.getElementById("test");
     
    1224  assert_false(result.hasAttribute("id"), "Expected the IDless Element.")
    1325})
     26
    1427test(function() {
    1528  var container = document.getElementById("test");
     
    2134    }
    2235  }
    23   assert_array_equals(result, ['0', '1', '2']);
     36  assert_array_equals(result, ['0', '1', '2', '3', '4', '5']);
    2437  result = Object.getOwnPropertyNames(list);
    25   assert_array_equals(result, ['0', '1', '2', 'foo']);
     38  assert_array_equals(result, ['0', '1', '2', '3', '4', '5', 'foo', 'bar', 'baz']);
     39
     40  // Mapping of exposed names to their indices in the list.
     41  var exposedNames = { 'foo': 1, 'bar': 3, 'baz': 4 };
     42  for (var exposedName in exposedNames) {
     43    assert_true(exposedName in list);
     44    assert_true(list.hasOwnProperty(exposedName));
     45    assert_equals(list[exposedName], list.namedItem(exposedName));
     46    assert_equals(list[exposedName], list.item(exposedNames[exposedName]));
     47    assert_true(list[exposedName] instanceof Element);
     48  }
     49
     50  var unexposedNames = ['qux'];
     51  for (var unexposedName of unexposedNames) {
     52    assert_false(unexposedName in list);
     53    assert_false(list.hasOwnProperty(unexposedName));
     54    assert_equals(list[unexposedName], undefined);
     55    assert_equals(list.namedItem(unexposedName), null);
     56  }
    2657});
    2758</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-classlist-expected.txt

    r189632 r194580  
    1414PASS classList[index] must be undefined for negative index
    1515PASS className should contain initial markup whitespace
    16 PASS empty classList should return the empty string since the ordered set parser skip the whitespaces
     16FAIL classList should contain initial markup whitespace assert_equals: implicit expected " " but got ""
    1717PASS .contains(empty_string) must throw a SYNTAX_ERR
    1818PASS .add(empty_string) must throw a SYNTAX_ERR
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-classlist.html

    r189471 r194580  
    6363}, 'className should contain initial markup whitespace');
    6464test(function () {
    65   assert_equals( elem.classList + '', '', 'implicit' );
    66   assert_equals( elem.classList.toString(), '', 'explicit' );
    67 }, 'empty classList should return the empty string since the ordered set parser skip the whitespaces');
     65  assert_equals( elem.classList + '', ' ', 'implicit' );
     66  assert_equals( elem.classList.toString(), ' ', 'explicit' );
     67}, 'classList should contain initial markup whitespace');
    6868test(function () {
    6969  assert_throws( 'SYNTAX_ERR', function () { elem.classList.contains(''); } );
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-getElementsByTagName-expected.txt

    r190280 r194580  
    99PASS Should be able to set expando shadowing a proto prop (item)
    1010PASS Should be able to set expando shadowing a proto prop (namedItem)
    11 FAIL hasOwnProperty, getOwnPropertyDescriptor, getOwnPropertyNames assert_array_equals: lengths differ, expected 2 got 4
     11FAIL hasOwnProperty, getOwnPropertyDescriptor, getOwnPropertyNames assert_array_equals: lengths differ, expected 7 got 9
    1212PASS HTML element with uppercase tagName never matches in HTML Documents
    1313PASS Element in non-HTML namespace, no prefix, lowercase name
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-matches-expected.txt

    r189471 r194580  
    184184PASS In-document Element.matches: Class selector, chained, matching only elements with all specified classes (with no refNodes): #class .apple.orange.banana
    185185PASS In-document Element.matches: Class Selector, chained, with type selector (with no refNodes): div.apple.banana.orange
    186 PASS In-document Element.matches: Class selector, matching element with class value using non-ASCII characters (with no refNodes): .台北Táiběi
     186PASS In-document Element.matches: Class selector, matching element with class value using non-ASCII characters (1) (with no refNodes): .台北Táiběi
    187187PASS In-document Element.matches: Class selector, matching multiple elements with class value using non-ASCII characters (with no refNodes): .台北
    188 PASS In-document Element.matches: Class selector, chained, matching element with multiple class values using non-ASCII characters (with no refNodes): .台北Táiběi.台北
     188PASS In-document Element.matches: Class selector, chained, matching element with multiple class values using non-ASCII characters (1) (with no refNodes): .台北Táiběi.台北
    189189PASS In-document Element.matches: Class selector, matching element with class with escaped character (with no refNodes): .foo\:bar
    190190PASS In-document Element.matches: Class selector, matching element with class with escaped character (with no refNodes): .test\.foo\[5\]bar
     
    194194PASS In-document Element.matches: ID Selector, chained, with type selector (with no refNodes): div#id-div1, div#id-div2
    195195PASS In-document Element.matches: ID selector, matching multiple elements with duplicate id (with no refNodes): #id-li-duplicate
    196 PASS In-document Element.matches: ID selector, matching id value using non-ASCII characters (with no refNodes): #台北Táiběi
    197 PASS In-document Element.matches: ID selector, matching id value using non-ASCII characters (with no refNodes): #台北
    198 PASS In-document Element.matches: ID selector, matching id values using non-ASCII characters (with no refNodes): #台北Táiběi, #台北
     196PASS In-document Element.matches: ID selector, matching id value using non-ASCII characters (1) (with no refNodes): #台北Táiběi
     197PASS In-document Element.matches: ID selector, matching id value using non-ASCII characters (2) (with no refNodes): #台北
     198PASS In-document Element.matches: ID selector, matching id values using non-ASCII characters (1) (with no refNodes): #台北Táiběi, #台北
    199199PASS In-document Element.matches: Descendant combinator, matching element that is a descendant of an element with id (with no refNodes): #descendant div
    200200PASS In-document Element.matches: Descendant combinator, matching element with id that is a descendant of an element (with no refNodes): body #descendant-div1
     
    344344PASS Detached Element.matches: Class selector, chained, matching only elements with all specified classes (with no refNodes): #class .apple.orange.banana
    345345PASS Detached Element.matches: Class Selector, chained, with type selector (with no refNodes): div.apple.banana.orange
    346 PASS Detached Element.matches: Class selector, matching element with class value using non-ASCII characters (with no refNodes): .台北Táiběi
     346PASS Detached Element.matches: Class selector, matching element with class value using non-ASCII characters (1) (with no refNodes): .台北Táiběi
    347347PASS Detached Element.matches: Class selector, matching multiple elements with class value using non-ASCII characters (with no refNodes): .台北
    348 PASS Detached Element.matches: Class selector, chained, matching element with multiple class values using non-ASCII characters (with no refNodes): .台北Táiběi.台北
     348PASS Detached Element.matches: Class selector, chained, matching element with multiple class values using non-ASCII characters (1) (with no refNodes): .台北Táiběi.台北
    349349PASS Detached Element.matches: Class selector, matching element with class with escaped character (with no refNodes): .foo\:bar
    350350PASS Detached Element.matches: Class selector, matching element with class with escaped character (with no refNodes): .test\.foo\[5\]bar
     
    354354PASS Detached Element.matches: ID Selector, chained, with type selector (with no refNodes): div#id-div1, div#id-div2
    355355PASS Detached Element.matches: ID selector, matching multiple elements with duplicate id (with no refNodes): #id-li-duplicate
    356 PASS Detached Element.matches: ID selector, matching id value using non-ASCII characters (with no refNodes): #台北Táiběi
    357 PASS Detached Element.matches: ID selector, matching id value using non-ASCII characters (with no refNodes): #台北
    358 PASS Detached Element.matches: ID selector, matching id values using non-ASCII characters (with no refNodes): #台北Táiběi, #台北
     356PASS Detached Element.matches: ID selector, matching id value using non-ASCII characters (1) (with no refNodes): #台北Táiběi
     357PASS Detached Element.matches: ID selector, matching id value using non-ASCII characters (2) (with no refNodes): #台北
     358PASS Detached Element.matches: ID selector, matching id values using non-ASCII characters (1) (with no refNodes): #台北Táiběi, #台北
    359359PASS Detached Element.matches: Descendant combinator, matching element that is a descendant of an element with id (with no refNodes): #descendant div
    360360PASS Detached Element.matches: Descendant combinator, matching element with id that is a descendant of an element (with no refNodes): div #descendant-div1
     
    503503PASS Fragment Element.matches: Class selector, chained, matching only elements with all specified classes (with no refNodes): #class .apple.orange.banana
    504504PASS Fragment Element.matches: Class Selector, chained, with type selector (with no refNodes): div.apple.banana.orange
    505 PASS Fragment Element.matches: Class selector, matching element with class value using non-ASCII characters (with no refNodes): .台北Táiběi
     505PASS Fragment Element.matches: Class selector, matching element with class value using non-ASCII characters (1) (with no refNodes): .台北Táiběi
    506506PASS Fragment Element.matches: Class selector, matching multiple elements with class value using non-ASCII characters (with no refNodes): .台北
    507 PASS Fragment Element.matches: Class selector, chained, matching element with multiple class values using non-ASCII characters (with no refNodes): .台北Táiběi.台北
     507PASS Fragment Element.matches: Class selector, chained, matching element with multiple class values using non-ASCII characters (1) (with no refNodes): .台北Táiběi.台北
    508508PASS Fragment Element.matches: Class selector, matching element with class with escaped character (with no refNodes): .foo\:bar
    509509PASS Fragment Element.matches: Class selector, matching element with class with escaped character (with no refNodes): .test\.foo\[5\]bar
     
    513513PASS Fragment Element.matches: ID Selector, chained, with type selector (with no refNodes): div#id-div1, div#id-div2
    514514PASS Fragment Element.matches: ID selector, matching multiple elements with duplicate id (with no refNodes): #id-li-duplicate
    515 PASS Fragment Element.matches: ID selector, matching id value using non-ASCII characters (with no refNodes): #台北Táiběi
    516 PASS Fragment Element.matches: ID selector, matching id value using non-ASCII characters (with no refNodes): #台北
    517 PASS Fragment Element.matches: ID selector, matching id values using non-ASCII characters (with no refNodes): #台北Táiběi, #台北
     515PASS Fragment Element.matches: ID selector, matching id value using non-ASCII characters (1) (with no refNodes): #台北Táiběi
     516PASS Fragment Element.matches: ID selector, matching id value using non-ASCII characters (2) (with no refNodes): #台北
     517PASS Fragment Element.matches: ID selector, matching id values using non-ASCII characters (1) (with no refNodes): #台北Táiběi, #台北
    518518PASS Fragment Element.matches: Descendant combinator, matching element that is a descendant of an element with id (with no refNodes): #descendant div
    519519PASS Fragment Element.matches: Descendant combinator, matching element with id that is a descendant of an element (with no refNodes): div #descendant-div1
     
    664664PASS In-document Element.matches: Class selector, chained, matching only elements with all specified classes (1) (with no refNodes): #class .apple.orange.banana
    665665PASS In-document Element.matches: Class Selector, chained, with type selector (1) (with no refNodes): div.apple.banana.orange
    666 FAIL In-document Element.matches: Class selector, matching element with class value using non-ASCII characters (with no refNodes): .台北Táiběi assert_true: The element #class-span1 should match the selector. expected true got false
     666PASS In-document Element.matches: Class selector, matching element with class value using non-ASCII characters (2) (with no refNodes): .台北Táiběi
    667667PASS In-document Element.matches: Class selector, matching multiple elements with class value using non-ASCII characters (1) (with no refNodes): .台北
    668 FAIL In-document Element.matches: Class selector, chained, matching element with multiple class values using non-ASCII characters (with no refNodes): .台北Táiběi.台北 assert_true: The element #class-span1 should match the selector. expected true got false
     668PASS In-document Element.matches: Class selector, chained, matching element with multiple class values using non-ASCII characters (2) (with no refNodes): .台北Táiběi.台北
    669669PASS In-document Element.matches: Class selector, matching element with class with escaped character (1) (with no refNodes): .foo\:bar
    670670PASS In-document Element.matches: Class selector, matching element with class with escaped character (1) (with no refNodes): .test\.foo\[5\]bar
     
    674674PASS In-document Element.matches: ID Selector, chained, with type selector (1) (with no refNodes): div#id-div1, div#id-div2
    675675PASS In-document Element.matches: ID selector, matching multiple elements with duplicate id (1) (with no refNodes): #id-li-duplicate
    676 FAIL In-document Element.matches: ID selector, matching id value using non-ASCII characters (with no refNodes): #台北Táiběi null is not an object (evaluating 'element.matches')
    677 PASS In-document Element.matches: ID selector, matching id value using non-ASCII characters (1) (with no refNodes): #台北
    678 FAIL In-document Element.matches: ID selector, matching id values using non-ASCII characters (with no refNodes): #台北Táiběi, #台北 null is not an object (evaluating 'element.matches')
     676PASS In-document Element.matches: ID selector, matching id value using non-ASCII characters (3) (with no refNodes): #台北Táiběi
     677PASS In-document Element.matches: ID selector, matching id value using non-ASCII characters (4) (with no refNodes): #台北
     678PASS In-document Element.matches: ID selector, matching id values using non-ASCII characters (2) (with no refNodes): #台北Táiběi, #台北
    679679PASS In-document Element.matches: Descendant combinator, matching element that is a descendant of an element with id (1) (with no refNodes): #descendant div
    680680PASS In-document Element.matches: Descendant combinator, matching element with id that is a descendant of an element (1) (with no refNodes): body #descendant-div1
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/MutationObserver-childList.html

    r189471 r194580  
    4848<p id='n51'><span>text content</span></p>
    4949<p id='n52'><span>NO </span><span>CHANGED</span></p>
     50<p id='n53'><span>text content</span></p>
    5051
    5152<p id='n60'><span>text content</span></p>
     
    286287                  "childList Node.replaceChild: internal replacement mutation");
    287288
     289  var n53 = document.getElementById('n53');
     290  runMutationTest(n53,
     291                  {"childList":true},
     292                  [{type: "childList",
     293                    removedNodes: [n53.firstChild]},
     294                   {type: "childList",
     295                    addedNodes: [n53.firstChild]}],
     296                  function() { n53.replaceChild(n53.firstChild, n53.firstChild); },
     297                  "childList Node.replaceChild: self internal replacement mutation");
     298
    288299  var n60 = document.getElementById('n60');
    289300  runMutationTest(n60,
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/MutationObserver-document-expected.txt

    r189471 r194580  
    44PASS setup test
    55PASS parser insertion mutations
    6 PASS parser script insertion mutation
     6FAIL parser script insertion mutation assert_equals: target node must match expected Element node <p id="n00"><script id="inserted_script">document.body.ap... but got Element node <body><h1>MutationObservers: document mutations</h1>
     7<div...
    78PASS removal of parent during parsing
    89
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/MutationObserver-document.html

    r189471 r194580  
    5050                       [{type: "childList",
    5151                         addedNodes: function () {
     52                           return [ document.getElementById("inserted_script") ];
     53                         },
     54                         target: function () {
     55                          return document.getElementById("n00");
     56                         }},
     57                        {type: "childList",
     58                         addedNodes: function () {
    5259                           return [ document.getElementById("inserted_element") ];
    5360                         },
     
    5562                           return document.getElementById("s002");
    5663                         },
    57                          target: document.body},
    58                         {type: "childList",
    59                          addedNodes: function () {
    60                            return [ document.getElementById("inserted_script") ];
    61                          },
    62                          target: function () {
    63                           return document.getElementById("n00");
    64                          }}
     64                         target: document.body}
    6565                        ]);
    6666        });
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isEqualNode-expected.txt

    r194142 r194580  
    1 CONSOLE MESSAGE: line 1380: Blocked a frame with origin "http://localhost:8800" from accessing a frame with origin "null".  The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "data". Protocols must match.
    2 
    3 CONSOLE MESSAGE: line 1380: Blocked a frame with origin "http://localhost:8800" from accessing a frame with origin "null".  The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "data". Protocols must match.
    4 
    51 
    62
     
    1814PASS isEqualNode should return false if elements have different local name
    1915PASS isEqualNode should return true when the attributes have different prefixes
    20 FAIL isEqualNode should return true when only the internal subsets of DocumentTypes differ. null is not an object (evaluating 'doc1.doctype')
     16PASS isEqualNode should return true when only the internal subsets of DocumentTypes differ.
    2117
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isEqualNode.xhtml

    r189471 r194580  
    7979}
    8080</script>
    81 <iframe id="subset1" onload="iframeLoaded()" src="data:application/xml,&lt;!DOCTYPE foo [ &lt;!ELEMENT foo (%23PCDATA)> ]>&lt;foo/>" />
    82 <iframe id="subset2" onload="iframeLoaded()" src="data:application/xml,&lt;!DOCTYPE foo [ &lt;!ELEMENT foo EMPTY> ]>&lt;foo/>" />
     81<iframe id="subset1" onload="iframeLoaded()" src="Node-isEqualNode-iframe1.xml" />
     82<iframe id="subset2" onload="iframeLoaded()" src="Node-isEqualNode-iframe2.xml" />
    8383</body>
    8484</html>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-lookupNamespaceURI-expected.txt

    r189471 r194580  
    22
    33
    4 PASS DocumentFragment should have null namespace
    5 PASS DocumentFragment should have null namespace
    6 PASS DocumentFragment should have null namespace
    7 PASS DocumentFragment should have null namespace
    8 FAIL DocumentFragment is in default namespace assert_equals: expected true but got false
    9 FAIL DocumentFragment is in default namespace assert_equals: expected true but got false
    10 PASS DocumentFragment is in default namespace
    11 PASS DocumentFragment is in default namespace
    12 PASS Element should have null namespace
    13 PASS Element should have null namespace
     4PASS DocumentFragment should have null namespace, prefix null
     5PASS DocumentFragment should have null namespace, prefix ""
     6PASS DocumentFragment should have null namespace, prefix "foo"
     7PASS DocumentFragment should have null namespace, prefix "xmlns"
     8FAIL DocumentFragment is in default namespace, prefix null assert_equals: expected true but got false
     9FAIL DocumentFragment is in default namespace, prefix "" assert_equals: expected true but got false
     10PASS DocumentFragment is in default namespace, prefix "foo"
     11PASS DocumentFragment is in default namespace, prefix "xmlns"
     12PASS Element should have null namespace, prefix null
     13PASS Element should have null namespace, prefix ""
    1414PASS Element should not have namespace matching prefix with namespaceURI value
    1515PASS Element should not have XMLNS namespace
    1616PASS Element has namespace URI matching prefix
    17 FAIL Empty namespace is not default assert_equals: expected true but got false
    18 FAIL Empty namespace is not default assert_equals: expected true but got false
     17FAIL Empty namespace is not default, prefix null assert_equals: expected true but got false
     18FAIL Empty namespace is not default, prefix "" assert_equals: expected true but got false
    1919PASS fooNamespace is not default
    2020PASS xmlns namespace is not default
    21 PASS Element should have baz namespace
    22 FAIL Element should have baz namespace assert_equals: expected (string) "bazURI" but got (object) null
    23 PASS Element has namespace URI matching prefix
     21PASS Element should have baz namespace, prefix null
     22FAIL Element should have baz namespace, prefix "" assert_equals: expected (string) "bazURI" but got (object) null
    2423PASS Element does not has namespace with xlmns prefix
    2524PASS Element has bar namespace
    26 PASS Empty namespace is not default
    27 PASS Empty namespace is not default
    28 PASS fooNamespace is not default
    29 PASS xmlns namespace is not default
     25PASS Empty namespace is not default on fooElem, prefix null
     26PASS Empty namespace is not default on fooElem, prefix ""
    3027PASS bar namespace is not default
    3128PASS baz namespace is default
     
    3431PASS Comment should inherit namespace URI matching prefix
    3532PASS Comment should inherit bar namespace
    36 PASS For comment, empty namespace is not default
    37 PASS For comment, empty namespace is not default
     33PASS For comment, empty namespace is not default, prefix null
     34PASS For comment, empty namespace is not default, prefix ""
    3835PASS For comment, fooNamespace is not default
    3936PASS For comment, xmlns namespace is not default
     
    4441PASS Child element should not have XMLNS namespace
    4542PASS Child element has namespace URI matching prefix
    46 PASS Empty namespace is not default for child
    47 PASS Empty namespace is not default for child
     43PASS Empty namespace is not default for child, prefix null
     44PASS Empty namespace is not default for child, prefix ""
    4845PASS fooNamespace is not default for child
    4946PASS xmlns namespace is not default for child
     
    5148PASS baz namespace is default for child
    5249PASS childNamespace is default for child
    53 PASS Document should have xhtml namespace
    54 FAIL Document should have xhtml namespace assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
     50PASS Document should have xhtml namespace, prefix null
     51FAIL Document should have xhtml namespace, prefix "" assert_equals: expected (string) "http://www.w3.org/1999/xhtml" but got (object) null
    5552PASS Document has no namespace URI matching prefix
    5653PASS Document has bar namespace
    57 PASS For document, Empty namespace is not default
    58 PASS For document, Empty namespace is not default
     54PASS For document, empty namespace is not default, prefix null
     55PASS For document, empty namespace is not default, prefix ""
    5956PASS For document, fooNamespace is not default
    6057PASS For document, xmlns namespace is not default
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-lookupNamespaceURI.html

    r189471 r194580  
    2424
    2525var frag = document.createDocumentFragment();
    26 lookupNamespaceURI(frag, null, null, 'DocumentFragment should have null namespace');
    27 lookupNamespaceURI(frag, '', null, 'DocumentFragment should have null namespace');
    28 lookupNamespaceURI(frag, 'foo', null, 'DocumentFragment should have null namespace');
    29 lookupNamespaceURI(frag, 'xmlns', null, 'DocumentFragment should have null namespace');
    30 isDefaultNamespace(frag, null, true, 'DocumentFragment is in default namespace');
    31 isDefaultNamespace(frag, '', true, 'DocumentFragment is in default namespace');
    32 isDefaultNamespace(frag, 'foo', false, 'DocumentFragment is in default namespace');
    33 isDefaultNamespace(frag, 'xmlns', false, 'DocumentFragment is in default namespace');
     26lookupNamespaceURI(frag, null, null, 'DocumentFragment should have null namespace, prefix null');
     27lookupNamespaceURI(frag, '', null, 'DocumentFragment should have null namespace, prefix ""');
     28lookupNamespaceURI(frag, 'foo', null, 'DocumentFragment should have null namespace, prefix "foo"');
     29lookupNamespaceURI(frag, 'xmlns', null, 'DocumentFragment should have null namespace, prefix "xmlns"');
     30isDefaultNamespace(frag, null, true, 'DocumentFragment is in default namespace, prefix null');
     31isDefaultNamespace(frag, '', true, 'DocumentFragment is in default namespace, prefix ""');
     32isDefaultNamespace(frag, 'foo', false, 'DocumentFragment is in default namespace, prefix "foo"');
     33isDefaultNamespace(frag, 'xmlns', false, 'DocumentFragment is in default namespace, prefix "xmlns"');
    3434
    3535
     
    3838fooElem.setAttribute('bar', 'value');
    3939
    40 lookupNamespaceURI(fooElem, null, null, 'Element should have null namespace');
    41 lookupNamespaceURI(fooElem, '', null, 'Element should have null namespace');
     40lookupNamespaceURI(fooElem, null, null, 'Element should have null namespace, prefix null');
     41lookupNamespaceURI(fooElem, '', null, 'Element should have null namespace, prefix ""');
    4242lookupNamespaceURI(fooElem, 'fooNamespace', null, 'Element should not have namespace matching prefix with namespaceURI value');
    4343lookupNamespaceURI(fooElem, 'xmlns', null, 'Element should not have XMLNS namespace');
    4444lookupNamespaceURI(fooElem, 'prefix', 'fooNamespace', 'Element has namespace URI matching prefix');
    45 isDefaultNamespace(fooElem, null, true, 'Empty namespace is not default');
    46 isDefaultNamespace(fooElem, '', true, 'Empty namespace is not default');
     45isDefaultNamespace(fooElem, null, true, 'Empty namespace is not default, prefix null');
     46isDefaultNamespace(fooElem, '', true, 'Empty namespace is not default, prefix ""');
    4747isDefaultNamespace(fooElem, 'fooNamespace', false, 'fooNamespace is not default');
    4848isDefaultNamespace(fooElem, 'http://www.w3.org/2000/xmlns/', false, 'xmlns namespace is not default');
     
    5151fooElem.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns', 'bazURI');
    5252
    53 lookupNamespaceURI(fooElem, null, 'bazURI', 'Element should have baz namespace');
    54 lookupNamespaceURI(fooElem, '', 'bazURI', 'Element should have baz namespace');
    55 lookupNamespaceURI(fooElem, 'prefix', 'fooNamespace', 'Element has namespace URI matching prefix');
     53lookupNamespaceURI(fooElem, null, 'bazURI', 'Element should have baz namespace, prefix null');
     54lookupNamespaceURI(fooElem, '', 'bazURI', 'Element should have baz namespace, prefix ""');
    5655lookupNamespaceURI(fooElem, 'xmlns', null, 'Element does not has namespace with xlmns prefix');
    5756lookupNamespaceURI(fooElem, 'bar', 'barURI', 'Element has bar namespace');
    5857
    59 isDefaultNamespace(fooElem, null, false, 'Empty namespace is not default');
    60 isDefaultNamespace(fooElem, '', false, 'Empty namespace is not default');
    61 isDefaultNamespace(fooElem, 'fooNamespace', false, 'fooNamespace is not default');
    62 isDefaultNamespace(fooElem, 'http://www.w3.org/2000/xmlns/', false, 'xmlns namespace is not default');
     58isDefaultNamespace(fooElem, null, false, 'Empty namespace is not default on fooElem, prefix null');
     59isDefaultNamespace(fooElem, '', false, 'Empty namespace is not default on fooElem, prefix ""');
    6360isDefaultNamespace(fooElem, 'barURI', false, 'bar namespace is not default');
    6461isDefaultNamespace(fooElem, 'bazURI', true, 'baz namespace is default');
     
    7269lookupNamespaceURI(comment, 'bar', 'barURI', 'Comment should inherit bar namespace');
    7370
    74 isDefaultNamespace(comment, null, false, 'For comment, empty namespace is not default');
    75 isDefaultNamespace(comment, '', false, 'For comment, empty namespace is not default');
     71isDefaultNamespace(comment, null, false, 'For comment, empty namespace is not default, prefix null');
     72isDefaultNamespace(comment, '', false, 'For comment, empty namespace is not default, prefix ""');
    7673isDefaultNamespace(comment, 'fooNamespace', false, 'For comment, fooNamespace is not default');
    7774isDefaultNamespace(comment, 'http://www.w3.org/2000/xmlns/', false, 'For comment, xmlns namespace is not default');
     
    8784lookupNamespaceURI(fooChild, 'prefix', 'fooNamespace', 'Child element has namespace URI matching prefix');
    8885
    89 isDefaultNamespace(fooChild, null, false, 'Empty namespace is not default for child');
    90 isDefaultNamespace(fooChild, '', false, 'Empty namespace is not default for child');
     86isDefaultNamespace(fooChild, null, false, 'Empty namespace is not default for child, prefix null');
     87isDefaultNamespace(fooChild, '', false, 'Empty namespace is not default for child, prefix ""');
    9188isDefaultNamespace(fooChild, 'fooNamespace', false, 'fooNamespace is not default for child');
    9289isDefaultNamespace(fooChild, 'http://www.w3.org/2000/xmlns/', false, 'xmlns namespace is not default for child');
     
    9895document.documentElement.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns', 'bazURI');
    9996
    100 lookupNamespaceURI(document, null, 'http://www.w3.org/1999/xhtml', 'Document should have xhtml namespace');
    101 lookupNamespaceURI(document, '', 'http://www.w3.org/1999/xhtml', 'Document should have xhtml namespace');
     97lookupNamespaceURI(document, null, 'http://www.w3.org/1999/xhtml', 'Document should have xhtml namespace, prefix null');
     98lookupNamespaceURI(document, '', 'http://www.w3.org/1999/xhtml', 'Document should have xhtml namespace, prefix ""');
    10299lookupNamespaceURI(document, 'prefix', null, 'Document has no namespace URI matching prefix');
    103100lookupNamespaceURI(document, 'bar', 'barURI', 'Document has bar namespace');
    104101
    105 isDefaultNamespace(document, null, false, 'For document, Empty namespace is not default');
    106 isDefaultNamespace(document, '', false, 'For document, Empty namespace is not default');
     102isDefaultNamespace(document, null, false, 'For document, empty namespace is not default, prefix null');
     103isDefaultNamespace(document, '', false, 'For document, empty namespace is not default, prefix ""');
    107104isDefaultNamespace(document, 'fooNamespace', false, 'For document, fooNamespace is not default');
    108105isDefaultNamespace(document, 'http://www.w3.org/2000/xmlns/', false, 'For document, xmlns namespace is not default');
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-expected.txt

    r189471 r194580  
    600600PASS Document.querySelectorAll: Class Selector, chained, with type selector: div.apple.banana.orange
    601601PASS Document.querySelector: Class Selector, chained, with type selector: div.apple.banana.orange
    602 PASS Document.querySelectorAll: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
    603 PASS Document.querySelector: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
     602PASS Document.querySelectorAll: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
     603PASS Document.querySelector: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
    604604PASS Document.querySelectorAll: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    605605PASS Document.querySelector: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    606 PASS Document.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
    607 PASS Document.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
     606PASS Document.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
     607PASS Document.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
    608608PASS Document.querySelectorAll: Class selector, matching element with class with escaped character: .foo\:bar
    609609PASS Document.querySelector: Class selector, matching element with class with escaped character: .foo\:bar
     
    624624PASS Document.querySelectorAll: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    625625PASS Document.querySelector: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    626 PASS Document.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    627 PASS Document.querySelector: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    628 PASS Document.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北
    629 PASS Document.querySelector: ID selector, matching id value using non-ASCII characters: #台北
    630 PASS Document.querySelectorAll: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
    631 PASS Document.querySelector: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
     626PASS Document.querySelectorAll: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     627PASS Document.querySelector: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     628PASS Document.querySelectorAll: ID selector, matching id value using non-ASCII characters (2): #台北
     629PASS Document.querySelector: ID selector, matching id value using non-ASCII characters (2): #台北
     630PASS Document.querySelectorAll: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
     631PASS Document.querySelector: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
    632632PASS Document.querySelectorAll: ID selector, matching element with id with escaped character: #\#foo\:bar
    633633PASS Document.querySelector: ID selector, matching element with id with escaped character: #\#foo\:bar
     
    10181018PASS Detached Element.querySelectorAll: Class Selector, chained, with type selector: div.apple.banana.orange
    10191019PASS Detached Element.querySelector: Class Selector, chained, with type selector: div.apple.banana.orange
    1020 PASS Detached Element.querySelectorAll: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
    1021 PASS Detached Element.querySelector: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
     1020PASS Detached Element.querySelectorAll: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
     1021PASS Detached Element.querySelector: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
    10221022PASS Detached Element.querySelectorAll: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    10231023PASS Detached Element.querySelector: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    1024 PASS Detached Element.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
    1025 PASS Detached Element.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
     1024PASS Detached Element.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
     1025PASS Detached Element.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
    10261026PASS Detached Element.querySelectorAll: Class selector, matching element with class with escaped character: .foo\:bar
    10271027PASS Detached Element.querySelector: Class selector, matching element with class with escaped character: .foo\:bar
     
    10421042PASS Detached Element.querySelectorAll: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    10431043PASS Detached Element.querySelector: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    1044 PASS Detached Element.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    1045 PASS Detached Element.querySelector: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    1046 PASS Detached Element.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北
    1047 PASS Detached Element.querySelector: ID selector, matching id value using non-ASCII characters: #台北
    1048 PASS Detached Element.querySelectorAll: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
    1049 PASS Detached Element.querySelector: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
     1044PASS Detached Element.querySelectorAll: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     1045PASS Detached Element.querySelector: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     1046PASS Detached Element.querySelectorAll: ID selector, matching id value using non-ASCII characters (2): #台北
     1047PASS Detached Element.querySelector: ID selector, matching id value using non-ASCII characters (2): #台北
     1048PASS Detached Element.querySelectorAll: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
     1049PASS Detached Element.querySelector: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
    10501050PASS Detached Element.querySelectorAll: ID selector, matching element with id with escaped character: #\#foo\:bar
    10511051PASS Detached Element.querySelector: ID selector, matching element with id with escaped character: #\#foo\:bar
     
    14341434PASS Fragment.querySelectorAll: Class Selector, chained, with type selector: div.apple.banana.orange
    14351435PASS Fragment.querySelector: Class Selector, chained, with type selector: div.apple.banana.orange
    1436 PASS Fragment.querySelectorAll: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
    1437 PASS Fragment.querySelector: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
     1436PASS Fragment.querySelectorAll: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
     1437PASS Fragment.querySelector: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
    14381438PASS Fragment.querySelectorAll: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    14391439PASS Fragment.querySelector: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    1440 PASS Fragment.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
    1441 PASS Fragment.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
     1440PASS Fragment.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
     1441PASS Fragment.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
    14421442PASS Fragment.querySelectorAll: Class selector, matching element with class with escaped character: .foo\:bar
    14431443PASS Fragment.querySelector: Class selector, matching element with class with escaped character: .foo\:bar
     
    14581458PASS Fragment.querySelectorAll: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    14591459PASS Fragment.querySelector: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    1460 PASS Fragment.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    1461 PASS Fragment.querySelector: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    1462 PASS Fragment.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北
    1463 PASS Fragment.querySelector: ID selector, matching id value using non-ASCII characters: #台北
    1464 PASS Fragment.querySelectorAll: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
    1465 PASS Fragment.querySelector: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
     1460PASS Fragment.querySelectorAll: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     1461PASS Fragment.querySelector: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     1462PASS Fragment.querySelectorAll: ID selector, matching id value using non-ASCII characters (2): #台北
     1463PASS Fragment.querySelector: ID selector, matching id value using non-ASCII characters (2): #台北
     1464PASS Fragment.querySelectorAll: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
     1465PASS Fragment.querySelector: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
    14661466PASS Fragment.querySelectorAll: ID selector, matching element with id with escaped character: #\#foo\:bar
    14671467PASS Fragment.querySelector: ID selector, matching element with id with escaped character: #\#foo\:bar
     
    18501850PASS In-document Element.querySelectorAll: Class Selector, chained, with type selector: div.apple.banana.orange
    18511851PASS In-document Element.querySelector: Class Selector, chained, with type selector: div.apple.banana.orange
    1852 PASS In-document Element.querySelectorAll: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
    1853 PASS In-document Element.querySelector: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
     1852PASS In-document Element.querySelectorAll: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
     1853PASS In-document Element.querySelector: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
    18541854PASS In-document Element.querySelectorAll: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    18551855PASS In-document Element.querySelector: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    1856 PASS In-document Element.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
    1857 PASS In-document Element.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
     1856PASS In-document Element.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
     1857PASS In-document Element.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
    18581858PASS In-document Element.querySelectorAll: Class selector, matching element with class with escaped character: .foo\:bar
    18591859PASS In-document Element.querySelector: Class selector, matching element with class with escaped character: .foo\:bar
     
    18741874PASS In-document Element.querySelectorAll: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    18751875PASS In-document Element.querySelector: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    1876 PASS In-document Element.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    1877 PASS In-document Element.querySelector: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    1878 PASS In-document Element.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北
    1879 PASS In-document Element.querySelector: ID selector, matching id value using non-ASCII characters: #台北
    1880 PASS In-document Element.querySelectorAll: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
    1881 PASS In-document Element.querySelector: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
     1876PASS In-document Element.querySelectorAll: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     1877PASS In-document Element.querySelector: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     1878PASS In-document Element.querySelectorAll: ID selector, matching id value using non-ASCII characters (2): #台北
     1879PASS In-document Element.querySelector: ID selector, matching id value using non-ASCII characters (2): #台北
     1880PASS In-document Element.querySelectorAll: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
     1881PASS In-document Element.querySelector: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
    18821882PASS In-document Element.querySelectorAll: ID selector, matching element with id with escaped character: #\#foo\:bar
    18831883PASS In-document Element.querySelector: ID selector, matching element with id with escaped character: #\#foo\:bar
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-xht-expected.txt

    r194579 r194580  
    600600PASS Document.querySelectorAll: Class Selector, chained, with type selector: div.apple.banana.orange
    601601PASS Document.querySelector: Class Selector, chained, with type selector: div.apple.banana.orange
    602 PASS Document.querySelectorAll: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
    603 PASS Document.querySelector: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
     602PASS Document.querySelectorAll: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
     603PASS Document.querySelector: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
    604604PASS Document.querySelectorAll: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    605605PASS Document.querySelector: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    606 PASS Document.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
    607 PASS Document.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
     606PASS Document.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
     607PASS Document.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
    608608PASS Document.querySelectorAll: Class selector, matching element with class with escaped character: .foo\:bar
    609609PASS Document.querySelector: Class selector, matching element with class with escaped character: .foo\:bar
     
    624624PASS Document.querySelectorAll: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    625625PASS Document.querySelector: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    626 PASS Document.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    627 PASS Document.querySelector: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    628 PASS Document.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北
    629 PASS Document.querySelector: ID selector, matching id value using non-ASCII characters: #台北
    630 PASS Document.querySelectorAll: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
    631 PASS Document.querySelector: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
     626PASS Document.querySelectorAll: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     627PASS Document.querySelector: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     628PASS Document.querySelectorAll: ID selector, matching id value using non-ASCII characters (2): #台北
     629PASS Document.querySelector: ID selector, matching id value using non-ASCII characters (2): #台北
     630PASS Document.querySelectorAll: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
     631PASS Document.querySelector: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
    632632PASS Document.querySelectorAll: ID selector, matching element with id with escaped character: #\#foo\:bar
    633633PASS Document.querySelector: ID selector, matching element with id with escaped character: #\#foo\:bar
     
    10181018PASS Detached Element.querySelectorAll: Class Selector, chained, with type selector: div.apple.banana.orange
    10191019PASS Detached Element.querySelector: Class Selector, chained, with type selector: div.apple.banana.orange
    1020 PASS Detached Element.querySelectorAll: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
    1021 PASS Detached Element.querySelector: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
     1020PASS Detached Element.querySelectorAll: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
     1021PASS Detached Element.querySelector: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
    10221022PASS Detached Element.querySelectorAll: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    10231023PASS Detached Element.querySelector: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    1024 PASS Detached Element.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
    1025 PASS Detached Element.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
     1024PASS Detached Element.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
     1025PASS Detached Element.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
    10261026PASS Detached Element.querySelectorAll: Class selector, matching element with class with escaped character: .foo\:bar
    10271027PASS Detached Element.querySelector: Class selector, matching element with class with escaped character: .foo\:bar
     
    10421042PASS Detached Element.querySelectorAll: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    10431043PASS Detached Element.querySelector: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    1044 PASS Detached Element.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    1045 PASS Detached Element.querySelector: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    1046 PASS Detached Element.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北
    1047 PASS Detached Element.querySelector: ID selector, matching id value using non-ASCII characters: #台北
    1048 PASS Detached Element.querySelectorAll: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
    1049 PASS Detached Element.querySelector: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
     1044PASS Detached Element.querySelectorAll: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     1045PASS Detached Element.querySelector: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     1046PASS Detached Element.querySelectorAll: ID selector, matching id value using non-ASCII characters (2): #台北
     1047PASS Detached Element.querySelector: ID selector, matching id value using non-ASCII characters (2): #台北
     1048PASS Detached Element.querySelectorAll: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
     1049PASS Detached Element.querySelector: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
    10501050PASS Detached Element.querySelectorAll: ID selector, matching element with id with escaped character: #\#foo\:bar
    10511051PASS Detached Element.querySelector: ID selector, matching element with id with escaped character: #\#foo\:bar
     
    14341434PASS Fragment.querySelectorAll: Class Selector, chained, with type selector: div.apple.banana.orange
    14351435PASS Fragment.querySelector: Class Selector, chained, with type selector: div.apple.banana.orange
    1436 PASS Fragment.querySelectorAll: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
    1437 PASS Fragment.querySelector: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
     1436PASS Fragment.querySelectorAll: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
     1437PASS Fragment.querySelector: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
    14381438PASS Fragment.querySelectorAll: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    14391439PASS Fragment.querySelector: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    1440 PASS Fragment.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
    1441 PASS Fragment.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
     1440PASS Fragment.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
     1441PASS Fragment.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
    14421442PASS Fragment.querySelectorAll: Class selector, matching element with class with escaped character: .foo\:bar
    14431443PASS Fragment.querySelector: Class selector, matching element with class with escaped character: .foo\:bar
     
    14581458PASS Fragment.querySelectorAll: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    14591459PASS Fragment.querySelector: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    1460 PASS Fragment.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    1461 PASS Fragment.querySelector: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    1462 PASS Fragment.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北
    1463 PASS Fragment.querySelector: ID selector, matching id value using non-ASCII characters: #台北
    1464 PASS Fragment.querySelectorAll: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
    1465 PASS Fragment.querySelector: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
     1460PASS Fragment.querySelectorAll: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     1461PASS Fragment.querySelector: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     1462PASS Fragment.querySelectorAll: ID selector, matching id value using non-ASCII characters (2): #台北
     1463PASS Fragment.querySelector: ID selector, matching id value using non-ASCII characters (2): #台北
     1464PASS Fragment.querySelectorAll: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
     1465PASS Fragment.querySelector: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
    14661466PASS Fragment.querySelectorAll: ID selector, matching element with id with escaped character: #\#foo\:bar
    14671467PASS Fragment.querySelector: ID selector, matching element with id with escaped character: #\#foo\:bar
     
    18501850PASS In-document Element.querySelectorAll: Class Selector, chained, with type selector: div.apple.banana.orange
    18511851PASS In-document Element.querySelector: Class Selector, chained, with type selector: div.apple.banana.orange
    1852 PASS In-document Element.querySelectorAll: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
    1853 PASS In-document Element.querySelector: Class selector, matching element with class value using non-ASCII characters: .台北Táiběi
     1852PASS In-document Element.querySelectorAll: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
     1853PASS In-document Element.querySelector: Class selector, matching element with class value using non-ASCII characters (1): .台北Táiběi
    18541854PASS In-document Element.querySelectorAll: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    18551855PASS In-document Element.querySelector: Class selector, matching multiple elements with class value using non-ASCII characters: .台北
    1856 PASS In-document Element.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
    1857 PASS In-document Element.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters: .台北Táiběi.台北
     1856PASS In-document Element.querySelectorAll: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
     1857PASS In-document Element.querySelector: Class selector, chained, matching element with multiple class values using non-ASCII characters (1): .台北Táiběi.台北
    18581858PASS In-document Element.querySelectorAll: Class selector, matching element with class with escaped character: .foo\:bar
    18591859PASS In-document Element.querySelector: Class selector, matching element with class with escaped character: .foo\:bar
     
    18741874PASS In-document Element.querySelectorAll: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    18751875PASS In-document Element.querySelector: ID selector, matching multiple elements with duplicate id: #id-li-duplicate
    1876 PASS In-document Element.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    1877 PASS In-document Element.querySelector: ID selector, matching id value using non-ASCII characters: #台北Táiběi
    1878 PASS In-document Element.querySelectorAll: ID selector, matching id value using non-ASCII characters: #台北
    1879 PASS In-document Element.querySelector: ID selector, matching id value using non-ASCII characters: #台北
    1880 PASS In-document Element.querySelectorAll: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
    1881 PASS In-document Element.querySelector: ID selector, matching id values using non-ASCII characters: #台北Táiběi, #台北
     1876PASS In-document Element.querySelectorAll: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     1877PASS In-document Element.querySelector: ID selector, matching id value using non-ASCII characters (1): #台北Táiběi
     1878PASS In-document Element.querySelectorAll: ID selector, matching id value using non-ASCII characters (2): #台北
     1879PASS In-document Element.querySelector: ID selector, matching id value using non-ASCII characters (2): #台北
     1880PASS In-document Element.querySelectorAll: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
     1881PASS In-document Element.querySelector: ID selector, matching id values using non-ASCII characters (1): #台北Táiběi, #台北
    18821882PASS In-document Element.querySelectorAll: ID selector, matching element with id with escaped character: #\#foo\:bar
    18831883PASS In-document Element.querySelector: ID selector, matching element with id with escaped character: #\#foo\:bar
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-xht.xht

    r194579 r194580  
    1616  var frame = document.createElement("iframe");
    1717  frame.onload = this.step_func_done(init);
    18   frame.src = "resources/ParentNode-querySelector-All-content.xht#target";
     18  frame.src = "ParentNode-querySelector-All-content.xht#target";
    1919  document.body.appendChild(frame);
    2020})
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/attributes-expected.txt

    r189893 r194580  
    3737PASS Attribute with prefix in local name
    3838PASS Attribute loses its owner when removed
     39PASS Basic functionality of getAttributeNode/getAttributeNodeNS
     40PASS Basic functionality of setAttributeNode
     41PASS Basic functionality of setAttributeNodeNS
     42PASS Basic functionality of removeAttributeNode
     43FAIL setAttributeNode on bound attribute should throw InUseAttributeError Test bug: unrecognized DOMException code "INUSE_ATTRIBUTE_ERR" passed to assert_throws()
     44FAIL getAttributeNames tests el.getAttributeNames is not a function. (In 'el.getAttributeNames()', 'el.getAttributeNames' is undefined)
     45FAIL Own property correctness with basic attributes assert_array_equals: lengths differ, expected 2 got 3
     46FAIL Own property correctness with non-namespaced attribute before same-name namespaced one assert_array_equals: lengths differ, expected 3 got 4
     47FAIL Own property correctness with namespaced attribute before same-name non-namespaced one assert_array_equals: lengths differ, expected 3 got 4
     48FAIL Own property correctness with two namespaced attributes with the same name-with-prefix assert_array_equals: lengths differ, expected 3 got 4
    3949
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/attributes.html

    r189471 r194580  
    395395  assert_equals(attr.ownerElement, null)
    396396}, "Attribute loses its owner when removed")
     397
     398test(function() {
     399  var el = document.createElement("div")
     400  el.setAttribute("foo", "bar")
     401  var attr = el.attributes[0]
     402  var attrNode = el.getAttributeNode("foo");
     403  var attrNodeNS = el.getAttributeNodeNS("", "foo");
     404  assert_equals(attr, attrNode);
     405  assert_equals(attr, attrNodeNS);
     406  el.setAttributeNS("x", "foo2", "bar2");
     407  var attr2 = el.attributes[1];
     408  var attrNodeNS2 = el.getAttributeNodeNS("x", "foo2");
     409  assert_equals(attr2, attrNodeNS2);
     410}, "Basic functionality of getAttributeNode/getAttributeNodeNS")
     411
     412test(function() {
     413  var el = document.createElement("div")
     414  el.setAttribute("foo", "bar")
     415  var attrNode = el.getAttributeNode("foo");
     416  var attrNodeNS = el.getAttributeNodeNS("", "foo");
     417  assert_equals(attrNode, attrNodeNS);
     418  el.removeAttribute("foo");
     419  var el2 = document.createElement("div");
     420  el2.setAttributeNode(attrNode);
     421  assert_equals(attrNode, el2.getAttributeNode("foo"));
     422  assert_equals(attrNode, el2.attributes[0]);
     423  assert_equals(attrNode.ownerElement, el2);
     424  assert_equals(attrNode.value, "bar");
     425
     426   var el3 = document.createElement("div");
     427   el2.removeAttribute("foo");
     428   el3.setAttribute("foo", "baz");
     429   el3.setAttributeNode(attrNode);
     430   assert_equals(el3.getAttribute("foo"), "bar");
     431}, "Basic functionality of setAttributeNode")
     432
     433test(function() {
     434  var el = document.createElement("div")
     435  el.setAttributeNS("x", "foo", "bar")
     436  var attrNode = el.getAttributeNodeNS("x", "foo");
     437  el.removeAttribute("foo");
     438  var el2 = document.createElement("div");
     439  el2.setAttributeNS("x", "foo", "baz");
     440  el2.setAttributeNodeNS(attrNode);
     441  assert_equals(el2.getAttributeNS("x", "foo"), "bar");
     442}, "Basic functionality of setAttributeNodeNS")
     443
     444test(function() {
     445  var el = document.createElement("div")
     446  el.setAttribute("foo", "bar")
     447  var attrNode = el.getAttributeNode("foo");
     448  el.removeAttributeNode(attrNode);
     449  var el2 = document.createElement("div");
     450  el2.setAttributeNode(attrNode);
     451  assert_equals(el2.attributes[0], attrNode);
     452  assert_equals(el.attributes.length, 0);
     453}, "Basic functionality of removeAttributeNode")
     454
     455test(function() {
     456  var el = document.createElement("div")
     457  el.setAttribute("foo", "bar")
     458  var attrNode = el.getAttributeNode("foo");
     459  var el2 = document.createElement("div");
     460  assert_throws("INUSE_ATTRIBUTE_ERR", function(){el2.setAttributeNode(attrNode)});
     461}, "setAttributeNode on bound attribute should throw InUseAttributeError")
     462
     463test(function() {
     464  var el = document.createElement("div");
     465  el.setAttribute("foo", "bar");
     466  assert_equals(el.getAttributeNames().length, 1);
     467  assert_equals(el.getAttributeNames()[0], el.attributes[0].name);
     468  assert_equals(el.getAttributeNames()[0], "foo");
     469
     470  el.removeAttribute("foo");
     471  assert_equals(el.getAttributeNames().length, 0);
     472
     473  el.setAttribute("foo", "bar");
     474  el.setAttributeNS("", "FOO", "bar");
     475  el.setAttributeNS("dummy1", "foo", "bar");
     476  el.setAttributeNS("dummy2", "dummy:foo", "bar");
     477  assert_equals(el.getAttributeNames().length, 4);
     478  assert_equals(el.getAttributeNames()[0], "foo");
     479  assert_equals(el.getAttributeNames()[1], "FOO");
     480  assert_equals(el.getAttributeNames()[2], "foo");
     481  assert_equals(el.getAttributeNames()[3], "dummy:foo");
     482  assert_equals(el.getAttributeNames()[0], el.attributes[0].name);
     483  assert_equals(el.getAttributeNames()[1], el.attributes[1].name);
     484  assert_equals(el.getAttributeNames()[2], el.attributes[2].name);
     485  assert_equals(el.getAttributeNames()[3], el.attributes[3].name);
     486
     487  el.removeAttributeNS("", "FOO");
     488  assert_equals(el.getAttributeNames().length, 3);
     489  assert_equals(el.getAttributeNames()[0], "foo");
     490  assert_equals(el.getAttributeNames()[1], "foo");
     491  assert_equals(el.getAttributeNames()[2], "dummy:foo");
     492  assert_equals(el.getAttributeNames()[0], el.attributes[0].name);
     493  assert_equals(el.getAttributeNames()[1], el.attributes[1].name);
     494  assert_equals(el.getAttributeNames()[2], el.attributes[2].name);
     495}, "getAttributeNames tests");
     496
     497function getEnumerableOwnProps1(obj) {
     498  var arr = [];
     499  for (var prop in obj) {
     500    if (obj.hasOwnProperty(prop)) {
     501      arr.push(prop);
     502    }
     503  }
     504  return arr;
     505}
     506
     507function getEnumerableOwnProps2(obj) {
     508  return Object.getOwnPropertyNames(obj).filter(
     509    (name) => Object.getOwnPropertyDescriptor(obj, name).enumerable)
     510}
     511
     512test(function() {
     513  var el = document.createElement("div");
     514  el.setAttribute("a", "");
     515  el.setAttribute("b", "");
     516  assert_array_equals(getEnumerableOwnProps1(el.attributes),
     517                      ["0", "1"])
     518  assert_array_equals(getEnumerableOwnProps2(el.attributes),
     519                      ["0", "1"])
     520  assert_array_equals(Object.getOwnPropertyNames(el.attributes),
     521                      ["0", "1", "a", "b"])
     522}, "Own property correctness with basic attributes");
     523
     524test(function() {
     525  var el = document.createElement("div");
     526  el.setAttributeNS("", "a", "");
     527  el.setAttribute("b", "");
     528  el.setAttributeNS("foo", "a", "");
     529  assert_array_equals(getEnumerableOwnProps1(el.attributes),
     530                      ["0", "1", "2"])
     531  assert_array_equals(getEnumerableOwnProps2(el.attributes),
     532                      ["0", "1", "2"])
     533  assert_array_equals(Object.getOwnPropertyNames(el.attributes),
     534                      ["0", "1", "2", "a", "b"])
     535}, "Own property correctness with non-namespaced attribute before same-name namespaced one");
     536
     537test(function() {
     538  var el = document.createElement("div");
     539  el.setAttributeNS("foo", "a", "");
     540  el.setAttribute("b", "");
     541  el.setAttributeNS("", "a", "");
     542  assert_array_equals(getEnumerableOwnProps1(el.attributes),
     543                      ["0", "1", "2"])
     544  assert_array_equals(getEnumerableOwnProps2(el.attributes),
     545                      ["0", "1", "2"])
     546  assert_array_equals(Object.getOwnPropertyNames(el.attributes),
     547                      ["0", "1", "2", "a", "b"])
     548}, "Own property correctness with namespaced attribute before same-name non-namespaced one");
     549
     550test(function() {
     551  var el = document.createElement("div");
     552  el.setAttributeNS("foo", "a:b", "");
     553  el.setAttributeNS("foo", "c:d", "");
     554  el.setAttributeNS("bar", "a:b", "");
     555  assert_array_equals(getEnumerableOwnProps1(el.attributes),
     556                      ["0", "1", "2"])
     557  assert_array_equals(getEnumerableOwnProps2(el.attributes),
     558                      ["0", "1", "2"])
     559  assert_array_equals(Object.getOwnPropertyNames(el.attributes),
     560                      ["0", "1", "2", "a:b", "c:d"])
     561}, "Own property correctness with two namespaced attributes with the same name-with-prefix");
    397562</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/getElementsByClassName-10.xml

    r189471 r194580  
    77 <body>
    88  <div id="log"/>
    9   <x class="a"/>
    10   <g:x class="a"/>
     9  <div id="tests">
     10    <x class="a"/>
     11    <g:x class="a"/>
     12  </div>
    1113  <script>test(function() {
    1214                 assert_array_equals(document.getElementsByClassName("a"),
    13                                      document.getElementsByTagName("x"));
     15                                     document.getElementById("tests").children);
    1416               })
    1517  </script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/getElementsByClassName-11.xml

    r189471 r194580  
    77 <body>
    88  <div id="log" />
    9   <x class="a"/>
    10   <g:x class="a"/>
    11   <x t:class="a" h:class="a" g:class="a"/>
    12   <g:x t:class="a" h:class="a" g:class="a"/>
    13   <t:x class="a" t:class="a" h:class="a" g:class="a"/>
     9  <div id="tests">
     10    <x class="a"/>
     11    <g:x class="a"/>
     12    <x t:class="a" h:class="a" g:class="a"/>
     13    <g:x t:class="a" h:class="a" g:class="a"/>
     14    <t:x class="a" t:class="a" h:class="a" g:class="a"/>
     15  </div>
    1416  <script>
    1517   test(function() {
    1618          var collection = document.getElementsByClassName("a");
    17           var test = document.getElementsByTagName("x");
    18           assert_array_equals(collection, [test[0], test[1]]);
     19          var test = document.getElementById("tests").children;
     20          assert_array_equals(collection, [test[0], test[1], test[4]]);
    1921         })
    2022  </script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/selectors.js

    r189471 r194580  
    267267  {name: "Class selector, chained, matching only elements with all specified classes",                      selector: "#class .apple.orange.banana",    expect: ["class-div1", "class-div2", "class-p4", "class-div3", "class-p6", "class-div4"], level: 1, testType: TEST_QSA | TEST_MATCH},
    268268  {name: "Class Selector, chained, with type selector",                                                     selector: "div.apple.banana.orange", expect: ["class-div1", "class-div2", "class-div3", "class-div4"],                         level: 1, testType: TEST_QSA | TEST_MATCH},
    269   // Caution: If copying and pasting the folowing non-ASCII classes, ensure unicode normalisation is not performed in the process.
    270   {name: "Class selector, matching element with class value using non-ASCII characters",                    selector: ".台北Táiběi",             expect: ["class-span1"],               level: 1, testType: TEST_QSA | TEST_MATCH},
    271   {name: "Class selector, matching multiple elements with class value using non-ASCII characters",          selector: ".台北",                     expect: ["class-span1","class-span2"], level: 1, testType: TEST_QSA | TEST_MATCH},
    272   {name: "Class selector, chained, matching element with multiple class values using non-ASCII characters", selector: ".台北Táiběi.台北",          expect: ["class-span1"],               level: 1, testType: TEST_QSA | TEST_MATCH},
     269  {name: "Class selector, matching element with class value using non-ASCII characters (1)",                selector: ".\u53F0\u5317Ta\u0301ibe\u030Ci",             expect: ["class-span1"],               level: 1, testType: TEST_QSA | TEST_MATCH},
     270  {name: "Class selector, matching multiple elements with class value using non-ASCII characters",          selector: ".\u53F0\u5317",                     expect: ["class-span1","class-span2"], level: 1, testType: TEST_QSA | TEST_MATCH},
     271  {name: "Class selector, chained, matching element with multiple class values using non-ASCII characters (1)", selector: ".\u53F0\u5317Ta\u0301ibe\u030Ci.\u53F0\u5317",          expect: ["class-span1"],               level: 1, testType: TEST_QSA | TEST_MATCH},
    273272  {name: "Class selector, matching element with class with escaped character",                              selector: ".foo\\:bar",              expect: ["class-span3"],               level: 1, testType: TEST_QSA | TEST_MATCH},
    274273  {name: "Class selector, matching element with class with escaped character",                              selector: ".test\\.foo\\[5\\]bar",   expect: ["class-span4"],               level: 1, testType: TEST_QSA | TEST_MATCH},
     
    283282  {name: "ID selector, matching multiple elements with duplicate id", selector: "#id-li-duplicate",          expect: ["id-li-duplicate", "id-li-duplicate", "id-li-duplicate", "id-li-duplicate"], level: 1, testType: TEST_QSA | TEST_MATCH},
    284283
    285   // Caution: If copying and pasting the folowing non-ASCII IDs, ensure unicode normalisation is not performed in the process.
    286   {name: "ID selector, matching id value using non-ASCII characters",    selector: "#台北Táiběi",           expect: ["台北Táiběi"],       level: 1, testType: TEST_QSA | TEST_MATCH},
    287   {name: "ID selector, matching id value using non-ASCII characters",    selector: "#台北",                   expect: ["台北"],               level: 1, testType: TEST_QSA | TEST_MATCH},
    288   {name: "ID selector, matching id values using non-ASCII characters",   selector: "#台北Táiběi, #台北",      expect: ["台北Táiběi", "台北"], level: 1, testType: TEST_QSA | TEST_MATCH},
     284  {name: "ID selector, matching id value using non-ASCII characters (1)",    selector: "#\u53F0\u5317Ta\u0301ibe\u030Ci",           expect: ["\u53F0\u5317Ta\u0301ibe\u030Ci"],       level: 1, testType: TEST_QSA | TEST_MATCH},
     285  {name: "ID selector, matching id value using non-ASCII characters (2)",    selector: "#\u53F0\u5317",                   expect: ["\u53F0\u5317"],               level: 1, testType: TEST_QSA | TEST_MATCH},
     286  {name: "ID selector, matching id values using non-ASCII characters (1)", selector: "#\u53F0\u5317Ta\u0301ibe\u030Ci, #\u53F0\u5317",      expect: ["\u53F0\u5317Ta\u0301ibe\u030Ci", "\u53F0\u5317"], level: 1, testType: TEST_QSA | TEST_MATCH},
    289287
    290288  // XXX runMatchesTest() in level2-lib.js can't handle this because obtaining the expected nodes requires escaping characters when generating the selector from 'expect' values
     
    632630  {name: "Class selector, chained, matching only elements with all specified classes (1)",                      selector: "#class .apple.orange.banana",    ctx: "", expect: ["class-div1", "class-div2", "class-p4", "class-div3", "class-p6", "class-div4"], level: 1, testType: TEST_FIND | TEST_MATCH},
    633631  {name: "Class Selector, chained, with type selector (1)",                                                     selector: "div.apple.banana.orange", ctx: "", expect: ["class-div1", "class-div2", "class-div3", "class-div4"],                         level: 1, testType: TEST_FIND | TEST_MATCH},
    634   // Caution: If copying and pasting the folowing non-ASCII classes, ensure unicode normalisation is not performed in the process.
    635   {name: "Class selector, matching element with class value using non-ASCII characters",                    selector: ".台北Táiběi",             ctx: "", expect: ["class-span1"],               level: 1, testType: TEST_FIND | TEST_MATCH},
    636   {name: "Class selector, matching multiple elements with class value using non-ASCII characters (1)",          selector: ".台北",                     ctx: "", expect: ["class-span1","class-span2"], level: 1, testType: TEST_FIND | TEST_MATCH},
    637   {name: "Class selector, chained, matching element with multiple class values using non-ASCII characters", selector: ".台北Táiběi.台北",          ctx: "", expect: ["class-span1"],               level: 1, testType: TEST_FIND | TEST_MATCH},
     632  {name: "Class selector, matching element with class value using non-ASCII characters (2)",                    selector: ".\u53F0\u5317Ta\u0301ibe\u030Ci",             ctx: "", expect: ["class-span1"],               level: 1, testType: TEST_FIND | TEST_MATCH},
     633  {name: "Class selector, matching multiple elements with class value using non-ASCII characters (1)",          selector: ".\u53F0\u5317",                     ctx: "", expect: ["class-span1","class-span2"], level: 1, testType: TEST_FIND | TEST_MATCH},
     634  {name: "Class selector, chained, matching element with multiple class values using non-ASCII characters (2)", selector: ".\u53F0\u5317Ta\u0301ibe\u030Ci.\u53F0\u5317",          ctx: "", expect: ["class-span1"],               level: 1, testType: TEST_FIND | TEST_MATCH},
    638635  {name: "Class selector, matching element with class with escaped character (1)",                              selector: ".foo\\:bar",              ctx: "", expect: ["class-span3"],               level: 1, testType: TEST_FIND | TEST_MATCH},
    639636  {name: "Class selector, matching element with class with escaped character (1)",                              selector: ".test\\.foo\\[5\\]bar",   ctx: "", expect: ["class-span4"],               level: 1, testType: TEST_FIND | TEST_MATCH},
     
    648645  {name: "ID selector, matching multiple elements with duplicate id (1)", selector: "#id-li-duplicate",          ctx: "", expect: ["id-li-duplicate", "id-li-duplicate", "id-li-duplicate", "id-li-duplicate"], level: 1, testType: TEST_FIND | TEST_MATCH},
    649646
    650   // Caution: If copying and pasting the folowing non-ASCII IDs, ensure unicode normalisation is not performed in the process.
    651   {name: "ID selector, matching id value using non-ASCII characters",    selector: "#台北Táiběi",           ctx: "", expect: ["台北Táiběi"],       level: 1, testType: TEST_FIND | TEST_MATCH},
    652   {name: "ID selector, matching id value using non-ASCII characters (1)",    selector: "#台北",                   ctx: "", expect: ["台北"],               level: 1, testType: TEST_FIND | TEST_MATCH},
    653   {name: "ID selector, matching id values using non-ASCII characters",   selector: "#台北Táiběi, #台北",      ctx: "", expect: ["台北Táiběi", "台北"], level: 1, testType: TEST_FIND | TEST_MATCH},
     647  {name: "ID selector, matching id value using non-ASCII characters (3)",    selector: "#\u53F0\u5317Ta\u0301ibe\u030Ci",           ctx: "", expect: ["\u53F0\u5317Ta\u0301ibe\u030Ci"],       level: 1, testType: TEST_FIND | TEST_MATCH},
     648  {name: "ID selector, matching id value using non-ASCII characters (4)",    selector: "#\u53F0\u5317",                   ctx: "", expect: ["\u53F0\u5317"],               level: 1, testType: TEST_FIND | TEST_MATCH},
     649  {name: "ID selector, matching id values using non-ASCII characters (2)",   selector: "#\u53F0\u5317Ta\u0301ibe\u030Ci, #\u53F0\u5317",      ctx: "", expect: ["\u53F0\u5317Ta\u0301ibe\u030Ci", "\u53F0\u5317"], level: 1, testType: TEST_FIND | TEST_MATCH},
    654650
    655651  // XXX runMatchesTest() in level2-lib.js can't handle this because obtaining the expected nodes requires escaping characters when generating the selector from 'expect' values
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/w3c-import.log

    r191379 r194580  
    5050/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-createEvent.html
    5151/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-createEvent.js
     52/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-createProcessingInstruction-xhtml.xhtml
    5253/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-createProcessingInstruction.html
    5354/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-createProcessingInstruction.js
     
    5657/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-doctype.html
    5758/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-getElementById.html
     59/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-getElementsByTagName-xhtml.xhtml
    5860/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-getElementsByTagName.html
    5961/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-getElementsByTagNameNS.html
    6062/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-implementation.html
    6163/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Document-importNode.html
     64/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/DocumentType-literal-xhtml.xhtml
    6265/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/DocumentType-literal.html
    63 /LayoutTests/imported/w3c/web-platform-tests/dom/nodes/DocumentType-literal.xhtml
    6466/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/DocumentType-remove.html
     67/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElement-null-xhtml.xhtml
    6568/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElement-null.html
     69/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-dynamic-add-xhtml.xhtml
    6670/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-dynamic-add.html
    67 /LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-dynamic-add.xhtml
     71/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-dynamic-remove-xhtml.xhtml
    6872/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-dynamic-remove.html
     73/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-nochild-xhtml.xhtml
    6974/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-nochild.html
    70 /LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-nochild.xhtml
     75/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount-xhtml.xhtml
    7176/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-childElementCount.html
    7277/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-children.html
    7378/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-classlist.html
    7479/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-closest.html
     80/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-firstElementChild-entity-xhtml.xhtml
     81/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-firstElementChild-namespace-xhtml.xhtml
    7582/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-firstElementChild-namespace.html
     83/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-firstElementChild-xhtml.xhtml
    7684/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-firstElementChild.html
    77 /LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-firstElementChild.xhtml
    7885/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-getElementsByClassName.html
     86/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess-iframe.xml
     87/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess.html
    7988/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-getElementsByTagName.html
    8089/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-getElementsByTagNameNS.html
     90/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-lastElementChild-xhtml.xhtml
    8191/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-lastElementChild.html
    8292/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-matches.html
    8393/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-matches.js
     94/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-nextElementSibling-xhtml.xhtml
    8495/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-nextElementSibling.html
    85 /LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-nextElementSibling.xhtml
     96/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-previousElementSibling-xhtml.xhtml
    8697/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-previousElementSibling.html
    87 /LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-previousElementSibling.xhtml
    8898/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-remove.html
    8999/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-removeAttributeNS.html
     100/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-siblingElement-null-xhtml.xhtml
    90101/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-siblingElement-null.html
    91102/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-tagName.html
     
    105116/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-contains.html
    106117/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-insertBefore.html
     118/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isEqualNode-iframe1.xml
     119/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isEqualNode-iframe2.xml
    107120/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isEqualNode.xhtml
    108121/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-lookupNamespaceURI.html
    109122/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-lookupPrefix.xhtml
     123/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-nodeName-xhtml.xhtml
    110124/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-nodeName.html
    111125/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-nodeValue.html
     
    122136/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-content.html
    123137/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-content.xht
     138/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-xht.xht
    124139/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All.html
    125140/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All.js
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-deleteContents-expected.txt

    r189914 r194580  
    7777PASS Resulting DOM for range 36 [docfrag, 0, docfrag, 0]
    7878PASS Resulting cursor position for range 36 [docfrag, 0, docfrag, 0]
    79 FAIL Resulting DOM for range 37 [processingInstruction, 0, processingInstruction, 4] assert_equals: Actual and expected mismatch for tree root.  First difference: differing nodeValue (nodeName = "somePI") expected "Did you know that \":syn sync fromstart\" is very useful when using vim to edit large amounts of JavaScript embedded in HTML?" but got "you know that \":syn sync fromstart\" is very useful when using vim to edit large amounts of JavaScript embedded in HTML?"
    80 FAIL Resulting cursor position for range 37 [processingInstruction, 0, processingInstruction, 4] assert_true: The resulting DOMs were not equal, so comparing positions makes no sense expected true got false
     79PASS Resulting DOM for range 37 [processingInstruction, 0, processingInstruction, 4]
     80PASS Resulting cursor position for range 37 [processingInstruction, 0, processingInstruction, 4]
    8181PASS Resulting DOM for range 38 [paras[1].firstChild, 0, paras[1].firstChild, 1]
    8282PASS Resulting cursor position for range 38 [paras[1].firstChild, 0, paras[1].firstChild, 1]
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-deleteContents.html

    r189471 r194580  
    6868
    6969  // "If original start node and original end node are the same, and they are
    70   // a Text or Comment node, call deleteData(original start offset, original
    71   // end offset − original start offset) on that node, and abort these
    72   // steps."
     70  // a Text, ProcessingInstruction, or Comment node, replace data with node
     71  // original start node, offset original start offset, count original end
     72  // offset minus original start offset, and data the empty string, and then
     73  // terminate these steps"
    7374  if (originalStartNode == originalEndNode
    7475  && (range.startContainer.nodeType == Node.TEXT_NODE
     76  || range.startContainer.nodeType == Node.PROCESSING_INSTRUCTION_NODE
    7577  || range.startContainer.nodeType == Node.COMMENT_NODE)) {
    7678    originalStartNode.deleteData(originalStartOffset, originalEndOffset - originalStartOffset);
     
    121123  }
    122124
    123   // "If original start node is a Text or Comment node, run deleteData() on
    124   // it, with original start offset as the first argument and (length of
    125   // original start node − original start offset) as the second."
     125  // "If original start node is a Text, ProcessingInstruction, or Comment node,
     126  // replace data with node original start node, offset original start offset,
     127  // count original start node's length minus original start offset, data the
     128  // empty start"
    126129  if (originalStartNode.nodeType == Node.TEXT_NODE
     130  || originalStartNode.nodeType == Node.PROCESSING_INSTRUCTION_NODE
    127131  || originalStartNode.nodeType == Node.COMMENT_NODE) {
    128132    originalStartNode.deleteData(originalStartOffset, nodeLength(originalStartNode) - originalStartOffset);
     
    135139  }
    136140
    137   // "If original end node is a Text or Comment node, run deleteData(0,
    138   // original end offset) on it."
     141  // "If original end node is a Text, ProcessingInstruction, or Comment node,
     142  // replace data with node original end node, offset 0, count original end
     143  // offset, and data the empty string."
    139144  if (originalEndNode.nodeType == Node.TEXT_NODE
     145  || originalEndNode.nodeType == Node.PROCESSING_INSTRUCTION_NODE
    140146  || originalEndNode.nodeType == Node.COMMENT_NODE) {
    141147    originalEndNode.deleteData(0, originalEndOffset);
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-extractContents-expected.txt

    r189471 r194580  
    114114PASS Resulting cursor position for range 36 [docfrag, 0, docfrag, 0]
    115115PASS Returned fragment for range 36 [docfrag, 0, docfrag, 0]
    116 FAIL Resulting DOM for range 37 [processingInstruction, 0, processingInstruction, 4] assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh...", got ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u..." [Actual and expected mismatch for tree root.  ] expected true got false
    117 FAIL Resulting cursor position for range 37 [processingInstruction, 0, processingInstruction, 4] assert_true: The resulting DOMs were not equal, so comparing positions makes no sense expected true got false
    118 FAIL Returned fragment for range 37 [processingInstruction, 0, processingInstruction, 4] assert_unreached: DOMs were not equal but we couldn't figure out why Reached unreachable code
     116PASS Resulting DOM for range 37 [processingInstruction, 0, processingInstruction, 4]
     117PASS Resulting cursor position for range 37 [processingInstruction, 0, processingInstruction, 4]
     118PASS Returned fragment for range 37 [processingInstruction, 0, processingInstruction, 4]
    119119PASS Resulting DOM for range 38 [paras[1].firstChild, 0, paras[1].firstChild, 1]
    120120PASS Resulting cursor position for range 38 [paras[1].firstChild, 0, paras[1].firstChild, 1]
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-insertNode-expected.txt

    r190229 r194580  
    44PASS 0,0: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0]
    55PASS 0,0: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0]
    6 PASS 0,1: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild
    7 PASS 0,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild
     6FAIL 0,1: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     7                try {
     8                    a..." did not throw
     9FAIL 0,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild assert_true: First differing node: expected Text node "Äb̈c̈d̈ëf̈g̈ḧ
     10", got Text node "" [Actual and expected mismatch for range's tree root.  ] expected true got false
    811PASS 0,2: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[1].firstChild
    912PASS 0,2: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[1].firstChild
     
    4851PASS 1,0: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0]
    4952PASS 1,0: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0]
    50 PASS 1,1: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild
    51 PASS 1,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild
     53FAIL 1,1: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     54                try {
     55                    a..." did not throw
     56FAIL 1,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild assert_true: First differing node: expected Text node "Äb̈c̈d̈ëf̈g̈ḧ
     57", got Text node "" [Actual and expected mismatch for range's tree root.  ] expected true got false
    5258PASS 1,2: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[1].firstChild
    5359PASS 1,2: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[1].firstChild
     
    9298PASS 2,0: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0]
    9399PASS 2,0: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0]
    94 PASS 2,1: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0].firstChild
    95 PASS 2,1: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0].firstChild
     100FAIL 2,1: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0].firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     101                try {
     102                    a..." did not throw
     103FAIL 2,1: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0].firstChild assert_true: First differing node: expected Text node "Äb̈c̈d̈ëf̈g̈ḧ
     104", got Text node "Ä" [Actual and expected mismatch for range's tree root.  ] expected true got false
    96105PASS 2,2: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[1].firstChild
    97106PASS 2,2: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[1].firstChild
     
    136145PASS 3,0: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0]
    137146PASS 3,0: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0]
    138 PASS 3,1: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0].firstChild
    139 PASS 3,1: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0].firstChild
     147FAIL 3,1: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0].firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     148                try {
     149                    a..." did not throw
     150FAIL 3,1: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0].firstChild assert_true: First differing node: expected Text node "Äb̈c̈d̈ëf̈g̈ḧ
     151", got Text node "Ä" [Actual and expected mismatch for range's tree root.  ] expected true got false
    140152PASS 3,2: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[1].firstChild
    141153PASS 3,2: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[1].firstChild
     
    182194PASS 4,1: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild
    183195PASS 4,1: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild
    184 PASS 4,2: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild
    185 PASS 4,2: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild
     196FAIL 4,2: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     197                try {
     198                    a..." did not throw
     199FAIL 4,2: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild assert_true: First differing node: expected Text node "Ijklmnop
     200", got Text node "" [Actual and expected mismatch for range's tree root.  ] expected true got false
    186201PASS 4,3: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1
    187202PASS 4,3: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1
     
    226241PASS 5,1: resulting DOM for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[0].firstChild
    227242PASS 5,1: resulting range position for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[0].firstChild
    228 PASS 5,2: resulting DOM for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[1].firstChild
    229 PASS 5,2: resulting range position for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[1].firstChild
     243FAIL 5,2: resulting DOM for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[1].firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     244                try {
     245                    a..." did not throw
     246FAIL 5,2: resulting range position for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[1].firstChild assert_true: First differing node: expected Text node "Ijklmnop
     247", got Text node "Ij" [Actual and expected mismatch for range's tree root.  ] expected true got false
    230248PASS 5,3: resulting DOM for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node foreignPara1
    231249PASS 5,3: resulting range position for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node foreignPara1
     
    278296PASS 6,5: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1
    279297PASS 6,5: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1
    280 PASS 6,6: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild
    281 PASS 6,6: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild
     298FAIL 6,6: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     299                try {
     300                    a..." did not throw
     301FAIL 6,6: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild assert_true: First differing node: expected Text node "Opqrstuv", got Text node "" [Actual and expected mismatch for range's tree root.  ] expected true got false
    282302PASS 6,7: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node document
    283303PASS 6,7: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node document
     
    322342PASS 7,5: resulting DOM for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedPara1
    323343PASS 7,5: resulting range position for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedPara1
    324 PASS 7,6: resulting DOM for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedPara1.firstChild
    325 PASS 7,6: resulting range position for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedPara1.firstChild
     344FAIL 7,6: resulting DOM for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedPara1.firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     345                try {
     346                    a..." did not throw
     347FAIL 7,6: resulting range position for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedPara1.firstChild assert_true: First differing node: expected Text node "Opqrstuv", got Text node "Op" [Actual and expected mismatch for range's tree root.  ] expected true got false
    326348PASS 7,7: resulting DOM for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node document
    327349PASS 7,7: resulting range position for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node document
     
    362384PASS 8,3: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1
    363385PASS 8,3: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1
    364 PASS 8,4: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild
    365 PASS 8,4: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild
     386FAIL 8,4: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     387                try {
     388                    a..." did not throw
     389FAIL 8,4: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild assert_true: First differing node: expected Text node "Efghijkl", got Text node "" [Actual and expected mismatch for range's tree root.  ] expected true got false
    366390PASS 8,5: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1
    367391PASS 8,5: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1
     
    406430PASS 9,3: resulting DOM for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node foreignPara1
    407431PASS 9,3: resulting range position for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node foreignPara1
    408 PASS 9,4: resulting DOM for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node foreignPara1.firstChild
    409 PASS 9,4: resulting range position for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node foreignPara1.firstChild
     432FAIL 9,4: resulting DOM for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node foreignPara1.firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     433                try {
     434                    a..." did not throw
     435FAIL 9,4: resulting range position for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node foreignPara1.firstChild assert_true: First differing node: expected Text node "Efghijkl", got Text node "Ef" [Actual and expected mismatch for range's tree root.  ] expected true got false
    410436PASS 9,5: resulting DOM for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node detachedPara1
    411437PASS 9,5: resulting range position for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node detachedPara1
     
    796822PASS 18,0: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[0]
    797823PASS 18,0: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[0]
    798 PASS 18,1: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild
    799 PASS 18,1: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild
     824FAIL 18,1: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     825                try {
     826                    a..." did not throw
     827FAIL 18,1: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild assert_true: First differing node: expected Text node "Äb̈c̈d̈ëf̈g̈ḧ
     828", got Text node "" [Actual and expected mismatch for range's tree root.  ] expected true got false
    800829PASS 18,2: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild
    801830PASS 18,2: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild
     
    840869PASS 19,0: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[0]
    841870PASS 19,0: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[0]
    842 PASS 19,1: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[0].firstChild
    843 PASS 19,1: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[0].firstChild
     871FAIL 19,1: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[0].firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     872                try {
     873                    a..." did not throw
     874FAIL 19,1: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[0].firstChild assert_true: First differing node: expected Text node "Äb̈c̈d̈ëf̈g̈ḧ
     875", got Text node "" [Actual and expected mismatch for range's tree root.  ] expected true got false
    844876PASS 19,2: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[1].firstChild
    845877PASS 19,2: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[1].firstChild
     
    884916PASS 20,0: resulting DOM for range [paras[0].firstChild, 3, paras[3], 1], node paras[0]
    885917PASS 20,0: resulting range position for range [paras[0].firstChild, 3, paras[3], 1], node paras[0]
    886 PASS 20,1: resulting DOM for range [paras[0].firstChild, 3, paras[3], 1], node paras[0].firstChild
    887 PASS 20,1: resulting range position for range [paras[0].firstChild, 3, paras[3], 1], node paras[0].firstChild
     918FAIL 20,1: resulting DOM for range [paras[0].firstChild, 3, paras[3], 1], node paras[0].firstChild assert_throws: A HIERARCHY_REQUEST_ERR DOMException must be thrown in this case function "function () {
     919                try {
     920                    a..." did not throw
     921FAIL 20,1: resulting range position for range [paras[0].firstChild, 3, paras[3], 1], node paras[0].firstChild assert_true: First differing node: expected Text node "Äb̈c̈d̈ëf̈g̈ḧ
     922", got Text node "Äb" [Actual and expected mismatch for range's tree root.  ] expected true got false
    888923PASS 20,2: resulting DOM for range [paras[0].firstChild, 3, paras[3], 1], node paras[1].firstChild
    889924PASS 20,2: resulting range position for range [paras[0].firstChild, 3, paras[3], 1], node paras[1].firstChild
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-intersectsNode-expected.txt

    r190136 r194580  
    11
    2 PASS Node 0 paras[0], detached range
    32PASS Node 0 paras[0], range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    43PASS Node 0 paras[0], range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    6160PASS Node 0 paras[0], range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    6261PASS Node 0 paras[0], range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    63 PASS Node 1 paras[0].firstChild, detached range
    6462PASS Node 1 paras[0].firstChild, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    6563PASS Node 1 paras[0].firstChild, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    122120PASS Node 1 paras[0].firstChild, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    123121PASS Node 1 paras[0].firstChild, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    124 PASS Node 2 paras[1].firstChild, detached range
    125122PASS Node 2 paras[1].firstChild, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    126123PASS Node 2 paras[1].firstChild, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    183180PASS Node 2 paras[1].firstChild, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    184181PASS Node 2 paras[1].firstChild, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    185 PASS Node 3 foreignPara1, detached range
    186182PASS Node 3 foreignPara1, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    187183PASS Node 3 foreignPara1, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    244240PASS Node 3 foreignPara1, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    245241PASS Node 3 foreignPara1, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    246 PASS Node 4 foreignPara1.firstChild, detached range
    247242PASS Node 4 foreignPara1.firstChild, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    248243PASS Node 4 foreignPara1.firstChild, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    305300PASS Node 4 foreignPara1.firstChild, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    306301PASS Node 4 foreignPara1.firstChild, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    307 PASS Node 5 detachedPara1, detached range
    308302PASS Node 5 detachedPara1, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    309303PASS Node 5 detachedPara1, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    366360PASS Node 5 detachedPara1, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    367361PASS Node 5 detachedPara1, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    368 PASS Node 6 detachedPara1.firstChild, detached range
    369362PASS Node 6 detachedPara1.firstChild, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    370363PASS Node 6 detachedPara1.firstChild, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    427420PASS Node 6 detachedPara1.firstChild, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    428421PASS Node 6 detachedPara1.firstChild, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    429 PASS Node 7 document, detached range
    430422PASS Node 7 document, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    431423PASS Node 7 document, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    488480PASS Node 7 document, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    489481PASS Node 7 document, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    490 PASS Node 8 detachedDiv, detached range
    491482PASS Node 8 detachedDiv, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    492483PASS Node 8 detachedDiv, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    549540PASS Node 8 detachedDiv, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    550541PASS Node 8 detachedDiv, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    551 PASS Node 9 foreignDoc, detached range
    552542PASS Node 9 foreignDoc, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    553543PASS Node 9 foreignDoc, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    610600PASS Node 9 foreignDoc, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    611601PASS Node 9 foreignDoc, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    612 PASS Node 10 foreignPara2, detached range
    613602PASS Node 10 foreignPara2, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    614603PASS Node 10 foreignPara2, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    671660PASS Node 10 foreignPara2, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    672661PASS Node 10 foreignPara2, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    673 PASS Node 11 xmlDoc, detached range
    674662PASS Node 11 xmlDoc, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    675663PASS Node 11 xmlDoc, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    732720PASS Node 11 xmlDoc, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    733721PASS Node 11 xmlDoc, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    734 PASS Node 12 xmlElement, detached range
    735722PASS Node 12 xmlElement, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    736723PASS Node 12 xmlElement, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    793780PASS Node 12 xmlElement, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    794781PASS Node 12 xmlElement, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    795 PASS Node 13 detachedTextNode, detached range
    796782PASS Node 13 detachedTextNode, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    797783PASS Node 13 detachedTextNode, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    854840PASS Node 13 detachedTextNode, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    855841PASS Node 13 detachedTextNode, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    856 PASS Node 14 foreignTextNode, detached range
    857842PASS Node 14 foreignTextNode, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    858843PASS Node 14 foreignTextNode, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    915900PASS Node 14 foreignTextNode, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    916901PASS Node 14 foreignTextNode, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    917 PASS Node 15 processingInstruction, detached range
    918902PASS Node 15 processingInstruction, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    919903PASS Node 15 processingInstruction, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    976960PASS Node 15 processingInstruction, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    977961PASS Node 15 processingInstruction, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    978 PASS Node 16 detachedProcessingInstruction, detached range
    979962PASS Node 16 detachedProcessingInstruction, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    980963PASS Node 16 detachedProcessingInstruction, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    10371020PASS Node 16 detachedProcessingInstruction, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    10381021PASS Node 16 detachedProcessingInstruction, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1039 PASS Node 17 comment, detached range
    10401022PASS Node 17 comment, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    10411023PASS Node 17 comment, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    10981080PASS Node 17 comment, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    10991081PASS Node 17 comment, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1100 PASS Node 18 detachedComment, detached range
    11011082PASS Node 18 detachedComment, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    11021083PASS Node 18 detachedComment, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    11591140PASS Node 18 detachedComment, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    11601141PASS Node 18 detachedComment, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1161 PASS Node 19 docfrag, detached range
    11621142PASS Node 19 docfrag, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    11631143PASS Node 19 docfrag, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    12201200PASS Node 19 docfrag, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    12211201PASS Node 19 docfrag, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1222 PASS Node 20 doctype, detached range
    12231202PASS Node 20 doctype, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    12241203PASS Node 20 doctype, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    12811260PASS Node 20 doctype, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    12821261PASS Node 20 doctype, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1283 PASS Node 21 foreignDoctype, detached range
    12841262PASS Node 21 foreignDoctype, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    12851263PASS Node 21 foreignDoctype, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    13421320PASS Node 21 foreignDoctype, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    13431321PASS Node 21 foreignDoctype, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1344 PASS Node 22 paras[1], detached range
    13451322PASS Node 22 paras[1], range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    13461323PASS Node 22 paras[1], range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    14031380PASS Node 22 paras[1], range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    14041381PASS Node 22 paras[1], range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1405 PASS Node 23 detachedPara2, detached range
    14061382PASS Node 23 detachedPara2, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    14071383PASS Node 23 detachedPara2, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    14641440PASS Node 23 detachedPara2, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    14651441PASS Node 23 detachedPara2, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1466 PASS Node 24 detachedPara2.firstChild, detached range
    14671442PASS Node 24 detachedPara2.firstChild, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    14681443PASS Node 24 detachedPara2.firstChild, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    15251500PASS Node 24 detachedPara2.firstChild, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    15261501PASS Node 24 detachedPara2.firstChild, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1527 PASS Node 25 testDiv, detached range
    15281502PASS Node 25 testDiv, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    15291503PASS Node 25 testDiv, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    15861560PASS Node 25 testDiv, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    15871561PASS Node 25 testDiv, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1588 PASS Node 26 detachedXmlElement, detached range
    15891562PASS Node 26 detachedXmlElement, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    15901563PASS Node 26 detachedXmlElement, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    16471620PASS Node 26 detachedXmlElement, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    16481621PASS Node 26 detachedXmlElement, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1649 PASS Node 27 detachedForeignTextNode, detached range
    16501622PASS Node 27 detachedForeignTextNode, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    16511623PASS Node 27 detachedForeignTextNode, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    17081680PASS Node 27 detachedForeignTextNode, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    17091681PASS Node 27 detachedForeignTextNode, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1710 PASS Node 28 xmlTextNode, detached range
    17111682PASS Node 28 xmlTextNode, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    17121683PASS Node 28 xmlTextNode, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    17691740PASS Node 28 xmlTextNode, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    17701741PASS Node 28 xmlTextNode, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1771 PASS Node 29 detachedXmlTextNode, detached range
    17721742PASS Node 29 detachedXmlTextNode, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    17731743PASS Node 29 detachedXmlTextNode, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    18301800PASS Node 29 detachedXmlTextNode, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    18311801PASS Node 29 detachedXmlTextNode, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1832 PASS Node 30 xmlComment, detached range
    18331802PASS Node 30 xmlComment, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    18341803PASS Node 30 xmlComment, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    18911860PASS Node 30 xmlComment, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    18921861PASS Node 30 xmlComment, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1893 PASS Node 31 foreignComment, detached range
    18941862PASS Node 31 foreignComment, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    18951863PASS Node 31 foreignComment, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    19521920PASS Node 31 foreignComment, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    19531921PASS Node 31 foreignComment, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    1954 PASS Node 32 detachedForeignComment, detached range
    19551922PASS Node 32 detachedForeignComment, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    19561923PASS Node 32 detachedForeignComment, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    20131980PASS Node 32 detachedForeignComment, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    20141981PASS Node 32 detachedForeignComment, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    2015 PASS Node 33 detachedXmlComment, detached range
    20161982PASS Node 33 detachedXmlComment, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    20171983PASS Node 33 detachedXmlComment, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    20742040PASS Node 33 detachedXmlComment, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    20752041PASS Node 33 detachedXmlComment, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    2076 PASS Node 34 foreignDocfrag, detached range
    20772042PASS Node 34 foreignDocfrag, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    20782043PASS Node 34 foreignDocfrag, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    21352100PASS Node 34 foreignDocfrag, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    21362101PASS Node 34 foreignDocfrag, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    2137 PASS Node 35 xmlDocfrag, detached range
    21382102PASS Node 35 xmlDocfrag, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    21392103PASS Node 35 xmlDocfrag, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
     
    21962160PASS Node 35 xmlDocfrag, range 58 [foreignDocfrag, 0, foreignDocfrag, 0]
    21972161PASS Node 35 xmlDocfrag, range 59 [xmlDocfrag, 0, xmlDocfrag, 0]
    2198 PASS Node 36 xmlDoctype, detached range
    21992162PASS Node 36 xmlDoctype, range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]
    22002163PASS Node 36 xmlDoctype, range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-intersectsNode.html

    r189471 r194580  
    1515for (var i = 0; i < testNodes.length; i++) {
    1616  var node = eval(testNodes[i]);
    17 
    18   // "If the detached flag is set, throw an "InvalidStateError" exception and
    19   // terminate these steps."
    20   test(function() {
    21     var range = document.createRange();
    22     range.detach();
    23     assert_equals(range.intersectsNode(node), node === document);
    24   }, "Node " + i + " " + testNodes[i] + ", detached range");
    2517
    2618  for (var j = 0; j < testRanges.length; j++) {
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-mutations.html

    r189471 r194580  
    1616// TODO:
    1717//
    18 // * replaceWholeText() tests
    1918// * Lots and lots and lots more different types of ranges
    2019// * insertBefore() with DocumentFragments
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-surroundContents-expected.txt

    r190229 r194580  
    88</p>, got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    99" [Actual and expected mismatch for range's tree root.  ] expected true got false
    10 FAIL 0,1: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild assert_true: First differing node: expected Text node "", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    11 " [Actual and expected mismatch for range's tree root.  ] expected true got false
    12 FAIL 0,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild assert_true: First differing node: expected Text node "", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    13 " [Actual and expected mismatch for range's tree root.  ] expected true got false
     10PASS 0,1: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild
     11PASS 0,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild
    1412PASS 0,2: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[1].firstChild
    1513PASS 0,2: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[1].firstChild
     
    5856</p>, got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    5957" [Actual and expected mismatch for range's tree root.  ] expected true got false
    60 FAIL 1,1: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild assert_true: First differing node: expected Text node "", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    61 " [Actual and expected mismatch for range's tree root.  ] expected true got false
    62 FAIL 1,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild assert_true: First differing node: expected Text node "", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
     58FAIL 1,1: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild assert_true: First differing node: expected Text node "̈b̈c̈d̈ëf̈g̈ḧ
     59", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
     60" [Actual and expected mismatch for range's tree root.  ] expected true got false
     61FAIL 1,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild assert_true: First differing node: expected Text node "̈b̈c̈d̈ëf̈g̈ḧ
     62", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    6363" [Actual and expected mismatch for range's tree root.  ] expected true got false
    6464PASS 1,2: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[1].firstChild
     
    108108</p>, got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    109109" [Actual and expected mismatch for range's tree root.  ] expected true got false
    110 FAIL 2,1: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0].firstChild assert_true: First differing node: expected Text node "Ä", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    111 " [Actual and expected mismatch for range's tree root.  ] expected true got false
    112 FAIL 2,1: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0].firstChild assert_true: First differing node: expected Text node "Ä", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
     110FAIL 2,1: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0].firstChild assert_true: First differing node: expected Text node "Äëf̈g̈ḧ
     111", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
     112" [Actual and expected mismatch for range's tree root.  ] expected true got false
     113FAIL 2,1: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0].firstChild assert_true: First differing node: expected Text node "Äëf̈g̈ḧ
     114", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    113115" [Actual and expected mismatch for range's tree root.  ] expected true got false
    114116PASS 2,2: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[1].firstChild
     
    158160</p>, got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    159161" [Actual and expected mismatch for range's tree root.  ] expected true got false
    160 FAIL 3,1: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0].firstChild assert_true: First differing node: expected Text node "Ä", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    161 " [Actual and expected mismatch for range's tree root.  ] expected true got false
    162 FAIL 3,1: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0].firstChild assert_true: First differing node: expected Text node "Ä", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
     162FAIL 3,1: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0].firstChild assert_true: First differing node: expected Text node "Ä̈f̈g̈ḧ
     163", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
     164" [Actual and expected mismatch for range's tree root.  ] expected true got false
     165FAIL 3,1: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0].firstChild assert_true: First differing node: expected Text node "Ä̈f̈g̈ḧ
     166", got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    163167" [Actual and expected mismatch for range's tree root.  ] expected true got false
    164168PASS 3,2: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[1].firstChild
     
    206210PASS 4,1: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild
    207211PASS 4,1: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild
    208 FAIL 4,2: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild assert_true: First differing node: expected Text node "", got Text node "Ijklmnop
    209 " [Actual and expected mismatch for range's tree root.  ] expected true got false
    210 FAIL 4,2: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild assert_true: First differing node: expected Text node "", got Text node "Ijklmnop
    211 " [Actual and expected mismatch for range's tree root.  ] expected true got false
     212PASS 4,2: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild
     213PASS 4,2: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild
    212214PASS 4,3: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1
    213215PASS 4,3: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1
     
    306308FAIL 6,5: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1 assert_true: First differing node: expected Element node <p>Wxyzabcd</p>, got Text node "Opqrstuv" [Actual and expected mismatch for range's tree root.  ] expected true got false
    307309FAIL 6,5: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1 assert_true: First differing node: expected Element node <p>Wxyzabcd</p>, got Text node "Opqrstuv" [Actual and expected mismatch for range's tree root.  ] expected true got false
    308 FAIL 6,6: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild assert_true: First differing node: expected Text node "", got Text node "Opqrstuv" [Actual and expected mismatch for range's tree root.  ] expected true got false
    309 FAIL 6,6: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild assert_true: First differing node: expected Text node "", got Text node "Opqrstuv" [Actual and expected mismatch for range's tree root.  ] expected true got false
     310PASS 6,6: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild
     311PASS 6,6: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild
    310312PASS 6,7: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node document
    311313PASS 6,7: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node document
     
    390392FAIL 8,3: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1 assert_true: First differing node: expected Element node <p>Mnopqrst</p>, got Text node "Efghijkl" [Actual and expected mismatch for range's tree root.  ] expected true got false
    391393FAIL 8,3: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1 assert_true: First differing node: expected Element node <p>Mnopqrst</p>, got Text node "Efghijkl" [Actual and expected mismatch for range's tree root.  ] expected true got false
    392 FAIL 8,4: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild assert_true: First differing node: expected Text node "", got Text node "Efghijkl" [Actual and expected mismatch for range's tree root.  ] expected true got false
    393 FAIL 8,4: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild assert_true: First differing node: expected Text node "", got Text node "Efghijkl" [Actual and expected mismatch for range's tree root.  ] expected true got false
     394PASS 8,4: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild
     395PASS 8,4: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild
    394396PASS 8,5: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1
    395397PASS 8,5: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1
     
    16661668PASS 36,21: resulting DOM for range [docfrag, 0, docfrag, 0], node foreignDoctype
    16671669PASS 36,21: resulting range position for range [docfrag, 0, docfrag, 0], node foreignDoctype
    1668 FAIL 37,0: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node paras[0] assert_true: First differing node: expected Element node <p id="b" style="display:none">Ijklmnop
    1669 </p>, got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    1670 " [Actual and expected mismatch for moved node's tree root.  ] expected true got false
    1671 FAIL 37,0: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node paras[0] assert_true: First differing node: expected Element node <p id="b" style="display:none">Ijklmnop
    1672 </p>, got Text node "Äb̈c̈d̈ëf̈g̈ḧ
    1673 " [Actual and expected mismatch for moved node's tree root.  ] expected true got false
    1674 PASS 37,1: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node paras[0].firstChild
    1675 FAIL 37,1: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node paras[0].firstChild assert_equals: Unexpected endOffset after surroundContents() expected 0 but got 4
    1676 PASS 37,2: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node paras[1].firstChild
    1677 FAIL 37,2: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node paras[1].firstChild assert_equals: Unexpected endOffset after surroundContents() expected 0 but got 4
    1678 FAIL 37,3: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node foreignPara1 assert_true: First differing node: expected Element node <p>Mnopqrst</p>, got Text node "Efghijkl" [Actual and expected mismatch for moved node's tree root.  ] expected true got false
    1679 FAIL 37,3: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node foreignPara1 assert_true: First differing node: expected Element node <p>Mnopqrst</p>, got Text node "Efghijkl" [Actual and expected mismatch for moved node's tree root.  ] expected true got false
    1680 PASS 37,4: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node foreignPara1.firstChild
    1681 FAIL 37,4: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node foreignPara1.firstChild assert_equals: Unexpected endOffset after surroundContents() expected 0 but got 4
    1682 FAIL 37,5: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node detachedPara1 assert_true: First differing node: expected Element node <p>Wxyzabcd</p>, got Text node "Opqrstuv" [Actual and expected mismatch for moved node's tree root.  ] expected true got false
    1683 FAIL 37,5: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node detachedPara1 assert_true: First differing node: expected Element node <p>Wxyzabcd</p>, got Text node "Opqrstuv" [Actual and expected mismatch for moved node's tree root.  ] expected true got false
    1684 PASS 37,6: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node detachedPara1.firstChild
    1685 FAIL 37,6: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node detachedPara1.firstChild assert_equals: Unexpected endOffset after surroundContents() expected 0 but got 4
     1670FAIL 37,0: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node paras[0] assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1671FAIL 37,0: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node paras[0] assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1672FAIL 37,1: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node paras[0].firstChild assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1673FAIL 37,1: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node paras[0].firstChild assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1674FAIL 37,2: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node paras[1].firstChild assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1675FAIL 37,2: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node paras[1].firstChild assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1676FAIL 37,3: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node foreignPara1 assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1677FAIL 37,3: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node foreignPara1 assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1678FAIL 37,4: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node foreignPara1.firstChild assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1679FAIL 37,4: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node foreignPara1.firstChild assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1680FAIL 37,5: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node detachedPara1 assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1681FAIL 37,5: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node detachedPara1 assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1682FAIL 37,6: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node detachedPara1.firstChild assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1683FAIL 37,6: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node detachedPara1.firstChild assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
    16861684PASS 37,7: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node document
    16871685PASS 37,7: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node document
    1688 FAIL 37,8: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node detachedDiv assert_unreached: DOMs were not equal but we couldn't figure out why Reached unreachable code
    1689 FAIL 37,8: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node detachedDiv assert_unreached: DOMs were not equal but we couldn't figure out why Reached unreachable code
     1686FAIL 37,8: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node detachedDiv assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1687FAIL 37,8: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node detachedDiv assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
    16901688PASS 37,9: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node foreignDoc
    16911689PASS 37,9: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node foreignDoc
    1692 FAIL 37,10: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node foreignPara2 assert_true: First differing node: expected Text node "I admit that I harbor doubts about whether we really need...", got Text node "Mnopqrst" [Actual and expected mismatch for moved node's tree root.  ] expected true got false
    1693 FAIL 37,10: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node foreignPara2 assert_true: First differing node: expected Text node "I admit that I harbor doubts about whether we really need...", got Text node "Mnopqrst" [Actual and expected mismatch for moved node's tree root.  ] expected true got false
     1690FAIL 37,10: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node foreignPara2 assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1691FAIL 37,10: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node foreignPara2 assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
    16941692PASS 37,11: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node xmlDoc
    16951693PASS 37,11: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node xmlDoc
    1696 FAIL 37,12: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node xmlElement assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh...", got Text node "do re mi fa so la ti" [Actual and expected mismatch for range's tree root.  ] expected true got false
    1697 FAIL 37,12: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node xmlElement assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh...", got Text node "do re mi fa so la ti" [Actual and expected mismatch for range's tree root.  ] expected true got false
    1698 PASS 37,13: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node detachedTextNode
    1699 FAIL 37,13: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node detachedTextNode assert_equals: Unexpected endOffset after surroundContents() expected 0 but got 4
    1700 PASS 37,14: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node foreignTextNode
    1701 FAIL 37,14: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node foreignTextNode assert_equals: Unexpected endOffset after surroundContents() expected 0 but got 4
    1702 PASS 37,15: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node processingInstruction
    1703 FAIL 37,15: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node processingInstruction assert_equals: Unexpected endOffset after surroundContents() expected 0 but got 4
    1704 FAIL 37,16: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node detachedProcessingInstruction assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh...", got ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u..." [Actual and expected mismatch for range's tree root.  ] expected true got false
    1705 FAIL 37,16: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node detachedProcessingInstruction assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh...", got ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u..." [Actual and expected mismatch for range's tree root.  ] expected true got false
    1706 FAIL 37,17: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node comment assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh...", got ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u..." [Actual and expected mismatch for range's tree root.  ] expected true got false
    1707 FAIL 37,17: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node comment assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh...", got ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u..." [Actual and expected mismatch for range's tree root.  ] expected true got false
    1708 FAIL 37,18: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node detachedComment assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh...", got ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u..." [Actual and expected mismatch for range's tree root.  ] expected true got false
    1709 FAIL 37,18: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node detachedComment assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh...", got ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1694FAIL 37,12: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node xmlElement assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got Text node "do re mi fa so la ti" [Actual and expected mismatch for range's tree root.  ] expected true got false
     1695FAIL 37,12: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node xmlElement assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got Text node "do re mi fa so la ti" [Actual and expected mismatch for range's tree root.  ] expected true got false
     1696FAIL 37,13: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node detachedTextNode assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1697FAIL 37,13: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node detachedTextNode assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1698FAIL 37,14: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node foreignTextNode assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1699FAIL 37,14: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node foreignTextNode assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1700FAIL 37,15: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node processingInstruction assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1701FAIL 37,15: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node processingInstruction assert_true: First differing node: expected ProcessingInstruction node with target "somePI" and data "you know that \":syn sync fromstart\" is very useful when u...", got ProcessingInstruction node with target "somePI" and data "Did you know that \":syn sync fromstart\" is very useful wh..." [Actual and expected mismatch for range's tree root.  ] expected true got false
     1702PASS 37,16: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node detachedProcessingInstruction
     1703PASS 37,16: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node detachedProcessingInstruction
     1704PASS 37,17: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node comment
     1705PASS 37,17: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node comment
     1706PASS 37,18: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node detachedComment
     1707PASS 37,18: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node detachedComment
    17101708PASS 37,19: resulting DOM for range [processingInstruction, 0, processingInstruction, 4], node docfrag
    17111709PASS 37,19: resulting range position for range [processingInstruction, 0, processingInstruction, 4], node docfrag
  • trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-surroundContents.html

    r189471 r194580  
    1818function mySurroundContents(range, newParent) {
    1919  try {
    20     // "If the detached flag is set, throw an "InvalidStateError" exception
    21     // and terminate these steps."
    22     try {
    23       range.collapsed;
    24     } catch (e) {
    25       return "INVALID_STATE_ERR";
    26     }
    27 
    2820    // "If a non-Text node is partially contained in the context object,
    2921    // throw a "InvalidStateError" exception and terminate these steps."
     
    119111  var expectedRoots = [];
    120112
    121   var detached = false;
    122 
    123113  domTests[i][j].step(function() {
    124114    restoreIframe(actualIframe, i, j);
     
    129119    actualNode = actualIframe.contentWindow.testNode;
    130120    expectedNode = expectedIframe.contentWindow.testNode;
    131 
    132     try {
    133       actualRange.collapsed;
    134     } catch (e) {
    135       detached = true;
    136     }
    137121
    138122    assert_equals(actualIframe.contentWindow.unexpectedException, null,
     
    161145    // same, if we're inserting a node from a detached tree or a different
    162146    // document.
    163     //
    164     // Detached ranges are always in the contentDocument.
    165     if (detached) {
    166       actualRoots.push(actualIframe.contentDocument);
    167       expectedRoots.push(expectedIframe.contentDocument);
    168     } else {
    169       actualRoots.push(furthestAncestor(actualRange.startContainer));
    170       expectedRoots.push(furthestAncestor(expectedRange.startContainer));
    171     }
     147    actualRoots.push(furthestAncestor(actualRange.startContainer));
     148    expectedRoots.push(furthestAncestor(expectedRange.startContainer));
    172149
    173150    if (furthestAncestor(actualNode) != actualRoots[0]) {
     
    265242    }
    266243
    267     if (detached) {
    268       // No further tests we can do
    269       return;
    270     }
    271 
    272244    assert_equals(actualRange.startOffset, expectedRange.startOffset,
    273245      "Unexpected startOffset after surroundContents()");
     
    301273}
    302274
    303 testRanges.unshift('"detached"');
    304 
    305275var iStart = 0;
    306276var iStop = testRangesShort.length;
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-expected.txt

    r192132 r194580  
    22 
    33
    4 PASS getElementsByName and newly introduced HTML elements
     4PASS getElementsByName("section")
     5PASS getElementsByName("article")
     6PASS getElementsByName("aside")
     7PASS getElementsByName("hgroup")
     8PASS getElementsByName("header")
     9PASS getElementsByName("footer")
     10PASS getElementsByName("nav")
     11PASS getElementsByName("dialog")
     12PASS getElementsByName("figure")
     13PASS getElementsByName("audio")
     14PASS getElementsByName("video")
     15PASS getElementsByName("embed")
     16PASS getElementsByName("mark")
     17PASS getElementsByName("meter")
     18PASS getElementsByName("progress")
     19PASS getElementsByName("time")
     20PASS getElementsByName("canvas")
     21PASS getElementsByName("command")
     22PASS getElementsByName("menu")
     23PASS getElementsByName("details")
     24PASS getElementsByName("datalist")
     25PASS getElementsByName("keygen")
     26PASS getElementsByName("output")
     27PASS getElementsByName("ruby")
     28PASS getElementsByName("rt")
     29PASS getElementsByName("rp")
     30PASS getElementsByName("source")
    531
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements.html

    r189472 r194580  
    3737</div>
    3838<script>
    39 test(function() {
    40   assert_equals(document.getElementsByName("section").length, 1);
    41   assert_equals(document.getElementsByName("section")[0],
    42                 document.getElementsByTagName("section")[0]);
    43   assert_equals(document.getElementsByName("article").length, 1);
    44   assert_equals(document.getElementsByName("article")[0],
    45                 document.getElementsByTagName("article")[0]);
    46   assert_equals(document.getElementsByName("aside").length, 1);
    47   assert_equals(document.getElementsByName("aside")[0],
    48                 document.getElementsByTagName("aside")[0]);
    49   assert_equals(document.getElementsByName("hgroup").length, 1);
    50   assert_equals(document.getElementsByName("hgroup")[0],
    51                 document.getElementsByTagName("hgroup")[0]);
    52   assert_equals(document.getElementsByName("header").length, 1);
    53   assert_equals(document.getElementsByName("header")[0],
    54                 document.getElementsByTagName("header")[0]);
    55   assert_equals(document.getElementsByName("footer").length, 1);
    56   assert_equals(document.getElementsByName("footer")[0],
    57                 document.getElementsByTagName("footer")[0]);
    58   assert_equals(document.getElementsByName("nav").length, 1);
    59   assert_equals(document.getElementsByName("nav")[0],
    60                 document.getElementsByTagName("nav")[0]);
    61   assert_equals(document.getElementsByName("dialog").length, 1);
    62   assert_equals(document.getElementsByName("dialog")[0],
    63                 document.getElementsByTagName("dialog")[0]);
    64   assert_equals(document.getElementsByName("figure").length, 1);
    65   assert_equals(document.getElementsByName("figure")[0],
    66                 document.getElementsByTagName("figure")[0]);
    67   assert_equals(document.getElementsByName("audio").length, 1);
    68   assert_equals(document.getElementsByName("audio")[0],
    69                 document.getElementsByTagName("audio")[0]);
    70   assert_equals(document.getElementsByName("video").length, 1);
    71   assert_equals(document.getElementsByName("video")[0],
    72                 document.getElementsByTagName("video")[0]);
    73   assert_equals(document.getElementsByName("embed").length, 1);
    74   assert_equals(document.getElementsByName("embed")[0],
    75                 document.getElementsByTagName("embed")[0]);
    76   assert_equals(document.getElementsByName("mark").length, 1);
    77   assert_equals(document.getElementsByName("mark")[0],
    78                 document.getElementsByTagName("mark")[0]);
    79   assert_equals(document.getElementsByName("meter").length, 1);
    80   assert_equals(document.getElementsByName("meter")[0],
    81                 document.getElementsByTagName("meter")[0]);
    82   assert_equals(document.getElementsByName("progress").length, 1);
    83   assert_equals(document.getElementsByName("progress")[0],
    84                 document.getElementsByTagName("progress")[0]);
    85   assert_equals(document.getElementsByName("time").length, 1);
    86   assert_equals(document.getElementsByName("time")[0],
    87                 document.getElementsByTagName("time")[0]);
    88   assert_equals(document.getElementsByName("canvas").length, 1);
    89   assert_equals(document.getElementsByName("canvas")[0],
    90                 document.getElementsByTagName("canvas")[0]);
    91   assert_equals(document.getElementsByName("command").length, 1);
    92   assert_equals(document.getElementsByName("command")[0],
    93                 document.getElementsByTagName("command")[0]);
    94   assert_equals(document.getElementsByName("menu").length, 1);
    95   assert_equals(document.getElementsByName("menu")[0],
    96                 document.getElementsByTagName("menu")[0]);
    97   assert_equals(document.getElementsByName("details").length, 1);
    98   assert_equals(document.getElementsByName("details")[0],
    99                 document.getElementsByTagName("details")[0]);
    100   assert_equals(document.getElementsByName("datalist").length, 1);
    101   assert_equals(document.getElementsByName("datalist")[0],
    102                 document.getElementsByTagName("datalist")[0]);
    103   assert_equals(document.getElementsByName("keygen").length, 1);
    104   assert_equals(document.getElementsByName("keygen")[0],
    105                 document.getElementsByTagName("keygen")[0]);
    106   assert_equals(document.getElementsByName("output").length, 1);
    107   assert_equals(document.getElementsByName("output")[0],
    108                 document.getElementsByTagName("output")[0]);
    109   assert_equals(document.getElementsByName("ruby").length, 1);
    110   assert_equals(document.getElementsByName("ruby")[0],
    111                 document.getElementsByTagName("ruby")[0]);
    112   assert_equals(document.getElementsByName("rt").length, 1);
    113   assert_equals(document.getElementsByName("rt")[0],
    114                 document.getElementsByTagName("rt")[0]);
    115   assert_equals(document.getElementsByName("rp").length, 1);
    116   assert_equals(document.getElementsByName("rp")[0],
    117                 document.getElementsByTagName("rp")[0]);
    118   assert_equals(document.getElementsByName("source").length, 1);
    119   assert_equals(document.getElementsByName("source")[0],
    120                 document.getElementsByTagName("source")[0]);
    121 });
     39var testDiv = document.getElementById("test");
     40for (var i = 0; i < testDiv.children.length; i++) {
     41  var name = testDiv.children[i].getAttribute("name");
     42  test(function() {
     43    assert_equals(document.getElementsByName(name).length, 1);
     44    assert_equals(document.getElementsByName(name)[0],
     45                  document.getElementsByTagName(name)[0]);
     46  }, 'getElementsByName("' + name + '")');
     47}
    12248</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/w3c-import.log

    r191379 r194580  
    1616------------------------------------------------------------------------
    1717List of files:
     18/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case-xhtml.xhtml
    1819/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case.html
    19 /LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case.xhtml
     20/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id-xhtml.xhtml
    2021/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id.html
    21 /LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id.xhtml
    2222/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-interface.html
     23/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace-xhtml.xhtml
    2324/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.html
    24 /LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.xhtml
     25/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-xhtml.xhtml
    2526/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements.html
    26 /LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements.xhtml
     27/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef-xhtml.xhtml
    2728/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef.html
    28 /LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef.xhtml
     29/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param-xhtml.xhtml
    2930/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param.html
    30 /LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param.xhtml
    3131/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-same.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-03-expected.txt

    r189472 r194580  
    11
    2 PASS  document.title  and space normalization   
     2PASS document.title initial value
     3PASS document.title after setting to "one space"
     4PASS document.title after setting to "two  spaces"
     5PASS document.title after setting to "one\ttab"
     6PASS document.title after setting to "two\t\ttabs"
     7PASS document.title after setting to "one\nnewline"
     8PASS document.title after setting to "two\n\nnewlines"
     9PASS document.title after setting to "one\fform feed"
     10PASS document.title after setting to "two\f\fform feeds"
     11PASS document.title after setting to "one\rcarriage return"
     12PASS document.title after setting to "two\r\rcarriage returns"
    313
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-03.html

    r189472 r194580  
    88<div id="log"></div>
    99<script>
     10function test_title(set, expected) {
     11  test(function() {
     12      document.title = set;
     13      assert_equals(document.title, expected);
     14  }, "document.title after setting to " + format_value(set));
     15}
     16
    1017test(function() {
    1118  // Single space characters must be normalized. (WHATWG r4353)
    1219  assert_equals(document.title, "document.title and space normalization");
     20}, "document.title initial value");
    1321
    14   document.title = "one space";
    15   assert_equals(document.title, "one space");
    16 
    17   document.title = "two  spaces";
    18   assert_equals(document.title, "two spaces");
    19 
    20   document.title = "one\ttab";
    21   assert_equals(document.title, "one tab");
    22 
    23   document.title = "two\t\ttabs";
    24   assert_equals(document.title, "two tabs");
    25 
    26   document.title = "one\nnewline";
    27   assert_equals(document.title, "one newline");
    28 
    29   document.title = "two\n\nnewlines";
    30   assert_equals(document.title, "two newlines");
    31 
    32   document.title = "one\fform feed";
    33   assert_equals(document.title, "one form feed");
    34 
    35   document.title = "two\f\fform feeds";
    36   assert_equals(document.title, "two form feeds");
    37 
    38   document.title = "one\rcarriage return";
    39   assert_equals(document.title, "one carriage return");
    40 
    41   document.title = "two\r\rcarriage returns";
    42   assert_equals(document.title, "two carriage returns");
    43 });
     22test_title("one space", "one space");
     23test_title("two  spaces", "two spaces");
     24test_title("one\ttab", "one tab");
     25test_title("two\t\ttabs", "two tabs");
     26test_title("one\nnewline", "one newline");
     27test_title("two\n\nnewlines", "two newlines");
     28test_title("one\fform feed", "one form feed");
     29test_title("two\f\fform feeds", "two form feeds");
     30test_title("one\rcarriage return", "one carriage return");
     31test_title("two\r\rcarriage returns", "two carriage returns");
    4432</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09-expected.txt

    r189472 r194580  
    33FAIL Title element in SVG document assert_equals: expected "foobar" but got "foo"
    44FAIL Title element not child of SVG root assert_equals: expected "" but got "foo"
    5 PASS Title element not in SVG namespace
     5FAIL Title element not in SVG namespace assert_equals: expected "" but got "foo"
     6FAIL Root element not named "svg" assert_equals: expected "" but got "foo"
    67
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.title-09.html

    r189472 r194580  
    66<script>
    77var SVG_NAMESPACE = "http://www.w3.org/2000/svg";
     8var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
    89
    910function newSVGDocument() {
    10   return document.implementation.createDocument(SVG_NAMESPACE, "svg");
     11  return document.implementation.createDocument(SVG_NAMESPACE, "svg", null);
     12}
     13
     14function assertIsSVGTitle(element, expectedText) {
     15  assert_equals(element.namespaceURI, SVG_NAMESPACE);
     16  assert_equals(element.localName, "title");
     17  assert_equals(element.textContent, expectedText);
    1118}
    1219
     
    1724  doc.documentElement.appendChild(child);
    1825  doc.title = "foo";
    19   var lastChild = doc.documentElement.lastChild;
    20   assert_equals(lastChild.namespaceURI, SVG_NAMESPACE);
    21   assert_equals(lastChild.localName, "title");
    22   assert_equals(lastChild.textContent, "foo");
     26  assertIsSVGTitle(doc.documentElement.firstChild, "foo");
    2327  assert_equals(doc.title, "foo");
    2428}, "No title element in SVG document");
     
    4953  doc.documentElement.appendChild(child);
    5054  assert_equals(doc.title, "");
     55
     56  // Now test that on setting, we create a new element and don't change the
     57  // existing one
     58  doc.title = "bar";
     59  assert_equals(title.textContent, "foo");
     60  assertIsSVGTitle(doc.documentElement.firstChild, "bar");
     61  assert_equals(doc.title, "bar");
    5162}, "Title element not child of SVG root");
    5263
    5364test(function() {
    5465  var doc = newSVGDocument();
    55   var title = doc.createElement("title");
     66  var title = doc.createElementNS(HTML_NAMESPACE, "title");
    5667  title.textContent = "foo";
    5768  doc.documentElement.appendChild(title);
    5869  assert_equals(doc.title, "");
    5970}, "Title element not in SVG namespace");
     71
     72test(function() {
     73  // "SVG" != "svg"
     74  var doc = document.implementation.createDocument(SVG_NAMESPACE, "SVG", null);
     75
     76  // Per spec, this does nothing
     77  doc.title = "foo";
     78  assert_equals(doc.documentElement.childNodes.length, 0);
     79  assert_equals(doc.title, "");
     80
     81  // An SVG title is ignored by .title
     82  doc.documentElement.appendChild(doc.createElementNS(SVG_NAMESPACE, "title"));
     83  doc.documentElement.lastChild.textContent = "foo";
     84  assert_equals(doc.title, "");
     85
     86  // But an HTML title is respected
     87  doc.documentElement.appendChild(doc.createElementNS(HTML_NAMESPACE, "title"));
     88  doc.documentElement.lastChild.textContent = "bar";
     89  assert_equals(doc.title, "bar");
     90
     91  // Even if it's not a child of the root
     92  var div = doc.createElementNS(HTML_NAMESPACE, "div");
     93  div.appendChild(doc.documentElement.lastChild);
     94  doc.documentElement.appendChild(div);
     95  assert_equals(doc.title, "bar");
     96}, 'Root element not named "svg"');
    6097</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-06-expected.txt

    r189472 r194580  
    44PASS If there are two imgs, a collection should be returned. (name)
    55PASS If there is one img, it should not be returned (id)
    6 PASS If there are two imgs, nothing should be returned. (id)
     6FAIL If there are two imgs, nothing should be returned. (id) assert_false: "test4" in document should be false expected false got true
    77PASS If there are two imgs, the one with a name should be returned. (name and id)
    88PASS If there are two imgs, the one with a name should be returned. (id and name)
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-06.html

    r189472 r194580  
    1616
    1717<img id=test4>
    18 <img id=test4>
     18<img id=test4 name="">
    1919
    2020<img name=test5>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/resource-metadata-management/document-lastModified-01.html

    r191379 r194580  
    2626  var seconds = d.getSeconds()
    2727
    28   test(function() {
    29     var local_time = hours * 60 * 60 + minutes * 60 + seconds;
    30     var m = pattern.exec(last_modified);
    31     var last_modified_time = parseInt(m[1]) * 60 * 60 + parseInt(m[2]) * 60 + parseInt(m[3]);
    32     assert_approx_equals(last_modified_time, local_time, 2,
    33                          "Hours and minutes should match local time.");
    34   }, "Date returned by lastModified is in the user's local time zone.");
    35 
     28  // Checking whether d and and new instance of Date have the same timezone.
     29  // Do not run the time zone test in the case daylight saving occurs.
     30  var d2 = new Date();
     31  if (d2.getTimezoneOffset() == d.getTimezoneOffset()) {
     32    test(function() {
     33      var local_time = hours * 60 * 60 + minutes * 60 + seconds;
     34      var m = pattern.exec(last_modified);
     35      var last_modified_time = parseInt(m[1]) * 60 * 60 + parseInt(m[2]) * 60 + parseInt(m[3]);
     36      assert_approx_equals(last_modified_time, local_time, 2,
     37                           "Hours and minutes should match local time.");
     38    }, "Date returned by lastModified is in the user's local time zone.");
     39  }
    3640  var t = async_test("Date returned by lastModified is current after timeout.");
    3741
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/010-expected.txt

    r191379 r194580  
     1FAIL: Timed out waiting for notifyDone to be called
    12
    2 
    3 FAIL document.open replacing singleton window assert_equals: expected (undefined) undefined but got (number) 1
    4 FAIL document.open replacing singleton location assert_equals: expected (undefined) undefined but got (number) 1
    5 FAIL document.open replacing singleton history assert_equals: expected (undefined) undefined but got (number) 1
    6 FAIL document.open replacing singleton navigator assert_equals: expected (undefined) undefined but got (number) 1
    7 FAIL document.open replacing singleton applicationCache assert_equals: expected (undefined) undefined but got (number) 1
    8 FAIL document.open replacing singleton sessionStorage assert_equals: expected (undefined) undefined but got (string) "1"
    9 FAIL document.open replacing singleton localStorage assert_equals: expected (undefined) undefined but got (string) "1"
    10 FAIL document.open replacing singleton locationbar assert_equals: expected (undefined) undefined but got (number) 1
    11 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements-embedded.js

    r189472 r194580  
    142142    type: "string",
    143143
    144           //URLUtils
     144    // HTMLHyperlinkElementUtils
    145145    href: "url",
    146146
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements-text.js

    r189472 r194580  
    1111    type: "string",
    1212
    13     // URLUtils
     13    // HTMLHyperlinkElementUtils
    1414    href: "url",
    1515
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/w3c-import.log

    r191379 r194580  
    3838/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-R.html
    3939/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-expected.html
     40/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-ref-expected.html
     41/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html
    4042/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-EN.html
    4143/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-N-L-expected.html
     
    126128/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-EN.html
    127129/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-expected.html
     130/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref-expected.html
     131/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs-ref.html
    128132/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-N-between-Rs.html
    129133/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements/global-attributes/dir_auto-textarea-script-mixed-expected.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt

    r194217 r194580  
    215215CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'rev' on a non-HTMLAnchorElement object.
    216216CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'shape' on a non-HTMLAnchorElement object.
     217CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'href' on a non-HTMLAnchorElement object.
     218CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'origin' on a non-HTMLAnchorElement object.
     219CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'protocol' on a non-HTMLAnchorElement object.
     220CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'host' on a non-HTMLAnchorElement object.
     221CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'hostname' on a non-HTMLAnchorElement object.
     222CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'port' on a non-HTMLAnchorElement object.
     223CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'pathname' on a non-HTMLAnchorElement object.
     224CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'search' on a non-HTMLAnchorElement object.
     225CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'hash' on a non-HTMLAnchorElement object.
    217226CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'dateTime' on a non-HTMLTimeElement object.
    218227CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'clear' on a non-HTMLBRElement object.
     
    358367CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'relList' on a non-HTMLAreaElement object.
    359368CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'noHref' on a non-HTMLAreaElement object.
     369CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'href' on a non-HTMLAreaElement object.
     370CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'protocol' on a non-HTMLAreaElement object.
     371CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'host' on a non-HTMLAreaElement object.
     372CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'hostname' on a non-HTMLAreaElement object.
     373CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'port' on a non-HTMLAreaElement object.
     374CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'pathname' on a non-HTMLAreaElement object.
     375CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'search' on a non-HTMLAreaElement object.
     376CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'hash' on a non-HTMLAreaElement object.
    360377CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'caption' on a non-HTMLTableElement object.
    361378CONSOLE MESSAGE: line 1151: Deprecated attempt to access property 'tHead' on a non-HTMLTableElement object.
     
    15551572FAIL HTMLAllCollection interface: existence and properties of interface object assert_equals: class string of HTMLAllCollection expected "[object Function]" but got "[object HTMLAllCollectionConstructor]"
    15561573PASS HTMLAllCollection interface object length
     1574PASS HTMLAllCollection interface object name
    15571575FAIL HTMLAllCollection interface: existence and properties of interface prototype object assert_equals: prototype of HTMLAllCollection.prototype is not HTMLCollection.prototype expected object "[object HTMLCollectionPrototype]" but got object "[object Object]"
    15581576FAIL HTMLAllCollection interface: existence and properties of interface prototype object's "constructor" property assert_own_property: HTMLAllCollection.prototype does not have own property "constructor" expected property "constructor" missing
     
    15751593FAIL HTMLFormControlsCollection interface: existence and properties of interface object assert_equals: class string of HTMLFormControlsCollection expected "[object Function]" but got "[object HTMLFormControlsCollectionConstructor]"
    15761594PASS HTMLFormControlsCollection interface object length
     1595PASS HTMLFormControlsCollection interface object name
    15771596PASS HTMLFormControlsCollection interface: existence and properties of interface prototype object
    15781597FAIL HTMLFormControlsCollection interface: existence and properties of interface prototype object's "constructor" property assert_own_property: HTMLFormControlsCollection.prototype does not have own property "constructor" expected property "constructor" missing
     
    15891608FAIL RadioNodeList interface: existence and properties of interface object assert_equals: class string of RadioNodeList expected "[object Function]" but got "[object RadioNodeListConstructor]"
    15901609PASS RadioNodeList interface object length
     1610PASS RadioNodeList interface object name
    15911611PASS RadioNodeList interface: existence and properties of interface prototype object
    15921612FAIL RadioNodeList interface: existence and properties of interface prototype object's "constructor" property assert_own_property: RadioNodeList.prototype does not have own property "constructor" expected property "constructor" missing
     
    15941614FAIL HTMLOptionsCollection interface: existence and properties of interface object assert_equals: class string of HTMLOptionsCollection expected "[object Function]" but got "[object HTMLOptionsCollectionConstructor]"
    15951615PASS HTMLOptionsCollection interface object length
     1616PASS HTMLOptionsCollection interface object name
    15961617PASS HTMLOptionsCollection interface: existence and properties of interface prototype object
    15971618FAIL HTMLOptionsCollection interface: existence and properties of interface prototype object's "constructor" property assert_own_property: HTMLOptionsCollection.prototype does not have own property "constructor" expected property "constructor" missing
     
    16151636FAIL HTMLPropertiesCollection interface: existence and properties of interface object assert_own_property: self does not have own property "HTMLPropertiesCollection" expected property "HTMLPropertiesCollection" missing
    16161637FAIL HTMLPropertiesCollection interface object length assert_own_property: self does not have own property "HTMLPropertiesCollection" expected property "HTMLPropertiesCollection" missing
     1638FAIL HTMLPropertiesCollection interface object name assert_own_property: self does not have own property "HTMLPropertiesCollection" expected property "HTMLPropertiesCollection" missing
    16171639FAIL HTMLPropertiesCollection interface: existence and properties of interface prototype object assert_own_property: self does not have own property "HTMLPropertiesCollection" expected property "HTMLPropertiesCollection" missing
    16181640FAIL HTMLPropertiesCollection interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "HTMLPropertiesCollection" expected property "HTMLPropertiesCollection" missing
     
    16311653FAIL PropertyNodeList interface: existence and properties of interface object assert_own_property: self does not have own property "PropertyNodeList" expected property "PropertyNodeList" missing
    16321654FAIL PropertyNodeList interface object length assert_own_property: self does not have own property "PropertyNodeList" expected property "PropertyNodeList" missing
     1655FAIL PropertyNodeList interface object name assert_own_property: self does not have own property "PropertyNodeList" expected property "PropertyNodeList" missing
    16331656FAIL PropertyNodeList interface: existence and properties of interface prototype object assert_own_property: self does not have own property "PropertyNodeList" expected property "PropertyNodeList" missing
    16341657FAIL PropertyNodeList interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "PropertyNodeList" expected property "PropertyNodeList" missing
     
    16361659FAIL DOMStringMap interface: existence and properties of interface object assert_equals: class string of DOMStringMap expected "[object Function]" but got "[object DOMStringMapConstructor]"
    16371660PASS DOMStringMap interface object length
     1661PASS DOMStringMap interface object name
    16381662PASS DOMStringMap interface: existence and properties of interface prototype object
    16391663FAIL DOMStringMap interface: existence and properties of interface prototype object's "constructor" property assert_own_property: DOMStringMap.prototype does not have own property "constructor" expected property "constructor" missing
     
    16421666FAIL DOMElementMap interface: existence and properties of interface object assert_own_property: self does not have own property "DOMElementMap" expected property "DOMElementMap" missing
    16431667FAIL DOMElementMap interface object length assert_own_property: self does not have own property "DOMElementMap" expected property "DOMElementMap" missing
     1668FAIL DOMElementMap interface object name assert_own_property: self does not have own property "DOMElementMap" expected property "DOMElementMap" missing
    16441669FAIL DOMElementMap interface: existence and properties of interface prototype object assert_own_property: self does not have own property "DOMElementMap" expected property "DOMElementMap" missing
    16451670FAIL DOMElementMap interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "DOMElementMap" expected property "DOMElementMap" missing
     
    16481673FAIL HTMLElement interface: existence and properties of interface object assert_equals: class string of HTMLElement expected "[object Function]" but got "[object HTMLElementConstructor]"
    16491674PASS HTMLElement interface object length
     1675PASS HTMLElement interface object name
    16501676PASS HTMLElement interface: existence and properties of interface prototype object
    16511677FAIL HTMLElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLElement.prototype.constructor is not writable expected true got false
     
    22212247FAIL HTMLUnknownElement interface: existence and properties of interface object assert_equals: class string of HTMLUnknownElement expected "[object Function]" but got "[object HTMLUnknownElementConstructor]"
    22222248PASS HTMLUnknownElement interface object length
     2249PASS HTMLUnknownElement interface object name
    22232250PASS HTMLUnknownElement interface: existence and properties of interface prototype object
    22242251FAIL HTMLUnknownElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLUnknownElement.prototype.constructor is not writable expected true got false
     
    22472274FAIL HTMLHtmlElement interface: existence and properties of interface object assert_equals: class string of HTMLHtmlElement expected "[object Function]" but got "[object HTMLHtmlElementConstructor]"
    22482275PASS HTMLHtmlElement interface object length
     2276PASS HTMLHtmlElement interface object name
    22492277PASS HTMLHtmlElement interface: existence and properties of interface prototype object
    22502278FAIL HTMLHtmlElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLHtmlElement.prototype.constructor is not writable expected true got false
     
    22572285FAIL HTMLHeadElement interface: existence and properties of interface object assert_equals: class string of HTMLHeadElement expected "[object Function]" but got "[object HTMLHeadElementConstructor]"
    22582286PASS HTMLHeadElement interface object length
     2287PASS HTMLHeadElement interface object name
    22592288PASS HTMLHeadElement interface: existence and properties of interface prototype object
    22602289FAIL HTMLHeadElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLHeadElement.prototype.constructor is not writable expected true got false
     
    22632292FAIL HTMLTitleElement interface: existence and properties of interface object assert_equals: class string of HTMLTitleElement expected "[object Function]" but got "[object HTMLTitleElementConstructor]"
    22642293PASS HTMLTitleElement interface object length
     2294PASS HTMLTitleElement interface object name
    22652295PASS HTMLTitleElement interface: existence and properties of interface prototype object
    22662296FAIL HTMLTitleElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTitleElement.prototype.constructor is not writable expected true got false
     
    22732303FAIL HTMLBaseElement interface: existence and properties of interface object assert_equals: class string of HTMLBaseElement expected "[object Function]" but got "[object HTMLBaseElementConstructor]"
    22742304PASS HTMLBaseElement interface object length
     2305PASS HTMLBaseElement interface object name
    22752306PASS HTMLBaseElement interface: existence and properties of interface prototype object
    22762307FAIL HTMLBaseElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLBaseElement.prototype.constructor is not writable expected true got false
     
    22872318FAIL HTMLLinkElement interface: existence and properties of interface object assert_equals: class string of HTMLLinkElement expected "[object Function]" but got "[object HTMLLinkElementConstructor]"
    22882319PASS HTMLLinkElement interface object length
     2320PASS HTMLLinkElement interface object name
    22892321PASS HTMLLinkElement interface: existence and properties of interface prototype object
    22902322FAIL HTMLLinkElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLLinkElement.prototype.constructor is not writable expected true got false
     
    23362368FAIL HTMLMetaElement interface: existence and properties of interface object assert_equals: class string of HTMLMetaElement expected "[object Function]" but got "[object HTMLMetaElementConstructor]"
    23372369PASS HTMLMetaElement interface object length
     2370PASS HTMLMetaElement interface object name
    23382371PASS HTMLMetaElement interface: existence and properties of interface prototype object
    23392372FAIL HTMLMetaElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLMetaElement.prototype.constructor is not writable expected true got false
     
    23582391FAIL HTMLStyleElement interface: existence and properties of interface object assert_equals: class string of HTMLStyleElement expected "[object Function]" but got "[object HTMLStyleElementConstructor]"
    23592392PASS HTMLStyleElement interface object length
     2393PASS HTMLStyleElement interface object name
    23602394PASS HTMLStyleElement interface: existence and properties of interface prototype object
    23612395FAIL HTMLStyleElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLStyleElement.prototype.constructor is not writable expected true got false
     
    23752409FAIL HTMLBodyElement interface: existence and properties of interface object assert_equals: class string of HTMLBodyElement expected "[object Function]" but got "[object HTMLBodyElementConstructor]"
    23762410PASS HTMLBodyElement interface object length
     2411PASS HTMLBodyElement interface object name
    23772412PASS HTMLBodyElement interface: existence and properties of interface prototype object
    23782413FAIL HTMLBodyElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLBodyElement.prototype.constructor is not writable expected true got false
     
    24512486FAIL HTMLHeadingElement interface: existence and properties of interface object assert_equals: class string of HTMLHeadingElement expected "[object Function]" but got "[object HTMLHeadingElementConstructor]"
    24522487PASS HTMLHeadingElement interface object length
     2488PASS HTMLHeadingElement interface object name
    24532489PASS HTMLHeadingElement interface: existence and properties of interface prototype object
    24542490FAIL HTMLHeadingElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLHeadingElement.prototype.constructor is not writable expected true got false
     
    24762512FAIL HTMLParagraphElement interface: existence and properties of interface object assert_equals: class string of HTMLParagraphElement expected "[object Function]" but got "[object HTMLParagraphElementConstructor]"
    24772513PASS HTMLParagraphElement interface object length
     2514PASS HTMLParagraphElement interface object name
    24782515PASS HTMLParagraphElement interface: existence and properties of interface prototype object
    24792516FAIL HTMLParagraphElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLParagraphElement.prototype.constructor is not writable expected true got false
     
    24862523FAIL HTMLHRElement interface: existence and properties of interface object assert_equals: class string of HTMLHRElement expected "[object Function]" but got "[object HTMLHRElementConstructor]"
    24872524PASS HTMLHRElement interface object length
     2525PASS HTMLHRElement interface object name
    24882526PASS HTMLHRElement interface: existence and properties of interface prototype object
    24892527FAIL HTMLHRElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLHRElement.prototype.constructor is not writable expected true got false
     
    25102548FAIL HTMLPreElement interface: existence and properties of interface object assert_equals: class string of HTMLPreElement expected "[object Function]" but got "[object HTMLPreElementConstructor]"
    25112549PASS HTMLPreElement interface object length
     2550PASS HTMLPreElement interface object name
    25122551PASS HTMLPreElement interface: existence and properties of interface prototype object
    25132552FAIL HTMLPreElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLPreElement.prototype.constructor is not writable expected true got false
     
    25292568FAIL HTMLQuoteElement interface: existence and properties of interface object assert_equals: class string of HTMLQuoteElement expected "[object Function]" but got "[object HTMLQuoteElementConstructor]"
    25302569PASS HTMLQuoteElement interface object length
     2570PASS HTMLQuoteElement interface object name
    25312571PASS HTMLQuoteElement interface: existence and properties of interface prototype object
    25322572FAIL HTMLQuoteElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLQuoteElement.prototype.constructor is not writable expected true got false
     
    25422582FAIL HTMLOListElement interface: existence and properties of interface object assert_equals: class string of HTMLOListElement expected "[object Function]" but got "[object HTMLOListElementConstructor]"
    25432583PASS HTMLOListElement interface object length
     2584PASS HTMLOListElement interface object name
    25442585PASS HTMLOListElement interface: existence and properties of interface prototype object
    25452586FAIL HTMLOListElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLOListElement.prototype.constructor is not writable expected true got false
     
    25582599FAIL HTMLUListElement interface: existence and properties of interface object assert_equals: class string of HTMLUListElement expected "[object Function]" but got "[object HTMLUListElementConstructor]"
    25592600PASS HTMLUListElement interface object length
     2601PASS HTMLUListElement interface object name
    25602602PASS HTMLUListElement interface: existence and properties of interface prototype object
    25612603FAIL HTMLUListElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLUListElement.prototype.constructor is not writable expected true got false
     
    25682610FAIL HTMLLIElement interface: existence and properties of interface object assert_equals: class string of HTMLLIElement expected "[object Function]" but got "[object HTMLLIElementConstructor]"
    25692611PASS HTMLLIElement interface object length
     2612PASS HTMLLIElement interface object name
    25702613PASS HTMLLIElement interface: existence and properties of interface prototype object
    25712614FAIL HTMLLIElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLLIElement.prototype.constructor is not writable expected true got false
     
    25822625FAIL HTMLDListElement interface: existence and properties of interface object assert_equals: class string of HTMLDListElement expected "[object Function]" but got "[object HTMLDListElementConstructor]"
    25832626PASS HTMLDListElement interface object length
     2627PASS HTMLDListElement interface object name
    25842628PASS HTMLDListElement interface: existence and properties of interface prototype object
    25852629FAIL HTMLDListElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLDListElement.prototype.constructor is not writable expected true got false
     
    25892633FAIL HTMLDivElement interface: existence and properties of interface object assert_equals: class string of HTMLDivElement expected "[object Function]" but got "[object HTMLDivElementConstructor]"
    25902634PASS HTMLDivElement interface object length
     2635PASS HTMLDivElement interface object name
    25912636PASS HTMLDivElement interface: existence and properties of interface prototype object
    25922637FAIL HTMLDivElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLDivElement.prototype.constructor is not writable expected true got false
     
    25992644FAIL HTMLAnchorElement interface: existence and properties of interface object assert_equals: class string of HTMLAnchorElement expected "[object Function]" but got "[object HTMLAnchorElementConstructor]"
    26002645PASS HTMLAnchorElement interface object length
     2646PASS HTMLAnchorElement interface object name
    26012647PASS HTMLAnchorElement interface: existence and properties of interface prototype object
    26022648FAIL HTMLAnchorElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLAnchorElement.prototype.constructor is not writable expected true got false
     
    26362682}" did not throw
    26372683FAIL HTMLAnchorElement interface: attribute shape assert_throws: getting property on prototype object must throw TypeError function "function () {
     2684    [native code]
     2685}" did not throw
     2686FAIL HTMLAnchorElement interface: attribute href assert_throws: getting property on prototype object must throw TypeError function "function () {
     2687    [native code]
     2688}" did not throw
     2689FAIL HTMLAnchorElement interface: attribute origin assert_throws: getting property on prototype object must throw TypeError function "function () {
     2690    [native code]
     2691}" did not throw
     2692FAIL HTMLAnchorElement interface: attribute protocol assert_throws: getting property on prototype object must throw TypeError function "function () {
     2693    [native code]
     2694}" did not throw
     2695FAIL HTMLAnchorElement interface: attribute username assert_true: The prototype object must have a property "username" expected true got false
     2696FAIL HTMLAnchorElement interface: attribute password assert_true: The prototype object must have a property "password" expected true got false
     2697FAIL HTMLAnchorElement interface: attribute host assert_throws: getting property on prototype object must throw TypeError function "function () {
     2698    [native code]
     2699}" did not throw
     2700FAIL HTMLAnchorElement interface: attribute hostname assert_throws: getting property on prototype object must throw TypeError function "function () {
     2701    [native code]
     2702}" did not throw
     2703FAIL HTMLAnchorElement interface: attribute port assert_throws: getting property on prototype object must throw TypeError function "function () {
     2704    [native code]
     2705}" did not throw
     2706FAIL HTMLAnchorElement interface: attribute pathname assert_throws: getting property on prototype object must throw TypeError function "function () {
     2707    [native code]
     2708}" did not throw
     2709FAIL HTMLAnchorElement interface: attribute search assert_throws: getting property on prototype object must throw TypeError function "function () {
     2710    [native code]
     2711}" did not throw
     2712FAIL HTMLAnchorElement interface: attribute hash assert_throws: getting property on prototype object must throw TypeError function "function () {
    26382713    [native code]
    26392714}" did not throw
     
    26532728PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "rev" with the proper type (11)
    26542729PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "shape" with the proper type (12)
     2730PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "href" with the proper type (13)
     2731PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "origin" with the proper type (14)
     2732PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "protocol" with the proper type (15)
     2733FAIL HTMLAnchorElement interface: document.createElement("a") must inherit property "username" with the proper type (16) assert_inherits: property "username" not found in prototype chain
     2734FAIL HTMLAnchorElement interface: document.createElement("a") must inherit property "password" with the proper type (17) assert_inherits: property "password" not found in prototype chain
     2735PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "host" with the proper type (18)
     2736PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "hostname" with the proper type (19)
     2737PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "port" with the proper type (20)
     2738PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "pathname" with the proper type (21)
     2739PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "search" with the proper type (22)
     2740PASS HTMLAnchorElement interface: document.createElement("a") must inherit property "hash" with the proper type (23)
    26552741FAIL HTMLDataElement interface: existence and properties of interface object assert_own_property: self does not have own property "HTMLDataElement" expected property "HTMLDataElement" missing
    26562742FAIL HTMLDataElement interface object length assert_own_property: self does not have own property "HTMLDataElement" expected property "HTMLDataElement" missing
     2743FAIL HTMLDataElement interface object name assert_own_property: self does not have own property "HTMLDataElement" expected property "HTMLDataElement" missing
    26572744FAIL HTMLDataElement interface: existence and properties of interface prototype object assert_own_property: self does not have own property "HTMLDataElement" expected property "HTMLDataElement" missing
    26582745FAIL HTMLDataElement interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "HTMLDataElement" expected property "HTMLDataElement" missing
     
    26632750FAIL HTMLTimeElement interface: existence and properties of interface object assert_equals: class string of HTMLTimeElement expected "[object Function]" but got "[object HTMLTimeElementConstructor]"
    26642751PASS HTMLTimeElement interface object length
     2752PASS HTMLTimeElement interface object name
    26652753PASS HTMLTimeElement interface: existence and properties of interface prototype object
    26662754FAIL HTMLTimeElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTimeElement.prototype.constructor is not writable expected true got false
     
    26732761FAIL HTMLSpanElement interface: existence and properties of interface object assert_equals: class string of HTMLSpanElement expected "[object Function]" but got "[object HTMLSpanElementConstructor]"
    26742762PASS HTMLSpanElement interface object length
     2763PASS HTMLSpanElement interface object name
    26752764PASS HTMLSpanElement interface: existence and properties of interface prototype object
    26762765FAIL HTMLSpanElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLSpanElement.prototype.constructor is not writable expected true got false
     
    26792768FAIL HTMLBRElement interface: existence and properties of interface object assert_equals: class string of HTMLBRElement expected "[object Function]" but got "[object HTMLBRElementConstructor]"
    26802769PASS HTMLBRElement interface object length
     2770PASS HTMLBRElement interface object name
    26812771PASS HTMLBRElement interface: existence and properties of interface prototype object
    26822772FAIL HTMLBRElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLBRElement.prototype.constructor is not writable expected true got false
     
    26892779FAIL HTMLModElement interface: existence and properties of interface object assert_equals: class string of HTMLModElement expected "[object Function]" but got "[object HTMLModElementConstructor]"
    26902780PASS HTMLModElement interface object length
     2781PASS HTMLModElement interface object name
    26912782PASS HTMLModElement interface: existence and properties of interface prototype object
    26922783FAIL HTMLModElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLModElement.prototype.constructor is not writable expected true got false
     
    27072798FAIL HTMLPictureElement interface: existence and properties of interface object assert_equals: class string of HTMLPictureElement expected "[object Function]" but got "[object HTMLPictureElementConstructor]"
    27082799PASS HTMLPictureElement interface object length
     2800PASS HTMLPictureElement interface object name
    27092801PASS HTMLPictureElement interface: existence and properties of interface prototype object
    27102802FAIL HTMLPictureElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLPictureElement.prototype.constructor is not writable expected true got false
     
    27132805FAIL HTMLImageElement interface: existence and properties of interface object assert_equals: class string of HTMLImageElement expected "[object Function]" but got "[object HTMLImageElementConstructor]"
    27142806PASS HTMLImageElement interface object length
     2807PASS HTMLImageElement interface object name
    27152808PASS HTMLImageElement interface: existence and properties of interface prototype object
    27162809FAIL HTMLImageElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLImageElement.prototype.constructor is not writable expected true got false
     
    28212914FAIL HTMLIFrameElement interface: existence and properties of interface object assert_equals: class string of HTMLIFrameElement expected "[object Function]" but got "[object HTMLIFrameElementConstructor]"
    28222915PASS HTMLIFrameElement interface object length
     2916PASS HTMLIFrameElement interface object name
    28232917PASS HTMLIFrameElement interface: existence and properties of interface prototype object
    28242918FAIL HTMLIFrameElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLIFrameElement.prototype.constructor is not writable expected true got false
     
    28672961FAIL HTMLEmbedElement interface: existence and properties of interface object assert_equals: class string of HTMLEmbedElement expected "[object Function]" but got "[object HTMLEmbedElementConstructor]"
    28682962PASS HTMLEmbedElement interface object length
     2963PASS HTMLEmbedElement interface object name
    28692964PASS HTMLEmbedElement interface: existence and properties of interface prototype object
    28702965FAIL HTMLEmbedElement interface: existence and properties of interface prototype object's "constructor" property assert_own_property: HTMLEmbedElement.prototype does not have own property "constructor" expected property "constructor" missing
     
    28992994FAIL HTMLObjectElement interface: existence and properties of interface object assert_equals: class string of HTMLObjectElement expected "[object Function]" but got "[object HTMLObjectElementConstructor]"
    29002995PASS HTMLObjectElement interface object length
     2996PASS HTMLObjectElement interface object name
    29012997PASS HTMLObjectElement interface: existence and properties of interface prototype object
    29022998FAIL HTMLObjectElement interface: existence and properties of interface prototype object's "constructor" property assert_own_property: HTMLObjectElement.prototype does not have own property "constructor" expected property "constructor" missing
     
    29983094FAIL HTMLParamElement interface: existence and properties of interface object assert_equals: class string of HTMLParamElement expected "[object Function]" but got "[object HTMLParamElementConstructor]"
    29993095PASS HTMLParamElement interface object length
     3096PASS HTMLParamElement interface object name
    30003097PASS HTMLParamElement interface: existence and properties of interface prototype object
    30013098FAIL HTMLParamElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLParamElement.prototype.constructor is not writable expected true got false
     
    30203117FAIL HTMLVideoElement interface: existence and properties of interface object assert_equals: class string of HTMLVideoElement expected "[object Function]" but got "[object HTMLVideoElementConstructor]"
    30213118PASS HTMLVideoElement interface object length
     3119PASS HTMLVideoElement interface object name
    30223120PASS HTMLVideoElement interface: existence and properties of interface prototype object
    30233121FAIL HTMLVideoElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLVideoElement.prototype.constructor is not writable expected true got false
     
    30953193FAIL HTMLAudioElement interface: existence and properties of interface object assert_equals: class string of HTMLAudioElement expected "[object Function]" but got "[object HTMLAudioElementConstructor]"
    30963194PASS HTMLAudioElement interface object length
     3195PASS HTMLAudioElement interface object name
    30973196PASS HTMLAudioElement interface: existence and properties of interface prototype object
    30983197FAIL HTMLAudioElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLAudioElement.prototype.constructor is not writable expected true got false
     
    32013300FAIL HTMLSourceElement interface: existence and properties of interface object assert_equals: class string of HTMLSourceElement expected "[object Function]" but got "[object HTMLSourceElementConstructor]"
    32023301PASS HTMLSourceElement interface object length
     3302PASS HTMLSourceElement interface object name
    32033303PASS HTMLSourceElement interface: existence and properties of interface prototype object
    32043304FAIL HTMLSourceElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLSourceElement.prototype.constructor is not writable expected true got false
     
    32233323FAIL HTMLTrackElement interface: existence and properties of interface object assert_equals: class string of HTMLTrackElement expected "[object Function]" but got "[object HTMLTrackElementConstructor]"
    32243324PASS HTMLTrackElement interface object length
     3325PASS HTMLTrackElement interface object name
    32253326PASS HTMLTrackElement interface: existence and properties of interface prototype object
    32263327FAIL HTMLTrackElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTrackElement.prototype.constructor is not writable expected true got false
     
    32693370FAIL HTMLMediaElement interface: existence and properties of interface object assert_equals: class string of HTMLMediaElement expected "[object Function]" but got "[object HTMLMediaElementConstructor]"
    32703371PASS HTMLMediaElement interface object length
     3372PASS HTMLMediaElement interface object name
    32713373PASS HTMLMediaElement interface: existence and properties of interface prototype object
    32723374FAIL HTMLMediaElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLMediaElement.prototype.constructor is not writable expected true got false
     
    33783480FAIL MediaError interface: existence and properties of interface object assert_equals: class string of MediaError expected "[object Function]" but got "[object MediaErrorConstructor]"
    33793481PASS MediaError interface object length
     3482PASS MediaError interface object name
    33803483PASS MediaError interface: existence and properties of interface prototype object
    33813484FAIL MediaError interface: existence and properties of interface prototype object's "constructor" property assert_true: MediaError.prototype.constructor is not writable expected true got false
     
    33983501FAIL AudioTrackList interface: existence and properties of interface object assert_own_property: self does not have own property "AudioTrackList" expected property "AudioTrackList" missing
    33993502FAIL AudioTrackList interface object length assert_own_property: self does not have own property "AudioTrackList" expected property "AudioTrackList" missing
     3503FAIL AudioTrackList interface object name assert_own_property: self does not have own property "AudioTrackList" expected property "AudioTrackList" missing
    34003504FAIL AudioTrackList interface: existence and properties of interface prototype object assert_own_property: self does not have own property "AudioTrackList" expected property "AudioTrackList" missing
    34013505FAIL AudioTrackList interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "AudioTrackList" expected property "AudioTrackList" missing
     
    34073511FAIL AudioTrack interface: existence and properties of interface object assert_own_property: self does not have own property "AudioTrack" expected property "AudioTrack" missing
    34083512FAIL AudioTrack interface object length assert_own_property: self does not have own property "AudioTrack" expected property "AudioTrack" missing
     3513FAIL AudioTrack interface object name assert_own_property: self does not have own property "AudioTrack" expected property "AudioTrack" missing
    34093514FAIL AudioTrack interface: existence and properties of interface prototype object assert_own_property: self does not have own property "AudioTrack" expected property "AudioTrack" missing
    34103515FAIL AudioTrack interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "AudioTrack" expected property "AudioTrack" missing
     
    34163521FAIL VideoTrackList interface: existence and properties of interface object assert_own_property: self does not have own property "VideoTrackList" expected property "VideoTrackList" missing
    34173522FAIL VideoTrackList interface object length assert_own_property: self does not have own property "VideoTrackList" expected property "VideoTrackList" missing
     3523FAIL VideoTrackList interface object name assert_own_property: self does not have own property "VideoTrackList" expected property "VideoTrackList" missing
    34183524FAIL VideoTrackList interface: existence and properties of interface prototype object assert_own_property: self does not have own property "VideoTrackList" expected property "VideoTrackList" missing
    34193525FAIL VideoTrackList interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "VideoTrackList" expected property "VideoTrackList" missing
     
    34263532FAIL VideoTrack interface: existence and properties of interface object assert_own_property: self does not have own property "VideoTrack" expected property "VideoTrack" missing
    34273533FAIL VideoTrack interface object length assert_own_property: self does not have own property "VideoTrack" expected property "VideoTrack" missing
     3534FAIL VideoTrack interface object name assert_own_property: self does not have own property "VideoTrack" expected property "VideoTrack" missing
    34283535FAIL VideoTrack interface: existence and properties of interface prototype object assert_own_property: self does not have own property "VideoTrack" expected property "VideoTrack" missing
    34293536FAIL VideoTrack interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "VideoTrack" expected property "VideoTrack" missing
     
    34353542FAIL MediaController interface: existence and properties of interface object assert_equals: class string of MediaController expected "[object Function]" but got "[object MediaControllerConstructor]"
    34363543PASS MediaController interface object length
     3544PASS MediaController interface object name
    34373545FAIL MediaController interface: existence and properties of interface prototype object assert_equals: prototype of MediaController.prototype is not EventTarget.prototype expected object "[object EventTargetPrototype]" but got object "[object Object]"
    34383546FAIL MediaController interface: existence and properties of interface prototype object's "constructor" property assert_true: MediaController.prototype.constructor is not writable expected true got false
     
    35313639FAIL TextTrackList interface: existence and properties of interface object assert_equals: class string of TextTrackList expected "[object Function]" but got "[object TextTrackListConstructor]"
    35323640PASS TextTrackList interface object length
     3641PASS TextTrackList interface object name
    35333642FAIL TextTrackList interface: existence and properties of interface prototype object assert_equals: prototype of TextTrackList.prototype is not EventTarget.prototype expected object "[object EventTargetPrototype]" but got object "[object Object]"
    35343643FAIL TextTrackList interface: existence and properties of interface prototype object's "constructor" property assert_own_property: TextTrackList.prototype does not have own property "constructor" expected property "constructor" missing
     
    35583667FAIL TextTrack interface: existence and properties of interface object assert_equals: class string of TextTrack expected "[object Function]" but got "[object TextTrackConstructor]"
    35593668PASS TextTrack interface object length
     3669PASS TextTrack interface object name
    35603670FAIL TextTrack interface: existence and properties of interface prototype object assert_equals: prototype of TextTrack.prototype is not EventTarget.prototype expected object "[object EventTargetPrototype]" but got object "[object Object]"
    35613671FAIL TextTrack interface: existence and properties of interface prototype object's "constructor" property assert_true: TextTrack.prototype.constructor is not writable expected true got false
     
    36123722FAIL TextTrackCueList interface: existence and properties of interface object assert_equals: class string of TextTrackCueList expected "[object Function]" but got "[object TextTrackCueListConstructor]"
    36133723PASS TextTrackCueList interface object length
     3724PASS TextTrackCueList interface object name
    36143725PASS TextTrackCueList interface: existence and properties of interface prototype object
    36153726FAIL TextTrackCueList interface: existence and properties of interface prototype object's "constructor" property assert_own_property: TextTrackCueList.prototype does not have own property "constructor" expected property "constructor" missing
     
    36233734FAIL TextTrackCue interface: existence and properties of interface object assert_equals: class string of TextTrackCue expected "[object Function]" but got "[object TextTrackCueConstructor]"
    36243735FAIL TextTrackCue interface object length assert_equals: wrong value for TextTrackCue.length expected 0 but got 3
     3736PASS TextTrackCue interface object name
    36253737FAIL TextTrackCue interface: existence and properties of interface prototype object assert_equals: prototype of TextTrackCue.prototype is not EventTarget.prototype expected object "[object EventTargetPrototype]" but got object "[object Object]"
    36263738FAIL TextTrackCue interface: existence and properties of interface prototype object's "constructor" property assert_true: TextTrackCue.prototype.constructor is not writable expected true got false
     
    36483760FAIL TimeRanges interface: existence and properties of interface object assert_equals: class string of TimeRanges expected "[object Function]" but got "[object TimeRangesConstructor]"
    36493761PASS TimeRanges interface object length
     3762PASS TimeRanges interface object name
    36503763PASS TimeRanges interface: existence and properties of interface prototype object
    36513764FAIL TimeRanges interface: existence and properties of interface prototype object's "constructor" property assert_true: TimeRanges.prototype.constructor is not writable expected true got false
     
    36623775FAIL TrackEvent interface: existence and properties of interface object assert_equals: class string of TrackEvent expected "[object Function]" but got "[object TrackEventConstructor]"
    36633776PASS TrackEvent interface object length
     3777PASS TrackEvent interface object name
    36643778PASS TrackEvent interface: existence and properties of interface prototype object
    36653779FAIL TrackEvent interface: existence and properties of interface prototype object's "constructor" property assert_true: TrackEvent.prototype.constructor is not writable expected true got false
     
    36883802FAIL HTMLMapElement interface: existence and properties of interface object assert_equals: class string of HTMLMapElement expected "[object Function]" but got "[object HTMLMapElementConstructor]"
    36893803PASS HTMLMapElement interface object length
     3804PASS HTMLMapElement interface object name
    36903805PASS HTMLMapElement interface: existence and properties of interface prototype object
    36913806FAIL HTMLMapElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLMapElement.prototype.constructor is not writable expected true got false
     
    37043819FAIL HTMLAreaElement interface: existence and properties of interface object assert_equals: class string of HTMLAreaElement expected "[object Function]" but got "[object HTMLAreaElementConstructor]"
    37053820PASS HTMLAreaElement interface object length
     3821PASS HTMLAreaElement interface object name
    37063822PASS HTMLAreaElement interface: existence and properties of interface prototype object
    37073823FAIL HTMLAreaElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLAreaElement.prototype.constructor is not writable expected true got false
     
    37283844    [native code]
    37293845}" did not throw
    3730 FAIL HTMLAreaElement interface: attribute hreflang assert_true: The prototype object must have a property "hreflang" expected true got false
    3731 FAIL HTMLAreaElement interface: attribute type assert_true: The prototype object must have a property "type" expected true got false
    37323846FAIL HTMLAreaElement interface: attribute noHref assert_throws: getting property on prototype object must throw TypeError function "function () {
     3847    [native code]
     3848}" did not throw
     3849FAIL HTMLAreaElement interface: attribute href assert_throws: getting property on prototype object must throw TypeError function "function () {
     3850    [native code]
     3851}" did not throw
     3852FAIL HTMLAreaElement interface: attribute origin assert_true: The prototype object must have a property "origin" expected true got false
     3853FAIL HTMLAreaElement interface: attribute protocol assert_throws: getting property on prototype object must throw TypeError function "function () {
     3854    [native code]
     3855}" did not throw
     3856FAIL HTMLAreaElement interface: attribute username assert_true: The prototype object must have a property "username" expected true got false
     3857FAIL HTMLAreaElement interface: attribute password assert_true: The prototype object must have a property "password" expected true got false
     3858FAIL HTMLAreaElement interface: attribute host assert_throws: getting property on prototype object must throw TypeError function "function () {
     3859    [native code]
     3860}" did not throw
     3861FAIL HTMLAreaElement interface: attribute hostname assert_throws: getting property on prototype object must throw TypeError function "function () {
     3862    [native code]
     3863}" did not throw
     3864FAIL HTMLAreaElement interface: attribute port assert_throws: getting property on prototype object must throw TypeError function "function () {
     3865    [native code]
     3866}" did not throw
     3867FAIL HTMLAreaElement interface: attribute pathname assert_throws: getting property on prototype object must throw TypeError function "function () {
     3868    [native code]
     3869}" did not throw
     3870FAIL HTMLAreaElement interface: attribute search assert_throws: getting property on prototype object must throw TypeError function "function () {
     3871    [native code]
     3872}" did not throw
     3873FAIL HTMLAreaElement interface: attribute hash assert_throws: getting property on prototype object must throw TypeError function "function () {
    37333874    [native code]
    37343875}" did not throw
     
    37433884PASS HTMLAreaElement interface: document.createElement("area") must inherit property "rel" with the proper type (6)
    37443885PASS HTMLAreaElement interface: document.createElement("area") must inherit property "relList" with the proper type (7)
    3745 FAIL HTMLAreaElement interface: document.createElement("area") must inherit property "hreflang" with the proper type (8) assert_inherits: property "hreflang" not found in prototype chain
    3746 FAIL HTMLAreaElement interface: document.createElement("area") must inherit property "type" with the proper type (9) assert_inherits: property "type" not found in prototype chain
    3747 PASS HTMLAreaElement interface: document.createElement("area") must inherit property "noHref" with the proper type (10)
     3886PASS HTMLAreaElement interface: document.createElement("area") must inherit property "noHref" with the proper type (8)
     3887PASS HTMLAreaElement interface: document.createElement("area") must inherit property "href" with the proper type (9)
     3888FAIL HTMLAreaElement interface: document.createElement("area") must inherit property "origin" with the proper type (10) assert_inherits: property "origin" not found in prototype chain
     3889PASS HTMLAreaElement interface: document.createElement("area") must inherit property "protocol" with the proper type (11)
     3890FAIL HTMLAreaElement interface: document.createElement("area") must inherit property "username" with the proper type (12) assert_inherits: property "username" not found in prototype chain
     3891FAIL HTMLAreaElement interface: document.createElement("area") must inherit property "password" with the proper type (13) assert_inherits: property "password" not found in prototype chain
     3892PASS HTMLAreaElement interface: document.createElement("area") must inherit property "host" with the proper type (14)
     3893PASS HTMLAreaElement interface: document.createElement("area") must inherit property "hostname" with the proper type (15)
     3894PASS HTMLAreaElement interface: document.createElement("area") must inherit property "port" with the proper type (16)
     3895PASS HTMLAreaElement interface: document.createElement("area") must inherit property "pathname" with the proper type (17)
     3896PASS HTMLAreaElement interface: document.createElement("area") must inherit property "search" with the proper type (18)
     3897PASS HTMLAreaElement interface: document.createElement("area") must inherit property "hash" with the proper type (19)
    37483898FAIL HTMLTableElement interface: existence and properties of interface object assert_equals: class string of HTMLTableElement expected "[object Function]" but got "[object HTMLTableElementConstructor]"
    37493899PASS HTMLTableElement interface object length
     3900PASS HTMLTableElement interface object name
    37503901PASS HTMLTableElement interface: existence and properties of interface prototype object
    37513902FAIL HTMLTableElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTableElement.prototype.constructor is not writable expected true got false
     
    38363987FAIL HTMLTableCaptionElement interface: existence and properties of interface object assert_equals: class string of HTMLTableCaptionElement expected "[object Function]" but got "[object HTMLTableCaptionElementConstructor]"
    38373988PASS HTMLTableCaptionElement interface object length
     3989PASS HTMLTableCaptionElement interface object name
    38383990PASS HTMLTableCaptionElement interface: existence and properties of interface prototype object
    38393991FAIL HTMLTableCaptionElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTableCaptionElement.prototype.constructor is not writable expected true got false
     
    38463998FAIL HTMLTableColElement interface: existence and properties of interface object assert_equals: class string of HTMLTableColElement expected "[object Function]" but got "[object HTMLTableColElementConstructor]"
    38473999PASS HTMLTableColElement interface object length
     4000PASS HTMLTableColElement interface object name
    38484001PASS HTMLTableColElement interface: existence and properties of interface prototype object
    38494002FAIL HTMLTableColElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTableColElement.prototype.constructor is not writable expected true got false
     
    38844037FAIL HTMLTableSectionElement interface: existence and properties of interface object assert_equals: class string of HTMLTableSectionElement expected "[object Function]" but got "[object HTMLTableSectionElementConstructor]"
    38854038PASS HTMLTableSectionElement interface object length
     4039PASS HTMLTableSectionElement interface object name
    38864040PASS HTMLTableSectionElement interface: existence and properties of interface prototype object
    38874041FAIL HTMLTableSectionElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTableSectionElement.prototype.constructor is not writable expected true got false
     
    39444098FAIL HTMLTableRowElement interface: existence and properties of interface object assert_equals: class string of HTMLTableRowElement expected "[object Function]" but got "[object HTMLTableRowElementConstructor]"
    39454099PASS HTMLTableRowElement interface object length
     4100PASS HTMLTableRowElement interface object name
    39464101PASS HTMLTableRowElement interface: existence and properties of interface prototype object
    39474102FAIL HTMLTableRowElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTableRowElement.prototype.constructor is not writable expected true got false
     
    39904145FAIL HTMLTableDataCellElement interface: existence and properties of interface object assert_equals: class string of HTMLTableDataCellElement expected "[object Function]" but got "[object HTMLTableDataCellElementConstructor]"
    39914146PASS HTMLTableDataCellElement interface object length
     4147PASS HTMLTableDataCellElement interface object name
    39924148PASS HTMLTableDataCellElement interface: existence and properties of interface prototype object
    39934149FAIL HTMLTableDataCellElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTableDataCellElement.prototype.constructor is not writable expected true got false
     
    40134169FAIL HTMLTableHeaderCellElement interface: existence and properties of interface object assert_equals: class string of HTMLTableHeaderCellElement expected "[object Function]" but got "[object HTMLTableHeaderCellElementConstructor]"
    40144170PASS HTMLTableHeaderCellElement interface object length
     4171PASS HTMLTableHeaderCellElement interface object name
    40154172PASS HTMLTableHeaderCellElement interface: existence and properties of interface prototype object
    40164173FAIL HTMLTableHeaderCellElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTableHeaderCellElement.prototype.constructor is not writable expected true got false
     
    40444201FAIL HTMLTableCellElement interface: existence and properties of interface object assert_equals: class string of HTMLTableCellElement expected "[object Function]" but got "[object HTMLTableCellElementConstructor]"
    40454202PASS HTMLTableCellElement interface object length
     4203PASS HTMLTableCellElement interface object name
    40464204PASS HTMLTableCellElement interface: existence and properties of interface prototype object
    40474205FAIL HTMLTableCellElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTableCellElement.prototype.constructor is not writable expected true got false
     
    40874245FAIL HTMLFormElement interface: existence and properties of interface object assert_equals: class string of HTMLFormElement expected "[object Function]" but got "[object HTMLFormElementConstructor]"
    40884246PASS HTMLFormElement interface object length
     4247PASS HTMLFormElement interface object name
    40894248PASS HTMLFormElement interface: existence and properties of interface prototype object
    40904249FAIL HTMLFormElement interface: existence and properties of interface prototype object's "constructor" property assert_own_property: HTMLFormElement.prototype does not have own property "constructor" expected property "constructor" missing
     
    41254284FAIL HTMLLabelElement interface: existence and properties of interface object assert_equals: class string of HTMLLabelElement expected "[object Function]" but got "[object HTMLLabelElementConstructor]"
    41264285PASS HTMLLabelElement interface object length
     4286PASS HTMLLabelElement interface object name
    41274287PASS HTMLLabelElement interface: existence and properties of interface prototype object
    41284288FAIL HTMLLabelElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLLabelElement.prototype.constructor is not writable expected true got false
     
    41434303FAIL HTMLInputElement interface: existence and properties of interface object assert_equals: class string of HTMLInputElement expected "[object Function]" but got "[object HTMLInputElementConstructor]"
    41444304PASS HTMLInputElement interface object length
     4305PASS HTMLInputElement interface object name
    41454306PASS HTMLInputElement interface: existence and properties of interface prototype object
    41464307FAIL HTMLInputElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLInputElement.prototype.constructor is not writable expected true got false
     
    43554516FAIL HTMLButtonElement interface: existence and properties of interface object assert_equals: class string of HTMLButtonElement expected "[object Function]" but got "[object HTMLButtonElementConstructor]"
    43564517PASS HTMLButtonElement interface object length
     4518PASS HTMLButtonElement interface object name
    43574519PASS HTMLButtonElement interface: existence and properties of interface prototype object
    43584520FAIL HTMLButtonElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLButtonElement.prototype.constructor is not writable expected true got false
     
    44304592FAIL HTMLSelectElement interface: existence and properties of interface object assert_equals: class string of HTMLSelectElement expected "[object Function]" but got "[object HTMLSelectElementConstructor]"
    44314593PASS HTMLSelectElement interface object length
     4594PASS HTMLSelectElement interface object name
    44324595PASS HTMLSelectElement interface: existence and properties of interface prototype object
    44334596FAIL HTMLSelectElement interface: existence and properties of interface prototype object's "constructor" property assert_own_property: HTMLSelectElement.prototype does not have own property "constructor" expected property "constructor" missing
     
    45294692FAIL HTMLDataListElement interface: existence and properties of interface object assert_own_property: self does not have own property "HTMLDataListElement" expected property "HTMLDataListElement" missing
    45304693FAIL HTMLDataListElement interface object length assert_own_property: self does not have own property "HTMLDataListElement" expected property "HTMLDataListElement" missing
     4694FAIL HTMLDataListElement interface object name assert_own_property: self does not have own property "HTMLDataListElement" expected property "HTMLDataListElement" missing
    45314695FAIL HTMLDataListElement interface: existence and properties of interface prototype object assert_own_property: self does not have own property "HTMLDataListElement" expected property "HTMLDataListElement" missing
    45324696FAIL HTMLDataListElement interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "HTMLDataListElement" expected property "HTMLDataListElement" missing
     
    45374701FAIL HTMLOptGroupElement interface: existence and properties of interface object assert_equals: class string of HTMLOptGroupElement expected "[object Function]" but got "[object HTMLOptGroupElementConstructor]"
    45384702PASS HTMLOptGroupElement interface object length
     4703PASS HTMLOptGroupElement interface object name
    45394704PASS HTMLOptGroupElement interface: existence and properties of interface prototype object
    45404705FAIL HTMLOptGroupElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLOptGroupElement.prototype.constructor is not writable expected true got false
     
    45514716FAIL HTMLOptionElement interface: existence and properties of interface object assert_equals: class string of HTMLOptionElement expected "[object Function]" but got "[object HTMLOptionElementConstructor]"
    45524717PASS HTMLOptionElement interface object length
     4718PASS HTMLOptionElement interface object name
    45534719PASS HTMLOptionElement interface: existence and properties of interface prototype object
    45544720FAIL HTMLOptionElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLOptionElement.prototype.constructor is not writable expected true got false
     
    45994765FAIL HTMLTextAreaElement interface: existence and properties of interface object assert_equals: class string of HTMLTextAreaElement expected "[object Function]" but got "[object HTMLTextAreaElementConstructor]"
    46004766PASS HTMLTextAreaElement interface object length
     4767PASS HTMLTextAreaElement interface object name
    46014768PASS HTMLTextAreaElement interface: existence and properties of interface prototype object
    46024769FAIL HTMLTextAreaElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTextAreaElement.prototype.constructor is not writable expected true got false
     
    47254892FAIL HTMLKeygenElement interface: existence and properties of interface object assert_equals: class string of HTMLKeygenElement expected "[object Function]" but got "[object HTMLKeygenElementConstructor]"
    47264893PASS HTMLKeygenElement interface object length
     4894PASS HTMLKeygenElement interface object name
    47274895PASS HTMLKeygenElement interface: existence and properties of interface prototype object
    47284896FAIL HTMLKeygenElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLKeygenElement.prototype.constructor is not writable expected true got false
     
    47824950FAIL HTMLOutputElement interface: existence and properties of interface object assert_equals: class string of HTMLOutputElement expected "[object Function]" but got "[object HTMLOutputElementConstructor]"
    47834951PASS HTMLOutputElement interface object length
     4952PASS HTMLOutputElement interface object name
    47844953PASS HTMLOutputElement interface: existence and properties of interface prototype object
    47854954FAIL HTMLOutputElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLOutputElement.prototype.constructor is not writable expected true got false
     
    48355004FAIL HTMLProgressElement interface: existence and properties of interface object assert_equals: class string of HTMLProgressElement expected "[object Function]" but got "[object HTMLProgressElementConstructor]"
    48365005PASS HTMLProgressElement interface object length
     5006PASS HTMLProgressElement interface object name
    48375007PASS HTMLProgressElement interface: existence and properties of interface prototype object
    48385008FAIL HTMLProgressElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLProgressElement.prototype.constructor is not writable expected true got false
     
    48575027FAIL HTMLMeterElement interface: existence and properties of interface object assert_equals: class string of HTMLMeterElement expected "[object Function]" but got "[object HTMLMeterElementConstructor]"
    48585028PASS HTMLMeterElement interface object length
     5029PASS HTMLMeterElement interface object name
    48595030PASS HTMLMeterElement interface: existence and properties of interface prototype object
    48605031FAIL HTMLMeterElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLMeterElement.prototype.constructor is not writable expected true got false
     
    48915062FAIL HTMLFieldSetElement interface: existence and properties of interface object assert_equals: class string of HTMLFieldSetElement expected "[object Function]" but got "[object HTMLFieldSetElementConstructor]"
    48925063PASS HTMLFieldSetElement interface object length
     5064PASS HTMLFieldSetElement interface object name
    48935065PASS HTMLFieldSetElement interface: existence and properties of interface prototype object
    48945066FAIL HTMLFieldSetElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLFieldSetElement.prototype.constructor is not writable expected true got false
     
    49225094FAIL HTMLLegendElement interface: existence and properties of interface object assert_equals: class string of HTMLLegendElement expected "[object Function]" but got "[object HTMLLegendElementConstructor]"
    49235095PASS HTMLLegendElement interface object length
     5096PASS HTMLLegendElement interface object name
    49245097PASS HTMLLegendElement interface: existence and properties of interface prototype object
    49255098FAIL HTMLLegendElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLLegendElement.prototype.constructor is not writable expected true got false
     
    49365109FAIL AutocompleteErrorEvent interface: existence and properties of interface object assert_own_property: self does not have own property "AutocompleteErrorEvent" expected property "AutocompleteErrorEvent" missing
    49375110FAIL AutocompleteErrorEvent interface object length assert_own_property: self does not have own property "AutocompleteErrorEvent" expected property "AutocompleteErrorEvent" missing
     5111FAIL AutocompleteErrorEvent interface object name assert_own_property: self does not have own property "AutocompleteErrorEvent" expected property "AutocompleteErrorEvent" missing
    49385112FAIL AutocompleteErrorEvent interface: existence and properties of interface prototype object assert_own_property: self does not have own property "AutocompleteErrorEvent" expected property "AutocompleteErrorEvent" missing
    49395113FAIL AutocompleteErrorEvent interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "AutocompleteErrorEvent" expected property "AutocompleteErrorEvent" missing
     
    49415115FAIL ValidityState interface: existence and properties of interface object assert_own_property: self does not have own property "ValidityState" expected property "ValidityState" missing
    49425116FAIL ValidityState interface object length assert_own_property: self does not have own property "ValidityState" expected property "ValidityState" missing
     5117FAIL ValidityState interface object name assert_own_property: self does not have own property "ValidityState" expected property "ValidityState" missing
    49435118FAIL ValidityState interface: existence and properties of interface prototype object assert_own_property: self does not have own property "ValidityState" expected property "ValidityState" missing
    49445119FAIL ValidityState interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "ValidityState" expected property "ValidityState" missing
     
    49695144FAIL HTMLDetailsElement interface: existence and properties of interface object assert_equals: class string of HTMLDetailsElement expected "[object Function]" but got "[object HTMLDetailsElementConstructor]"
    49705145PASS HTMLDetailsElement interface object length
     5146PASS HTMLDetailsElement interface object name
    49715147PASS HTMLDetailsElement interface: existence and properties of interface prototype object
    49725148FAIL HTMLDetailsElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLDetailsElement.prototype.constructor is not writable expected true got false
     
    49795155FAIL HTMLMenuElement interface: existence and properties of interface object assert_equals: class string of HTMLMenuElement expected "[object Function]" but got "[object HTMLMenuElementConstructor]"
    49805156PASS HTMLMenuElement interface object length
     5157PASS HTMLMenuElement interface object name
    49815158PASS HTMLMenuElement interface: existence and properties of interface prototype object
    49825159FAIL HTMLMenuElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLMenuElement.prototype.constructor is not writable expected true got false
     
    49935170FAIL HTMLMenuItemElement interface: existence and properties of interface object assert_own_property: self does not have own property "HTMLMenuItemElement" expected property "HTMLMenuItemElement" missing
    49945171FAIL HTMLMenuItemElement interface object length assert_own_property: self does not have own property "HTMLMenuItemElement" expected property "HTMLMenuItemElement" missing
     5172FAIL HTMLMenuItemElement interface object name assert_own_property: self does not have own property "HTMLMenuItemElement" expected property "HTMLMenuItemElement" missing
    49955173FAIL HTMLMenuItemElement interface: existence and properties of interface prototype object assert_own_property: self does not have own property "HTMLMenuItemElement" expected property "HTMLMenuItemElement" missing
    49965174FAIL HTMLMenuItemElement interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "HTMLMenuItemElement" expected property "HTMLMenuItemElement" missing
     
    50055183FAIL RelatedEvent interface: existence and properties of interface object assert_own_property: self does not have own property "RelatedEvent" expected property "RelatedEvent" missing
    50065184FAIL RelatedEvent interface object length assert_own_property: self does not have own property "RelatedEvent" expected property "RelatedEvent" missing
     5185FAIL RelatedEvent interface object name assert_own_property: self does not have own property "RelatedEvent" expected property "RelatedEvent" missing
    50075186FAIL RelatedEvent interface: existence and properties of interface prototype object assert_own_property: self does not have own property "RelatedEvent" expected property "RelatedEvent" missing
    50085187FAIL RelatedEvent interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "RelatedEvent" expected property "RelatedEvent" missing
     
    50105189FAIL HTMLDialogElement interface: existence and properties of interface object assert_own_property: self does not have own property "HTMLDialogElement" expected property "HTMLDialogElement" missing
    50115190FAIL HTMLDialogElement interface object length assert_own_property: self does not have own property "HTMLDialogElement" expected property "HTMLDialogElement" missing
     5191FAIL HTMLDialogElement interface object name assert_own_property: self does not have own property "HTMLDialogElement" expected property "HTMLDialogElement" missing
    50125192FAIL HTMLDialogElement interface: existence and properties of interface prototype object assert_own_property: self does not have own property "HTMLDialogElement" expected property "HTMLDialogElement" missing
    50135193FAIL HTMLDialogElement interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "HTMLDialogElement" expected property "HTMLDialogElement" missing
     
    50195199FAIL HTMLScriptElement interface: existence and properties of interface object assert_equals: class string of HTMLScriptElement expected "[object Function]" but got "[object HTMLScriptElementConstructor]"
    50205200PASS HTMLScriptElement interface object length
     5201PASS HTMLScriptElement interface object name
    50215202PASS HTMLScriptElement interface: existence and properties of interface prototype object
    50225203FAIL HTMLScriptElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLScriptElement.prototype.constructor is not writable expected true got false
     
    50615242FAIL HTMLTemplateElement interface: existence and properties of interface object assert_equals: class string of HTMLTemplateElement expected "[object Function]" but got "[object HTMLTemplateElementConstructor]"
    50625243PASS HTMLTemplateElement interface object length
     5244PASS HTMLTemplateElement interface object name
    50635245PASS HTMLTemplateElement interface: existence and properties of interface prototype object
    50645246FAIL HTMLTemplateElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLTemplateElement.prototype.constructor is not writable expected true got false
     
    50665248FAIL HTMLCanvasElement interface: existence and properties of interface object assert_equals: class string of HTMLCanvasElement expected "[object Function]" but got "[object HTMLCanvasElementConstructor]"
    50675249PASS HTMLCanvasElement interface object length
     5250PASS HTMLCanvasElement interface object name
    50685251PASS HTMLCanvasElement interface: existence and properties of interface prototype object
    50695252FAIL HTMLCanvasElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLCanvasElement.prototype.constructor is not writable expected true got false
     
    51015284FAIL CanvasProxy interface: existence and properties of interface object assert_own_property: self does not have own property "CanvasProxy" expected property "CanvasProxy" missing
    51025285FAIL CanvasProxy interface object length assert_own_property: self does not have own property "CanvasProxy" expected property "CanvasProxy" missing
     5286FAIL CanvasProxy interface object name assert_own_property: self does not have own property "CanvasProxy" expected property "CanvasProxy" missing
    51035287FAIL CanvasProxy interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CanvasProxy" expected property "CanvasProxy" missing
    51045288FAIL CanvasProxy interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CanvasProxy" expected property "CanvasProxy" missing
     
    51065290FAIL CanvasRenderingContext2D interface: existence and properties of interface object assert_equals: class string of CanvasRenderingContext2D expected "[object Function]" but got "[object CanvasRenderingContext2DConstructor]"
    51075291FAIL CanvasRenderingContext2D interface object length assert_equals: wrong value for CanvasRenderingContext2D.length expected 1 but got 0
     5292PASS CanvasRenderingContext2D interface object name
    51085293FAIL CanvasRenderingContext2D interface: existence and properties of interface prototype object assert_equals: prototype of CanvasRenderingContext2D.prototype is not Object.prototype expected object "[object Object]" but got object "[object CanvasRenderingContextPrototype]"
    51095294FAIL CanvasRenderingContext2D interface: existence and properties of interface prototype object's "constructor" property assert_true: CanvasRenderingContext2D.prototype.constructor is not writable expected true got false
     
    53545539FAIL CanvasGradient interface: existence and properties of interface object assert_equals: class string of CanvasGradient expected "[object Function]" but got "[object CanvasGradientConstructor]"
    53555540PASS CanvasGradient interface object length
     5541PASS CanvasGradient interface object name
    53565542PASS CanvasGradient interface: existence and properties of interface prototype object
    53575543FAIL CanvasGradient interface: existence and properties of interface prototype object's "constructor" property assert_true: CanvasGradient.prototype.constructor is not writable expected true got false
     
    53595545FAIL CanvasPattern interface: existence and properties of interface object assert_equals: class string of CanvasPattern expected "[object Function]" but got "[object CanvasPatternConstructor]"
    53605546PASS CanvasPattern interface object length
     5547PASS CanvasPattern interface object name
    53615548PASS CanvasPattern interface: existence and properties of interface prototype object
    53625549FAIL CanvasPattern interface: existence and properties of interface prototype object's "constructor" property assert_true: CanvasPattern.prototype.constructor is not writable expected true got false
     
    53645551FAIL TextMetrics interface: existence and properties of interface object assert_equals: class string of TextMetrics expected "[object Function]" but got "[object TextMetricsConstructor]"
    53655552PASS TextMetrics interface object length
     5553PASS TextMetrics interface object name
    53665554PASS TextMetrics interface: existence and properties of interface prototype object
    53675555FAIL TextMetrics interface: existence and properties of interface prototype object's "constructor" property assert_true: TextMetrics.prototype.constructor is not writable expected true got false
     
    53825570FAIL ImageData interface: existence and properties of interface object assert_equals: class string of ImageData expected "[object Function]" but got "[object ImageDataConstructor]"
    53835571PASS ImageData interface object length
     5572PASS ImageData interface object name
    53845573PASS ImageData interface: existence and properties of interface prototype object
    53855574FAIL ImageData interface: existence and properties of interface prototype object's "constructor" property assert_true: ImageData.prototype.constructor is not writable expected true got false
     
    53935582FAIL DrawingStyle interface: existence and properties of interface object assert_own_property: self does not have own property "DrawingStyle" expected property "DrawingStyle" missing
    53945583FAIL DrawingStyle interface object length assert_own_property: self does not have own property "DrawingStyle" expected property "DrawingStyle" missing
     5584FAIL DrawingStyle interface object name assert_own_property: self does not have own property "DrawingStyle" expected property "DrawingStyle" missing
    53955585FAIL DrawingStyle interface: existence and properties of interface prototype object assert_own_property: self does not have own property "DrawingStyle" expected property "DrawingStyle" missing
    53965586FAIL DrawingStyle interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "DrawingStyle" expected property "DrawingStyle" missing
     
    54085598FAIL Path2D interface: existence and properties of interface object assert_equals: class string of Path2D expected "[object Function]" but got "[object Path2DConstructor]"
    54095599PASS Path2D interface object length
     5600PASS Path2D interface object name
    54105601PASS Path2D interface: existence and properties of interface prototype object
    54115602FAIL Path2D interface: existence and properties of interface prototype object's "constructor" property assert_true: Path2D.prototype.constructor is not writable expected true got false
     
    54285619FAIL DataTransfer interface: existence and properties of interface object assert_equals: class string of DataTransfer expected "[object Function]" but got "[object DataTransferConstructor]"
    54295620PASS DataTransfer interface object length
     5621PASS DataTransfer interface object name
    54305622PASS DataTransfer interface: existence and properties of interface prototype object
    54315623FAIL DataTransfer interface: existence and properties of interface prototype object's "constructor" property assert_true: DataTransfer.prototype.constructor is not writable expected true got false
     
    54475639FAIL DataTransferItemList interface: existence and properties of interface object assert_own_property: self does not have own property "DataTransferItemList" expected property "DataTransferItemList" missing
    54485640FAIL DataTransferItemList interface object length assert_own_property: self does not have own property "DataTransferItemList" expected property "DataTransferItemList" missing
     5641FAIL DataTransferItemList interface object name assert_own_property: self does not have own property "DataTransferItemList" expected property "DataTransferItemList" missing
    54495642FAIL DataTransferItemList interface: existence and properties of interface prototype object assert_own_property: self does not have own property "DataTransferItemList" expected property "DataTransferItemList" missing
    54505643FAIL DataTransferItemList interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "DataTransferItemList" expected property "DataTransferItemList" missing
     
    54565649FAIL DataTransferItem interface: existence and properties of interface object assert_own_property: self does not have own property "DataTransferItem" expected property "DataTransferItem" missing
    54575650FAIL DataTransferItem interface object length assert_own_property: self does not have own property "DataTransferItem" expected property "DataTransferItem" missing
     5651FAIL DataTransferItem interface object name assert_own_property: self does not have own property "DataTransferItem" expected property "DataTransferItem" missing
    54585652FAIL DataTransferItem interface: existence and properties of interface prototype object assert_own_property: self does not have own property "DataTransferItem" expected property "DataTransferItem" missing
    54595653FAIL DataTransferItem interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "DataTransferItem" expected property "DataTransferItem" missing
     
    54645658FAIL DragEvent interface: existence and properties of interface object assert_own_property: self does not have own property "DragEvent" expected property "DragEvent" missing
    54655659FAIL DragEvent interface object length assert_own_property: self does not have own property "DragEvent" expected property "DragEvent" missing
     5660FAIL DragEvent interface object name assert_own_property: self does not have own property "DragEvent" expected property "DragEvent" missing
    54665661FAIL DragEvent interface: existence and properties of interface prototype object assert_own_property: self does not have own property "DragEvent" expected property "DragEvent" missing
    54675662FAIL DragEvent interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "DragEvent" expected property "DragEvent" missing
     
    54695664FAIL Window interface: existence and properties of interface object assert_equals: class string of Window expected "[object Function]" but got "[object WindowConstructor]"
    54705665PASS Window interface object length
     5666PASS Window interface object name
    54715667FAIL Window interface: existence and properties of interface prototype object assert_equals: Class name for prototype of Window.prototype is not "WindowProperties" expected "[object WindowProperties]" but got "[object Object]"
    54725668FAIL Window interface: existence and properties of interface prototype object's "constructor" property assert_own_property: Window.prototype does not have own property "constructor" expected property "constructor" missing
     
    57445940FAIL BarProp interface: existence and properties of interface object assert_equals: class string of BarProp expected "[object Function]" but got "[object BarPropConstructor]"
    57455941PASS BarProp interface object length
     5942PASS BarProp interface object name
    57465943PASS BarProp interface: existence and properties of interface prototype object
    57475944FAIL BarProp interface: existence and properties of interface prototype object's "constructor" property assert_true: BarProp.prototype.constructor is not writable expected true got false
     
    57515948FAIL History interface: existence and properties of interface object assert_equals: class string of History expected "[object Function]" but got "[object HistoryConstructor]"
    57525949PASS History interface object length
     5950PASS History interface object name
    57535951PASS History interface: existence and properties of interface prototype object
    57545952FAIL History interface: existence and properties of interface prototype object's "constructor" property assert_own_property: History.prototype does not have own property "constructor" expected property "constructor" missing
     
    57785976FAIL Location interface: existence and properties of interface object assert_equals: class string of Location expected "[object Function]" but got "[object LocationConstructor]"
    57795977PASS Location interface object length
     5978PASS Location interface object name
    57805979PASS Location interface: existence and properties of interface prototype object
    57815980FAIL Location interface: existence and properties of interface prototype object's "constructor" property assert_own_property: Location.prototype does not have own property "constructor" expected property "constructor" missing
    57825981PASS Location must be primary interface of window.location
    57835982PASS Stringification of window.location
     5983FAIL Location interface: window.location must have own property "href" assert_equals: getter must be Function expected "function" but got "undefined"
     5984FAIL Location interface: window.location must have own property "origin" assert_equals: getter must be Function expected "function" but got "undefined"
     5985FAIL Location interface: window.location must have own property "protocol" assert_equals: getter must be Function expected "function" but got "undefined"
     5986FAIL Location interface: window.location must have own property "host" assert_equals: getter must be Function expected "function" but got "undefined"
     5987FAIL Location interface: window.location must have own property "hostname" assert_equals: getter must be Function expected "function" but got "undefined"
     5988FAIL Location interface: window.location must have own property "port" assert_equals: getter must be Function expected "function" but got "undefined"
     5989FAIL Location interface: window.location must have own property "pathname" assert_equals: getter must be Function expected "function" but got "undefined"
     5990FAIL Location interface: window.location must have own property "search" assert_equals: getter must be Function expected "function" but got "undefined"
     5991FAIL Location interface: window.location must have own property "hash" assert_equals: getter must be Function expected "function" but got "undefined"
    57845992FAIL Location interface: window.location must have own property "assign" assert_own_property: Doesn't have the unforgeable operation property expected property "assign" missing
    5785 FAIL Location interface: calling assign(DOMString) on window.location with too few arguments must throw TypeError assert_own_property: expected property "assign" missing
     5993FAIL Location interface: calling assign(USVString) on window.location with too few arguments must throw TypeError assert_own_property: expected property "assign" missing
    57865994FAIL Location interface: window.location must have own property "replace" assert_own_property: Doesn't have the unforgeable operation property expected property "replace" missing
    5787 FAIL Location interface: calling replace(DOMString) on window.location with too few arguments must throw TypeError assert_own_property: expected property "replace" missing
     5995FAIL Location interface: calling replace(USVString) on window.location with too few arguments must throw TypeError assert_own_property: expected property "replace" missing
    57885996FAIL Location interface: window.location must have own property "reload" assert_own_property: Doesn't have the unforgeable operation property expected property "reload" missing
     5997FAIL Location interface: window.location must have own property "ancestorOrigins" assert_equals: getter must be Function expected "function" but got "undefined"
    57895998FAIL PopStateEvent interface: existence and properties of interface object assert_equals: class string of PopStateEvent expected "[object Function]" but got "[object PopStateEventConstructor]"
    57905999PASS PopStateEvent interface object length
     6000PASS PopStateEvent interface object name
    57916001PASS PopStateEvent interface: existence and properties of interface prototype object
    57926002FAIL PopStateEvent interface: existence and properties of interface prototype object's "constructor" property assert_true: PopStateEvent.prototype.constructor is not writable expected true got false
     
    58176027FAIL HashChangeEvent interface: existence and properties of interface object assert_equals: class string of HashChangeEvent expected "[object Function]" but got "[object HashChangeEventConstructor]"
    58186028PASS HashChangeEvent interface object length
     6029PASS HashChangeEvent interface object name
    58196030PASS HashChangeEvent interface: existence and properties of interface prototype object
    58206031FAIL HashChangeEvent interface: existence and properties of interface prototype object's "constructor" property assert_true: HashChangeEvent.prototype.constructor is not writable expected true got false
     
    58276038FAIL PageTransitionEvent interface: existence and properties of interface object assert_equals: class string of PageTransitionEvent expected "[object Function]" but got "[object PageTransitionEventConstructor]"
    58286039PASS PageTransitionEvent interface object length
     6040PASS PageTransitionEvent interface object name
    58296041PASS PageTransitionEvent interface: existence and properties of interface prototype object
    58306042FAIL PageTransitionEvent interface: existence and properties of interface prototype object's "constructor" property assert_true: PageTransitionEvent.prototype.constructor is not writable expected true got false
     
    58346046FAIL BeforeUnloadEvent interface: existence and properties of interface object assert_equals: class string of BeforeUnloadEvent expected "[object Function]" but got "[object BeforeUnloadEventConstructor]"
    58356047PASS BeforeUnloadEvent interface object length
     6048PASS BeforeUnloadEvent interface object name
    58366049PASS BeforeUnloadEvent interface: existence and properties of interface prototype object
    58376050FAIL BeforeUnloadEvent interface: existence and properties of interface prototype object's "constructor" property assert_true: BeforeUnloadEvent.prototype.constructor is not writable expected true got false
     
    58416054FAIL ApplicationCache interface: existence and properties of interface object assert_own_property: self does not have own property "ApplicationCache" expected property "ApplicationCache" missing
    58426055FAIL ApplicationCache interface object length assert_own_property: self does not have own property "ApplicationCache" expected property "ApplicationCache" missing
     6056FAIL ApplicationCache interface object name assert_own_property: self does not have own property "ApplicationCache" expected property "ApplicationCache" missing
    58436057FAIL ApplicationCache interface: existence and properties of interface prototype object assert_own_property: self does not have own property "ApplicationCache" expected property "ApplicationCache" missing
    58446058FAIL ApplicationCache interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "ApplicationCache" expected property "ApplicationCache" missing
     
    58996113FAIL ErrorEvent interface: existence and properties of interface object assert_equals: class string of ErrorEvent expected "[object Function]" but got "[object ErrorEventConstructor]"
    59006114PASS ErrorEvent interface object length
     6115PASS ErrorEvent interface object name
    59016116PASS ErrorEvent interface: existence and properties of interface prototype object
    59026117FAIL ErrorEvent interface: existence and properties of interface prototype object's "constructor" property assert_true: ErrorEvent.prototype.constructor is not writable expected true got false
     
    59086123FAIL Navigator interface: existence and properties of interface object assert_equals: class string of Navigator expected "[object Function]" but got "[object NavigatorConstructor]"
    59096124PASS Navigator interface object length
     6125PASS Navigator interface object name
    59106126PASS Navigator interface: existence and properties of interface prototype object
    59116127FAIL Navigator interface: existence and properties of interface prototype object's "constructor" property assert_true: Navigator.prototype.constructor is not writable expected true got false
     
    59646180FAIL PluginArray interface: existence and properties of interface object assert_equals: class string of PluginArray expected "[object Function]" but got "[object PluginArrayConstructor]"
    59656181PASS PluginArray interface object length
     6182PASS PluginArray interface object name
    59666183PASS PluginArray interface: existence and properties of interface prototype object
    59676184FAIL PluginArray interface: existence and properties of interface prototype object's "constructor" property assert_own_property: PluginArray.prototype does not have own property "constructor" expected property "constructor" missing
     
    59726189FAIL MimeTypeArray interface: existence and properties of interface object assert_equals: class string of MimeTypeArray expected "[object Function]" but got "[object MimeTypeArrayConstructor]"
    59736190PASS MimeTypeArray interface object length
     6191PASS MimeTypeArray interface object name
    59746192PASS MimeTypeArray interface: existence and properties of interface prototype object
    59756193FAIL MimeTypeArray interface: existence and properties of interface prototype object's "constructor" property assert_own_property: MimeTypeArray.prototype does not have own property "constructor" expected property "constructor" missing
     
    59796197FAIL Plugin interface: existence and properties of interface object assert_equals: class string of Plugin expected "[object Function]" but got "[object PluginConstructor]"
    59806198PASS Plugin interface object length
     6199PASS Plugin interface object name
    59816200PASS Plugin interface: existence and properties of interface prototype object
    59826201FAIL Plugin interface: existence and properties of interface prototype object's "constructor" property assert_own_property: Plugin.prototype does not have own property "constructor" expected property "constructor" missing
     
    59896208FAIL MimeType interface: existence and properties of interface object assert_equals: class string of MimeType expected "[object Function]" but got "[object MimeTypeConstructor]"
    59906209PASS MimeType interface object length
     6210PASS MimeType interface object name
    59916211PASS MimeType interface: existence and properties of interface prototype object
    59926212FAIL MimeType interface: existence and properties of interface prototype object's "constructor" property assert_true: MimeType.prototype.constructor is not writable expected true got false
     
    60056225FAIL External interface: existence and properties of interface object assert_own_property: self does not have own property "External" expected property "External" missing
    60066226FAIL External interface object length assert_own_property: self does not have own property "External" expected property "External" missing
     6227FAIL External interface object name assert_own_property: self does not have own property "External" expected property "External" missing
    60076228FAIL External interface: existence and properties of interface prototype object assert_own_property: self does not have own property "External" expected property "External" missing
    60086229FAIL External interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "External" expected property "External" missing
     
    60176238FAIL ImageBitmap interface: existence and properties of interface object assert_own_property: self does not have own property "ImageBitmap" expected property "ImageBitmap" missing
    60186239FAIL ImageBitmap interface object length assert_own_property: self does not have own property "ImageBitmap" expected property "ImageBitmap" missing
     6240FAIL ImageBitmap interface object name assert_own_property: self does not have own property "ImageBitmap" expected property "ImageBitmap" missing
    60196241FAIL ImageBitmap interface: existence and properties of interface prototype object assert_own_property: self does not have own property "ImageBitmap" expected property "ImageBitmap" missing
    60206242FAIL ImageBitmap interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "ImageBitmap" expected property "ImageBitmap" missing
     
    60236245FAIL MessageEvent interface: existence and properties of interface object assert_equals: class string of MessageEvent expected "[object Function]" but got "[object MessageEventConstructor]"
    60246246PASS MessageEvent interface object length
     6247PASS MessageEvent interface object name
    60256248PASS MessageEvent interface: existence and properties of interface prototype object
    60266249FAIL MessageEvent interface: existence and properties of interface prototype object's "constructor" property assert_true: MessageEvent.prototype.constructor is not writable expected true got false
     
    60416264FAIL EventSource interface: existence and properties of interface object assert_equals: class string of EventSource expected "[object Function]" but got "[object EventSourceConstructor]"
    60426265PASS EventSource interface object length
     6266PASS EventSource interface object name
    60436267FAIL EventSource interface: existence and properties of interface prototype object assert_equals: prototype of EventSource.prototype is not EventTarget.prototype expected object "[object EventTargetPrototype]" but got object "[object Object]"
    60446268FAIL EventSource interface: existence and properties of interface prototype object's "constructor" property assert_true: EventSource.prototype.constructor is not writable expected true got false
     
    60706294FAIL WebSocket interface: existence and properties of interface object assert_equals: class string of WebSocket expected "[object Function]" but got "[object WebSocketConstructor]"
    60716295PASS WebSocket interface object length
     6296PASS WebSocket interface object name
    60726297FAIL WebSocket interface: existence and properties of interface prototype object assert_equals: prototype of WebSocket.prototype is not EventTarget.prototype expected object "[object EventTargetPrototype]" but got object "[object Object]"
    60736298FAIL WebSocket interface: existence and properties of interface prototype object's "constructor" property assert_true: WebSocket.prototype.constructor is not writable expected true got false
     
    61176342FAIL CloseEvent interface: existence and properties of interface object assert_equals: class string of CloseEvent expected "[object Function]" but got "[object CloseEventConstructor]"
    61186343PASS CloseEvent interface object length
     6344PASS CloseEvent interface object name
    61196345PASS CloseEvent interface: existence and properties of interface prototype object
    61206346FAIL CloseEvent interface: existence and properties of interface prototype object's "constructor" property assert_true: CloseEvent.prototype.constructor is not writable expected true got false
     
    61306356FAIL MessageChannel interface: existence and properties of interface object assert_equals: class string of MessageChannel expected "[object Function]" but got "[object MessageChannelConstructor]"
    61316357PASS MessageChannel interface object length
     6358PASS MessageChannel interface object name
    61326359PASS MessageChannel interface: existence and properties of interface prototype object
    61336360FAIL MessageChannel interface: existence and properties of interface prototype object's "constructor" property assert_true: MessageChannel.prototype.constructor is not writable expected true got false
     
    61406367FAIL MessagePort interface: existence and properties of interface object assert_equals: class string of MessagePort expected "[object Function]" but got "[object MessagePortConstructor]"
    61416368PASS MessagePort interface object length
     6369PASS MessagePort interface object name
    61426370FAIL MessagePort interface: existence and properties of interface prototype object assert_equals: prototype of MessagePort.prototype is not EventTarget.prototype expected object "[object EventTargetPrototype]" but got object "[object Object]"
    61436371FAIL MessagePort interface: existence and properties of interface prototype object's "constructor" property assert_true: MessagePort.prototype.constructor is not writable expected true got false
     
    61506378FAIL PortCollection interface: existence and properties of interface object assert_own_property: self does not have own property "PortCollection" expected property "PortCollection" missing
    61516379FAIL PortCollection interface object length assert_own_property: self does not have own property "PortCollection" expected property "PortCollection" missing
     6380FAIL PortCollection interface object name assert_own_property: self does not have own property "PortCollection" expected property "PortCollection" missing
    61526381FAIL PortCollection interface: existence and properties of interface prototype object assert_own_property: self does not have own property "PortCollection" expected property "PortCollection" missing
    61536382FAIL PortCollection interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "PortCollection" expected property "PortCollection" missing
     
    61586387FAIL BroadcastChannel interface: existence and properties of interface object assert_own_property: self does not have own property "BroadcastChannel" expected property "BroadcastChannel" missing
    61596388FAIL BroadcastChannel interface object length assert_own_property: self does not have own property "BroadcastChannel" expected property "BroadcastChannel" missing
     6389FAIL BroadcastChannel interface object name assert_own_property: self does not have own property "BroadcastChannel" expected property "BroadcastChannel" missing
    61606390FAIL BroadcastChannel interface: existence and properties of interface prototype object assert_own_property: self does not have own property "BroadcastChannel" expected property "BroadcastChannel" missing
    61616391FAIL BroadcastChannel interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "BroadcastChannel" expected property "BroadcastChannel" missing
     
    61666396FAIL WorkerGlobalScope interface: existence and properties of interface object assert_own_property: self does not have own property "WorkerGlobalScope" expected property "WorkerGlobalScope" missing
    61676397FAIL WorkerGlobalScope interface object length assert_own_property: self does not have own property "WorkerGlobalScope" expected property "WorkerGlobalScope" missing
     6398FAIL WorkerGlobalScope interface object name assert_own_property: self does not have own property "WorkerGlobalScope" expected property "WorkerGlobalScope" missing
    61686399FAIL WorkerGlobalScope interface: existence and properties of interface prototype object assert_own_property: self does not have own property "WorkerGlobalScope" expected property "WorkerGlobalScope" missing
    61696400FAIL WorkerGlobalScope interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "WorkerGlobalScope" expected property "WorkerGlobalScope" missing
     
    61886419FAIL DedicatedWorkerGlobalScope interface: existence and properties of interface object assert_own_property: self does not have own property "DedicatedWorkerGlobalScope" expected property "DedicatedWorkerGlobalScope" missing
    61896420FAIL DedicatedWorkerGlobalScope interface object length assert_own_property: self does not have own property "DedicatedWorkerGlobalScope" expected property "DedicatedWorkerGlobalScope" missing
     6421FAIL DedicatedWorkerGlobalScope interface object name assert_own_property: self does not have own property "DedicatedWorkerGlobalScope" expected property "DedicatedWorkerGlobalScope" missing
    61906422FAIL DedicatedWorkerGlobalScope interface: existence and properties of interface prototype object assert_own_property: self does not have own property "DedicatedWorkerGlobalScope" expected property "DedicatedWorkerGlobalScope" missing
    61916423FAIL DedicatedWorkerGlobalScope interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "DedicatedWorkerGlobalScope" expected property "DedicatedWorkerGlobalScope" missing
     
    61946426FAIL SharedWorkerGlobalScope interface: existence and properties of interface object assert_own_property: self does not have own property "SharedWorkerGlobalScope" expected property "SharedWorkerGlobalScope" missing
    61956427FAIL SharedWorkerGlobalScope interface object length assert_own_property: self does not have own property "SharedWorkerGlobalScope" expected property "SharedWorkerGlobalScope" missing
     6428FAIL SharedWorkerGlobalScope interface object name assert_own_property: self does not have own property "SharedWorkerGlobalScope" expected property "SharedWorkerGlobalScope" missing
    61966429FAIL SharedWorkerGlobalScope interface: existence and properties of interface prototype object assert_own_property: self does not have own property "SharedWorkerGlobalScope" expected property "SharedWorkerGlobalScope" missing
    61976430FAIL SharedWorkerGlobalScope interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "SharedWorkerGlobalScope" expected property "SharedWorkerGlobalScope" missing
     
    62016434FAIL Worker interface: existence and properties of interface object assert_equals: class string of Worker expected "[object Function]" but got "[object WorkerConstructor]"
    62026435PASS Worker interface object length
     6436PASS Worker interface object name
    62036437PASS Worker interface: existence and properties of interface prototype object
    62046438FAIL Worker interface: existence and properties of interface prototype object's "constructor" property assert_true: Worker.prototype.constructor is not writable expected true got false
     
    62136447FAIL SharedWorker interface: existence and properties of interface object assert_own_property: self does not have own property "SharedWorker" expected property "SharedWorker" missing
    62146448FAIL SharedWorker interface object length assert_own_property: self does not have own property "SharedWorker" expected property "SharedWorker" missing
     6449FAIL SharedWorker interface object name assert_own_property: self does not have own property "SharedWorker" expected property "SharedWorker" missing
    62156450FAIL SharedWorker interface: existence and properties of interface prototype object assert_own_property: self does not have own property "SharedWorker" expected property "SharedWorker" missing
    62166451FAIL SharedWorker interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "SharedWorker" expected property "SharedWorker" missing
     
    62196454FAIL WorkerNavigator interface: existence and properties of interface object assert_own_property: self does not have own property "WorkerNavigator" expected property "WorkerNavigator" missing
    62206455FAIL WorkerNavigator interface object length assert_own_property: self does not have own property "WorkerNavigator" expected property "WorkerNavigator" missing
     6456FAIL WorkerNavigator interface object name assert_own_property: self does not have own property "WorkerNavigator" expected property "WorkerNavigator" missing
    62216457FAIL WorkerNavigator interface: existence and properties of interface prototype object assert_own_property: self does not have own property "WorkerNavigator" expected property "WorkerNavigator" missing
    62226458FAIL WorkerNavigator interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "WorkerNavigator" expected property "WorkerNavigator" missing
     
    62336469FAIL WorkerLocation interface: existence and properties of interface object assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
    62346470FAIL WorkerLocation interface object length assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
     6471FAIL WorkerLocation interface object name assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
    62356472FAIL WorkerLocation interface: existence and properties of interface prototype object assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
    62366473FAIL WorkerLocation interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
     6474FAIL WorkerLocation interface: attribute href assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
     6475FAIL WorkerLocation interface: attribute origin assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
     6476FAIL WorkerLocation interface: attribute protocol assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
     6477FAIL WorkerLocation interface: attribute host assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
     6478FAIL WorkerLocation interface: attribute hostname assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
     6479FAIL WorkerLocation interface: attribute port assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
     6480FAIL WorkerLocation interface: attribute pathname assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
     6481FAIL WorkerLocation interface: attribute search assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
     6482FAIL WorkerLocation interface: attribute hash assert_own_property: self does not have own property "WorkerLocation" expected property "WorkerLocation" missing
    62376483FAIL Storage interface: existence and properties of interface object assert_equals: class string of Storage expected "[object Function]" but got "[object StorageConstructor]"
    62386484PASS Storage interface object length
     6485PASS Storage interface object name
    62396486PASS Storage interface: existence and properties of interface prototype object
    62406487FAIL Storage interface: existence and properties of interface prototype object's "constructor" property assert_own_property: Storage.prototype does not have own property "constructor" expected property "constructor" missing
     
    62476494FAIL StorageEvent interface: existence and properties of interface object assert_equals: class string of StorageEvent expected "[object Function]" but got "[object StorageEventConstructor]"
    62486495PASS StorageEvent interface object length
     6496PASS StorageEvent interface object name
    62496497PASS StorageEvent interface: existence and properties of interface prototype object
    62506498FAIL StorageEvent interface: existence and properties of interface prototype object's "constructor" property assert_true: StorageEvent.prototype.constructor is not writable expected true got false
     
    62666514FAIL HTMLAppletElement interface: existence and properties of interface object assert_equals: class string of HTMLAppletElement expected "[object Function]" but got "[object HTMLAppletElementConstructor]"
    62676515PASS HTMLAppletElement interface object length
     6516PASS HTMLAppletElement interface object name
    62686517PASS HTMLAppletElement interface: existence and properties of interface prototype object
    62696518FAIL HTMLAppletElement interface: existence and properties of interface prototype object's "constructor" property assert_own_property: HTMLAppletElement.prototype does not have own property "constructor" expected property "constructor" missing
     
    63166565FAIL HTMLMarqueeElement interface: existence and properties of interface object assert_equals: class string of HTMLMarqueeElement expected "[object Function]" but got "[object HTMLMarqueeElementConstructor]"
    63176566PASS HTMLMarqueeElement interface object length
     6567PASS HTMLMarqueeElement interface object name
    63186568PASS HTMLMarqueeElement interface: existence and properties of interface prototype object
    63196569FAIL HTMLMarqueeElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLMarqueeElement.prototype.constructor is not writable expected true got false
     
    63766626FAIL HTMLFrameSetElement interface: existence and properties of interface object assert_equals: class string of HTMLFrameSetElement expected "[object Function]" but got "[object HTMLFrameSetElementConstructor]"
    63776627PASS HTMLFrameSetElement interface object length
     6628PASS HTMLFrameSetElement interface object name
    63786629PASS HTMLFrameSetElement interface: existence and properties of interface prototype object
    63796630FAIL HTMLFrameSetElement interface: existence and properties of interface prototype object's "constructor" property assert_own_property: HTMLFrameSetElement.prototype does not have own property "constructor" expected property "constructor" missing
     
    64126663FAIL HTMLFrameElement interface: existence and properties of interface object assert_equals: class string of HTMLFrameElement expected "[object Function]" but got "[object HTMLFrameElementConstructor]"
    64136664PASS HTMLFrameElement interface object length
     6665PASS HTMLFrameElement interface object name
    64146666PASS HTMLFrameElement interface: existence and properties of interface prototype object
    64156667FAIL HTMLFrameElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLFrameElement.prototype.constructor is not writable expected true got false
     
    64566708FAIL HTMLDirectoryElement interface: existence and properties of interface object assert_equals: class string of HTMLDirectoryElement expected "[object Function]" but got "[object HTMLDirectoryElementConstructor]"
    64576709PASS HTMLDirectoryElement interface object length
     6710PASS HTMLDirectoryElement interface object name
    64586711PASS HTMLDirectoryElement interface: existence and properties of interface prototype object
    64596712FAIL HTMLDirectoryElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLDirectoryElement.prototype.constructor is not writable expected true got false
     
    64666719FAIL HTMLFontElement interface: existence and properties of interface object assert_equals: class string of HTMLFontElement expected "[object Function]" but got "[object HTMLFontElementConstructor]"
    64676720PASS HTMLFontElement interface object length
     6721PASS HTMLFontElement interface object name
    64686722PASS HTMLFontElement interface: existence and properties of interface prototype object
    64696723FAIL HTMLFontElement interface: existence and properties of interface prototype object's "constructor" property assert_true: HTMLFontElement.prototype.constructor is not writable expected true got false
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces.html

    r191379 r194580  
    1212<div id=log></div>
    1313
    14 <!--  URLUtils* stubs  -->
    15 <script type=text/plain class=untested>
    16 interface URLUtils {
    17   stringifier;
    18 };
    19 interface URLUtilsReadOnly {
    20   stringifier;
    21 };
    22 </script>
    23 <!--  DOM IDLs  -->
    2414<script type=text/plain class=untested>
    2515[Constructor(DOMString type, optional EventInit eventInitDict)/*,
     
    869859         DataView) ArrayBufferView;
    870860
     861[NoInterfaceObject, Exposed=Window]
     862interface HTMLHyperlinkElementUtils {
     863  stringifier attribute USVString href;
     864           attribute USVString origin;
     865           attribute USVString protocol;
     866           attribute USVString username;
     867           attribute USVString password;
     868           attribute USVString host;
     869           attribute USVString hostname;
     870           attribute USVString port;
     871           attribute USVString pathname;
     872           attribute USVString search;
     873           attribute USVString hash;
     874};
     875
    871876interface HTMLAllCollection : HTMLCollection {
    872877  // inherits length and 'getter'
     
    11261131
    11271132interface HTMLAnchorElement : HTMLElement {
    1128            attribute DOMString target;
    1129            attribute DOMString download;
    1130   [PutForwards=value] attribute DOMSettableTokenList ping;
    1131            attribute DOMString rel;
     1133  attribute DOMString target;
     1134  attribute DOMString download;
     1135  [PutForwards=value] readonly attribute DOMSettableTokenList ping;
     1136  attribute DOMString rel;
    11321137  readonly attribute DOMTokenList relList;
    1133            attribute DOMString hreflang;
    1134            attribute DOMString type;
    1135 
    1136            attribute DOMString text;
    1137 
    1138   // also has obsolete members
    1139 };
    1140 HTMLAnchorElement implements URLUtils;
     1138  attribute DOMString hreflang;
     1139  attribute DOMString type;
     1140
     1141  attribute DOMString text;
     1142};
     1143HTMLAnchorElement implements HTMLHyperlinkElementUtils;
    11411144
    11421145interface HTMLDataElement : HTMLElement {
     
    14951498
    14961499interface HTMLAreaElement : HTMLElement {
    1497            attribute DOMString alt;
    1498            attribute DOMString coords;
    1499            attribute DOMString shape;
    1500            attribute DOMString target;
    1501            attribute DOMString download;
    1502   [PutForwards=value] attribute DOMSettableTokenList ping;
    1503            attribute DOMString rel;
     1500  attribute DOMString alt;
     1501  attribute DOMString coords;
     1502  attribute DOMString shape;
     1503  attribute DOMString target;
     1504  attribute DOMString download;
     1505  [PutForwards=value] readonly attribute DOMSettableTokenList ping;
     1506  attribute DOMString rel;
    15041507  readonly attribute DOMTokenList relList;
    1505            attribute DOMString hreflang;
    1506            attribute DOMString type;
    1507 
    1508   // also has obsolete members
    1509 };
    1510 HTMLAreaElement implements URLUtils;
     1508  // hreflang and type are not reflected
     1509};
     1510HTMLAreaElement implements HTMLHyperlinkElementUtils;
    15111511
    15121512interface HTMLTableElement : HTMLElement {
     
    23232323
    23242324[Unforgeable] interface Location {
    2325   void assign(DOMString url);
    2326   void replace(DOMString url);
     2325  stringifier attribute USVString href;
     2326           attribute USVString origin;
     2327           attribute USVString protocol;
     2328           attribute USVString host;
     2329           attribute USVString hostname;
     2330           attribute USVString port;
     2331           attribute USVString pathname;
     2332           attribute USVString search;
     2333           attribute USVString hash;
     2334
     2335  void assign(USVString url);
     2336  void replace(USVString url);
    23272337  void reload();
    2328 };
    2329 Location implements URLUtils;
     2338
     2339  [SameObject] readonly attribute USVString[] ancestorOrigins;
     2340};
    23302341
    23312342[Constructor(DOMString type, optional PopStateEventInit eventInitDict), Exposed=Window,Worker]
     
    28192830
    28202831[Exposed=Worker]
    2821 interface WorkerLocation { };
    2822 WorkerLocation implements URLUtilsReadOnly;
     2832interface WorkerLocation {
     2833  stringifier readonly attribute USVString href;
     2834  readonly attribute USVString origin;
     2835  readonly attribute USVString protocol;
     2836  readonly attribute USVString host;
     2837  readonly attribute USVString hostname;
     2838  readonly attribute USVString port;
     2839  readonly attribute USVString pathname;
     2840  readonly attribute USVString search;
     2841  readonly attribute USVString hash;
     2842};
    28232843
    28242844interface Storage {
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection.js

    r189472 r194580  
    140140 * Note that all tests/expected values are only baselines, and can be expanded
    141141 * with additional tests hardcoded into the function for particular types if
    142  * necessary (e.g., enum).  null means "default" as a DOM expected value, and
    143  * "throw an INDEX_SIZE_ERR exception" as an IDL expected value.  (This is a
    144  * kind of stupid and fragile convention, but it's simple and works for now.)
    145  * Expected DOM values are cast to strings by adding "".
     142 * necessary. For example, a special codepath is used for enums, and for
     143 * IDL setters which throw an exception. null means "defaultVal" is the
     144 * expected value. Expected DOM values are cast to strings by adding "".
    146145 *
    147146 * TODO: Test strings that aren't valid UTF-16.  Desired behavior is not clear
     
    380379            return parsed;
    381380        },
    382         "idlTests":       [minInt, -36,  -1,   0, 1, maxInt],
    383         "idlDomExpected": [null,   null, null, 0, 1, maxInt]
     381        "idlTests":       [minInt, -36,  -1, 0, 1, maxInt],
     382        "idlDomExpected": [null/*exception*/, null/*exception*/, null/*exception*/, 0, 1, maxInt]
    384383    },
    385384    /**
     
    417416            return parsed;
    418417        },
    419         "idlTests": [0, 1, 257, 2147483647, "-0"],
    420         "idlIdlExpected": [0, 1, 257, 2147483647, 0]
     418        "idlTests": [0, 1, 257, maxInt, "-0", maxInt + 1, maxUnsigned],
     419        "idlIdlExpected": [0, 1, 257, maxInt, 0, null, null],
     420        "idlDomExpected": [0, 1, 257, maxInt, 0, null, null],
    421421    },
    422422    /**
     
    458458            return parsed;
    459459        },
    460         "idlTests":       [0,    1, 2147483647],
    461         "idlDomExpected": [null, 1, 2147483647]
     460        "idlTests":       [0, 1, maxInt, maxInt + 1, maxUnsigned],
     461        "idlDomExpected": [null/*exception*/, 1, maxInt, null, null]
    462462    },
    463463    /**
     
    611611    var domExpected = typeInfo.domExpected.map(function(val) { return val === null ? defaultVal : val; });
    612612    var idlTests = typeInfo.idlTests.slice(0);
    613     var idlDomExpected = typeInfo.idlDomExpected.slice(0);
    614     var idlIdlExpected = typeInfo.idlIdlExpected.slice(0);
     613    var idlDomExpected = typeInfo.idlDomExpected.map(function(val) { return val === null ? defaultVal : val; });
     614    var idlIdlExpected = typeInfo.idlIdlExpected.map(function(val) { return val === null ? defaultVal : val; });
    615615    switch (data.type) {
    616616        // Extra tests and other special-casing
     
    713713
    714714    for (var i = 0; i < idlTests.length; i++) {
    715         if (idlDomExpected[i] === null && data.type != "enum") {
     715        if ((data.type == "limited long" && idlTests[i] < 0) ||
     716            (data.type == "limited unsigned long" && idlTests[i] == 0)) {
    716717            ReflectionHarness.testException("INDEX_SIZE_ERR", function() {
    717718                idlObj[idlName] = idlTests[i];
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/Image-constructor.html

    r189476 r194580  
    22<title>DOM Image constructor Test</title>
    33<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    4 <link rel="help" href="https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element" />
     4<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-img-element" />
    55<meta name="assert" content="Tests the Image constructor for the img-element">
    66<script src="/resources/testharness.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/current-pixel-density/basic-expected.txt

    r189476 r194580  
    1          
     1             
    22
    33PASS <img src="/images/green-256x256.png" data-expect="256">
    44PASS <img srcset="/images/green-256x256.png 1x" data-expect="256">
    5 PASS <img srcset="/images/green-256x256.png 1.6x" data-expect="160">
    6 PASS <img srcset="/images/green-256x256.png 2x" data-expect="128">
    7 PASS <img srcset="/images/green-256x256.png 10000x" data-expect="0">
    8 PASS <img srcset="/images/green-256x256.png 9e99999999999999999999999x" data-expect="0">
     5FAIL <img srcset="/images/green-256x256.png 1.6x" data-expect="160"> assert_equals: naturalWidth expected 160 but got 256
     6FAIL <img srcset="/images/green-256x256.png 2x" data-expect="128"> assert_equals: naturalWidth expected 128 but got 256
     7FAIL <img srcset="/images/green-256x256.png 10000x" data-expect="0"> assert_equals: naturalWidth expected 0 but got 256
     8FAIL <img srcset="/images/green-256x256.png 9e99999999999999999999999x" data-expect="0"> assert_equals: naturalWidth expected 0 but got 256
    99PASS <img srcset="/images/green-256x256.png 256w" sizes="256px" data-expect="256">
    10 PASS <img srcset="/images/green-256x256.png 512w" sizes="256px" data-expect="128">
    11 PASS <img srcset="/images/green-256x256.png 256w" sizes="512px" data-expect="512">
    12 PASS <img srcset="/images/green-256x256.png 256w" sizes="1px" data-expect="1">
    13 PASS <img srcset="/images/green-256x256.png 256w" sizes="0px" data-expect="0">
     10FAIL <img srcset="/images/green-256x256.png 512w" sizes="256px" data-expect="128"> assert_equals: naturalWidth expected 128 but got 256
     11FAIL <img srcset="/images/green-256x256.png 256w" sizes="512px" data-expect="512"> assert_equals: naturalWidth expected 512 but got 256
     12FAIL <img srcset="/images/green-256x256.png 256w" sizes="1px" data-expect="1"> assert_equals: naturalWidth expected 1 but got 256
     13FAIL <img srcset="/images/green-256x256.png 256w" sizes="0px" data-expect="0"> assert_equals: naturalWidth expected 0 but got 256
     14PASS <img srcset="data:image/svg+xml,&lt;svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20width='20'%20height='20'&gt;&lt;circle%20r='1'/&gt;&lt;/svg&gt; 2x" data-expect="10">
     15PASS <img srcset="data:image/svg+xml,&lt;svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20width='20'&gt;&lt;circle%20r='1'/&gt;&lt;/svg&gt; 2x" data-expect="10">
     16PASS <img srcset="data:image/svg+xml,&lt;svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20height='20'&gt;&lt;circle%20r='1'/&gt;&lt;/svg&gt; 2x" data-expect="10">
    1417
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/current-pixel-density/basic.html

    r189476 r194580  
    1515<img srcset="/images/green-256x256.png 256w" sizes="1px" data-expect="1">
    1616<img srcset="/images/green-256x256.png 256w" sizes="0px" data-expect="0">
     17<!--  SVG  -->
     18<img srcset="data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20width='20'%20height='20'><circle%20r='1'/></svg> 2x" data-expect="10">
     19<img srcset="data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20width='20'><circle%20r='1'/></svg> 2x" data-expect="10">
     20<img srcset="data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20height='20'><circle%20r='1'/></svg> 2x" data-expect="10">
    1721<script>
    1822setup({explicit_done:true});
     
    2529      assert_equals(img.clientWidth, expected, 'clientWidth');
    2630      assert_equals(img.clientHeight, expected, 'clientHeight');
    27       assert_equals(img.naturalWidth, 256, 'naturalWidth');
    28       assert_equals(img.naturalHeight, 256, 'naturalHeight');
     31      assert_equals(img.naturalWidth, expected, 'naturalWidth');
     32      assert_equals(img.naturalHeight, expected, 'naturalHeight');
    2933    }, img.outerHTML);
    3034  });
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-checkValidity-expected.txt

    r189476 r194580  
    33PASS [INPUT in TEXT status] no constraint
    44PASS [INPUT in TEXT status] no constraint (in a form)
    5 PASS [INPUT in TEXT status] suffering from being too long
    6 PASS [INPUT in TEXT status] suffering from being too long (in a form)
     5FAIL [INPUT in TEXT status] suffering from being too long assert_false: The checkValidity method should be false. expected false got true
     6FAIL [INPUT in TEXT status] suffering from being too long (in a form) assert_false: The checkValidity method of the element's form owner should return false. expected false got true
    77PASS [INPUT in TEXT status] suffering from a pattern mismatch
    88PASS [INPUT in TEXT status] suffering from a pattern mismatch (in a form)
     
    1111PASS [INPUT in SEARCH status] no constraint
    1212PASS [INPUT in SEARCH status] no constraint (in a form)
    13 PASS [INPUT in SEARCH status] suffering from being too long
    14 PASS [INPUT in SEARCH status] suffering from being too long (in a form)
     13FAIL [INPUT in SEARCH status] suffering from being too long assert_false: The checkValidity method should be false. expected false got true
     14FAIL [INPUT in SEARCH status] suffering from being too long (in a form) assert_false: The checkValidity method of the element's form owner should return false. expected false got true
    1515PASS [INPUT in SEARCH status] suffering from a pattern mismatch
    1616PASS [INPUT in SEARCH status] suffering from a pattern mismatch (in a form)
     
    1919PASS [INPUT in TEL status] no constraint
    2020PASS [INPUT in TEL status] no constraint (in a form)
    21 PASS [INPUT in TEL status] suffering from being too long
    22 PASS [INPUT in TEL status] suffering from being too long (in a form)
     21FAIL [INPUT in TEL status] suffering from being too long assert_false: The checkValidity method should be false. expected false got true
     22FAIL [INPUT in TEL status] suffering from being too long (in a form) assert_false: The checkValidity method of the element's form owner should return false. expected false got true
    2323PASS [INPUT in TEL status] suffering from a pattern mismatch
    2424PASS [INPUT in TEL status] suffering from a pattern mismatch (in a form)
     
    2727PASS [INPUT in PASSWORD status] no constraint
    2828PASS [INPUT in PASSWORD status] no constraint (in a form)
    29 PASS [INPUT in PASSWORD status] suffering from being too long
    30 PASS [INPUT in PASSWORD status] suffering from being too long (in a form)
     29FAIL [INPUT in PASSWORD status] suffering from being too long assert_false: The checkValidity method should be false. expected false got true
     30FAIL [INPUT in PASSWORD status] suffering from being too long (in a form) assert_false: The checkValidity method of the element's form owner should return false. expected false got true
    3131PASS [INPUT in PASSWORD status] suffering from a pattern mismatch
    3232PASS [INPUT in PASSWORD status] suffering from a pattern mismatch (in a form)
     
    3535PASS [INPUT in URL status] no constraint
    3636PASS [INPUT in URL status] no constraint (in a form)
    37 PASS [INPUT in URL status] suffering from being too long
    38 PASS [INPUT in URL status] suffering from being too long (in a form)
     37FAIL [INPUT in URL status] suffering from being too long assert_false: The checkValidity method should be false. expected false got true
     38FAIL [INPUT in URL status] suffering from being too long (in a form) assert_false: The checkValidity method of the element's form owner should return false. expected false got true
    3939PASS [INPUT in URL status] suffering from a pattern mismatch
    4040PASS [INPUT in URL status] suffering from a pattern mismatch (in a form)
     
    4545PASS [INPUT in EMAIL status] no constraint
    4646PASS [INPUT in EMAIL status] no constraint (in a form)
    47 PASS [INPUT in EMAIL status] suffering from being too long
    48 PASS [INPUT in EMAIL status] suffering from being too long (in a form)
     47FAIL [INPUT in EMAIL status] suffering from being too long assert_false: The checkValidity method should be false. expected false got true
     48FAIL [INPUT in EMAIL status] suffering from being too long (in a form) assert_false: The checkValidity method of the element's form owner should return false. expected false got true
    4949PASS [INPUT in EMAIL status] suffering from a pattern mismatch
    5050PASS [INPUT in EMAIL status] suffering from a pattern mismatch (in a form)
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valid-expected.txt

    r189476 r194580  
    11
    22
    3 PASS [INPUT in TEXT status] validity.valid must be false if validity.tooLong is true
     3FAIL [INPUT in TEXT status] validity.valid must be false if validity.tooLong is true assert_false: The validity.valid should be false. expected false got true
    44PASS [INPUT in TEXT status] validity.valid must be false if validity.patternMismatch is true
    55PASS [INPUT in TEXT status] validity.valid must be false if validity.valueMissing is true
    6 PASS [INPUT in SEARCH status] validity.valid must be false if validity.tooLong is true
     6FAIL [INPUT in SEARCH status] validity.valid must be false if validity.tooLong is true assert_false: The validity.valid should be false. expected false got true
    77PASS [INPUT in SEARCH status] validity.valid must be false if validity.patternMismatch is true
    88PASS [INPUT in SEARCH status] validity.valid must be false if validity.valueMissing is true
    9 PASS [INPUT in TEL status] validity.valid must be false if validity.tooLong is true
     9FAIL [INPUT in TEL status] validity.valid must be false if validity.tooLong is true assert_false: The validity.valid should be false. expected false got true
    1010PASS [INPUT in TEL status] validity.valid must be false if validity.patternMismatch is true
    1111PASS [INPUT in TEL status] validity.valid must be false if validity.valueMissing is true
    12 PASS [INPUT in PASSWORD status] validity.valid must be false if validity.tooLong is true
     12FAIL [INPUT in PASSWORD status] validity.valid must be false if validity.tooLong is true assert_false: The validity.valid should be false. expected false got true
    1313PASS [INPUT in PASSWORD status] validity.valid must be false if validity.patternMismatch is true
    1414PASS [INPUT in PASSWORD status] validity.valid must be false if validity.valueMissing is true
    15 PASS [INPUT in URL status] validity.valid must be false if validity.tooLong is true
     15FAIL [INPUT in URL status] validity.valid must be false if validity.tooLong is true assert_false: The validity.valid should be false. expected false got true
    1616PASS [INPUT in URL status] validity.valid must be false if validity.patternMismatch is true
    1717PASS [INPUT in URL status] validity.valid must be false if validity.typeMismatch is true
    1818PASS [INPUT in URL status] validity.valid must be false if validity.valueMissing is true
    19 PASS [INPUT in EMAIL status] validity.valid must be false if validity.tooLong is true
     19FAIL [INPUT in EMAIL status] validity.valid must be false if validity.tooLong is true assert_false: The validity.valid should be false. expected false got true
    2020PASS [INPUT in EMAIL status] validity.valid must be false if validity.patternMismatch is true
    2121PASS [INPUT in EMAIL status] validity.valid must be false if validity.typeMismatch is true
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing-expected.txt

    r191379 r194580  
    3737PASS [INPUT in CHECKBOX status] The required attribute is not set
    3838PASS [INPUT in CHECKBOX status] The checked attribute is true
    39 FAIL [INPUT in CHECKBOX status] The checked attribute is false assert_true: The validity.valueMissing should be true. expected true got false
     39PASS [INPUT in CHECKBOX status] The checked attribute is false
    4040PASS [INPUT in RADIO status] The required attribute is not set
    4141PASS [INPUT in RADIO status] The checked attribute is true
    42 FAIL [INPUT in RADIO status] The checked attribute is false assert_true: The validity.valueMissing should be true. expected true got false
     42PASS [INPUT in RADIO status] The checked attribute is false
    4343PASS [INPUT in FILE status] The required attribute is not set
    4444PASS [INPUT in FILE status] The Files attribute is null
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing.html

    r191379 r194580  
    121121    {
    122122      tag: "input",
    123       types: ["checkbox", "radio"],
     123      types: ["checkbox"],
    124124      testData: [
    125125        {conditions: {required: false, checked: false, name: "test1"}, expected: false, name: "[target] The required attribute is not set"},
    126         {conditions: {required: true, checked: true, name: "test1"}, expected: false, name: "[target] The checked attribute is true"},
    127         {conditions: {required: true, checked: false, name: "test1"}, expected: true, name: "[target] The checked attribute is false"}
     126        {conditions: {required: true, checked: true, name: "test2"}, expected: false, name: "[target] The checked attribute is true"},
     127        {conditions: {required: true, checked: false, name: "test3"}, expected: true, name: "[target] The checked attribute is false"}
     128      ]
     129    },
     130    {
     131      tag: "input",
     132      types: ["radio"],
     133      testData: [
     134        {conditions: {required: false, checked: false, name: "test4"}, expected: false, name: "[target] The required attribute is not set"},
     135        {conditions: {required: true, checked: true, name: "test5"}, expected: false, name: "[target] The checked attribute is true"},
     136        {conditions: {required: true, checked: false, name: "test6"}, expected: true, name: "[target] The checked attribute is false"}
    128137      ]
    129138    },
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/constraints/support/validator.js

    r191379 r194580  
    280280    });
    281281    for (var attr in obj) {
    282       if (obj[attr] || obj[attr] === "")
     282      if (attr === "checked" || obj[attr] || obj[attr] === "")
    283283        ctl[attr] = obj[attr];
    284284    }
     
    286286
    287287  set_dirty: function(ctl) {
    288     document.designMode = "on";
    289288    ctl.focus();
    290289    var old_value = ctl.value;
    291290    ctl.value = "a";
    292291    ctl.value = old_value;
    293     if (ctl.type !== 'email') {
    294       ctl.setSelectionRange(ctl.value.length, ctl.value.length);
    295     }
    296     document.execCommand("Delete");
    297     document.designMode = "off";
    298292  },
    299293
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/textfieldselection/selection.html

    r189476 r194580  
    22<title>test if select() API returns correct attributes</title>
    33<meta charset="UTF-8">
     4<meta name="timeout" content="long">
    45<link rel="author" title="Koji Tashiro" href="mailto:koji.tashiro@gmail.com">
    56<link rel="help" href="https://html.spec.whatwg.org/multipage/multipage/association-of-controls-and-forms.html#textFieldSelection">
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-form-element/form-autocomplete-expected.txt

    r191981 r194580  
    1515PASS honorific-suffix is an allowed autocomplete field name
    1616PASS nickname is an allowed autocomplete field name
     17PASS username is an allowed autocomplete field name
     18PASS new-password is an allowed autocomplete field name
     19PASS current-password is an allowed autocomplete field name
    1720PASS organization-title is an allowed autocomplete field name
    1821PASS organization is an allowed autocomplete field name
     
    2124PASS address-line2 is an allowed autocomplete field name
    2225PASS address-line3 is an allowed autocomplete field name
    23 FAIL locality is an allowed autocomplete field name assert_equals: expected "locality" but got ""
    24 FAIL region is an allowed autocomplete field name assert_equals: expected "region" but got ""
     26PASS address-level4 is an allowed autocomplete field name
     27PASS address-level3 is an allowed autocomplete field name
     28PASS address-level2 is an allowed autocomplete field name
     29PASS address-level1 is an allowed autocomplete field name
    2530PASS country is an allowed autocomplete field name
    2631PASS country-name is an allowed autocomplete field name
     
    3641PASS cc-csc is an allowed autocomplete field name
    3742PASS cc-type is an allowed autocomplete field name
     43PASS transaction-currency is an allowed autocomplete field name
     44PASS transaction-amount is an allowed autocomplete field name
    3845PASS language is an allowed autocomplete field name
    3946PASS bday is an allowed autocomplete field name
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-form-element/form-autocomplete.html

    r189476 r194580  
    4848  autocompletetest(document.forms.autocomplete_invalid, ["on", "on", "on", "off", ""], "form autocomplete attribute invalid");
    4949
    50   var keywords = [ "name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "organization-title", "organization", "street-address", "address-line1", "address-line2", "address-line3", "locality", "region", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "url", "photo", "tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-local-prefix", "tel-local-suffix", "tel-extension", "email", "impp" ];
     50  var keywords = [ "name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "username", "new-password", "current-password", "organization-title", "organization", "street-address", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "transaction-currency", "transaction-amount", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "url", "photo", "tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-local-prefix", "tel-local-suffix", "tel-extension", "email", "impp" ];
     51
    5152  keywords.forEach(function(keyword) {
    5253    test(function(){
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-label-element/label-attributes-expected.txt

    r191497 r194580  
    77PASS The 'for' attribute is an empty string.
    88PASS A form control has multiple labels.
     9PASS A form control has an implicit label.
    910PASS A form control has no label 1.
    1011PASS A form control has no label 2.
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-label-element/label-attributes.html

    r191379 r194580  
    5454    document.body.appendChild(label);
    5555    assert_equals(label.control, document.getElementById("test1"));
     56    label.remove();
    5657  }, "A label element not in a document can not label any element in the document.");
    5758
     
    6465    assert_equals(document.getElementById("lbl1").control, input,
    6566                  "The first labelable descendant of a label element in tree order should be its labeled control.");
     67    input.remove();
    6668  }, "The labeled control for a label element that has no 'for' attribute is the first labelable element which is a descendant of that label element.");
    6769
     
    9698    assert_array_equals(document.getElementById("test7").labels, [newLabel, document.getElementById("lbl5"), document.getElementById("lbl6")],
    9799                        "The labels for a form control should be returned in tree order.");
     100    newLabel.remove();
    98101  }, "A form control has multiple labels.");
     102
     103  test(function () {
     104    var labels = document.getElementById("test3").labels;
     105    assert_true(labels instanceof NodeList, "A form control's 'labels' property should be an instance of a NodeList.");
     106    assert_equals(labels.length, 1, "The form control has an ancestor with no explicit associated label, and is the first labelable descendant.");
     107  }, "A form control has an implicit label.");
    99108
    100109  test(function () {
    101110    var labels = document.getElementById("test4").labels;
    102111    assert_true(labels instanceof NodeList, "A form control's 'labels' property should be an instance of a NodeList.");
    103     assert_equals(labels.length, 0, "The number of labels should be 0 if the associated form control isn't referenced by any <label>.");
     112    assert_equals(labels.length, 0, "The form control has an ancestor with no explicit associated label, but is *not* the first labelable descendant");
    104113  }, "A form control has no label 1.");
    105114
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-label-element/labelable-elements-expected.txt

    r189476 r194580  
    11
    22PASS Check if the output element is a labelable element
     3PASS Check if the output element can access 'labels'
    34PASS Check if the progress element is a labelable element
     5PASS Check if the progress element can access 'labels'
    46PASS Check if the select element is a labelable element
     7PASS Check if the select element can access 'labels'
    58PASS Check if the textarea element is a labelable form-element
     9PASS Check if the textarea element can access 'labels'
    610PASS Check if the button element is a labelable element
     11PASS Check if the button element can access 'labels'
    712PASS Check if the hidden input element is not a labelable element.
     13FAIL Check if the hidden input element can access 'labels' null is not an object (evaluating 'elem.labels.length')
    814PASS Check if the input element in radio state is a labelable element
     15PASS Check if the input element in radio state can access 'labels'
    916PASS Check if the keygen element is a labelable element
     17PASS Check if the keygen element can access 'labels'
    1018PASS Check if the meter element is a labelable element
     19PASS Check if the meter element can access 'labels'
    1120PASS Check if the fieldset element is not a labelable element
     21PASS Check if the fieldset element can access 'labels'
    1222PASS Check if the label element is not a labelable element
     23PASS Check if the label element can access 'labels'
    1324PASS Check if the object element is not a labelable element
     25PASS Check if the object element can access 'labels'
    1426PASS Check if the img element is not a labelable element
     27PASS Check if the img element can access 'labels'
    1528
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-label-element/labelable-elements.html

    r189476 r194580  
    3737
    3838<script>
     39function testLabelsAttr(formElementId, labelElementId, hasLabels) {
     40  var elem = document.getElementById(formElementId);
     41  if (labelElementId) {
     42    assert_equals(elem.labels.length, 1);
     43    assert_equals(elem.labels[0].id, labelElementId);
     44  } else {
     45    assert_equals(elem.labels.length, 0);
     46  }
     47}
    3948
    4049test(function() {
     
    4352
    4453test(function() {
     54  testLabelsAttr("testoutput", "lbl0");
     55}, "Check if the output element can access 'labels'");
     56
     57test(function() {
    4558  assert_equals(document.getElementById("lbl1").control.id, "testprogress", "A progress element should be labelable.");
    4659}, "Check if the progress element is a labelable element");
     60
     61test(function() {
     62  testLabelsAttr("testprogress", "lbl1");
     63}, "Check if the progress element can access 'labels'");
    4764
    4865test(function() {
     
    5168
    5269test(function() {
     70  testLabelsAttr("testselect", "lbl2");
     71}, "Check if the select element can access 'labels'");
     72
     73test(function() {
    5374  assert_equals(document.getElementById("lbl3").control.id, "testarea", "A textarea element should be labelable.");
    5475}, "Check if the textarea element is a labelable form-element");
     76
     77test(function() {
     78  testLabelsAttr("testarea", "lbl3");
     79}, "Check if the textarea element can access 'labels'");
    5580
    5681test(function() {
     
    5984
    6085test(function() {
     86  testLabelsAttr("testButton", "lbl4");
     87}, "Check if the button element can access 'labels'");
     88
     89test(function() {
    6190  assert_equals(document.getElementById("lbl5").control, null, "An input element in hidden state should not be labelable.");
    6291}, "Check if the hidden input element is not a labelable element.");
     92
     93test(function() {
     94  testLabelsAttr("testHidden", null);
     95}, "Check if the hidden input element can access 'labels'");
    6396
    6497test(function() {
     
    67100
    68101test(function() {
     102  testLabelsAttr("testRadio", "lbl6");
     103}, "Check if the input element in radio state can access 'labels'");
     104
     105test(function() {
    69106  assert_equals(document.getElementById("lbl7").control.id, "testkeygen", "A keygen element should be labelable.");
    70107}, "Check if the keygen element is a labelable element");
    71108
    72109test(function() {
     110  testLabelsAttr("testkeygen", "lbl7");
     111}, "Check if the keygen element can access 'labels'");
     112
     113test(function() {
    73114  assert_equals(document.getElementById("lbl8").control.id, "testmeter", "A meter element should be labelable.");
    74115}, "Check if the meter element is a labelable element");
     116
     117test(function() {
     118  testLabelsAttr("testmeter", "lbl8");
     119}, "Check if the meter element can access 'labels'");
    75120
    76121test(function() {
     
    80125
    81126test(function() {
     127  assert_equals(document.getElementById("testfieldset").labels, undefined);
     128}, "Check if the fieldset element can access 'labels'");
     129
     130test(function() {
    82131  assert_not_equals(document.getElementById("lbl9").control, document.getElementById("testlabel"));
    83132  assert_equals(document.getElementById("lbl10").control, null, "A label element should not be labelable.");
    84133}, "Check if the label element is not a labelable element");
     134
     135test(function() {
     136  assert_equals(document.getElementById("testlabel").labels, undefined);
     137}, "Check if the label element can access 'labels'");
    85138
    86139test(function() {
     
    90143
    91144test(function() {
     145  assert_equals(document.getElementById("testobject").labels, undefined);
     146}, "Check if the object element can access 'labels'");
     147
     148test(function() {
    92149  assert_not_equals(document.getElementById("lbl9").control, document.getElementById("testimg"));
    93150  assert_equals(document.getElementById("lbl12").control, null, "An img element should not be labelable.");
    94151}, "Check if the img element is not a labelable element");
    95152
     153test(function() {
     154  assert_equals(document.getElementById("lbl9").labels, undefined);
     155}, "Check if the img element can access 'labels'");
    96156</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-option-element/option-text-recurse-expected.txt

    r189476 r194580  
    99PASS option.text should work if the option is in an SVG script element
    1010PASS option.text should work if the option is in a MathML script element
     11PASS option.text should ignore comment children
     12PASS option.text should ignore PI children
    1113
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-option-element/option-text-recurse.html

    r189476 r194580  
    7575  assert_equals(option.text, "text");
    7676}, "option.text should work if the option is in a MathML script element");
     77
     78test(function() {
     79  var option = document.createElement("option");
     80  option.appendChild(document.createTextNode("te"));
     81  option.appendChild(document.createComment("comment"));
     82  option.appendChild(document.createTextNode("xt"));
     83  assert_equals(option.text, "text");
     84}, "option.text should ignore comment children");
     85test(function() {
     86  var option = document.createElement("option");
     87  option.appendChild(document.createTextNode("te"));
     88  option.appendChild(document.createProcessingInstruction("target", "data"));
     89  option.appendChild(document.createTextNode("xt"));
     90  assert_equals(option.text, "text");
     91}, "option.text should ignore PI children");
    7792</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-namedItem-expected.txt

    r189476 r194580  
    44PASS if only one item has a name or *id* value matching the parameter, return that object and stop
    55PASS if no item has a name or id value matching the parameter, return null and stop
    6 FAIL return an HTMLOptionsCollection in correct order for repeated 'id' value assert_array_equals: lengths differ, expected 2 got 0
    7 FAIL return an HTMLOptionsCollection in correct order for repeated 'name' value assert_array_equals: lengths differ, expected 2 got 0
    8 FAIL return an HTMLOptionsCollection in correct order for repeated mixed value assert_array_equals: lengths differ, expected 2 got 0
     6PASS if multiple items have a name or *id* value matching the parameter, return the first object and stop
     7PASS if multiple items have a *name* or id value matching the parameter, return the first object and stop
     8PASS if multiple items have a *name* or *id* value matching the parameter, return the first object and stop
    99
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-select-element/common-HTMLOptionsCollection-namedItem.html

    r189476 r194580  
    66<script src="/resources/testharness.js"></script>
    77<script src="/resources/testharnessreport.js"></script>
     8</head>
     9<body>
    810<div id="log"></div>
    911<select id="selly">
     
    3840
    3941test(function () {
    40     var testarr = [];
    41     for (var i = 0; i < selly.namedItem('id3').length; i++) {
    42         testarr.push(selly.namedItem('id3')[i].text);
    43     }
    44     assert_array_equals(testarr, ['3','duplicate ID']);
    45 }, "return an HTMLOptionsCollection in correct order for repeated 'id' value");
     42    assert_equals(selly.namedItem('id3')["value"], "3");
     43}, "if multiple items have a name or *id* value matching the parameter, return the first object and stop");
    4644
    4745test(function () {
    48     var testarr = [];
    49     for (var i = 0; i < selly.namedItem('name4').length; i++) {
    50         testarr.push(selly.namedItem('name4')[i].text);
    51     }
    52     assert_array_equals(testarr, ['4', 'duplicate name']);
    53 }, "return an HTMLOptionsCollection in correct order for repeated 'name' value");
     46    assert_equals(selly.namedItem('name4')["value"], "4");
     47}, "if multiple items have a *name* or id value matching the parameter, return the first object and stop");
    5448
    5549test(function () {
    56     var testarr = [];
    57     for (var i = 0; i < selly.namedItem('mixed1').length; i++) {
    58         testarr.push(selly.namedItem('mixed1')[i].text);
    59     }
    60     assert_array_equals(testarr, ['mixed ID', 'mixed name']);
    61 }, "return an HTMLOptionsCollection in correct order for repeated mixed value");
     50    assert_equals(selly.namedItem('mixed1')["value"], "mixed ID");
     51}, "if multiple items have a *name* or *id* value matching the parameter, return the first object and stop");
    6252</script>
     53</body>
     54</html>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/w3c-import.log

    r191379 r194580  
    1919/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/log.py
    2020/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-before-after-events.html
     21/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-for-event-xhtml.xhtml
    2122/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-for-event.html
    2223/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-language-type.html
     
    2526/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-noembed-noframes-iframe.xhtml
    2627/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-onload-string.html
     28/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text-xhtml.xhtml
    2729/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-frameset.html

    r191379 r194580  
    55<meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
    66<meta name="assert" content="Template element can not be a descendant of the frameset element">
    7 <link rel="help" href="https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inframeset">
     7<link rel="help" href="https://html.spec.whatwg.org/multipage/#parsing-main-inframeset">
    88<script src="/resources/testharness.js"></script>
    99<script src="/resources/testharnessreport.js"></script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/pseudo-classes/disabled-expected.txt

    r191379 r194580  
    1010FAIL ':disabled' should also match elements whose disabled attribute has been set assert_array_equals: lengths differ, expected 9 got 10
    1111FAIL ':disabled' should also match elements whose disabled attribute has been set twice assert_array_equals: lengths differ, expected 9 got 10
    12 FAIL ':disabled' should also match elements whose disabled attribute has been set twice assert_array_equals: lengths differ, expected 9 got 10
    1312FAIL ':disabled' should also match disabled elements whose type has changed assert_array_equals: lengths differ, expected 9 got 10
    1413FAIL ':disabled' should not match elements not in the document assert_array_equals: lengths differ, expected 9 got 10
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/pseudo-classes/disabled.html

    r191379 r194580  
    5252  testSelector(":disabled", ["button1", "input2", "select2", "optgroup2", "option2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should also match elements whose disabled attribute has been set twice");
    5353
    54   document.getElementById("button1").setAttribute("disabled", "disabled");
    55   testSelector(":disabled", ["button1", "input2", "select2", "optgroup2", "option2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should also match elements whose disabled attribute has been set twice");
    56 
    5754  document.getElementById("input2").setAttribute("type", "submit"); // change input type to submit
    5855  testSelector(":disabled", ["button1", "input2", "select2", "optgroup2", "option2", "textarea2", "fieldset2", "clubname", "clubnum"], "':disabled' should also match disabled elements whose type has changed");
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/attributes-common-to-td-and-th-elements/cellIndex-expected.txt

    r189476 r194580  
    55PASS For cells whose parent is not a HTML tr, cellIndex should be -1.
    66PASS For cells whose parent is a tr, cellIndex should be the index.
     7PASS For cells whose parent is a tr with non td/th sibling, cellIndex should skip those non td/th siblings.
    78
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/attributes-common-to-td-and-th-elements/cellIndex.html

    r189476 r194580  
    3939  assert_equals(td.cellIndex, 1);
    4040}, "For cells whose parent is a tr, cellIndex should be the index.")
     41test(function() {
     42  var tr = document.createElement("tr");
     43  var th = tr.appendChild(document.createElement("th"));
     44  assert_equals(th.cellIndex, 0);
     45  tr.appendChild(document.createElement("div"));
     46  tr.appendChild(document.createTextNode("Hello World"));
     47  var td = tr.appendChild(document.createElement("td"));
     48  assert_equals(td.cellIndex, 1)
     49}, "For cells whose parent is a tr with non td/th sibling, cellIndex should skip those non td/th siblings.")
    4150</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tbody-element/deleteRow-expected.txt

    r189476 r194580  
    1 12345
    21
    32PASS HTMLTableSectionElement deleteRow(0)
     
    54PASS HTMLTableSectionElement deleteRow(rows.length)
    65PASS HTMLTableSectionElement deleteRow(-2)
     6FAIL HTMLTableSectionElement deleteRow(-1) with no rows IndexSizeError: DOM Exception 1
    77
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tbody-element/deleteRow.html

    r189476 r194580  
    4444}, "HTMLTableSectionElement deleteRow(-2)");
    4545
     46test(function () {
     47  assert_equals(tbody.rows.length, 1);
     48  tbody.deleteRow(-1);
     49  assert_equals(tbody.rows.length, 0);
     50  tbody.deleteRow(-1);
     51  assert_equals(tbody.rows.length, 0);
     52}, "HTMLTableSectionElement deleteRow(-1) with no rows");
     53
    4654</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tbody-element/insertRow-expected.txt

    r189476 r194580  
    44PASS HTMLTableSectionElement insertRow(-1)
    55PASS HTMLTableSectionElement insertRow()
     6PASS HTMLTableSectionElement insertRow(rows.length)
    67PASS HTMLTableSectionElement insertRow(-2)
    78PASS HTMLTableSectionElement insertRow(rows.length + 1)
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tbody-element/insertRow.html

    r189476 r194580  
    3737
    3838test(function () {
     39  var trEle = tbody.insertRow(tbody.rows.length);
     40  assert_equals(tbody.rows[tbody.rows.length - 1], trEle);
     41  assert_equals(tbody.rows.length, 5);
     42}, "HTMLTableSectionElement insertRow(rows.length)");
     43
     44test(function () {
    3945  assert_throws("IndexSizeError", function () {
    4046    tbody.insertRow(-2);
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tr-element/deleteCell-expected.txt

    r189476 r194580  
    1 12345
    21
    32PASS HTMLTableRowElement deleteCell(0)
     
    54PASS HTMLTableRowElement deleteCell(-2)
    65PASS HTMLTableRowElement deleteCell(cells.length)
     6FAIL HTMLTableRowElement deleteCell(-1) with no cells IndexSizeError: DOM Exception 1
    77
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/the-tr-element/deleteCell.html

    r189476 r194580  
    4444}, "HTMLTableRowElement deleteCell(cells.length)");
    4545
     46test(function () {
     47  assert_equals(tr.cells.length, 1);
     48  tr.deleteCell(-1);
     49  assert_equals(tr.cells.length, 0);
     50  tr.deleteCell(-1);
     51  assert_equals(tr.cells.length, 0);
     52}, "HTMLTableRowElement deleteCell(-1) with no cells");
     53
    4654</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/w3c-import.log

    r194579 r194580  
    1616------------------------------------------------------------------------
    1717List of files:
    18 /LayoutTests/imported/w3c/web-platform-tests/html/semantic/document-metadata/styling/LinkStyle.html
     18/LayoutTests/imported/w3c/web-platform-tests/html/semantics/tabular-data/html-table-section-element.js
  • trunk/LayoutTests/imported/w3c/web-platform-tests/lint

    r191043 r194580  
    22import sys
    33
    4 from tools.lint import lint
     4try:
     5    from tools.lint import lint
     6except ImportError:
     7    print("tools.lint not found.  Did you forget to run "
     8          '"git submodule update --init --recursive"?')
     9    sys.exit(2)
    510
    611sys.exit(0 if lint.main() == 0 else 1)
  • trunk/LayoutTests/imported/w3c/web-platform-tests/lint.whitelist

    r191043 r194580  
    2525INDENT TABS: web-animations/*
    2626INDENT TABS: webaudio/*
    27 INDENT TABS: webdriver/*
    2827INDENT TABS: webvtt/*
    2928INDENT TABS: XMLHttpRequest/*
     
    4443TRAILING WHITESPACE: tools/*
    4544TRAILING WHITESPACE: webaudio/*
    46 TRAILING WHITESPACE: webdriver/*
    4745TRAILING WHITESPACE: WebIDL/*
    4846TRAILING WHITESPACE: webvtt/*
     
    109107PARSE-FAILED:content-security-policy/svg/including.sub.svg
    110108
     109#Helper files that aren't valid XML
     110PARSE-FAILED:dom/nodes/Document-createElement-namespace-tests/empty.xml
     111PARSE-FAILED:dom/nodes/Document-createElement-namespace-tests/minimal_html.xml
     112
     113# Git submodules are not currently scanned
     114*:tools/*
     115*:resources/*
Note: See TracChangeset for help on using the changeset viewer.