Remove shadow DOM tests
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Sep 2015 05:08:48 +0000 (05:08 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Sep 2015 05:08:48 +0000 (05:08 +0000)
https://bugs.webkit.org/show_bug.cgi?id=148669

Reviewed by Tim Horton.

* accessibility/corresponding-control-deleted-crash.html: Removed.
* editing/shadow: Removed.
* editing/text-iterator/basic-iteration-shadowdom.html: Removed.
* fast/dom/HTMLTemplateElement/cycles-in-shadow.html: Removed.
* fast/dom/shadow: Removed.
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/ios-simulator-wk1/TestExpectations:
* platform/ios-simulator-wk2/TestExpectations:
* platform/ios-simulator/TestExpectations:
* platform/mac-wk2/TestExpectations:
* platform/mac/TestExpectations:
* platform/win/TestExpectations:

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

578 files changed:
LayoutTests/ChangeLog
LayoutTests/accessibility/corresponding-control-deleted-crash.html [deleted file]
LayoutTests/editing/shadow/adjusting-editing-boundary-with-table-in-shadow-expected.txt [deleted file]
LayoutTests/editing/shadow/adjusting-editing-boundary-with-table-in-shadow.html [deleted file]
LayoutTests/editing/shadow/bold-twice-in-shadow-expected.txt [deleted file]
LayoutTests/editing/shadow/bold-twice-in-shadow.html [deleted file]
LayoutTests/editing/shadow/breaking-editing-boundaries-2-expected.txt [deleted file]
LayoutTests/editing/shadow/breaking-editing-boundaries-2.html [deleted file]
LayoutTests/editing/shadow/breaking-editing-boundaries-expected.txt [deleted file]
LayoutTests/editing/shadow/breaking-editing-boundaries.html [deleted file]
LayoutTests/editing/shadow/breaking-editing-boundary-with-table-expected.txt [deleted file]
LayoutTests/editing/shadow/breaking-editing-boundary-with-table.html [deleted file]
LayoutTests/editing/shadow/compare-positions-in-nested-shadow-expected.txt [deleted file]
LayoutTests/editing/shadow/compare-positions-in-nested-shadow.html [deleted file]
LayoutTests/editing/shadow/contenteditable-propagation-at-shadow-boundary-expected.txt [deleted file]
LayoutTests/editing/shadow/contenteditable-propagation-at-shadow-boundary.html [deleted file]
LayoutTests/editing/shadow/delete-characters-in-distributed-node-crash-expected.txt [deleted file]
LayoutTests/editing/shadow/delete-characters-in-distributed-node-crash.html [deleted file]
LayoutTests/editing/shadow/delete-list-in-shadow-expected.txt [deleted file]
LayoutTests/editing/shadow/delete-list-in-shadow.html [deleted file]
LayoutTests/editing/shadow/doubleclick-on-meter-in-shadow-crash-expected.txt [deleted file]
LayoutTests/editing/shadow/doubleclick-on-meter-in-shadow-crash.html [deleted file]
LayoutTests/editing/shadow/execcommand-indent-in-shadow-expected.txt [deleted file]
LayoutTests/editing/shadow/execcommand-indent-in-shadow.html [deleted file]
LayoutTests/editing/shadow/insertorderedlist-crash-expected.txt [deleted file]
LayoutTests/editing/shadow/insertorderedlist-crash.html [deleted file]
LayoutTests/editing/shadow/pressing-enter-on-list-expected.txt [deleted file]
LayoutTests/editing/shadow/pressing-enter-on-list.html [deleted file]
LayoutTests/editing/shadow/rightclick-on-meter-in-shadow-crash-expected.txt [deleted file]
LayoutTests/editing/shadow/rightclick-on-meter-in-shadow-crash.html [deleted file]
LayoutTests/editing/shadow/select-contenteditable-shadowhost-expected.txt [deleted file]
LayoutTests/editing/shadow/select-contenteditable-shadowhost.html [deleted file]
LayoutTests/editing/shadow/selection-of-orphan-shadowroot-expected.txt [deleted file]
LayoutTests/editing/shadow/selection-of-orphan-shadowroot.html [deleted file]
LayoutTests/editing/shadow/selection-of-shadowroot-expected.txt [deleted file]
LayoutTests/editing/shadow/selection-of-shadowroot.html [deleted file]
LayoutTests/editing/shadow/shadow-selection-not-exported-expected.txt [deleted file]
LayoutTests/editing/shadow/shadow-selection-not-exported.html [deleted file]
LayoutTests/editing/text-iterator/basic-iteration-shadowdom.html [deleted file]
LayoutTests/fast/dom/HTMLTemplateElement/cycles-in-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/access-key-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/access-key.html [deleted file]
LayoutTests/fast/dom/shadow/activeelement-should-be-shadowhost-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/activeelement-should-be-shadowhost.html [deleted file]
LayoutTests/fast/dom/shadow/adopt-node-with-shadow-root-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/adopt-node-with-shadow-root.html [deleted file]
LayoutTests/fast/dom/shadow/athost-apply-dynamically-expected.html [deleted file]
LayoutTests/fast/dom/shadow/athost-apply-dynamically.html [deleted file]
LayoutTests/fast/dom/shadow/athost-atrules-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/athost-atrules.html [deleted file]
LayoutTests/fast/dom/shadow/base-in-shadow-tree-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/base-in-shadow-tree.html [deleted file]
LayoutTests/fast/dom/shadow/caret-range-from-point-in-nested-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/caret-range-from-point-in-nested-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/compare-document-position-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/compare-document-position.html [deleted file]
LayoutTests/fast/dom/shadow/composed-shadow-tree-walker-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/composed-shadow-tree-walker-shadow-reprojection-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/composed-shadow-tree-walker-shadow-reprojection.html [deleted file]
LayoutTests/fast/dom/shadow/composed-shadow-tree-walker.html [deleted file]
LayoutTests/fast/dom/shadow/content-after-style-expected.html [deleted file]
LayoutTests/fast/dom/shadow/content-after-style.html [deleted file]
LayoutTests/fast/dom/shadow/content-child-whitespace-between-span-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-child-whitespace-between-span.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-api-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-element-api.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-distributed-nodes-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-element-distributed-nodes.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-in-media-element-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-element-in-media-element.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-in-meter-element-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-element-in-meter-element.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-in-progress-element-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-element-in-progress-element.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-in-select-element-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-element-in-select-element.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-includer-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-element-includer.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-move-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-element-move.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-outside-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-element-outside-shadow-style-expected.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-outside-shadow-style.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-outside-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-renderers-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-element-renderers.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-select-dynamic-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-element-select-dynamic.html [deleted file]
LayoutTests/fast/dom/shadow/content-element-user-agent-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-element-user-agent-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-complex-expected.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-complex.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-dynamic-expected.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-dynamic.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-fallback-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-fallback-crash.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-fallback-expected.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-fallback-reprojection-expected.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-fallback-reprojection.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-fallback.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-order-expected.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-order.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/content-reprojection-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/content-selector-query-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-selector-query.html [deleted file]
LayoutTests/fast/dom/shadow/content-shadow-unknown-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/content-shadow-unknown.html [deleted file]
LayoutTests/fast/dom/shadow/cppevent-in-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/cppevent-in-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/cppevent-input-in-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/cppevent-input-in-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/create-content-element-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/create-content-element.html [deleted file]
LayoutTests/fast/dom/shadow/css-hostrule-api-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/css-hostrule-api.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-css-text-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-css-text.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-for-shadow-element-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-for-shadow-element.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-match-all-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-match-all.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-match-descendant-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-match-descendant.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-nested-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-nested.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-no-match-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-no-match.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-reprojection-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-reprojection.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-scoped-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-scoped.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-specifiers-in-left-side-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-specifiers-in-left-side.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-support-selector-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-support-selector.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-used-in-selector-list-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-used-in-selector-list.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-with-any-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element-with-any.html [deleted file]
LayoutTests/fast/dom/shadow/distributed-pseudo-element.html [deleted file]
LayoutTests/fast/dom/shadow/distribution-attribute-modified-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distribution-attribute-modified.html [deleted file]
LayoutTests/fast/dom/shadow/distribution-className-modified-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distribution-className-modified.html [deleted file]
LayoutTests/fast/dom/shadow/distribution-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/distribution-crash.html [deleted file]
LayoutTests/fast/dom/shadow/distribution-id-modified-expected.html [deleted file]
LayoutTests/fast/dom/shadow/distribution-id-modified.html [deleted file]
LayoutTests/fast/dom/shadow/drag-to-meter-in-shadow-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/drag-to-meter-in-shadow-crash.html [deleted file]
LayoutTests/fast/dom/shadow/drop-event-for-input-in-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/drop-event-for-input-in-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/drop-event-in-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/drop-event-in-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/dynamically-created-shadow-root-expected.html [deleted file]
LayoutTests/fast/dom/shadow/dynamically-created-shadow-root.html [deleted file]
LayoutTests/fast/dom/shadow/element-from-point-in-nested-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/element-from-point-in-nested-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/element-name-in-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/element-name-in-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/elementfrompoint-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/elementfrompoint.html [deleted file]
LayoutTests/fast/dom/shadow/elements-in-frameless-document-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/elements-in-frameless-document.html [deleted file]
LayoutTests/fast/dom/shadow/events-stopped-at-shadow-boundary-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/events-stopped-at-shadow-boundary.html [deleted file]
LayoutTests/fast/dom/shadow/focus-navigation-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/focus-navigation-with-distributed-nodes-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/focus-navigation-with-distributed-nodes.html [deleted file]
LayoutTests/fast/dom/shadow/focus-navigation.html [deleted file]
LayoutTests/fast/dom/shadow/form-in-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/frameless-media-element-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/frameless-media-element-crash.html [deleted file]
LayoutTests/fast/dom/shadow/gc-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/gc-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/gesture-tap-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/gesture-tap.html [deleted file]
LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan.html [deleted file]
LayoutTests/fast/dom/shadow/get-element-by-id-in-shadow-mutation-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/get-element-by-id-in-shadow-mutation.html [deleted file]
LayoutTests/fast/dom/shadow/get-element-by-id-in-shadow-root-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/get-element-by-id-in-shadow-root.html [deleted file]
LayoutTests/fast/dom/shadow/getelementbyid-in-orphan-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/getelementbyid-in-orphan.html [deleted file]
LayoutTests/fast/dom/shadow/getelementbyid-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/getelementbyid-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/has-content-elements-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/has-content-elements.html [deleted file]
LayoutTests/fast/dom/shadow/has-elementshadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/has-elementshadow.html [deleted file]
LayoutTests/fast/dom/shadow/has-shadow-insertion-point-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/has-shadow-insertion-point.html [deleted file]
LayoutTests/fast/dom/shadow/host-wrapper-reclaimed-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/host-wrapper-reclaimed.html [deleted file]
LayoutTests/fast/dom/shadow/iframe-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/iframe-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/input-shadow-nochange-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/input-shadow-nochange.html [deleted file]
LayoutTests/fast/dom/shadow/input-with-validation-expected.html [deleted file]
LayoutTests/fast/dom/shadow/input-with-validation-without-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/input-with-validation-without-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/input-with-validation.html [deleted file]
LayoutTests/fast/dom/shadow/insertion-parent-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/insertion-parent-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/insertion-parent-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/insertion-parent.html [deleted file]
LayoutTests/fast/dom/shadow/insertion-point-list-menu-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/insertion-point-list-menu-crash.html [deleted file]
LayoutTests/fast/dom/shadow/insertion-point-resetStyleInheritance-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/insertion-point-resetStyleInheritance-with-pseudo-element-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/insertion-point-resetStyleInheritance-with-pseudo-element-crash.html [deleted file]
LayoutTests/fast/dom/shadow/insertion-point-resetStyleInheritance.html [deleted file]
LayoutTests/fast/dom/shadow/insertion-point-shadow-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/insertion-point-shadow-crash.html [deleted file]
LayoutTests/fast/dom/shadow/insertion-point-video-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/insertion-point-video-crash.html [deleted file]
LayoutTests/fast/dom/shadow/insertion-points-with-shadow-disabled-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/insertion-points-with-shadow-disabled.html [deleted file]
LayoutTests/fast/dom/shadow/invalidate-distribution-expected.html [deleted file]
LayoutTests/fast/dom/shadow/invalidate-distribution.html [deleted file]
LayoutTests/fast/dom/shadow/layout-tests-can-access-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/layout-tests-can-access-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/link-in-shadow-tree-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/link-in-shadow-tree.html [deleted file]
LayoutTests/fast/dom/shadow/multiple-shadowroot-adopt-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/multiple-shadowroot-adopt.html [deleted file]
LayoutTests/fast/dom/shadow/multiple-shadowroot-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/multiple-shadowroot-rendering-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/multiple-shadowroot-rendering.html [deleted file]
LayoutTests/fast/dom/shadow/multiple-shadowroot.html [deleted file]
LayoutTests/fast/dom/shadow/multiple-shadowroots-with-empty-styles-expected.html [deleted file]
LayoutTests/fast/dom/shadow/multiple-shadowroots-with-empty-styles.html [deleted file]
LayoutTests/fast/dom/shadow/nested-reprojection-inconsistent-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/nested-reprojection-inconsistent.html [deleted file]
LayoutTests/fast/dom/shadow/no-renderers-for-light-children-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/no-renderers-for-light-children.html [deleted file]
LayoutTests/fast/dom/shadow/no-style-sharing-with-distributed-nodes-expected.html [deleted file]
LayoutTests/fast/dom/shadow/no-style-sharing-with-distributed-nodes.html [deleted file]
LayoutTests/fast/dom/shadow/nodetype-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/nodetype.html [deleted file]
LayoutTests/fast/dom/shadow/offset-parent-does-not-leak-ua-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/offset-parent-does-not-leak-ua-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/olderShadowRoot-in-shadowelement-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/olderShadowRoot-in-shadowelement.html [deleted file]
LayoutTests/fast/dom/shadow/parent-tree-scope-in-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/parent-tree-scope-in-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/pseudo-attribute-dynamic-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudo-attribute-dynamic.html [deleted file]
LayoutTests/fast/dom/shadow/pseudo-attribute-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/pseudo-attribute-rendering-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudo-attribute-rendering.html [deleted file]
LayoutTests/fast/dom/shadow/pseudo-attribute.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-checked-input-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-checked-input.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-checked-option-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-checked-option.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-button-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-button.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-fieldset-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-fieldset.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-input-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-input.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-optgroup-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-optgroup.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-option-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-option.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-select-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-select.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-textarea-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-disabled-textarea.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-anchor-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-anchor.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-area-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-area.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-button-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-button.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-fieldset-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-fieldset.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-input-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-input.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-optgroup-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-optgroup.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-option-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-option.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-select-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-select.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-textarea-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-textarea.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-indeterminate-input-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-indeterminate-input.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-indeterminate-progress-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-indeterminate-progress.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-link-anchor-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-link-anchor.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-link-area-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-link-area.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-target-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-target.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-visited-anchor-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-visited-anchor.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-visited-area-expected.html [deleted file]
LayoutTests/fast/dom/shadow/pseudoclass-update-visited-area.html [deleted file]
LayoutTests/fast/dom/shadow/remove-styles-in-shadow-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/remove-styles-in-shadow-crash.html [deleted file]
LayoutTests/fast/dom/shadow/reprojection-attribute-modified-expected.html [deleted file]
LayoutTests/fast/dom/shadow/reprojection-attribute-modified.html [deleted file]
LayoutTests/fast/dom/shadow/reprojection-className-modified-expected.html [deleted file]
LayoutTests/fast/dom/shadow/reprojection-className-modified.html [deleted file]
LayoutTests/fast/dom/shadow/reprojection-id-modified-expected.html [deleted file]
LayoutTests/fast/dom/shadow/reprojection-id-modified.html [deleted file]
LayoutTests/fast/dom/shadow/resize-in-shadow-dom-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/resize-in-shadow-dom.html [deleted file]
LayoutTests/fast/dom/shadow/resources/event-dispatching.js [deleted file]
LayoutTests/fast/dom/shadow/resources/link-in-shadow-style.css [deleted file]
LayoutTests/fast/dom/shadow/resources/polyfill.js [deleted file]
LayoutTests/fast/dom/shadow/resources/replaced-element-styles.css [deleted file]
LayoutTests/fast/dom/shadow/resources/shadow-dom-util.js [deleted file]
LayoutTests/fast/dom/shadow/resources/shadow-dom.js [deleted file]
LayoutTests/fast/dom/shadow/resources/shadow-tree-listener-clearance-frame.html [deleted file]
LayoutTests/fast/dom/shadow/scrollbar-expected.html [deleted file]
LayoutTests/fast/dom/shadow/scrollbar.html [deleted file]
LayoutTests/fast/dom/shadow/select-in-shadowdom-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/select-in-shadowdom.html [deleted file]
LayoutTests/fast/dom/shadow/selection-in-nested-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/selection-in-nested-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/selection-shouldnt-expose-shadow-dom-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/selection-shouldnt-expose-shadow-dom.html [deleted file]
LayoutTests/fast/dom/shadow/selections-in-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/selections-in-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-and-list-elements-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-and-list-elements.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-aware-create-shadow-root-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-aware-create-shadow-root.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-aware-shadow-root-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-aware-shadow-root.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-boundary-crossing-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-boundary-crossing.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-boundary-events-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-boundary-events.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-content-crash-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-content-crash.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-contents-event-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-contents-event.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-contents-fallback-dynamic-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-contents-fallback-dynamic.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-contents-fallback-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-contents-fallback.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-contents-select-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-contents-select.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-disable-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-disable.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-div-reflow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-div-reflow.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-enabled-flag-whitelist-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-enabled-flag-whitelist.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-child-of-inactive-content-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-child-of-inactive-content.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-details-summary-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-details-summary.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-distributed-child-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-distributed-child.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-distributed-text-node-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-distributed-text-node.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-fallback-nodes-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-fallback-nodes.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-manually-fired-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-manually-fired-with-same-related-target-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-manually-fired-with-same-related-target.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-manually-fired.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-multiple-shadow-roots-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-multiple-shadow-roots.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-nested-shadow-roots-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-nested-shadow-roots.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-non-distributed-nodes-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-non-distributed-nodes.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-svg-in-shadow-subtree-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-svg-in-shadow-subtree.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-text-node-in-shadow-root-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching-text-node-in-shadow-root.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-mouse-event-adjust-offset-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dom-mouse-event-adjust-offset.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-dynamic-style-change-via-mutation-and-selector-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-dynamic-style-change-via-mutation-and-selector.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-element-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-element-rendering-multiple-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-element-rendering-multiple.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-element-rendering-single-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-element-rendering-single.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-element.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-hierarchy-exception-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-hierarchy-exception.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-nested-pseudo-id-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-nested-pseudo-id.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-on-image-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-on-image.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-pseudo-id-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-pseudo-id.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-removechild-and-blur-event-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-removechild-and-blur-event.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-reprojection-click-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-reprojection-click.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-reprojection-dynamic-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-reprojection-dynamic.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-reprojection-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-reprojection-fallback-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-reprojection-fallback.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-reprojection.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-reprojection2-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-reprojection2.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-activeElement-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-activeElement.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-append-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-append.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-applyAuthorStyles-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-applyAuthorStyles.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-attached-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-attached.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-blur-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-blur.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-innerHTML-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-innerHTML.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-js-api-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-js-api.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-new-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-new.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-node-list-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-node-list.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-resetStyleInheritance-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-resetStyleInheritance.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-text-child-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-text-child.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-touch-listener-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-root-touch-listener-crash.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-select-attribute-featureset-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-select-attribute-featureset.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-tree-listener-clearance-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-tree-listener-clearance.html [deleted file]
LayoutTests/fast/dom/shadow/shadow-ul-li-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadow-ul-li.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-dynamic-styling-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-dynamic-styling.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-button-complex-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-button-complex-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-button-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-button-only-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-button-only-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-button-without-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-button-without-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-button.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-fieldset-complex-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-fieldset-complex-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-fieldset-only-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-fieldset-only-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-fieldset-without-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-fieldset-without-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-form-associated-element-useragent.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-image-event-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-image-event.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-keygen-complex-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-keygen-complex-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-keygen-only-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-keygen-only-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-keygen-without-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-keygen-without-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-media-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-media.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-meter-dynamic-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-meter-dynamic.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-meter-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-meter-multiple-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-meter-multiple.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-meter-with-style-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-meter-with-style.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-appearance-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-appearance.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-shadow-element-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-meter-without-shadow-element.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-meter.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-object-complex-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-object-complex-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-object-only-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-object-only-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-object-without-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-object-without-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-output-complex-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-output-complex-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-output-only-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-output-only-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-output-without-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-output-without-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-progress-dynamic-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-progress-dynamic.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-progress-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-progress-multiple-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-progress-multiple.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-progress-with-style-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-progress-with-style.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-appearance-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-appearance.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-shadow-element-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-progress-without-shadow-element.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-progress.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-select-complex-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-select-complex-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-select-only-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-select-only-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-select-without-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-select-without-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-complex-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-complex-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-only-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-only-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-with-attribute-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-with-attribute.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-with-placeholder-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-with-placeholder.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-with-style-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-with-style.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-without-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea-without-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-for-textarea.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-reprojection-1-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-reprojection-1.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-reprojection-2-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowdom-reprojection-2.html [deleted file]
LayoutTests/fast/dom/shadow/shadowroot-clonenode-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadowroot-clonenode.html [deleted file]
LayoutTests/fast/dom/shadow/shadowroot-of-insertionpoint-expected.html [deleted file]
LayoutTests/fast/dom/shadow/shadowroot-of-insertionpoint.html [deleted file]
LayoutTests/fast/dom/shadow/shadowroot-type-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/shadowroot-type.html [deleted file]
LayoutTests/fast/dom/shadow/style-of-distributed-node-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/style-of-distributed-node.html [deleted file]
LayoutTests/fast/dom/shadow/style-scoped-not-enabled-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/style-scoped-not-enabled.html [deleted file]
LayoutTests/fast/dom/shadow/styling-pseudo-attribute-expected.html [deleted file]
LayoutTests/fast/dom/shadow/styling-pseudo-attribute.html [deleted file]
LayoutTests/fast/dom/shadow/suppress-mutation-events-in-shadow-characterdata-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/suppress-mutation-events-in-shadow-characterdata.html [deleted file]
LayoutTests/fast/dom/shadow/suppress-mutation-events-in-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/suppress-mutation-events-in-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/tab-order-iframe-and-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/tab-order-iframe-and-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/text-node-distributed-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/text-node-distributed-crash.html [deleted file]
LayoutTests/fast/dom/shadow/text-node-in-shadow-expected.html [deleted file]
LayoutTests/fast/dom/shadow/text-node-in-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/title-element-in-shadow-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/title-element-in-shadow.html [deleted file]
LayoutTests/fast/dom/shadow/touch-event-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/touch-event-retargeting-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/touch-event-retargeting.html [deleted file]
LayoutTests/fast/dom/shadow/touch-event.html [deleted file]
LayoutTests/fast/dom/shadow/transition-on-shadow-host-with-distributed-node-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/transition-on-shadow-host-with-distributed-node.html [deleted file]
LayoutTests/fast/dom/shadow/tree-scope-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/tree-scope-crash.html [deleted file]
LayoutTests/fast/dom/shadow/user-modify-in-datalist-crash-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/user-modify-in-datalist-crash.html [deleted file]
LayoutTests/fast/dom/shadow/user-modify-inheritance-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/user-modify-inheritance.html [deleted file]
LayoutTests/fast/dom/shadow/wheel-event-in-shadow-dom-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/wheel-event-in-shadow-dom.html [deleted file]
LayoutTests/fast/dom/shadow/wheel-event-on-input-in-shadow-dom-expected.txt [deleted file]
LayoutTests/fast/dom/shadow/wheel-event-on-input-in-shadow-dom.html [deleted file]
LayoutTests/platform/efl/TestExpectations
LayoutTests/platform/gtk/TestExpectations
LayoutTests/platform/ios-simulator-wk1/TestExpectations
LayoutTests/platform/ios-simulator-wk2/TestExpectations
LayoutTests/platform/ios-simulator/TestExpectations
LayoutTests/platform/mac-wk2/TestExpectations
LayoutTests/platform/mac/TestExpectations
LayoutTests/platform/win/TestExpectations

index e29d7a8..61dd0e5 100644 (file)
@@ -1,3 +1,24 @@
+2015-08-31  Alexey Proskuryakov  <ap@apple.com>
+
+        Remove shadow DOM tests
+        https://bugs.webkit.org/show_bug.cgi?id=148669
+
+        Reviewed by Tim Horton.
+
+        * accessibility/corresponding-control-deleted-crash.html: Removed.
+        * editing/shadow: Removed.
+        * editing/text-iterator/basic-iteration-shadowdom.html: Removed.
+        * fast/dom/HTMLTemplateElement/cycles-in-shadow.html: Removed.
+        * fast/dom/shadow: Removed.
+        * platform/efl/TestExpectations:
+        * platform/gtk/TestExpectations:
+        * platform/ios-simulator-wk1/TestExpectations:
+        * platform/ios-simulator-wk2/TestExpectations:
+        * platform/ios-simulator/TestExpectations:
+        * platform/mac-wk2/TestExpectations:
+        * platform/mac/TestExpectations:
+        * platform/win/TestExpectations:
+
 2015-08-31  Chris Dumez  <cdumez@apple.com>
 
         Range API is throwing wrong exception type
diff --git a/LayoutTests/accessibility/corresponding-control-deleted-crash.html b/LayoutTests/accessibility/corresponding-control-deleted-crash.html
deleted file mode 100644 (file)
index b366e3e..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../resources/js-test-pre.js"></script>
-</head>
-<body>
-
-<p id="description"></p>
-<div id="console"></div>
-
-<script>
-    description("Make sure that a debug assert is not triggered when a call to RenderBlock::deleteLineBoxTree calls AccessibilityRenderObject::accessibilityIsIgnored which may require the AXObject for a node that is being deleted.");
-
-    var label = document.createElement('label');
-    label.style.position = 'fixed';
-    document.body.appendChild(label);
-
-    var progress = document.createElement('progress');
-    progress.style.display = 'block';
-    label.appendChild(progress);
-
-    var kbd = document.createElement('kbd');
-    label.appendChild(kbd);
-
-    var labelShadow = label.webkitCreateShadowRoot();
-
-    var select = document.createElement('select');
-    select.setAttribute('multiple', 'multiple');
-    labelShadow.appendChild(select);
-
-    var shadow = document.createElement('shadow');
-    labelShadow.appendChild(shadow);
-
-    select.focus();
-
-    document.body.removeChild(label);
-
-</script>
-<script src="../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/adjusting-editing-boundary-with-table-in-shadow-expected.txt b/LayoutTests/editing/shadow/adjusting-editing-boundary-with-table-in-shadow-expected.txt
deleted file mode 100644 (file)
index 999c84e..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-Selecting around a table which is distributed from shadow subtree to nested shadow subtree will trigger an assertion. To try manually, select from "shadow 2" to around "after" and confirm a crash does not occur.
-
-PASS
diff --git a/LayoutTests/editing/shadow/adjusting-editing-boundary-with-table-in-shadow.html b/LayoutTests/editing/shadow/adjusting-editing-boundary-with-table-in-shadow.html
deleted file mode 100644 (file)
index 43c03bf..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-<script src="../../fast/dom/resources/event-sender-util.js"></script>
-
-<div id="container" contenteditable>
-    <table border="1" id="host" contenteditable>
-        <tr><td>host 1</td></tr>
-        <tr><td>host 2</td></tr>
-    </table>
-</div>
-
-<p id="description">Selecting around a table which is distributed from shadow subtree to nested shadow subtree will trigger an assertion. To try manually, select from "shadow 2" to around "after" and confirm a crash does not occur.</p>
-
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-var shadowRoot = host.webkitCreateShadowRoot();
-var div = document.createElement('div');
-shadowRoot.appendChild(div);
-div.innerHTML = "<table border='1'><tr><td>shadow 1</td></tr><tr><td id='src'>shadow 2</td></tr></table>";
-
-var nestedShadowRoot = div.webkitCreateShadowRoot();
-nestedShadowRoot.innerHTML = "<div contenteditable>before<shadow></shadow>after</div>";
-
-var src = shadowRoot.getElementById('src');
-
-if (window.eventSender) {
-    eventSender.mouseMoveTo(src.offsetLeft + 10, src.offsetTop + src.offsetHeight / 2);
-    eventSender.mouseDown();
-    eventSender.mouseMoveTo(src.offsetLeft - 10, src.offsetTop + src.offsetHeight / 2);
-    eventSender.mouseUp();
-
-    container.innerHTML = "PASS";
-}
-
-// When description comes before container, this test will not fail if code is wrong. So let's move here.
-container.parentNode.insertBefore(description, container);
-</script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/bold-twice-in-shadow-expected.txt b/LayoutTests/editing/shadow/bold-twice-in-shadow-expected.txt
deleted file mode 100644 (file)
index 62d79b3..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-Applying document.execCommand('Bold') to elements having insertion points (<shadow> or <content>) shoud not cause a crash.
-
-To test manually, make a selection from somewhere in "nested before" to somehwere in "nested after", then press Ctrl+B twice. It should not cause a crash.
-
-PASS
-
diff --git a/LayoutTests/editing/shadow/bold-twice-in-shadow.html b/LayoutTests/editing/shadow/bold-twice-in-shadow.html
deleted file mode 100644 (file)
index 368f545..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-<script src="../../fast/dom/resources/event-sender-util.js"></script>
-
-<p>Applying document.execCommand('Bold') to elements having insertion points (&lt;shadow&gt; or &lt;content&gt;) shoud not cause a crash.</p>
-<p>To test manually, make a selection from somewhere in "nested before" to somehwere in "nested after", then press Ctrl+B twice. It should not cause a crash.</p>
-
-<div id="container" contenteditable>
-    before host
-    <div id="host">    <span contenteditable="false">not editable<span></div>
-    after host
-</div>
-<pre id="console"></pre>
-
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-var shadowRoot = host.webkitCreateShadowRoot();
-shadowRoot.innerHTML = '<div id="shadow-host"><span contenteditable>shadow before</span><shadow></shadow>shadow (after)</div>';
-
-var nestedShadowHost = shadowRoot.getElementById('shadow-host');
-var nestedShadowRoot = nestedShadowHost.webkitCreateShadowRoot();
-nestedShadowRoot.innerHTML = '<div id="inner" contenteditable>nested before<shadow></shadow>nested after</div>';
-
-if (window.eventSender) {
-    var div = nestedShadowRoot.getElementById('inner');
-
-    eventSender.mouseMoveTo(div.offsetLeft + 5, div.offsetTop + div.offsetHeight / 2);
-    eventSender.mouseDown();
-    eventSender.mouseMoveTo(div.offsetLeft + div.offsetWidth - 5, div.offsetTop + div.offsetHeight / 2);
-    eventSender.mouseUp();
-
-    document.execCommand('Bold');
-    document.execCommand('Bold');
-
-    container.innerHTML = "PASS";
-}
-</script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/breaking-editing-boundaries-2-expected.txt b/LayoutTests/editing/shadow/breaking-editing-boundaries-2-expected.txt
deleted file mode 100644 (file)
index 7c0dcba..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-When selecting from a child of ShadowRoot to an element outside of shadow host, a crash should not be caused.
-
-To test manually, select from 'before shadow' to 'after host'.
-
-PASS
diff --git a/LayoutTests/editing/shadow/breaking-editing-boundaries-2.html b/LayoutTests/editing/shadow/breaking-editing-boundaries-2.html
deleted file mode 100644 (file)
index 2adadd8..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-
-<p>When selecting from a child of ShadowRoot to an element outside of shadow host, a crash should not be caused.</p>
-<p>To test manually, select from 'before shadow' to 'after host'.</p>
-
-<div id="container" contenteditable>
-    <div><p>before host</p></div>
-    <div id="host">host</div> 
-    <div id="destination">after host</div>
-</div>
-
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-var shadowRoot = host.webkitCreateShadowRoot();
-var div = document.createElement('div');
-div.setAttribute('contenteditable', 'true');
-shadowRoot.appendChild(div);
-div.innerHTML = "<div id='source'>before shadow</div><shadow></shadow><div>after shadow</div>";
-
-var nestedShadowRoot = div.webkitCreateShadowRoot();
-nestedShadowRoot.innerHTML = "<div contenteditable>before nested<shadow></shadow>after nested</div>";
-
-var source = shadowRoot.getElementById('source');
-var destination = document.getElementById('destination');
-
-if (window.eventSender) {
-    eventSender.mouseMoveTo(source.offsetLeft + 20, source.offsetTop + source.offsetHeight / 2);
-    eventSender.mouseDown();
-    eventSender.mouseMoveTo(destination.offsetLeft + 20, destination.offsetTop + destination.offsetHeight / 2);
-    eventSender.mouseUp();
-
-    container.innerHTML = "PASS";
-}
-</script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/breaking-editing-boundaries-expected.txt b/LayoutTests/editing/shadow/breaking-editing-boundaries-expected.txt
deleted file mode 100644 (file)
index 72e7c1f..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-When selecting from a child of shadow host to an element in Shadow DOM, a crash should not be caused. This is because the start position of Selection comes after the end position of Selection.
-
-before host drag from here after host
-PASS
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/editing/shadow/breaking-editing-boundaries.html b/LayoutTests/editing/shadow/breaking-editing-boundaries.html
deleted file mode 100644 (file)
index bce87d6..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-<script src="../../fast/dom/resources/event-sender-util.js"></script>
-<script src="../../resources/js-test-pre.js"></script>
-
-<p>When selecting from a child of shadow host to an element in Shadow DOM, a crash should not be caused.
-This is because the start position of Selection comes after the end position of Selection.</p>
-
-<div contenteditable>
-    before host <span id="host" contenteditable="false">drag from here<span id="target"> </span> after host</span>
-</div>
-<pre id="console"></pre>
-
-<script>
-var shadowRoot = host.webkitCreateShadowRoot();
-shadowRoot.innerHTML = "<span id='shadow-host'>before shadow<shadow id='shadow'></shadow>after shadow</span>"
-
-var nestedShadowHost = shadowRoot.getElementById('shadow-host');
-var nestedShadowRoot = nestedShadowHost.webkitCreateShadowRoot();
-nestedShadowRoot.innerHTML = "<span contenteditable>before nested<shadow></shadow>after nested</span>"
-
-// This should not cause a crash.
-eventSender.mouseMoveTo(target.offsetLeft - 10, target.offsetTop + target.offsetHeight / 2);
-eventSender.mouseDown();
-eventSender.mouseMoveTo(nestedShadowHost.offsetLeft + 10, nestedShadowHost.offsetTop + nestedShadowHost.offsetHeight / 2);
-eventSender.mouseUp();
-debug('PASS');
-
-var successfullyParsed = true;
-</script>
-
-<script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/breaking-editing-boundary-with-table-expected.txt b/LayoutTests/editing/shadow/breaking-editing-boundary-with-table-expected.txt
deleted file mode 100644 (file)
index 9fb67e9..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-On the second time selecting <span>, it should not become non-contenteditable. If it becomes non-contenteditable, the selection from <span> to <table> will break editing boundaries and contain "a". This test checks the <span> does not changed to non-contenteditable element.
-
-PASS contains(selectedString, "a") is false
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/editing/shadow/breaking-editing-boundary-with-table.html b/LayoutTests/editing/shadow/breaking-editing-boundary-with-table.html
deleted file mode 100644 (file)
index 1bea0ff..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html>
-
-<html>
-<body>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-<script src="../../fast/dom/resources/event-sender-util.js"></script>
-<script src="../../resources/js-test-pre.js"></script>
-
-<p>On the second time selecting &lt;span&gt;, it should not become non-contenteditable.
-If it becomes non-contenteditable, the selection from &lt;span&gt; to &lt;table&gt;
-will break editing boundaries and contain "a".
-This test checks the &lt;span&gt; does not changed to non-contenteditable element.</p>
-
-<div id="host" contenteditable></div>
-<pre id="console"></pre>
-
-<script>
-var shadowRoot = host.webkitCreateShadowRoot();
-shadowRoot.innerHTML = '<table border="1">' +
-    '<tr><td id="dst">aaaaa</td><td id="another">aaaaa</td></tr>' +
-    '<tr><td>aaaaa</td><td>aaaaa</td></tr>' +
-    '</table><span id="src" contenteditable>bbbbb</span>';
-
-var src = shadowRoot.getElementById('src');
-var dst = shadowRoot.getElementById('dst');
-var another = shadowRoot.getElementById('another');
-
-// 1. Select from src to dst.
-mouseMoveToElem(src);
-eventSender.mouseDown();
-mouseMoveToElem(dst);
-eventSender.mouseUp();
-
-// 2. Click some element.
-mouseMoveToElem(another);
-eventSender.mouseDown();
-eventSender.mouseUp();
-
-// 3. Select from src to dst again.
-mouseMoveToElem(src);
-eventSender.mouseDown();
-mouseMoveToElem(dst);
-eventSender.mouseUp();
-
-function contains(str, key) {
-    return str.indexOf(key) >= 0;
-}
-
-var selectedString = shadowRoot.getSelection().toString();
-shouldBeFalse('contains(selectedString, "a")');
-
-var successfullyParsed = true;
-</script>
-<script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/compare-positions-in-nested-shadow-expected.txt b/LayoutTests/editing/shadow/compare-positions-in-nested-shadow-expected.txt
deleted file mode 100644 (file)
index 32ee0bc..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-PASS selection2.anchorNode is selection2.focusNode
-PASS selection2.anchorOffset is 5
-PASS selection2.focusOffset is 0
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/editing/shadow/compare-positions-in-nested-shadow.html b/LayoutTests/editing/shadow/compare-positions-in-nested-shadow.html
deleted file mode 100644 (file)
index 9cd26a5..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-<script src="../../fast/dom/resources/event-sender-util.js"></script>
-<script src="../../resources/js-test-pre.js"></script>
-
-<div id="host1"></div>
-<div id="host2"></div>
-<pre id="console"></pre>
-
-<script>
-function createBox(name) {
-    var div = document.createElement('div');
-    div.style.width = '100px';
-    div.style.height = '100px';
-    return div;
-}
-
-function createNestedShadowDOM(host, content) {
-    var shadowRoot = host.webkitCreateShadowRoot();
-    var div = document.createElement('div');
-    shadowRoot.appendChild(div);
-
-    var nestedShadowRoot = div.webkitCreateShadowRoot();
-    var divInNestedShadowRoot = document.createElement('div');
-    divInNestedShadowRoot.innerHTML = content;
-    nestedShadowRoot.appendChild(divInNestedShadowRoot);
-
-    return nestedShadowRoot;
-}
-
-var nestedShadowRoot1 = createNestedShadowDOM(host1, 'FUTAMI');
-var nestedShadowRoot2 = createNestedShadowDOM(host2, 'AMAMI');
-
-var div1 = nestedShadowRoot1.firstChild;
-var div2 = nestedShadowRoot2.firstChild;
-
-if (window.eventSender) {
-    mouseMoveToElem(div2);
-    eventSender.mouseDown();
-    mouseMoveToElem(div1);
-    eventSender.mouseUp();
-
-    var selection2 = nestedShadowRoot2.getSelection();
-    shouldBe('selection2.anchorNode', 'selection2.focusNode');
-
-    shouldBe('selection2.anchorOffset', '5');
-    shouldBe('selection2.focusOffset', '0');
-}
-
-var successfullyParsed = true;
-</script>
-
-<script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/contenteditable-propagation-at-shadow-boundary-expected.txt b/LayoutTests/editing/shadow/contenteditable-propagation-at-shadow-boundary-expected.txt
deleted file mode 100644 (file)
index 888ff12..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This test checks that content-editable is not propagated from shadow host to a shadow subtree.
-
-This p is required to produce the issue.
-
-This div and parent div are required to produce the issue.
-PASS computedStyle(nodeInShadowRoot1, userModifyPropertyName) is "read-only"
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/editing/shadow/contenteditable-propagation-at-shadow-boundary.html b/LayoutTests/editing/shadow/contenteditable-propagation-at-shadow-boundary.html
deleted file mode 100644 (file)
index 2896421..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-<script src="../../resources/js-test-pre.js"></script>
-</head>
-<body>
-
-<p>This test checks that content-editable is not propagated from shadow host to a shadow subtree.</p>
-
-<p>This p is required to produce the issue.</p>
-<div contenteditable>
-  <div>This div and parent div are required to produce the issue.</div>
-  <div id="host1" contenteditable>shadow host 1</div>
-</div>
-<pre id="console"></pre>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-function computedStyle(element, style) {
-    var cs = window.getComputedStyle(element);
-    if (!cs)
-        return '(NA)';
-    if (cs.getPropertyCSSValue(style))
-        return cs.getPropertyCSSValue(style).cssText;
-    return undefined;
-}
-
-function prepareNodeInShadowRoot(host) {
-    var shadowRoot = host.webkitCreateShadowRoot();
-    var nodeInShadow = document.createElement('div');
-    nodeInShadow.setAttribute('id', 'node-in-shadow-root');
-    nodeInShadow.appendChild(document.createTextNode('In Shadow'));
-    shadowRoot.appendChild(nodeInShadow);
-    return nodeInShadow;
-}
-
-document.body.offsetLeft;
-
-var nodeInShadowRoot1 = prepareNodeInShadowRoot(document.getElementById('host1'));
-var userModifyPropertyName = '-webkit-user-modify';
-shouldBeEqualToString('computedStyle(nodeInShadowRoot1, userModifyPropertyName)', 'read-only');
-
-var successfullyParsed = true;
-</script>
-
-<script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/delete-characters-in-distributed-node-crash-expected.txt b/LayoutTests/editing/shadow/delete-characters-in-distributed-node-crash-expected.txt
deleted file mode 100644 (file)
index 2f66040..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-This tests the deletion of text in distributed node does not crash. To run it outside of DRT, you must delete text, 'foo', manually.
-
-PASS
diff --git a/LayoutTests/editing/shadow/delete-characters-in-distributed-node-crash.html b/LayoutTests/editing/shadow/delete-characters-in-distributed-node-crash.html
deleted file mode 100644 (file)
index 8c7e5dd..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<p id="description">This tests the deletion of text in distributed node does not crash. To run it outside of DRT, you must delete text, 'foo', manually.</p>
-<div id="wrapper"><div id="shadowhost" contenteditable><div>foo</div></div></div>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-var shadowRoot = document.getElementById('shadowhost').webkitCreateShadowRoot();
-shadowRoot.innerHTML = "<content></content>";
-
-var textNode = document.getElementById('shadowhost').firstChild.firstChild;
-window.getSelection().setBaseAndExtent(textNode, 0, textNode, 3);
-document.execCommand('Delete');
-
-document.getElementById("wrapper").innerHTML = "PASS";
-</script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/delete-list-in-shadow-expected.txt b/LayoutTests/editing/shadow/delete-list-in-shadow-expected.txt
deleted file mode 100644 (file)
index bc6e69c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-Elements distributed to Shadow DOM should be deleted correctly when pressing delete key.
-
-To test manually, select somewhere in ABCDE from somehwere in 12345, and press delete, and check the selected text is deleted correctly.
-
-PASS hostTextContent is 'AB345'
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/editing/shadow/delete-list-in-shadow.html b/LayoutTests/editing/shadow/delete-list-in-shadow.html
deleted file mode 100644 (file)
index 899cb9f..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-<script src="../../resources/js-test-pre.js"></script>
-
-<p>Elements distributed to Shadow DOM should be deleted correctly when pressing delete key.</p>
-<p>To test manually, select somewhere in ABCDE from somehwere in 12345, and press delete, and check the selected text is deleted correctly.</p>
-
-<div id="container">
-    <ol id="host" contenteditable>
-        <li id="list1">ABCDE</li>
-        <li id="list2">abcde</li>
-        <li id="list3">12345</li>
-    </ol>
-</div>
-<pre id="console"></pre>
-
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-var shadowRoot = host.webkitCreateShadowRoot();
-var li = document.createElement('li');
-li.innerHTML = 'hogehoge';
-shadowRoot.appendChild(li);
-shadowRoot.appendChild(document.createElement('shadow'));
-
-if (window.eventSender) {
-    eventSender.mouseMoveTo(list1.offsetLeft + 20, list1.offsetTop + list1.offsetHeight / 2);
-    eventSender.mouseDown();
-    eventSender.mouseMoveTo(list3.offsetLeft + 20, list3.offsetTop + list3.offsetHeight / 2);
-    eventSender.mouseUp();
-
-    eventSender.keyDown('delete');
-
-    var hostTextContent = host.textContent.replace(/^\s+|\s+$/g, '');
-    shouldBe("hostTextContent", "'AB345'");
-    container.innerHTML = "";
-}
-</script>
-
-<script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/doubleclick-on-meter-in-shadow-crash-expected.txt b/LayoutTests/editing/shadow/doubleclick-on-meter-in-shadow-crash-expected.txt
deleted file mode 100644 (file)
index a227218..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-This test ensures context click around meter won't crash.
-
-PASS
diff --git a/LayoutTests/editing/shadow/doubleclick-on-meter-in-shadow-crash.html b/LayoutTests/editing/shadow/doubleclick-on-meter-in-shadow-crash.html
deleted file mode 100644 (file)
index 382fe4e..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html>
-<p>This test ensures context click around meter won't crash.</p>
-<div id='container' style="width:100px; height: 100px"></div>
-<p>PASS</p>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-<script src="../editing.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-var container = document.getElementById('container');
-var shadowRoot = container.webkitCreateShadowRoot();
-var meter = document.createElement('meter');
-shadowRoot.appendChild(meter);
-
-// Do doubleclick at various points.
-doubleClick(meter.offsetLeft, meter.offsetTop);
-doubleClick(meter.offsetLeft - 1, meter.offsetTop);
-doubleClick(meter.offsetLeft, meter.offsetTop - 1);
-doubleClick(meter.offsetLeft - 1, meter.offsetTop - 1);
-doubleClick(meter.offsetLeft + 1, meter.offsetTop);
-doubleClick(meter.offsetLeft, meter.offsetTop + 1);
-doubleClick(meter.offsetLeft + 1, meter.offsetTop + 1);
-doubleClick(meter.offsetLeft + meter.offsetWidth / 2, meter.offsetTop + meter.offsetHeight / 2);
-doubleClick(meter.offsetLeft + meter.offsetWidth - 1, meter.offsetTop + meter.offsetHeight - 1);
-doubleClick(meter.offsetLeft + meter.offsetWidth + 1, meter.offsetTop + meter.offsetHeight + 1);
-</script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/execcommand-indent-in-shadow-expected.txt b/LayoutTests/editing/shadow/execcommand-indent-in-shadow-expected.txt
deleted file mode 100644 (file)
index 866f100..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-In this test, we do execCommand('Indent') in the direct child of ShadowRoot to confirm a crash doesn't happen.
-
-
-
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
-
-
-
-
diff --git a/LayoutTests/editing/shadow/execcommand-indent-in-shadow.html b/LayoutTests/editing/shadow/execcommand-indent-in-shadow.html
deleted file mode 100644 (file)
index 54e3cd6..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test-pre.js"></script>
-<script src="../../fast/dom/resources/event-sender-util.js"></script>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-</head>
-<body>
-
-<p>In this test, we do execCommand('Indent') in the direct child of ShadowRoot
-to confirm a crash doesn't happen.</p>
-
-<div id="container" contenteditable></div>
-<pre id="console"></div>
-
-<script>
-var shadowRoot = container.webkitCreateShadowRoot();
-shadowRoot.innerHTML = "<span contenteditable>Kotori Otonashi</span>"
-var span = shadowRoot.firstChild;
-
-mouseMoveToElem(span);
-eventSender.mouseDown();
-eventSender.mouseUp();
-
-document.execCommand('Indent');
-
-var successfullyParsed = true;
-</script>
-<script src="../../resources/js-test-post.js"></script>
-</body>
-
-</html>
diff --git a/LayoutTests/editing/shadow/insertorderedlist-crash-expected.txt b/LayoutTests/editing/shadow/insertorderedlist-crash-expected.txt
deleted file mode 100644 (file)
index d713963..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-This test confirms some combination of editing command with Shadow DOM does not cause a crash. To test manually, select from (before nested) to (after nested), then press Italic, and InsertUnorderedList.
-
-PASS
diff --git a/LayoutTests/editing/shadow/insertorderedlist-crash.html b/LayoutTests/editing/shadow/insertorderedlist-crash.html
deleted file mode 100644 (file)
index c83729a..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-
-<p>This test confirms some combination of editing command with Shadow DOM does not cause a crash.
-To test manually, select from (before nested) to (after nested), then press Italic, and InsertUnorderedList.</p>
-
-<div id="container" contenteditable>
-    <div><p>(before host)</p></div>
-    <div id="host">    <span contenteditable="false">not editable</span></div>
-    <div>(after host)</div>
-
-    <input type="button" value="Italic" onclick="document.execCommand('Italic')" />
-    <input type="button" value="InsertUnorderedList" onclick="document.execCommand('InsertUnorderedList')" />
-</div>
-
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-var shadowRoot = host.webkitCreateShadowRoot();
-var div = document.createElement('div');
-shadowRoot.appendChild(div);
-div.innerHTML = "<span contenteditable>(before shadow)</span><shadow></shadow>(after shadow)";
-
-var nestedShadowRoot = div.webkitCreateShadowRoot();
-nestedShadowRoot.innerHTML = "<div contenteditable>(before <span id='src'></span>nested)<shadow></shadow>(nested <span id='dst'></span>after)</div>";
-
-var src = nestedShadowRoot.getElementById('src');
-var dst = nestedShadowRoot.getElementById('dst');
-
-if (window.eventSender) {
-    eventSender.mouseMoveTo(src.offsetLeft + src.offsetWidth / 2, src.offsetTop + src.offsetHeight / 2);
-    eventSender.mouseDown();
-    eventSender.mouseMoveTo(dst.offsetLeft + dst.offsetWidth / 2, dst.offsetTop + dst.offsetHeight / 2);
-    eventSender.mouseUp();
-
-    document.execCommand('Italic');
-    document.execCommand('InsertUnorderedList');
-
-    container.innerHTML = "PASS";
-}
-
-var successfullyParsed = true;
-</script>
-
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/pressing-enter-on-list-expected.txt b/LayoutTests/editing/shadow/pressing-enter-on-list-expected.txt
deleted file mode 100644 (file)
index 16b9e81..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-Pressing enter on the last character of <li> element in Shadow DOM was triggering assertion, becasue modifying Shadow DOM removes the renderer in Shadow DOM and desendant of shadow host.
-
-This tests confirms it won't happen any more.
-
-PASS
diff --git a/LayoutTests/editing/shadow/pressing-enter-on-list.html b/LayoutTests/editing/shadow/pressing-enter-on-list.html
deleted file mode 100644 (file)
index 54275ae..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-<script src="../../fast/dom/resources/event-sender-util.js"></script>
-
-<p>Pressing enter on the last character of &lt;li&gt; element in Shadow DOM was triggering assertion,
-becasue modifying Shadow DOM removes the renderer in Shadow DOM and desendant of shadow host.</p>
-<p>This tests confirms it won't happen any more.</p>
-
-<div id="container">
-    <ol id="host" contenteditable>
-        <li>LIST 1</li>
-        <li id="list2">LIST 2</li>
-        <li>LIST 3</li>
-    </ol>
-</div>
-
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-var shadowRoot = host.webkitCreateShadowRoot();
-var li = document.createElement('li');
-li.innerHTML = 'inside shadow';
-shadowRoot.appendChild(li);
-shadowRoot.appendChild(document.createElement('shadow'));
-
-eventSender.mouseMoveTo(list2.offsetLeft + list2.offsetWidth - 10, list2.offsetTop + list2.offsetHeight / 2);
-eventSender.mouseDown();
-eventSender.mouseUp();
-
-eventSender.keyDown('\n');
-
-container.innerHTML = "PASS";
-</script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/rightclick-on-meter-in-shadow-crash-expected.txt b/LayoutTests/editing/shadow/rightclick-on-meter-in-shadow-crash-expected.txt
deleted file mode 100644 (file)
index a227218..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-This test ensures context click around meter won't crash.
-
-PASS
diff --git a/LayoutTests/editing/shadow/rightclick-on-meter-in-shadow-crash.html b/LayoutTests/editing/shadow/rightclick-on-meter-in-shadow-crash.html
deleted file mode 100644 (file)
index 4504c72..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<!DOCTYPE html>
-<html>
-<p>This test ensures context click around meter won't crash.</p>
-<div id='container' style="width:100px; height: 100px"></div>
-<p>PASS</p>
-
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-<script src="../editing.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-function contextClick(x, y) {
-    eventSender.mouseMoveTo(x, y);
-    eventSender.contextClick();
-}
-
-var container = document.getElementById('container');
-var shadowRoot = container.webkitCreateShadowRoot();
-var meter = document.createElement('meter');
-shadowRoot.appendChild(meter);
-
-// Do context click at various points.
-contextClick(meter.offsetLeft, meter.offsetTop);
-contextClick(meter.offsetLeft - 1, meter.offsetTop);
-contextClick(meter.offsetLeft, meter.offsetTop - 1);
-contextClick(meter.offsetLeft - 1, meter.offsetTop - 1);
-contextClick(meter.offsetLeft + 1, meter.offsetTop);
-contextClick(meter.offsetLeft, meter.offsetTop + 1);
-contextClick(meter.offsetLeft + 1, meter.offsetTop + 1);
-contextClick(meter.offsetLeft + meter.offsetWidth / 2, meter.offsetTop + meter.offsetHeight / 2);
-contextClick(meter.offsetLeft + meter.offsetWidth - 1, meter.offsetTop + meter.offsetHeight - 1);
-contextClick(meter.offsetLeft + meter.offsetWidth + 1, meter.offsetTop + meter.offsetHeight + 1);
-</script>
-</body>
-</html>
diff --git a/LayoutTests/editing/shadow/select-contenteditable-shadowhost-expected.txt b/LayoutTests/editing/shadow/select-contenteditable-shadowhost-expected.txt
deleted file mode 100644 (file)
index a390790..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-This test confirms that selecting an element having Shadow DOM doesn't cross editing boundaries errornously.
-
-BEFORE
-AFTER
-Move mouse from BEFORE to HOST
-PASS selection.anchorNode is null
-PASS selection.focusNode is null
-PASS document.execCommand("delete") did not crash.
-
-Move mouse from AFTER to HOST
-PASS selection.anchorNode is null
-PASS selection.focusNode is null
-PASS document.execCommand("delete") did not crash.
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/editing/shadow/select-contenteditable-shadowhost.html b/LayoutTests/editing/shadow/select-contenteditable-shadowhost.html
deleted file mode 100644 (file)
index c505d61..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../resources/js-test-pre.js"></script>
-<script src="../../fast/dom/resources/event-sender-util.js"></script>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-
-<p>This test confirms that selecting an element having Shadow DOM doesn't cross editing boundaries errornously.</p>
-
-<div>
-    <div id="before">BEFORE</div>
-    <div id="host" contenteditable>HOST</div>
-    <div id="after">AFTER</div>
-</div>
-
-<pre id="console"></pre>
-
-<script>
-
-var shadowRoot = host.webkitCreateShadowRoot();
-shadowRoot.innerHTML = "SHADOW DOM";
-
-var selection = shadowRoot.getSelection();
-
-debug('Move mouse from BEFORE to HOST');
-
-mouseMoveToElem(before);
-eventSender.mouseDown();
-mouseMoveToElem(host);
-eventSender.mouseUp();
-shouldBeNull('selection.anchorNode');
-shouldBeNull('selection.focusNode');
-
-// Check crash won't happen.
-document.execCommand('delete');
-debug('PASS document.execCommand("delete") did not crash.');
-
-debug('');
-debug('Move mouse from AFTER to HOST');
-
-mouseMoveToElem(after);
-eventSender.mouseDown();
-mouseMoveToElem(host);
-eventSender.mouseUp();
-shouldBeNull('selection.anchorNode');
-shouldBeNull('selection.focusNode');
-// Check crash won't happen.
-document.execCommand('delete');
-debug('PASS document.execCommand("delete") did not crash.');
-
-var successfullyParsed = true;
-</script>
-<script src="../../resources/js-test-post.js"></script>
-</body>
-
-</html>
diff --git a/LayoutTests/editing/shadow/selection-of-orphan-shadowroot-expected.txt b/LayoutTests/editing/shadow/selection-of-orphan-shadowroot-expected.txt
deleted file mode 100644 (file)
index 2fcc79e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-Nodes of the selection for an orphan shadow root should return null.
-
-PASS selection.anchorNode is null
-PASS selection.focusNode is null
-PASS selection.baseNode is null
-PASS selection.extentNode is null
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/editing/shadow/selection-of-orphan-shadowroot.html b/LayoutTests/editing/shadow/selection-of-orphan-shadowroot.html
deleted file mode 100644 (file)
index 6d12c04..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test-pre.js"></script>
-<script src="../../fast/dom/resources/event-sender-util.js"></script>
-<script src="../../fast/dom/resources/shadow-test-driver.js"></script>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-</head>
-<body>
-
-<p>Nodes of the selection for an orphan shadow root should return null.</p>
-
-<pre id="console"></pre>
-
-<script>
-var host = document.createElement('div');
-var shadowRoot = host.webkitCreateShadowRoot();
-shadowRoot.innerHTML = "Kotori Otonashi"
-
-var selection = shadowRoot.getSelection();
-
-shouldBe('selection.anchorNode', 'null');
-shouldBe('selection.focusNode', 'null');
-shouldBe('selection.baseNode', 'null');
-shouldBe('selection.extentNode', 'null');
-
-var successfullyParsed = true;
-</script>
-<script src="../../resources/js-test-post.js"></script>
-</body>
-
-</html>
diff --git a/LayoutTests/editing/shadow/selection-of-shadowroot-expected.txt b/LayoutTests/editing/shadow/selection-of-shadowroot-expected.txt
deleted file mode 100644 (file)
index 47e79a8..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-In this test, we create a complex Shadow DOM and try to drag from a div in nested shadow root of older shadow root to a div in nested shadow root of younger shadow root. Then we get selection from the following TreeScopes:
- * treeScopes[0] = document
- * treeScopes[1] = OLDER SHADOW ROOT
- * treeScopes[2] = YOUNGER SHADOW ROOT
- * treeScopes[3] = NESTED SHADOW ROOT IN OLDER SHADOW ROOT
- * treeScopes[4] = NESTED SHADOW ROOT IN YOUNGER SHADOW ROOT
-and check selection.anchorNode, selection.focusNode, selection.baseNode, and selection.extentNode are null or in the same treescope.
-
-Dragged from (DIV 2 IN NESTED SHADOW DOM OF OLDER SHADOW ROOT) to (DIV 2 IN NESTED SHADOW DOM OF YOUNGER SHADOW ROOT)
-
-treeScopes[0] is document
-PASS internals.treeScopeRootNode(treeScopes[0].getSelection().anchorNode) is document
-PASS internals.treeScopeRootNode(treeScopes[0].getSelection().focusNode) is document
-PASS internals.treeScopeRootNode(treeScopes[0].getSelection().baseNode) is document
-PASS internals.treeScopeRootNode(treeScopes[0].getSelection().extentNode) is document
-
-treeScopes[1] is OLDER SHADOW ROOT
-PASS internals.treeScopeRootNode(treeScopes[1].getSelection().anchorNode) is treeScopes[1]
-PASS internals.treeScopeRootNode(treeScopes[1].getSelection().focusNode) is treeScopes[1]
-PASS internals.treeScopeRootNode(treeScopes[1].getSelection().baseNode) is treeScopes[1]
-PASS internals.treeScopeRootNode(treeScopes[1].getSelection().extentNode) is treeScopes[1]
-
-treeScopes[2] is YOUNGER SHADOW ROOT
-Since treeScope[2] is outside of selection start point, no node should not be taken.
-PASS treeScopes[2].getSelection().anchorNode is null
-PASS treeScopes[2].getSelection().focusNode is null
-PASS treeScopes[2].getSelection().baseNode is null
-PASS treeScopes[2].getSelection().extentNode is null
-
-treeScopes[3] is NESTED SHADOW ROOT IN OLDER SHADOW ROOT
-PASS internals.treeScopeRootNode(treeScopes[3].getSelection().anchorNode) is treeScopes[3]
-PASS internals.treeScopeRootNode(treeScopes[3].getSelection().focusNode) is treeScopes[3]
-PASS internals.treeScopeRootNode(treeScopes[3].getSelection().baseNode) is treeScopes[3]
-PASS internals.treeScopeRootNode(treeScopes[3].getSelection().extentNode) is treeScopes[3]
-
-treeScopes[4] is NESTED SHADOW ROOT IN YOUNGER SHADOW ROOT
-Since treeScope[4] is outside of selection start point, no node should not be taken.
-PASS treeScopes[4].getSelection().anchorNode is null
-PASS treeScopes[4].getSelection().focusNode is null
-PASS treeScopes[4].getSelection().baseNode is null
-PASS treeScopes[4].getSelection().extentNode is null
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/editing/shadow/selection-of-shadowroot.html b/LayoutTests/editing/shadow/selection-of-shadowroot.html
deleted file mode 100644 (file)
index d3bedbe..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title>selection-of-shadowroot</title>
-<script src="../../resources/js-test-pre.js"></script>
-<script src="../../fast/dom/resources/event-sender-util.js"></script>
-<script src="../../fast/dom/resources/shadow-test-driver.js"></script>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-<script src="../../fast/dom/shadow/resources/shadow-dom-util.js"></script>
-</head>
-<body>
-
-<div id="container"></div>
-<pre id="console"></pre>
-
-<script>
-var treeScopes = new Array();
-treeScopes.push(document);
-
-function indent(level) {
-    var v = "";
-    while (level--)
-        v = v + "&nbsp;&nbsp;&nbsp;&nbsp;";
-    return v;
-}
-
-function createComplexShadowTree(container) {
-    function createInnerShadowDOM(shadowRoot, id, name, indentLevel) {
-        shadowRoot.innerHTML = 
-            "<div title='DIV1 IN " + name + "'>" + indent(indentLevel) + "DIV 1 (" + name + ")</div>" +
-            "<div>" + indent(indentLevel) + "<div title='SHADOW HOST IN " + name + "'>DIV HOST (" + name + ")</div></div>" +
-            "<div title='DIV2 IN " + name + "'>" + indent(indentLevel) + "DIV 2 (" + name + ")</div>" +
-            "<shadow>SHADOW FALLBACK</shadow>" +
-            "<div title='DIV3 IN " + name + "'>" + indent(indentLevel) + "DIV 3 (" + name + ")</div>";
-
-        var hostInShadowRoot = shadowRoot.firstChild.nextSibling;
-        var nestedShadowRoot = hostInShadowRoot.webkitCreateShadowRoot();
-        nestedShadowRoot.title = 'NESTED SHADOW ROOT IN ' + name;
-        treeScopes.push(nestedShadowRoot);
-
-        nestedShadowRoot.innerHTML =
-            "<div title='DIV 1 IN NESTED SHADOW DOM OF " + name + "'>" + indent(indentLevel) + "DIV 1 IN NESTED SHADOW (" + name + ")</div>" + 
-            "<shadow>NESTED SHADOW FALLBACK</shadow>" + 
-            "<div id='" + id + "' title='DIV 2 IN NESTED SHADOW DOM OF " + name + "'>" + indent(indentLevel) + "DIV 2 IN NESTED SHADOW (" + name + ")</div>";
-    }
-
-    container.innerHTML = 
-        "<div title='DIV BEFORE HOST ELEMENT'>BEFORE HOST</div>" +
-        "<div><div title='HOST ELEMENT'>HOST</div></div>" +
-        "<div title='DIV AFTER HOST ELEMENT'>AFTER HOST</div>";
-
-    var host = container.firstChild.nextSibling;
-
-    var olderShadowRoot = host.webkitCreateShadowRoot();
-    olderShadowRoot.title = 'OLDER SHADOW ROOT';
-    treeScopes.push(olderShadowRoot);
-
-    var youngerShadowRoot = host.webkitCreateShadowRoot();
-    youngerShadowRoot.title = 'YOUNGER SHADOW ROOT';
-    treeScopes.push(youngerShadowRoot);
-
-    createInnerShadowDOM(olderShadowRoot, 'older', 'OLDER SHADOW ROOT', 2);
-    createInnerShadowDOM(youngerShadowRoot, 'younger', 'YOUNGER SHADOW ROOT', 1);
-}
-
-var container = document.getElementById('container');
-createComplexShadowTree(container);
-
-debug('In this test, we create a complex Shadow DOM and try to drag from a div in nested shadow root of older shadow root to a div in nested shadow root of younger shadow root. Then we get selection from the following TreeScopes:');
-for (var k = 0; k < treeScopes.length; ++k) {
-    if (treeScopes[k] == document)
-        debug(" * treeScopes[" + k + "] = document");
-    else
-        debug(" * treeScopes[" + k + "] = " + treeScopes[k].title);
-}
-
-debug('and check selection.anchorNode, selection.focusNode, selection.baseNode, and selection.extentNode are null or in the same treescope.');
-debug('');
-
-var older = getElementByIdConsideringShadowDOM(document, 'older');
-var younger = getElementByIdConsideringShadowDOM(document, 'younger');
-dragFromTo(older, younger);
-
-debug('Dragged from (' + older.title + ') to (' + younger.title + ')');
-debug('');
-
-debug("treeScopes[0] is document");
-shouldBe("internals.treeScopeRootNode(treeScopes[0].getSelection().anchorNode)", "document");
-shouldBe("internals.treeScopeRootNode(treeScopes[0].getSelection().focusNode)", "document");
-shouldBe("internals.treeScopeRootNode(treeScopes[0].getSelection().baseNode)", "document");
-shouldBe("internals.treeScopeRootNode(treeScopes[0].getSelection().extentNode)", "document");
-debug('');
-
-debug("treeScopes[1] is " + treeScopes[1].title);
-shouldBe("internals.treeScopeRootNode(treeScopes[1].getSelection().anchorNode)", "treeScopes[1]");
-shouldBe("internals.treeScopeRootNode(treeScopes[1].getSelection().focusNode)", "treeScopes[1]");
-shouldBe("internals.treeScopeRootNode(treeScopes[1].getSelection().baseNode)", "treeScopes[1]");
-shouldBe("internals.treeScopeRootNode(treeScopes[1].getSelection().extentNode)", "treeScopes[1]");
-debug('');
-
-debug("treeScopes[2] is " + treeScopes[2].title);
-debug('Since treeScope[2] is outside of selection start point, no node should not be taken.');
-shouldBe("treeScopes[2].getSelection().anchorNode", "null");
-shouldBe("treeScopes[2].getSelection().focusNode", "null");
-shouldBe("treeScopes[2].getSelection().baseNode", "null");
-shouldBe("treeScopes[2].getSelection().extentNode", "null");
-debug('');
-
-debug("treeScopes[3] is " + treeScopes[3].title);
-shouldBe("internals.treeScopeRootNode(treeScopes[3].getSelection().anchorNode)", "treeScopes[3]");
-shouldBe("internals.treeScopeRootNode(treeScopes[3].getSelection().focusNode)", "treeScopes[3]");
-shouldBe("internals.treeScopeRootNode(treeScopes[3].getSelection().baseNode)", "treeScopes[3]");
-shouldBe("internals.treeScopeRootNode(treeScopes[3].getSelection().extentNode)", "treeScopes[3]");
-debug('');
-
-debug("treeScopes[4] is " + treeScopes[4].title);
-debug('Since treeScope[4] is outside of selection start point, no node should not be taken.');
-shouldBe("treeScopes[4].getSelection().anchorNode", "null");
-shouldBe("treeScopes[4].getSelection().focusNode", "null");
-shouldBe("treeScopes[4].getSelection().baseNode", "null");
-shouldBe("treeScopes[4].getSelection().extentNode", "null");
-debug('');
-
-window.getSelection().removeAllRanges();
-
-while (container.firstChild)
-    container.removeChild(container.firstChild);
-
-var successfullyParsed = true;
-</script>
-<script src="../../resources/js-test-post.js"></script>
-</body>
-
-</html>
diff --git a/LayoutTests/editing/shadow/shadow-selection-not-exported-expected.txt b/LayoutTests/editing/shadow/shadow-selection-not-exported-expected.txt
deleted file mode 100644 (file)
index 7067bcd..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-PASS assertNotInShadow(selection.anchorNode) is true
-PASS assertNotInShadow(selection.focusNode) is true
-PASS assertNotInShadow(selection.anchorNode) is true
-PASS assertNotInShadow(selection.focusNode) is true
-PASS assertNotInShadow(selection.anchorNode) is true
-PASS assertNotInShadow(selection.focusNode) is true
-PASS successfullyParsed is true
-
-TEST COMPLETE
-This test ensures shadow root won't expose to JS layer.
-
-BEFORE
-AFTER
diff --git a/LayoutTests/editing/shadow/shadow-selection-not-exported.html b/LayoutTests/editing/shadow/shadow-selection-not-exported.html
deleted file mode 100644 (file)
index ee9902e..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<html>
-<pre id="console"></pre>
-
-<p>This test ensures shadow root won't expose to JS layer.<p>
-<div id='div1'>BEFORE</div>
-<div id='container'>CONTAINER</div>
-<div id='div4'>AFTER</di>
-<script src="../../fast/dom/shadow/resources/polyfill.js"></script>
-<script src="../editing.js"></script>
-<script src="../../resources/js-test-pre.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-var container = document.getElementById('container');
-var shadowRoot = container.webkitCreateShadowRoot();
-
-var div2 = document.createElement('div');
-div2.appendChild(document.createTextNode('IN SHADOW TREE 1'));
-var div3 = document.createElement('div');
-div3.appendChild(document.createTextNode('IN SHADOW TREE 2'));
-
-shadowRoot.appendChild(div2);
-shadowRoot.appendChild(div3);
-
-function midX(element) {
-    return element.offsetLeft + element.offsetWidth / 2;
-}
-
-function midY(element) {
-    return element.offsetTop + element.offsetHeight / 2;
-}
-
-function assertNotInShadow(element) {
-    if (element == div2 || element == div2.firstChild)
-        return false;
-    if (element == div3 || element == div3.firstChild)
-        return false;
-    return true;
-}
-
-if (window.eventSender) {
-    // Try select from outside of a shadow subtree to inside of a shadow subtree.
-    eventSender.mouseMoveTo(midX(div1), midY(div1));
-    eventSender.mouseDown();
-    eventSender.mouseMoveTo(midX(div2), midY(div2));
-    eventSender.mouseUp();
-
-    var selection = window.getSelection();
-    shouldBe('assertNotInShadow(selection.anchorNode)', 'true');
-    shouldBe('assertNotInShadow(selection.focusNode)', 'true');
-
-    selection.removeAllRanges();
-
-    // Try select from inside of a shadow subtree to outside of a shadow subtree.
-    eventSender.mouseMoveTo(midX(div3), midY(div3));
-    eventSender.mouseDown();
-    eventSender.mouseMoveTo(midX(div4), midY(div4));
-    eventSender.mouseUp();
-
-    selection = window.getSelection();
-    shouldBe('assertNotInShadow(selection.anchorNode)', 'true');
-    shouldBe('assertNotInShadow(selection.focusNode)', 'true');
-    selection.removeAllRanges();
-
-    // Try select inside shadow subtrees.
-    eventSender.mouseMoveTo(midX(div2), midY(div2));
-    eventSender.mouseDown();
-    eventSender.mouseMoveTo(midX(div3), midY(div3));
-    eventSender.mouseUp();
-
-    selection = window.getSelection();
-    shouldBe('assertNotInShadow(selection.anchorNode)', 'true');
-    shouldBe('assertNotInShadow(selection.focusNode)', 'true');
-    selection.removeAllRanges();
-}
-
-var successfullyParsed = true;
-</script>
-<script src="../../resources/js-test-post.js"></script>
-</html>
diff --git a/LayoutTests/editing/text-iterator/basic-iteration-shadowdom.html b/LayoutTests/editing/text-iterator/basic-iteration-shadowdom.html
deleted file mode 100644 (file)
index 8f9b5eb..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test-pre.js"></script>
-<script src="resources/js-test-selection-shared.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<script>
-description('Unit tests for WebCore text iterator with shadow tree support enabled');
-
-var subframe = document.createElement('iframe');
-document.body.appendChild(subframe);
-
-function appendBrElement(node)
-{
-    node.appendChild(document.createElement('br'));
-}
-
-function addShadowTreeWithDivElement(node)
-{
-    node.webkitCreateShadowRoot();
-    internals.oldestShadowRoot(node).innerHTML = '<div>b</div>';
-}
-
-var testDocument = subframe.contentDocument;
-var range = testDocument.createRange();
-
-var head = testDocument.createElement("head");
-testDocument.documentElement.insertBefore(head, testDocument.documentElement.firstChild);
-
-testDocument.body.innerHTML = '<div>a</div>';
-var div = testDocument.body.childNodes[0];
-shouldBe('addShadowTreeWithDivElement(div); range.selectNodeContents(internals.oldestShadowRoot(div)); internals.rangeAsText(range)', '"b"');
-
-shouldBe('appendBrElement(internals.oldestShadowRoot(div).childNodes[0]); range.selectNodeContents(internals.oldestShadowRoot(div)); internals.rangeAsText(range)', '"b\\n"');
-
-document.body.removeChild(subframe);
-
-var successfullyParsed = true;
-</script>
-<script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/HTMLTemplateElement/cycles-in-shadow.html b/LayoutTests/fast/dom/HTMLTemplateElement/cycles-in-shadow.html
deleted file mode 100644 (file)
index 2989d5c..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<body>
-<script src="../../../resources/js-test-pre.js"></script>
-<div id=container>
-  <template><div></div></template>
-</div>
-<script>
-description('Test that cycle detection traverses over both templates and shadow roots');
-var outerDiv = document.getElementById('container');
-var template = document.querySelector('template');
-var div = template.content.firstChild;
-var shadowRoot = div.webkitCreateShadowRoot();
-var shadowDiv = shadowRoot.appendChild(document.createElement('div'));
-shouldThrow('shadowDiv.appendChild(outerDiv)');
-</script>
-<script src="../../../resources/js-test-post.js"></script>
-</body>
diff --git a/LayoutTests/fast/dom/shadow/access-key-expected.txt b/LayoutTests/fast/dom/shadow/access-key-expected.txt
deleted file mode 100644 (file)
index 3f58fac..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Tests to ensure that accesskey works in regard to shadow DOM boundary. Can only run within DRT.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-
-PASS dispatchedEvent("focus") is ["inputE"]
-PASS dispatchedEvent("focus") is ["inputE"]
-PASS dispatchedEvent("focus") is ["inputE"]
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/dom/shadow/access-key.html b/LayoutTests/fast/dom/shadow/access-key.html
deleted file mode 100644 (file)
index 86e8e8a..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test-pre.js"></script>
-<script src="resources/shadow-dom.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="sandbox"></div>
-<pre id="console"></pre>
-<script>
-description("Tests to ensure that accesskey works in regard to shadow DOM boundary. Can only run within DRT.");
-
-function pressAccessKey(key)
-{
-    if (navigator.userAgent.search(/\bMac OS X\b/) != -1)
-        modifiers = ["ctrlKey", "altKey"];
-    else
-        modifiers = ["altKey"];
-    eventSender.keyDown(key, modifiers);
-}
-
-var eventRecords = {};
-
-function clearEventRecords()
-{
-    eventRecords = {};
-}
-
-function dispatchedEvent(eventType)
-{
-    var events = eventRecords[eventType];
-    if (!events)
-        return [];
-    return events;
-}
-
-function recordEvent(event)
-{
-    var eventType = event.type
-    if (!eventRecords[eventType]) {
-        eventRecords[eventType] = []
-    }
-    eventRecords[eventType].push(event.target.id);
-}
-
-function prepareDOMTree(parent)
-{
-    parent.appendChild(
-        createDOM('div', {'id': 'divA'},
-                  createDOM('input', {'id': 'inputB'}),
-                  createDOM('div', {'id': 'shadowC', 'tabindex': 0},
-                            createShadowRoot(
-                                createDOM('input', {'id': 'inputD'}),
-                                createDOM('input', {'id': 'inputE', 'accesskey': 'a'}),
-                                createDOM('div', {'id': 'shadowF', 'tabindex': 0},
-                                          createShadowRoot(
-                                              createDOM('input', {'id': 'inputG'})))))));
-
-    var ids = ['inputB',
-               'shadowC/inputD', 'shadowC/inputE',
-               'shadowC/shadowF/inputG'];
-    for (var i = 0; i < ids.length; ++i) {
-        var element = getNodeInShadowTreeStack(ids[i]);
-        element.addEventListener('focus', recordEvent, false);
-    }
-}
-
-function test()
-{
-    if (window.testRunner)
-        testRunner.dumpAsText();
-
-    prepareDOMTree(document.getElementById('sandbox'));
-
-    // Please see the discussion of https://bugs.webkit.org/show_bug.cgi?id=67096.
-    // We don't have a clear idea how accesskey should work in regard to shadow DOM.
-    // In current implementation, accesskeys defined inside of components are exposed to an outer document.
-    // Every accesskeys are flattened per each document.
-    document.getElementById('inputB').focus();
-    clearEventRecords();
-    pressAccessKey('a');
-    shouldBe('dispatchedEvent("focus")', '["inputE"]');
-
-    getNodeInShadowTreeStack('shadowC/inputD').focus();
-    clearEventRecords();
-    pressAccessKey('a');
-    shouldBe('dispatchedEvent("focus")', '["inputE"]');
-
-    getNodeInShadowTreeStack('shadowC/shadowF/inputG').focus();
-    clearEventRecords();
-    pressAccessKey('a');
-    shouldBe('dispatchedEvent("focus")', '["inputE"]');
-}
-
-test();
-</script>
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/activeelement-should-be-shadowhost-expected.txt b/LayoutTests/fast/dom/shadow/activeelement-should-be-shadowhost-expected.txt
deleted file mode 100644 (file)
index e63f21f..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-Makes sure that document.activeElement returns a shadow host when a element in the correspoinding shadow tree is focused.
-
-
-Focusing top/input0
-PASS: top document.activeElement is top/shadow0
-PASS: top/iframe1 document.activeElement is top/iframe1/doc1_body
-PASS: top/iframe3 document.activeElement is top/iframe3/doc3_body
-PASS: top/iframe4 document.activeElement is top/iframe4/doc4_body
-PASS: top/iframe4/iframe4_1 document.activeElement is top/iframe4/iframe4_1/doc4_1_body
-
-Focusing top/iframe1/input1
-PASS: top document.activeElement is top/iframe1
-PASS: top/iframe1 document.activeElement is top/iframe1/shadow1
-PASS: top/iframe3 document.activeElement is top/iframe3/doc3_body
-PASS: top/iframe4 document.activeElement is top/iframe4/doc4_body
-PASS: top/iframe4/iframe4_1 document.activeElement is top/iframe4/iframe4_1/doc4_1_body
-
-Focusing top/input2
-PASS: top document.activeElement is top/shadow2
-PASS: top/iframe1 document.activeElement is top/iframe1/doc1_body
-PASS: top/iframe3 document.activeElement is top/iframe3/doc3_body
-PASS: top/iframe4 document.activeElement is top/iframe4/doc4_body
-PASS: top/iframe4/iframe4_1 document.activeElement is top/iframe4/iframe4_1/doc4_1_body
-
-Focusing top/iframe3/input3
-PASS: top document.activeElement is top/shadow3
-PASS: top/iframe1 document.activeElement is top/iframe1/doc1_body
-PASS: top/iframe3 document.activeElement is top/iframe3/input3
-PASS: top/iframe4 document.activeElement is top/iframe4/doc4_body
-PASS: top/iframe4/iframe4_1 document.activeElement is top/iframe4/iframe4_1/doc4_1_body
-
-Focusing top/iframe4/iframe4_1/input4
-PASS: top document.activeElement is top/iframe4
-PASS: top/iframe1 document.activeElement is top/iframe1/doc1_body
-PASS: top/iframe3 document.activeElement is top/iframe3/doc3_body
-PASS: top/iframe4 document.activeElement is top/iframe4/iframe4_1
-PASS: top/iframe4/iframe4_1 document.activeElement is top/iframe4/iframe4_1/input4
-
-
diff --git a/LayoutTests/fast/dom/shadow/activeelement-should-be-shadowhost.html b/LayoutTests/fast/dom/shadow/activeelement-should-be-shadowhost.html
deleted file mode 100644 (file)
index 294954a..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<p>
-Makes sure that document.activeElement returns a shadow host when a element in the correspoinding shadow tree is focused.
-</p>
-<pre id="console"></pre>
-<script>
-function describe(obj) {
-    if (obj === document)
-        return 'top';
-    if (obj.defaultView && obj.defaultView.frameElement)
-        return describe(obj.defaultView.frameElement);
-    return describe(obj.ownerDocument) + '/' + obj.id;
-}
-
-function print(s) {
-    document.getElementById('console').textContent += s + '\n';
-}
-
-function assertActiveElement(doc, expected) {
-    if (doc.activeElement === expected)
-        print('PASS: ' + describe(doc) + ' document.activeElement is ' + describe(doc.activeElement));
-    else
-        print('FAIL: ' + describe(doc) + ' document.activeElement is ' + describe(doc.activeElement) + ' but expected ' + describe(expected));
-}
-
-if (window.testRunner) {
-    testRunner.dumpAsText();
-
-  function shadowRoot(shadowHost) {
-    return internals.ensureShadowRoot(shadowHost);
-  }
-
-  function appendChildToShadow(shadowHost, child) {
-    return shadowRoot(shadowHost).appendChild(child)
-  }
-
-  function appendShadowHost(doc, parent) {
-    var shadowHost = doc.createElement('p');
-    shadowHost.tabIndex = 1;  // Makes sure that the shadow host is focusable.
-    parent = parent || doc.body;
-    return parent.appendChild(shadowHost);
-  }
-
-  // For readability, I noted a DOM tree which is under the test here.
-  //
-  // - document (doc0)
-  //   - shadow0
-  //     - input0
-  //   - iframe1 (doc1)
-  //     - shadow1
-  //       - input1
-  //   - shadow2
-  //     - shadow2_1
-  //       - input2
-  //   - shadow3
-  //     - iframe3 (doc3)
-  //       - input3
-  //   - iframe4 (doc4)
-  //     - iframe4_1 (doc4_1)
-  //       - input4
-  var doc0 = document;
-  var shadow0 = appendShadowHost(doc0);
-  var input0 = appendChildToShadow(shadow0, doc0.createElement('input'));
-
-  var iframe1 = doc0.body.appendChild(doc0.createElement('iframe'));
-  var doc1 = iframe1.contentDocument;
-  var shadow1 = appendShadowHost(doc1);
-  var input1 = appendChildToShadow(shadow1, doc1.createElement('input'));
-
-  var shadow2 = appendShadowHost(doc0);
-  var shadow2_1 = appendShadowHost(doc0, shadowRoot(shadow2));
-  var input2 = appendChildToShadow(shadow2_1, doc0.createElement('input'));
-
-  var shadow3 = appendShadowHost(doc0);
-  var iframe3 = appendChildToShadow(shadow3, doc0.createElement('iframe'))
-  var doc3 = iframe3.contentDocument;
-  var input3 = doc3.body.appendChild(doc3.createElement('input'))
-
-  // Althought this subtree (iframe4) doesn't contain any explicit shadow hosts,
-  // this might be useful as a reference.
-  var iframe4 = doc0.body.appendChild(doc0.createElement('iframe'));
-  var doc4 = iframe4.contentDocument;
-  var iframe4_1 = doc4.body.appendChild(doc4.createElement('iframe'));
-  var doc4_1 = iframe4_1.contentDocument;
-  var input4 = doc4_1.body.appendChild(doc4_1.createElement('input'));
-
-  // Set up IDs for logging.
-  var elements = ['shadow0','shadow1', 'shadow2', 'shadow2_1', 'shadow3',
-                  'input0', 'input1', 'input2', 'input3', 'input4',
-                  'iframe1', 'iframe3', 'iframe4', 'iframe4_1'];
-  for (var i = 0; i < elements.length; i++) {
-    var id = elements[i];
-    window[id].id = id;
-  }
-  var docs = ['doc0', 'doc1', 'doc3', 'doc4', 'doc4_1'];
-  for (var i = 0; i < docs.length; i++) {
-    var id = docs[i];
-    window[id].body.id = id + '_body';
-  }
-
-  print('\nFocusing ' + describe(input0));
-  input0.focus();
-  assertActiveElement(doc0, shadow0);
-  assertActiveElement(doc1, doc1.body);
-  assertActiveElement(doc3, doc3.body);
-  assertActiveElement(doc4, doc4.body);
-  assertActiveElement(doc4_1, doc4_1.body);
-
-  print('\nFocusing ' + describe(input1));
-  input1.focus();
-  assertActiveElement(doc0, iframe1);
-  assertActiveElement(doc1, shadow1);
-  assertActiveElement(doc3, doc3.body);
-  assertActiveElement(doc4, doc4.body);
-  assertActiveElement(doc4_1, doc4_1.body);
-
-  print('\nFocusing ' + describe(input2));
-  input2.focus();
-  assertActiveElement(doc0, shadow2);
-  assertActiveElement(doc1, doc1.body);
-  assertActiveElement(doc3, doc3.body);
-  assertActiveElement(doc4, doc4.body);
-  assertActiveElement(doc4_1, doc4_1.body);
-
-  print('\nFocusing ' + describe(input3));
-  input3.focus();
-  assertActiveElement(doc0, shadow3);
-  assertActiveElement(doc1, doc1.body);
-  assertActiveElement(doc3, input3);
-  assertActiveElement(doc4, doc4.body);
-  assertActiveElement(doc4_1, doc4_1.body);
-
-  print('\nFocusing ' + describe(input4));
-  input4.focus();
-  assertActiveElement(doc0, iframe4);
-  assertActiveElement(doc1, doc1.body);
-  assertActiveElement(doc3, doc3.body);
-  assertActiveElement(doc4, iframe4_1);
-  assertActiveElement(doc4_1, input4);
-}
-</script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/adopt-node-with-shadow-root-expected.txt b/LayoutTests/fast/dom/shadow/adopt-node-with-shadow-root-expected.txt
deleted file mode 100644 (file)
index 2848f49..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-PASS successfullyParsed is true
-
-TEST COMPLETE
-PASS document.adoptNode(shadow) threw exception Error: HierarchyRequestError: DOM Exception 3.
-
diff --git a/LayoutTests/fast/dom/shadow/adopt-node-with-shadow-root.html b/LayoutTests/fast/dom/shadow/adopt-node-with-shadow-root.html
deleted file mode 100644 (file)
index 076677f..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test-pre.js"></script>
-</head>
-<body>
-<div id="console"></div>
-<object data="data:image/svg+xml;base64,PFNWR1Rlc3RDYXNlIGlkPSJzIj4=" id="root" onload="test()"/>
-<script>
-function test() {
-    var foreignDocument = document.getElementById('root').contentDocument;
-    shadow = foreignDocument.getElementById('s').webkitCreateShadowRoot();
-    shouldThrow("document.adoptNode(shadow)");
-    location.reload();
-}
-</script>
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/athost-apply-dynamically-expected.html b/LayoutTests/fast/dom/shadow/athost-apply-dynamically-expected.html
deleted file mode 100644 (file)
index 57306e7..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-  <div>Bug 112869 - <a href="https://bugs.webkit.org/show_bug.cgi?id=112869">https://bugs.webkit.org/show_bug.cgi?id=112869</a>[shadow] @host styles are not applied dynamiccaly.</div>
-  <div id="host1" class="selected" style="background:green">I should be green!</div>
-  <br>
-  <p id="host2" style="background:green">I should be green!</p>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/athost-apply-dynamically.html b/LayoutTests/fast/dom/shadow/athost-apply-dynamically.html
deleted file mode 100644 (file)
index 2a1f68c..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script>
-if (window.testRunner)
-    testRunner.waitUntilDone();
-
-function addShadowRoot(inNode) {
-    var root = inNode.webkitCreateShadowRoot();
-    root.innerHTML = '<style>@host { *.selected { background: green; } }</style>I should be green!';
-}
-    
-function runTest() {
-    var host1 = document.getElementById('host1');
-    var host2 = document.getElementById('host2');
-    addShadowRoot(host1);
-    addShadowRoot(host2);
-    setTimeout(function() {
-      internals.address(host2);
-      host2.classList.add('selected');
-      testRunner.notifyDone();
-    }, 0)
-}
-</script>
-</head>
-<body onload="runTest()">
-  <div>Bug 112869 - <a href="https://bugs.webkit.org/show_bug.cgi?id=112869">https://bugs.webkit.org/show_bug.cgi?id=112869</a>[shadow] @host styles are not applied dynamiccaly.</div>
-  <div id="host1" class="selected"></div>
-  <br>
-  <p id="host2"></p>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/athost-atrules-expected.txt b/LayoutTests/fast/dom/shadow/athost-atrules-expected.txt
deleted file mode 100644 (file)
index a1f3b1c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-host: rgb(255, 0, 0)
-host: rgb(255, 0, 0)
-hostA: rgb(255, 0, 0)
-hostB: rgb(0, 0, 255)
-host: rgb(0, 0, 255)
-host: rgb(128, 128, 128)
-host: rgb(0, 0, 255)
-host: rgb(0, 0, 255)
-host: rgb(128, 128, 128)
-host: rgb(255, 255, 0)
-host: rgb(255, 0, 0)
-nestedHost: rgb(0, 0, 255)
-host: rgb(255, 0, 0)
-host: rgb(255, 255, 0)
-Hello
diff --git a/LayoutTests/fast/dom/shadow/athost-atrules.html b/LayoutTests/fast/dom/shadow/athost-atrules.html
deleted file mode 100644 (file)
index ee375ce..0000000
+++ /dev/null
@@ -1,190 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-#host {
-  color: gray;
-}
-</style>
-<script src="../../../resources/js-test-pre.js"></script>
-<script src="resources/polyfill.js"></script>
-<script>
-function dumpComputedStyle(node)
-{
-    debug(node.id + ": " + document.defaultView.getComputedStyle(node, null).getPropertyValue('color'));
-}
-
-function preprocessForTest()
-{
-    var parent = document.getElementById("parent");
-    parent.innerHTML = '<div id="host"><span>Hello</span></div>';
-}
-
-function testSimpleContentCase()
-{
-    preprocessForTest();
-    var host = document.getElementById("host");
-    var shadow = host.webkitCreateShadowRoot();
-    shadow.innerHTML = "<style>@host { div { color: red; } }</style><content></content>";
-    dumpComputedStyle(host);
-}
-
-function testSimpleShadowCase()
-{
-    preprocessForTest();
-    var host = document.getElementById("host");
-    var shadow = host.webkitCreateShadowRoot();
-    shadow.innerHTML = "<style>@host { div { color: red; } }</style><shadow></shadow>";
-    dumpComputedStyle(host);
-}
-
-function testHostWithSelector()
-{
-    var parent = document.getElementById("parent");
-    parent.innerHTML = "<style scoped> .host { color: gray };</style>"
-        + "<div id='hostA' class='host'><span>Hello</span></div>"
-        + "<span id='hostB' class='host'><span>World</span></span>";
-
-    var hostA = document.getElementById("hostA");
-    var shadowA = hostA.webkitCreateShadowRoot();
-    var style = "<style>@host { div { color: red; } span { color: blue; } }</style>";
-    shadowA.innerHTML = style + "<shadow></shadow>";
-
-    var hostB = document.getElementById("hostB");
-    var shadowB = hostB.webkitCreateShadowRoot();
-    shadowB.innerHTML = style + "<shadow></shadow>";
-
-    dumpComputedStyle(hostA);
-    dumpComputedStyle(hostB);
-}
-
-function testPseudoHostWithScoped()
-{
-    preprocessForTest();
-    var host = document.getElementById("host");
-    var shadow = host.webkitCreateShadowRoot();
-    shadow.innerHTML = "<div><style scoped>@host { div { color: red; } }</style><shadow></shadow><div><style scoped>@host { div { color: blue; } }</style></div></div>";
-    dumpComputedStyle(host);
-}
-
-function testPseudoHostWithFallbackShadow()
-{
-    preprocessForTest();
-    var host = document.getElementById("host");
-    var oldestShadow = host.webkitCreateShadowRoot();
-    var youngestShadow = host.webkitCreateShadowRoot();
-    oldestShadow.innerHTML = "<style>@host { div { color: red; } }</style><content></content>";
-    youngestShadow.innerHTML = "<content><shadow></shadow></content>";
-    dumpComputedStyle(host);
-}
-
-function testTwoShadowRootsCase()
-{
-    preprocessForTest();
-    var host = document.getElementById("host");
-    var oldestShadow = host.webkitCreateShadowRoot();
-    var youngestShadow = host.webkitCreateShadowRoot();
-    oldestShadow.innerHTML = "<style>@host { div { color: red; } }</style><content></content>";
-    youngestShadow.innerHTML = "<style>@host { div { color: blue; } }</style><shadow></shadow>";
-    dumpComputedStyle(host);
-}
-
-function testTwoShadowRootsCreatingDifferentOrderCase()
-{
-    preprocessForTest();
-    var host = document.getElementById("host");
-    var oldestShadow = host.webkitCreateShadowRoot();
-    var youngestShadow = host.webkitCreateShadowRoot();
-    youngestShadow.innerHTML = "<style>@host { div { color: blue; } }</style><shadow></shadow>";
-    oldestShadow.innerHTML = "<style>@host { div { color: red; } }</style><content></content>";
-    dumpComputedStyle(host);
-}
-
-function testMultipleShadowRootsWithInertShadowContent()
-{
-    preprocessForTest();
-    var host = document.getElementById("host");
-    var oldestShadow = host.webkitCreateShadowRoot();
-    var olderShadow = host.webkitCreateShadowRoot();
-    var youngerShadow = host.webkitCreateShadowRoot();
-    var youngestShadow = host.webkitCreateShadowRoot();
-
-    youngestShadow.innerHTML = "<shadow></shadow>";
-    youngerShadow.innerHTML = "<content></content>";
-    olderShadow.innerHTML = "<style>@host { div { color: green; } }</style><shadow></shadow>";
-    oldestShadow.innerHTML = "<style>@host { div { color: red; } }</style><content></content>";
-    dumpComputedStyle(host);
-}
-
-function testMultipleShadowRootsWithInertShadow()
-{
-    preprocessForTest();
-    var host = document.getElementById("host");
-    var oldestShadow = host.webkitCreateShadowRoot();
-    var olderShadow = host.webkitCreateShadowRoot();
-    var youngerShadow = host.webkitCreateShadowRoot();
-    var youngestShadow = host.webkitCreateShadowRoot();
-
-    youngestShadow.innerHTML = "<style>@host { div { color: yellow; } }</style><shadow></shadow>";
-    youngerShadow.innerHTML = "<style>@host { div { color: blue; } }</style><div>inert</div>";
-    olderShadow.innerHTML = "<style>@host { div { color: green; } }</style><shadow></shadow>";
-    oldestShadow.innerHTML = "<style>@host { div { color: red; } }</style><content></content>";
-    dumpComputedStyle(host);
-}
-
-function testNestedCase()
-{
-    preprocessForTest();
-    var host = document.getElementById("host");
-    var outerShadow = host.webkitCreateShadowRoot();
-    outerShadow.innerHTML = '<style>@host { div { color: red; } }</style><div id="nestedHost">InnerShadow</div>';
-    var nested = outerShadow.getElementById("nestedHost");
-    var innerShadow = nested.webkitCreateShadowRoot();
-    innerShadow.innerHTML = '<style>@host { div { color: blue; } }</style>Show <shadow></shadow> in outer.';
-    dumpComputedStyle(host);
-    dumpComputedStyle(nested);
-}
-
-function testHostVsScopedStyle()
-{
-    preprocessForTest();
-    var host = document.getElementById("host");
-    host.innerHTML = "<style scoped>#host { color: yellow; }</style><span>Hello</span>";
-    var shadow = host.webkitCreateShadowRoot();
-    shadow.innerHTML = "<style>@host { #host { color: red; } }</style><content></content>";
-    dumpComputedStyle(host);
-}
-
-function testHostVsInlineStyle()
-{
-    preprocessForTest();
-    var host = document.getElementById("host");
-    host.style.color = "yellow";
-    host.innerHTML = "<span>Hello</span>";
-    var shadow = host.webkitCreateShadowRoot();
-    shadow.innerHTML = "<style>@host { div { color: red; } }</style><content></content>";
-    dumpComputedStyle(host);
-}
-
-function runTests()
-{
-    testSimpleContentCase();
-    testSimpleShadowCase();
-    testHostWithSelector();
-    testPseudoHostWithScoped();
-    testPseudoHostWithFallbackShadow();
-    testTwoShadowRootsCase();
-    testTwoShadowRootsCreatingDifferentOrderCase();
-    testMultipleShadowRootsWithInertShadowContent();
-    testMultipleShadowRootsWithInertShadow();
-    testNestedCase();
-    testHostVsScopedStyle();
-    testHostVsInlineStyle();
-}
-</script>
-</head>
-<body onload="runTests()">
-  <div id="parent">
-  </div>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/base-in-shadow-tree-expected.txt b/LayoutTests/fast/dom/shadow/base-in-shadow-tree-expected.txt
deleted file mode 100644 (file)
index 5cfec9f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-PASS anchorInShadow.href.indexOf("http://www.example.com") is -1
-PASS anchorInHostChildren.href.indexOf("http://www.example.com") is -1
-PASS anchorOutsideOfShadow.href.indexOf("http://www.example.com") is -1
-PASS successfullyParsed is true
-
-TEST COMPLETE
-tehepero
diff --git a/LayoutTests/fast/dom/shadow/base-in-shadow-tree.html b/LayoutTests/fast/dom/shadow/base-in-shadow-tree.html
deleted file mode 100644 (file)
index a3f000e..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="resources/polyfill.js"></script>
-</head>
-<body>
-<div id="container"><a id="anchor-in-host-children" href="/">tehepero</a></div>
-<div><a id="anchor-outside-of-shadow" href="/">tehepero</a></div>
-
-<script src="../../../resources/js-test-pre.js"></script>
-<script>
-var container = document.getElementById('container');
-
-var shadowRoot = container.webkitCreateShadowRoot();
-
-var base = document.createElement('base');
-base.setAttribute('href', 'http://www.example.com/');
-var anchorInShadow = document.createElement('a');
-anchorInShadow.setAttribute('href', '/');
-
-shadowRoot.appendChild(base);
-shadowRoot.appendChild(anchorInShadow);
-
-var anchorInHostChildren = document.getElementById('anchor-in-host-children');
-var anchorOutsideOfShadow = document.getElementById('anchor-outside-of-shadow');
-
-shouldBe('anchorInShadow.href.indexOf("http://www.example.com")', '-1');
-shouldBe('anchorInHostChildren.href.indexOf("http://www.example.com")', '-1');
-shouldBe('anchorOutsideOfShadow.href.indexOf("http://www.example.com")', '-1');
-</script>
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/caret-range-from-point-in-nested-shadow-expected.txt b/LayoutTests/fast/dom/shadow/caret-range-from-point-in-nested-shadow-expected.txt
deleted file mode 100644 (file)
index 106e40c..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-PASS internals.treeScopeRootNode(range.startContainer) is document
-PASS internals.treeScopeRootNode(range.endContainer) is document
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/dom/shadow/caret-range-from-point-in-nested-shadow.html b/LayoutTests/fast/dom/shadow/caret-range-from-point-in-nested-shadow.html
deleted file mode 100644 (file)
index 245eddc..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="resources/polyfill.js"></script>
-<script src="../resources/event-sender-util.js"></script>
-<script src="../../../resources/js-test-pre.js"></script>
-</head>
-<body>
-
-<div id="host"></div>
-<pre id="console"></pre>
-
-<script>
-function createBox(name) {
-    var div = document.createElement('div');
-    div.style.width = '100px';
-    div.style.height = '100px';
-
-    div.addEventListener('drop', function(e) {
-        debug('PASS: drop event is fired.');
-    });
-
-    return div;
-}
-
-var shadowRoot = host.webkitCreateShadowRoot();
-var div = document.createElement('div');
-shadowRoot.appendChild(div);
-
-var darkRoot = div.webkitCreateShadowRoot();
-var box = createBox('dark');
-darkRoot.appendChild(box);
-
-var x = box.offsetLeft + box.offsetWidth / 2;
-var y = box.offsetTop + box.offsetHeight / 2;
-
-var range = document.caretRangeFromPoint(x, y);
-
-shouldBe("internals.treeScopeRootNode(range.startContainer)", "document");
-shouldBe("internals.treeScopeRootNode(range.endContainer)", "document");
-
-var successfullyParsed = true;
-</script>
-
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/compare-document-position-expected.txt b/LayoutTests/fast/dom/shadow/compare-document-position-expected.txt
deleted file mode 100644 (file)
index 205801f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-Tests for Node.compareDocumentPosition() for nodes in shadow tree.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS a1.compareDocumentPosition(a2) is Node.DOCUMENT_POSITION_CONTAINED_BY | Node.DOCUMENT_POSITION_FOLLOWING
-PASS a2.compareDocumentPosition(a1) is Node.DOCUMENT_POSITION_CONTAINS | Node.DOCUMENT_POSITION_PRECEDING
-PASS a2.compareDocumentPosition(a3) is Node.DOCUMENT_POSITION_FOLLOWING
-PASS b1.compareDocumentPosition(b2) is Node.DOCUMENT_POSITION_CONTAINED_BY | Node.DOCUMENT_POSITION_FOLLOWING
-PASS b2.compareDocumentPosition(b1) is Node.DOCUMENT_POSITION_CONTAINS | Node.DOCUMENT_POSITION_PRECEDING
-PASS b2.compareDocumentPosition(b3) is Node.DOCUMENT_POSITION_FOLLOWING
-PASS a1.compareDocumentPosition(b1) & Node.DOCUMENT_POSITION_PRECEDING || a1.compareDocumentPosition(b1) & Node.DOCUMENT_POSITION_FOLLOWING is non-zero.
-PASS a1.compareDocumentPosition(b1) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.DOCUMENT_POSITION_DISCONNECTED
-PASS a1.compareDocumentPosition(b1) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
-PASS a1.compareDocumentPosition(b1) is a1.compareDocumentPosition(b1)
-PASS b1.compareDocumentPosition(c1) & Node.DOCUMENT_POSITION_PRECEDING || b1.compareDocumentPosition(c1) & Node.DOCUMENT_POSITION_FOLLOWING is non-zero.
-PASS b1.compareDocumentPosition(c1) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.DOCUMENT_POSITION_DISCONNECTED
-PASS b1.compareDocumentPosition(c1) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
-PASS b1.compareDocumentPosition(c1) is b1.compareDocumentPosition(c1)
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/dom/shadow/compare-document-position.html b/LayoutTests/fast/dom/shadow/compare-document-position.html
deleted file mode 100644 (file)
index 6c51ffb..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test-pre.js"></script>
-<script src="resources/shadow-dom.js"></script>
-</head>
-<body>
-<div id="console"></div>
-<div id="sandbox"></div>
-<script>
-description("Tests for Node.compareDocumentPosition() for nodes in shadow tree.");
-
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-document.getElementById('sandbox').appendChild(
-    createDOM('div', {'id': 'a1'},
-              createDOM('div', {'id': 'a2'},
-                        createShadowRoot(createDOM('div', {'id': 'b1'},
-                                                   createDOM('div', {'id': 'b2'}),
-                                                   createDOM('div', {'id': 'b3'})))),
-              createDOM('div', {'id': 'a3'},
-                        createShadowRoot(createDOM('div', {'id': 'c1'})))));
-
-var a1, a2, a3, b1, b2, b3, c1;
-
-function testCompareDocumentPosition()
-{
-    var sandbox = document.getElementById('sandbox');
-    document.body.offsetLeft;
-
-    a1 = document.getElementById('a1');
-    a2 = document.getElementById('a2');
-    a3 = document.getElementById('a3');
-    b1 = getNodeInShadowTreeStack('a2/b1');
-    b2 = getNodeInShadowTreeStack('a2/b2');
-    b3 = getNodeInShadowTreeStack('a2/b3');
-    c1 = getNodeInShadowTreeStack('a3/c1');
-
-    shouldBe('a1.compareDocumentPosition(a2)', 'Node.DOCUMENT_POSITION_CONTAINED_BY | Node.DOCUMENT_POSITION_FOLLOWING');
-    shouldBe('a2.compareDocumentPosition(a1)', 'Node.DOCUMENT_POSITION_CONTAINS | Node.DOCUMENT_POSITION_PRECEDING');
-    shouldBe('a2.compareDocumentPosition(a3)', 'Node.DOCUMENT_POSITION_FOLLOWING');
-
-    shouldBe('b1.compareDocumentPosition(b2)', 'Node.DOCUMENT_POSITION_CONTAINED_BY | Node.DOCUMENT_POSITION_FOLLOWING');
-    shouldBe('b2.compareDocumentPosition(b1)', 'Node.DOCUMENT_POSITION_CONTAINS | Node.DOCUMENT_POSITION_PRECEDING');
-    shouldBe('b2.compareDocumentPosition(b3)', 'Node.DOCUMENT_POSITION_FOLLOWING');
-
-    // Nodes in different shadow trees.
-    shouldBeNonZero('a1.compareDocumentPosition(b1) & Node.DOCUMENT_POSITION_PRECEDING || a1.compareDocumentPosition(b1) & Node.DOCUMENT_POSITION_FOLLOWING');
-    shouldBe('a1.compareDocumentPosition(b1) & Node.DOCUMENT_POSITION_DISCONNECTED', 'Node.DOCUMENT_POSITION_DISCONNECTED');
-    shouldBe('a1.compareDocumentPosition(b1) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC', 'Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC');
-    shouldBe('a1.compareDocumentPosition(b1)', 'a1.compareDocumentPosition(b1)');
-    shouldBeNonZero('b1.compareDocumentPosition(c1) & Node.DOCUMENT_POSITION_PRECEDING || b1.compareDocumentPosition(c1) & Node.DOCUMENT_POSITION_FOLLOWING');
-    shouldBe('b1.compareDocumentPosition(c1) & Node.DOCUMENT_POSITION_DISCONNECTED', 'Node.DOCUMENT_POSITION_DISCONNECTED');
-    shouldBe('b1.compareDocumentPosition(c1) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC', 'Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC');
-    shouldBe('b1.compareDocumentPosition(c1)', 'b1.compareDocumentPosition(c1)');
-}
-
-testCompareDocumentPosition();
-</script>
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/composed-shadow-tree-walker-expected.txt b/LayoutTests/fast/dom/shadow/composed-shadow-tree-walker-expected.txt
deleted file mode 100644 (file)
index 5cd5c80..0000000
+++ /dev/null
@@ -1,357 +0,0 @@
-Tests for Composed Shadow DOM Tree Traversal APIs. Can only run within DRT
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-ShadowRoot should be used.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-Traverse in backward.
-DIV     id=b
-DIV     id=a
-
-A content element should select light children
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-       DIV      id=c
-       DIV      id=d
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=c
-DIV     id=d
-Traverse in backward.
-DIV     id=d
-DIV     id=c
-DIV     id=b
-DIV     id=a
-
-Test for content element selector.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-       DIV      id=d
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=d
-Traverse in backward.
-DIV     id=d
-DIV     id=b
-DIV     id=a
-
-Light children should be selected only at once.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-       DIV      id=d
-       DIV      id=c
-       DIV      id=e
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=d
-DIV     id=c
-DIV     id=e
-Traverse in backward.
-DIV     id=e
-DIV     id=c
-DIV     id=d
-DIV     id=b
-DIV     id=a
-
-A content element can have fallback elements.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-       DIV      id=f1
-       DIV      id=f2
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=f1
-DIV     id=f2
-Traverse in backward.
-DIV     id=f2
-DIV     id=f1
-DIV     id=b
-DIV     id=a
-
-Fallback elements should not be used if a content element selects an element.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-       DIV      id=c
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=c
-Traverse in backward.
-DIV     id=c
-DIV     id=b
-DIV     id=a
-
-Test for traversal, starting with a fallback element which is not used.
-Composed Shadow Tree:
-DIV     id=f1
-       DIV      id=f2
-
-Traverse in forward.
-DIV     id=f1
-DIV     id=f2
-Traverse in backward.
-DIV     id=f2
-DIV     id=f1
-
-Next node of [DIV       id=f1] is [DIV  id=f2]
-Next node of [DIV       id=f2] is [(null)]
-
-Test for Nested ShadowRoots.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-               DIV      id=c
-               DIV      id=e
-               DIV      id=d
-       DIV      id=f
-       DIV      id=h
-       DIV      id=i
-       DIV      id=g
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=c
-DIV     id=e
-DIV     id=d
-DIV     id=f
-DIV     id=h
-DIV     id=i
-DIV     id=g
-Traverse in backward.
-DIV     id=g
-DIV     id=i
-DIV     id=h
-DIV     id=f
-DIV     id=d
-DIV     id=e
-DIV     id=c
-DIV     id=b
-DIV     id=a
-
-Test for Multiple ShadowRoots.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=d
-       DIV      id=b
-       DIV      id=f
-       DIV      id=c
-       DIV      id=e
-
-Traverse in forward.
-DIV     id=a
-DIV     id=d
-DIV     id=b
-DIV     id=f
-DIV     id=c
-DIV     id=e
-Traverse in backward.
-DIV     id=e
-DIV     id=c
-DIV     id=f
-DIV     id=b
-DIV     id=d
-DIV     id=a
-
-Test for inactive insertion points.
-Composed Shadow Tree:
-DIV     id=a
-       CONTENT  id=b
-               CONTENT  id=c
-
-Traverse in forward.
-DIV     id=a
-CONTENT         id=b
-CONTENT         id=c
-Traverse in backward.
-CONTENT         id=c
-CONTENT         id=b
-DIV     id=a
-
-Test for an orphaned shadow subtree.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=d
-
-Traverse in forward.
-DIV     id=a
-DIV     id=d
-Traverse in backward.
-DIV     id=d
-DIV     id=a
-
-Test for traversal, starting with a node in an orphaned shadow subtree.
-Composed Shadow Tree:
-DIV     id=b
-       DIV      id=c
-
-Traverse in forward.
-DIV     id=b
-DIV     id=c
-Traverse in backward.
-DIV     id=c
-DIV     id=b
-
-Test for a content element which does not select any nodes nor have fallback elements.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-       DIV      id=c
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=c
-Traverse in backward.
-DIV     id=c
-DIV     id=b
-DIV     id=a
-
-Test for a nested insertion point.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-               DIV      id=c
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=c
-Traverse in backward.
-DIV     id=c
-DIV     id=b
-DIV     id=a
-
-Test for nested insertion points. Some of them are either empty insertion points or inactive insertion points.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-               DIV      id=c
-               DIV      id=d class=select-2
-               DIV      id=e class=select-2
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=c
-DIV     id=d class=select-2
-DIV     id=e class=select-2
-Traverse in backward.
-DIV     id=e class=select-2
-DIV     id=d class=select-2
-DIV     id=c
-DIV     id=b
-DIV     id=a
-
-Test for a re-projection.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-               DIV      id=c
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=c
-Traverse in backward.
-DIV     id=c
-DIV     id=b
-DIV     id=a
-
-Test for a content element which is selected by another content element.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-               DIV      id=most-inner-child
-               DIV      id=host-child
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=most-inner-child
-DIV     id=host-child
-Traverse in backward.
-DIV     id=host-child
-DIV     id=most-inner-child
-DIV     id=b
-DIV     id=a
-
-Test for a reprojection. Content elements should be used in document order.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=host-child1 class=child
-       DIV      id=b
-               DIV      id=host-child2 class=child
-
-Traverse in forward.
-DIV     id=a
-DIV     id=host-child1 class=child
-DIV     id=b
-DIV     id=host-child2 class=child
-Traverse in backward.
-DIV     id=host-child2 class=child
-DIV     id=b
-DIV     id=host-child1 class=child
-DIV     id=a
-
-Test for complex re-projections.
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-               DIV      id=child-1 class=foo
-               DIV      id=d class=foo
-                       DIV      id=e
-                       DIV      id=child-2 class=foo
-                       DIV      id=g class=foo
-                       DIV      id=f
-               DIV      id=h class=foo
-               DIV      id=c
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=child-1 class=foo
-DIV     id=d class=foo
-DIV     id=e
-DIV     id=child-2 class=foo
-DIV     id=g class=foo
-DIV     id=f
-DIV     id=h class=foo
-DIV     id=c
-Traverse in backward.
-DIV     id=c
-DIV     id=h class=foo
-DIV     id=f
-DIV     id=g class=foo
-DIV     id=child-2 class=foo
-DIV     id=e
-DIV     id=d class=foo
-DIV     id=child-1 class=foo
-DIV     id=b
-DIV     id=a
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/dom/shadow/composed-shadow-tree-walker-shadow-reprojection-expected.txt b/LayoutTests/fast/dom/shadow/composed-shadow-tree-walker-shadow-reprojection-expected.txt
deleted file mode 100644 (file)
index 254079b..0000000
+++ /dev/null
@@ -1,186 +0,0 @@
-Tests for Composed Shadow DOM Tree Traversal APIs. Can only run within DRT
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Multiple shadow root without shadow element
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=c
-
-Traverse in forward.
-DIV     id=a
-DIV     id=c
-Traverse in backward.
-DIV     id=c
-DIV     id=a
-
-Multiple shadow root with shadow element
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=c
-       DIV      id=b
-       DIV      id=e
-
-Traverse in forward.
-DIV     id=a
-DIV     id=c
-DIV     id=b
-DIV     id=e
-Traverse in backward.
-DIV     id=e
-DIV     id=b
-DIV     id=c
-DIV     id=a
-
-Multiple shadow root with shadow element, case 2
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=f
-       DIV      id=c
-       DIV      id=b
-       DIV      id=e
-       DIV      id=h
-
-Traverse in forward.
-DIV     id=a
-DIV     id=f
-DIV     id=c
-DIV     id=b
-DIV     id=e
-DIV     id=h
-Traverse in backward.
-DIV     id=h
-DIV     id=e
-DIV     id=b
-DIV     id=c
-DIV     id=f
-DIV     id=a
-
-shadow reprojection
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=b
-               DIV      id=d
-               DIV      id=a-child
-               DIV      id=f
-
-Traverse in forward.
-DIV     id=a
-DIV     id=b
-DIV     id=d
-DIV     id=a-child
-DIV     id=f
-Traverse in backward.
-DIV     id=f
-DIV     id=a-child
-DIV     id=d
-DIV     id=b
-DIV     id=a
-
-shadow reprojection, take 2
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=d
-               DIV      id=f
-               DIV      id=b
-               DIV      id=h
-
-Traverse in forward.
-DIV     id=a
-DIV     id=d
-DIV     id=f
-DIV     id=b
-DIV     id=h
-Traverse in backward.
-DIV     id=h
-DIV     id=b
-DIV     id=f
-DIV     id=d
-DIV     id=a
-
-shadow fallback element reprojection
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=i
-               DIV      id=k
-               DIV      id=c
-               DIV      id=b
-               DIV      id=g
-               DIV      id=h
-               DIV      id=m
-
-Traverse in forward.
-DIV     id=a
-DIV     id=i
-DIV     id=k
-DIV     id=c
-DIV     id=b
-DIV     id=g
-DIV     id=h
-DIV     id=m
-Traverse in backward.
-DIV     id=m
-DIV     id=h
-DIV     id=g
-DIV     id=b
-DIV     id=c
-DIV     id=k
-DIV     id=i
-DIV     id=a
-
-with inactive insertion points
-Composed Shadow Tree:
-DIV     id=a
-       DIV      id=s
-               DIV      id=u
-               DIV      id=f
-               CONTENT  id=b
-                       DIV      id=c
-               SHADOW   id=d
-                       DIV      id=e
-               CONTENT  id=l
-               SHADOW   id=m
-               DIV      id=n
-               CONTENT  id=p
-               SHADOW   id=q
-               DIV      id=r
-               DIV      id=w
-
-Traverse in forward.
-DIV     id=a
-DIV     id=s
-DIV     id=u
-DIV     id=f
-CONTENT         id=b
-DIV     id=c
-SHADOW  id=d
-DIV     id=e
-CONTENT         id=l
-SHADOW  id=m
-DIV     id=n
-CONTENT         id=p
-SHADOW  id=q
-DIV     id=r
-DIV     id=w
-Traverse in backward.
-DIV     id=w
-DIV     id=r
-SHADOW  id=q
-CONTENT         id=p
-DIV     id=n
-SHADOW  id=m
-CONTENT         id=l
-DIV     id=e
-SHADOW  id=d
-DIV     id=c
-CONTENT         id=b
-DIV     id=f
-DIV     id=u
-DIV     id=s
-DIV     id=a
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/dom/shadow/composed-shadow-tree-walker-shadow-reprojection.html b/LayoutTests/fast/dom/shadow/composed-shadow-tree-walker-shadow-reprojection.html
deleted file mode 100644 (file)
index e93ed36..0000000
+++ /dev/null
@@ -1,190 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test-pre.js"></script>
-<script src="resources/shadow-dom.js"></script>
-</head>
-<body>
-<div id="console"></div>
-<div id="sandbox"></div>
-<script>
-description("Tests for Composed Shadow DOM Tree Traversal APIs. Can only run within DRT");
-
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-function dumpNode(node)
-{
-    if (!node)
-        return '(null)'
-    var output = node.nodeName + "\t";
-    if (node.id)
-        output += ' id=' + node.id;
-    if (node.className)
-        output += ' class=' + node.className;
-    return output;
-}
-
-function dumpComposedShadowTree(node, indent)
-{
-    indent = indent || "";
-    var output = indent + dumpNode(node) + "\n";
-    var child;
-    for (child = internals.firstChildByWalker(node); child; child = internals.nextSiblingByWalker(child))
-         output += dumpComposedShadowTree(child, indent + "\t");
-    return output;
-}
-
-function lastNodeByWalker(root)
-{
-    var lastNode = root;
-    while (internals.lastChildByWalker(lastNode))
-        lastNode = internals.lastChildByWalker(lastNode);
-    return lastNode;
-}
-
-function showComposedShadowTreeByTraversingInForward(root)
-{
-    var node = root;
-    var last = lastNodeByWalker(root);
-    while (node) {
-        debug(dumpNode(node));
-        if (node == last)
-            break;
-        node = internals.nextNodeByWalker(node);
-    }
-}
-
-function showComposedShadowTreeByTraversingInBackward(root)
-{
-    var node = lastNodeByWalker(root);
-    while (node) {
-        debug(dumpNode(node));
-        if (node == root)
-            break;
-        node = internals.previousNodeByWalker(node);
-    }
-}
-
-function showComposedShadowTree(node)
-{
-    debug('Composed Shadow Tree:');
-    debug(dumpComposedShadowTree(node));
-
-    debug('Traverse in forward.');
-    showComposedShadowTreeByTraversingInForward(node);
-
-    debug('Traverse in backward.');
-    showComposedShadowTreeByTraversingInBackward(node);
-
-    debug('');
-}
-
-function showNextNode(node) {
-    var next = internals.nextNodeByWalker(node);
-    debug('Next node of [' + dumpNode(node) + '] is [' + dumpNode(next) + ']');
-}
-
-function testComposedShadowTree(node)
-{
-    var sandbox = document.getElementById('sandbox');
-    sandbox.innerHTML = '';
-    sandbox.appendChild(node);
-    document.body.offsetLeft;
-    showComposedShadowTree(node);
-}
-
-debug('Multiple shadow root without shadow element');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('div', {'id': 'b'})),
-              createShadowRoot(createDOM('div', {'id': 'c'}))));
-
-debug('Multiple shadow root with shadow element');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('div', {'id': 'b'})),
-              createShadowRoot(createDOM('div', {'id': 'c'}),
-                               createDOM('shadow', {'id': 'd'}),
-                               createDOM('div', {'id': 'e'}))));
-
-debug('Multiple shadow root with shadow element, case 2');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('div', {'id': 'b'})),
-              createShadowRoot(createDOM('div', {'id': 'c'}),
-                               createDOM('shadow', {'id': 'd'}),
-                               createDOM('div', {'id': 'e'})),
-              createShadowRoot(createDOM('div', {'id': 'f'}),
-                               createDOM('shadow', {'id': 'g'}),
-                               createDOM('div', {'id': 'h'}))));
-
-debug('shadow reprojection');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createDOM('div', {'id': 'a-child'}),
-              createShadowRoot(createDOM('div', {'id': 'b'},
-                                         createDOM('shadow', {'id': 'c'}),
-                                         createShadowRoot(createDOM('div', {'id': 'd'}),
-                                                          createDOM('content', {'id': 'e'}),
-                                                          createDOM('div', {'id': 'f'}))))));
-
-debug('shadow reprojection, take 2');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createDOM('div', {'id': 'b'}),
-              createShadowRoot(createDOM('shadow', {'id': 'c'})),
-              createShadowRoot(createDOM('div', {'id': 'd'},
-                                         createDOM('shadow', {'id': 'e'}),
-                                         createShadowRoot(createDOM('div', {'id': 'f'}),
-                                                          createDOM('content', {'id': 'g'}),
-                                                          createDOM('div', {'id': 'h'}))))));
-
-debug('shadow fallback element reprojection');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createDOM('div', {'id': 'b'}),
-              createShadowRoot(createDOM('div', {'id': 'c'}),
-                               createDOM('shadow', {'id': 'd'},
-                                         createDOM('div', {'id': 'e'})),
-                               createDOM('shadow', {'id': 'f'},
-                                         createDOM('div', {'id': 'g'})),
-                               createDOM('div', {'id': 'h'})),
-              createShadowRoot(createDOM('div', {'id': 'i'},
-                                         createDOM('shadow', {'id': 'j'}),
-                                         createShadowRoot(createDOM('div', {'id': 'k'}),
-                                                          createDOM('content', {'id': 'l'}),
-                                                          createDOM('div', {'id': 'm'}))))));
-
-internals.address(document);
-debug('with inactive insertion points')
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createDOM('content', {'id': 'b'},
-                        createDOM('div', {'id': 'c'})),
-              createDOM('shadow', {'id': 'd'},
-                        createDOM('div', {'id': 'e'})),
-              createShadowRoot(createDOM('div', {'id': 'f'}),
-                               createDOM('content', {'id': 'g'},
-                                         createDOM('content', {'id': 'h'}),
-                                         createDOM('shadow', {'id': 'i'}),
-                                         createDOM('div', {'id': 'j'})),
-                               createDOM('content', {'id': 'k'},
-                                         createDOM('content', {'id': 'l'}),
-                                         createDOM('shadow', {'id': 'm'}),
-                                         createDOM('div', {'id': 'n'})),
-                               createDOM('shadow', {'id': 'o'},
-                                         createDOM('content', {'id': 'p'}),
-                                         createDOM('shadow', {'id': 'q'}),
-                                         createDOM('div', {'id': 'r'}))),
-              createShadowRoot(createDOM('div', {'id': 's'},
-                                         createDOM('shadow', {'id': 't'}),
-                                         createShadowRoot(createDOM('div', {'id': 'u'}),
-                                                          createDOM('content', {'id': 'v'}),
-                                                          createDOM('div', {'id': 'w'}))))));
-                        
-
-</script>
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/composed-shadow-tree-walker.html b/LayoutTests/fast/dom/shadow/composed-shadow-tree-walker.html
deleted file mode 100644 (file)
index 7883f09..0000000
+++ /dev/null
@@ -1,293 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test-pre.js"></script>
-<script src="resources/shadow-dom.js"></script>
-</head>
-<body>
-<div id="console"></div>
-<div id="sandbox"></div>
-<script>
-description("Tests for Composed Shadow DOM Tree Traversal APIs. Can only run within DRT");
-
-if (window.testRunner)
-    testRunner.dumpAsText();
-
-function dumpNode(node)
-{
-    if (!node)
-        return '(null)'
-    var output = node.nodeName + "\t";
-    if (node.id)
-        output += ' id=' + node.id;
-    if (node.className)
-        output += ' class=' + node.className;
-    return output;
-}
-
-function dumpComposedShadowTree(node, indent)
-{
-    indent = indent || "";
-    var output = indent + dumpNode(node) + "\n";
-    var child;
-    for (child = internals.firstChildByWalker(node); child; child = internals.nextSiblingByWalker(child))
-         output += dumpComposedShadowTree(child, indent + "\t");
-    return output;
-}
-
-function lastNodeByWalker(root)
-{
-    var lastNode = root;
-    while (internals.lastChildByWalker(lastNode))
-        lastNode = internals.lastChildByWalker(lastNode);
-    return lastNode;
-}
-
-function showComposedShadowTreeByTraversingInForward(root)
-{
-    var node = root;
-    var last = lastNodeByWalker(root);
-    while (node) {
-        debug(dumpNode(node));
-        if (node == last)
-            break;
-        node = internals.nextNodeByWalker(node);
-    }
-}
-
-function showComposedShadowTreeByTraversingInBackward(root)
-{
-    var node = lastNodeByWalker(root);
-    while (node) {
-        debug(dumpNode(node));
-        if (node == root)
-            break;
-        node = internals.previousNodeByWalker(node);
-    }
-}
-
-function showComposedShadowTree(node)
-{
-    debug('Composed Shadow Tree:');
-    debug(dumpComposedShadowTree(node));
-
-    debug('Traverse in forward.');
-    showComposedShadowTreeByTraversingInForward(node);
-
-    debug('Traverse in backward.');
-    showComposedShadowTreeByTraversingInBackward(node);
-
-    debug('');
-}
-
-function showNextNode(node) {
-    var next = internals.nextNodeByWalker(node);
-    debug('Next node of [' + dumpNode(node) + '] is [' + dumpNode(next) + ']');
-}
-
-function testComposedShadowTree(node)
-{
-    var sandbox = document.getElementById('sandbox');
-    sandbox.innerHTML = '';
-    sandbox.appendChild(node);
-    document.body.offsetLeft;
-    showComposedShadowTree(node);
-}
-
-debug('ShadowRoot should be used.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('div', {'id': 'b'})),
-              createDOM('div', {'id': 'c'})));
-
-debug('A content element should select light children');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('div', {'id': 'b'}),
-                               createDOM('content')),
-              createDOM('div', {'id': 'c'}),
-              createDOM('div', {'id': 'd'})));
-
-debug('Test for content element selector.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('div', {'id': 'b'}),
-                               createDOM('content', {'select': '#d'})),
-              createDOM('div', {'id': 'c'}),
-              createDOM('div', {'id': 'd'}),
-              createDOM('div', {'id': 'e'})));
-
-debug('Light children should be selected only at once.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('div', {'id': 'b'}),
-                               createDOM('content', {'select': '#d'}),
-                               createDOM('content')),
-              createDOM('div', {'id': 'c'}),
-              createDOM('div', {'id': 'd'}),
-              createDOM('div', {'id': 'e'})));
-
-debug('A content element can have fallback elements.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('div', {'id': 'b'}),
-                               createDOM('content', {'select': '#z'},
-                                         createDOM('div', {'id': 'f1'}),
-                                         createDOM('div', {'id': 'f2'}))),
-              createDOM('div', {'id': 'c'})));
-
-debug('Fallback elements should not be used if a content element selects an element.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('div', {'id': 'b'}),
-                               createDOM('content', {'select': '#c'},
-                                         createDOM('div', {'id': 'f1'},
-                                                   createDOM('div', {'id': 'f2'})))),
-              createDOM('div', {'id': 'c'})));
-
-debug('Test for traversal, starting with a fallback element which is not used.');
-showComposedShadowTree(getNodeInShadowTreeStack('a/f1'));
-showNextNode(getNodeInShadowTreeStack('a/f1'));
-showNextNode(getNodeInShadowTreeStack('a/f2'));
-debug('');
-
-debug('Test for Nested ShadowRoots.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('div', {'id': 'b'},
-                                         createShadowRoot(createDOM('div', {'id': 'c'}),
-                                                          createDOM('content'),
-                                                          createDOM('div', {'id': 'd'})),
-                                         createDOM('div', {'id': 'e'})),
-                               createDOM('div', {'id': 'f'}),
-                               createDOM('content'),
-                               createDOM('div', {'id': 'g'})),
-              createDOM('div', {'id': 'h'}),
-              createDOM('div', {'id': 'i'})));
-
-debug('Test for Multiple ShadowRoots.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('div', {'id': 'b'}),
-                               createDOM('content'),
-                               createDOM('div', {'id': 'c'})),
-              createShadowRoot(createDOM('div', {'id': 'd'}),
-                               createDOM('shadow'),
-                               createDOM('div', {'id': 'e'})),
-              createDOM('div', {'id': 'f'})));
-
-debug('Test for inactive insertion points.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createDOM('content', {'id': 'b'},
-                        createDOM('content', {'id': 'c'}))));
-
-debug('Test for an orphaned shadow subtree.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(
-                  createDOM('div', {'id': 'b'},
-                            createDOM('div', {'id': 'c'}))),
-              createShadowRoot(
-                  createDOM('div', {'id': 'd'}))));
-
-debug('Test for traversal, starting with a node in an orphaned shadow subtree.');
-showComposedShadowTree(getNodeInShadowTreeStack('a/b'));
-
-debug('Test for a content element which does not select any nodes nor have fallback elements.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('content', {'select': '#none'}),
-                               createDOM('div', {'id': 'b'}),
-                               createDOM('content', {'select': '#none'}),
-                               createDOM('div', {'id': 'c'}),
-                               createDOM('content', {'select': '#none'}))));
-
-debug('Test for a nested insertion point.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('div', {'id': 'b'},
-                                         createShadowRoot(createDOM('content', {})),
-                                         createDOM('content', {}))),
-              createDOM('div', {'id': 'c'})));
-
-debug('Test for nested insertion points. Some of them are either empty insertion points or inactive insertion points.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(createDOM('content', {'select': '#none'}),
-                               createDOM('div', {'id': 'b'},
-                                         createShadowRoot(createDOM('content', {'select': '.select-1'}),
-                                                          createDOM('div', {'id': 'c'}),
-                                                          createDOM('content', {'select': '.select-2'})),
-                                         createDOM('content', {'class': 'select-1', 'select': '.select-4'}),
-                                         createDOM('content', {'class': 'select-2', 'select': '#none'}),
-                                         createDOM('div', {'id': 'd', 'class': 'select-2'}),
-                                         createDOM('content', {'class': 'select-2', 'select': '#none'}),
-                                         createDOM('div', {'id': 'e', 'class': 'select-2'}),
-                                         createDOM('content', {'class': 'select-2', 'select': '#none'}))),
-              createDOM('content', {'id': 'inactive-insertion-point', 'class': 'select-4'}),
-              createDOM('div', {'id': 'should-not-be-selected'}),
-              createDOM('div', {'id': 'f', 'class': 'select-4'})));
-
-debug('Test for a re-projection.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(
-                  createDOM('div', {'id': 'b'},
-                            createShadowRoot(createDOM('content', {'select': '#c'})),
-                            createDOM('content', {'select': '#c'}))),
-              createDOM('div', {'id': 'c'})));
-
-debug('Test for a content element which is selected by another content element.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(
-                  createDOM('div', {'id': 'b'},
-                            createShadowRoot(createDOM('content', {'select': '#content'}),
-                                             createDOM('div', {'id': 'most-inner-child'}),
-                                             createDOM('content', {'select': '#host-child'})),
-                            createDOM('content', {'id': 'content', 'select': '#host-child'},
-                                      createDOM('div', {'id': 'should-not-be-used'})),
-                            createDOM('div', {'id': 'inner-child', 'class': 'foo'}))),
-              createDOM('div', {'id': 'host-child'})));
-
-debug('Test for a reprojection. Content elements should be used in document order.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(
-                  createDOM('content', {'select': '#host-child1'}),
-                  createDOM('div', {'id': 'b'},
-                            createShadowRoot(createDOM('content', {'select': '.child'})),
-                            createDOM('content', {'select': '.child'}))),
-              createDOM('div', {'id': 'host-child1', 'class': 'child'}),
-              createDOM('div', {'id': 'host-child2', 'class': 'child'})));
-
-debug('Test for complex re-projections.');
-testComposedShadowTree(
-    createDOM('div', {'id': 'a'},
-              createShadowRoot(
-                  createDOM('div', {'id': 'b'},
-                            createShadowRoot(createDOM('content', {'select': '.foo'}),
-                                             createDOM('div', {'id': 'c'})),
-                            // Select #child-1
-                            createDOM('content', {'select': '#child-1'},
-                                      createDOM('div', {'class': 'should-not-be-used'}),
-                                      // Should not select any nodes since it's inactive.
-                                      createDOM('content', {'class': 'should-be-inactive', 'select': '.foo'})),
-                            createDOM('div', {'id': 'd', 'class': 'foo'},
-                                      createShadowRoot(createDOM('div', {'id': 'e'}),
-                                                       // Should select #child-2 and #g.
-                                                       createDOM('content', {'select': '.foo'}),
-                                                       createDOM('div', {'id': 'f'})),
-                                      // Select #child-2
-                                      createDOM('content', {'select': '#child-2'}),
-                                      createDOM('div', {'id': 'g', 'class': 'foo'})),
-                            createDOM('div', {'class': 'should-not-be-selected'}),
-                            createDOM('div', {'id': 'h', 'class': 'foo'}))),
-              createDOM('div', {'id': 'child-1', 'class': 'foo'}),
-              createDOM('div', {'id': 'not-selected', 'class': 'foo'}),
-              createDOM('div', {'id': 'child-2', 'class': 'foo'})));
-</script>
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-after-style-expected.html b/LayoutTests/fast/dom/shadow/content-after-style-expected.html
deleted file mode 100644 (file)
index 46f8c31..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<div id="host">text<div>host content</div></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-after-style.html b/LayoutTests/fast/dom/shadow/content-after-style.html
deleted file mode 100644 (file)
index f3f2604..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<div id="host"><div>host content</div></div>
-<script>
-if (window.testRunner)
-    window.testRunner.waitUntilDone();
-var root = document.querySelector('#host').webkitCreateShadowRoot();
-root.innerHTML = '<style>invalid { }</style>' +
-                 'text<content></content>';
-window.setTimeout(function() {
-    if (window.testRunner)
-        window.testRunner.notifyDone();
-}, 0);
-</script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-child-whitespace-between-span-expected.txt b/LayoutTests/fast/dom/shadow/content-child-whitespace-between-span-expected.txt
deleted file mode 100644 (file)
index 508d34d..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-Two conainers should be layed out in the same way
-
-PASS
-
diff --git a/LayoutTests/fast/dom/shadow/content-child-whitespace-between-span.html b/LayoutTests/fast/dom/shadow/content-child-whitespace-between-span.html
deleted file mode 100644 (file)
index bf07cf8..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<style>
-summary { display: none; }
-span { background-color: red; }
-/* relative positioning ensures underlying RenderLayer */
-.container { position: relative; }
-</style>
-<script>
-function log(message)
-{
-    document.getElementById("console").innerHTML += (message + "\n");
-}
-
-function removeContainerLines(text)
-{
-    var lines = text.split("\n");
-    lines.splice(0, 2);
-    return lines.join("\n");
-}
-
-function test()
-{
-    if (!window.testRunner)
-        return;
-    testRunner.dumpAsText();
-
-    var targetContainerRenderTree = window.internals.elementRenderTreeAsText(document.getElementById("targetContainer"));
-    var targetRenderTree = removeContainerLines(targetContainerRenderTree);
-    var refContainerRenderTree = window.internals.elementRenderTreeAsText(document.getElementById("refContainer"));
-    var refRenderTree = removeContainerLines(refContainerRenderTree);
-
-    targetRenderTree = targetRenderTree.replace("RenderBlock {DETAILS}", "RenderBlock {DIV}");
-
-    if (targetRenderTree == refRenderTree)
-        log("PASS");
-    else {
-        log("FAIL");
-        log("Expected:");
-        log(refRenderTree);
-        log("Actual:");
-        log(targetRenderTree);
-    }
-    
-    document.getElementById("test").style.display = "none";
-}
-
-</script>
-</head>
-<body onload="test()">
-<p>Two conainers should be layed out in the same way</p>
-<div id="test">
-<div class="container" id="targetContainer">
-<div>
-<details open>
-<div>Hello1</div>
-<span>Hello2</span>
-<span>Hello3</span>
-<summary></summary>
-</details>
-</div>
-</div>
-<hr />
-<div class="container" id="refContainer" >
-<div>
-<div>
-<div>Hello1</div>
-<span>Hello2</span>
-<span>Hello3</span>
-<span style="display: none;"></span>
-</div>
-</div>
-</div>
-</div>
-<pre id="console"></pre>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-element-api-expected.txt b/LayoutTests/fast/dom/shadow/content-element-api-expected.txt
deleted file mode 100644 (file)
index 98202ca..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-This test ensure that the content element is available.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS contentSimplest.select is ''
-PASS contentSimplest.select is 'foo'
-PASS contentSimplest.getAttribute('select') is 'bar'
-PASS 0 <= contentSimplest.constructor.toString().indexOf('HTMLContentElement') is true
-PASS window.HTMLContentElement is contentSimplest.constructor
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/dom/shadow/content-element-api.html b/LayoutTests/fast/dom/shadow/content-element-api.html
deleted file mode 100644 (file)
index c368a29..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test-pre.js"></script>
-</head>
-<body>
-<div>
-  <content id="content-simplest"></content>
-</div>
-<script>
-description("This test ensure that the content element is available.");
-var contentSimplest = document.getElementById("content-simplest");
-shouldBe("contentSimplest.select", "''");
-contentSimplest.setAttribute("select", "foo");
-shouldBe("contentSimplest.select", "'foo'");
-contentSimplest.select = "bar"
-shouldBe("contentSimplest.getAttribute('select')", "'bar'");
-shouldBeTrue("0 <= contentSimplest.constructor.toString().indexOf('HTMLContentElement')");
-shouldBe("window.HTMLContentElement", "contentSimplest.constructor");
-</script>
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-element-distributed-nodes-expected.txt b/LayoutTests/fast/dom/shadow/content-element-distributed-nodes-expected.txt
deleted file mode 100644 (file)
index 29a03d9..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-Tests for content element's getDistributedNodes().
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS nodeList.length is expectedNodes.length
-PASS nodeList.item(0) is expectedNodes[0]
-PASS nodeList.length is expectedNodes.length
-PASS nodeList.item(0) is expectedNodes[0]
-PASS nodeList.length is expectedNodes.length
-PASS nodeList.item(0) is expectedNodes[0]
-Verify that getDistributedNodes() returns a static NodeList.
-PASS nodeList.length is expectedNodes.length
-PASS nodeList.item(0) is expectedNodes[0]
-PASS nodeList.length is expectedNodes.length
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/dom/shadow/content-element-distributed-nodes.html b/LayoutTests/fast/dom/shadow/content-element-distributed-nodes.html
deleted file mode 100644 (file)
index df3b1e5..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test-pre.js"></script>
-<script src="resources/shadow-dom.js"></script>
-</head>
-<body>
-<script>
-description("Tests for content element's getDistributedNodes().");
-
-document.body.appendChild(
-    createDOM('div', {},
-              createDOM('div', {'id': 'host-1'},
-                        createShadowRoot(
-                            createDOM('content', {'id': 'content-1'})),
-                        createDOM('div', {'id': 'child-1'})),
-              createDOM('div', {'id': 'host-2'},
-                        createShadowRoot(
-                            createDOM('content', {'id': 'content-2'}),
-                            createDOM('div', {'id': 'host-3'},
-                                      createShadowRoot(
-                                          createDOM('content', {'id': 'content-3'})),
-                                      createDOM('div', {'id': 'child-3'}))),
-                        createDOM('div', {'id': 'child-2'}))));
-
-
-var content1 = getNodeInShadowTreeStack('host-1/content-1');
-var content2 = getNodeInShadowTreeStack('host-2/content-2');
-var content3 = getNodeInShadowTreeStack('host-2/host-3/content-3');
-
-var child1 = getNodeInShadowTreeStack('child-1');
-var child2 = getNodeInShadowTreeStack('child-2');
-var child3 = getNodeInShadowTreeStack('host-2/child-3');
-
-var distributedNodes1 = content1.getDistributedNodes();
-var distributedNodes2 = content2.getDistributedNodes();
-var distributedNodes3 = content3.getDistributedNodes();
-
-function assertNodeList(nodeList, expectedNodes)
-{
-    window.nodeList = nodeList;
-    window.expectedNodes = expectedNodes;
-    shouldBe("nodeList.length", "expectedNodes.length");
-    for (var i = 0; i < nodeList.length; ++i) {
-      shouldBe("nodeList.item(" + i + ")", "expectedNodes[" + i + "]");
-    }
-}
-
-assertNodeList(distributedNodes1, [child1]);
-assertNodeList(distributedNodes2, [child2]);
-assertNodeList(distributedNodes3, [child3]);
-
-debug('Verify that getDistributedNodes() returns a static NodeList.');
-document.getElementById('host-1').innerHTML = '';
-assertNodeList(distributedNodes1, [child1]);
-assertNodeList(content1.getDistributedNodes(), []);
-
-</script>
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-element-in-media-element-expected.txt b/LayoutTests/fast/dom/shadow/content-element-in-media-element-expected.txt
deleted file mode 100644 (file)
index 6aa3358..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-contentElementInVideoElement
-PASS
-TEST COMPLETED
-
diff --git a/LayoutTests/fast/dom/shadow/content-element-in-media-element.html b/LayoutTests/fast/dom/shadow/content-element-in-media-element.html
deleted file mode 100644 (file)
index 6b27a8b..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-/* relative positioning ensures underlying RenderLayer */
-.container {
-    position: relative;
-}
-
-.span {
-    display: boxed-inline;
-    margin: 2px;
-    border: solid;
-}
-</style>
-<script src="../resources/shadow-test-driver.js"></script>
-<script src="resources/polyfill.js"></script>
-<script>
-
-var testFuncs = [];
-
-testFuncs.push(function contentElementInVideoElement(callIfDone) {
-    document.getElementById('expect-container').innerHTML = "<div><video><div></div></video></div>";
-
-    var div = document.createElement('div');
-    div.appendChild(document.createElement('div'));
-
-    document.getElementById('actual-container').appendChild(div);
-
-    var sr = div.webkitCreateShadowRoot();
-
-    var video = document.createElement('video');
-    var content = document.createElement('content');
-    video.appendChild(content);
-    sr.appendChild(video);
-    document.body.offsetWidth; // force style recalc.
-    callIfDone();
-});
-
-</script>
-</head>
-<body onload="doTest(testFuncs)">
-
-<div id="actual-container" class="container"></div>
-<div id="expect-container" class="container"></div>
-<pre id="console"></pre>
-
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-element-in-meter-element-expected.txt b/LayoutTests/fast/dom/shadow/content-element-in-meter-element-expected.txt
deleted file mode 100644 (file)
index 56e2035..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-contentElementInMeterElement
-PASS
-TEST COMPLETED
-
diff --git a/LayoutTests/fast/dom/shadow/content-element-in-meter-element.html b/LayoutTests/fast/dom/shadow/content-element-in-meter-element.html
deleted file mode 100644 (file)
index d9eb911..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-/* relative positioning ensures underlying RenderLayer */
-.container {
-    position: relative;
-}
-
-.span {
-    display: boxed-inline;
-    margin: 2px;
-    border: solid;
-}
-</style>
-<script src="../resources/shadow-test-driver.js"></script>
-<script src="resources/polyfill.js"></script>
-<script>
-
-var testFuncs = [];
-
-testFuncs.push(function contentElementInMeterElement(callIfDone) {
-    document.getElementById('expect-container').innerHTML = "<div><meter><div></div></meter></div>";
-
-    var div = document.createElement('div');
-    div.appendChild(document.createElement('div'));
-
-    document.getElementById('actual-container').appendChild(div);
-
-    var sr = div.webkitCreateShadowRoot();
-
-    var meter = document.createElement('meter');
-    var content = document.createElement('content');
-    meter.appendChild(content);
-    sr.appendChild(meter);
-    document.body.offsetWidth; // force style recalc.
-    callIfDone();
-});
-
-</script>
-</head>
-<body onload="doTest(testFuncs)">
-
-<div id="actual-container" class="container"></div>
-<div id="expect-container" class="container"></div>
-<pre id="console"></pre>
-
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-element-in-progress-element-expected.txt b/LayoutTests/fast/dom/shadow/content-element-in-progress-element-expected.txt
deleted file mode 100644 (file)
index 83c109e..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-contentElementInProgressElement
-PASS
-TEST COMPLETED
-
diff --git a/LayoutTests/fast/dom/shadow/content-element-in-progress-element.html b/LayoutTests/fast/dom/shadow/content-element-in-progress-element.html
deleted file mode 100644 (file)
index 96e4fcf..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-/* relative positioning ensures underlying RenderLayer */
-.container {
-    position: relative;
-}
-
-.span {
-    display: boxed-inline;
-    margin: 2px;
-    border: solid;
-}
-</style>
-<script src="../resources/shadow-test-driver.js"></script>
-<script src="resources/polyfill.js"></script>
-<script>
-
-var testFuncs = [];
-
-testFuncs.push(function contentElementInProgressElement(callIfDone) {
-    document.getElementById('expect-container').innerHTML = "<div><progress><div></div></progress></div>";
-
-    var div = document.createElement('div');
-    div.appendChild(document.createElement('div'));
-
-    document.getElementById('actual-container').appendChild(div);
-
-    var sr = div.webkitCreateShadowRoot();
-
-    var progress = document.createElement('progress');
-    var content = document.createElement('content');
-    progress.appendChild(content);
-    sr.appendChild(progress);
-    document.body.offsetWidth; // force style recalc.
-    callIfDone();
-});
-
-</script>
-</head>
-<body onload="doTest(testFuncs)">
-
-<div id="actual-container" class="container"></div>
-<div id="expect-container" class="container"></div>
-<pre id="console"></pre>
-
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-element-in-select-element-expected.txt b/LayoutTests/fast/dom/shadow/content-element-in-select-element-expected.txt
deleted file mode 100644 (file)
index ea006b2..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-contentElementInSelectElement
-PASS
-TEST COMPLETED
-
diff --git a/LayoutTests/fast/dom/shadow/content-element-in-select-element.html b/LayoutTests/fast/dom/shadow/content-element-in-select-element.html
deleted file mode 100644 (file)
index b98c300..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-/* relative positioning ensures underlying RenderLayer */
-.container {
-    position: relative;
-}
-
-.span {
-    display: boxed-inline;
-    margin: 2px;
-    border: solid;
-}
-</style>
-<script src="../resources/shadow-test-driver.js"></script>
-<script src="resources/polyfill.js"></script>
-<script>
-
-var testFuncs = [];
-
-testFuncs.push(function contentElementInSelectElement(callIfDone) {
-    document.getElementById('expect-container').innerHTML = "<div><select><div></div></select></div>";
-
-    var div = document.createElement('div');
-    div.appendChild(document.createElement('div'));
-
-    document.getElementById('actual-container').appendChild(div);
-
-    var sr = div.webkitCreateShadowRoot();
-
-    var select = document.createElement('select');
-    var content = document.createElement('content');
-    select.appendChild(content);
-    sr.appendChild(select);
-    document.body.offsetWidth; // force style recalc.
-    callIfDone();
-});
-
-</script>
-</head>
-<body onload="doTest(testFuncs)">
-
-<div id="actual-container" class="container"></div>
-<div id="expect-container" class="container"></div>
-<pre id="console"></pre>
-
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-element-includer-expected.txt b/LayoutTests/fast/dom/shadow/content-element-includer-expected.txt
deleted file mode 100644 (file)
index c0eb073..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-This tests the correctness of includers of forwarded children.
-Note that this test needs internals object thus cannot run outside DRT.
-PASS internals.includerFor(childOfElementWithoutShadow) is null
-PASS internals.includerFor(childOfElementWithShadow) is null
-PASS internals.includerFor(childOfElementWithShadowContent) is shadowContentOfElementWithShadowContent
-PASS internals.includerFor(movingChild) is null
-PASS internals.includerFor(movingChild) is null
-PASS internals.includerFor(movingChild) is anotherShadowContentOfElementWithShadowContent
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/dom/shadow/content-element-includer.html b/LayoutTests/fast/dom/shadow/content-element-includer.html
deleted file mode 100644 (file)
index d4719e1..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test-pre.js"></script>
-</head>
-<body>
-<pre id="console">
-This tests the correctness of includers of forwarded children.
-Note that this test needs internals object thus cannot run outside DRT.
-</pre>
-<div id="container"></div>
-<script>
-var container = document.getElementById("container");
-
-var shadowRoot = null;
-
-var elementWithoutShadow = document.createElement("div");
-container.appendChild(elementWithoutShadow);
-var childOfElementWithoutShadow = document.createElement("span");
-elementWithoutShadow.appendChild(childOfElementWithoutShadow);
-container.offsetLeft;
-shouldBe("internals.includerFor(childOfElementWithoutShadow)", "null");
-
-var elementWithShadow = document.createElement("div");
-container.appendChild(elementWithShadow);
-var shadowRootOfElementWithShadow = internals.ensureShadowRoot(elementWithShadow);
-shadowRootOfElementWithShadow.appendChild(document.createElement("div")); // Gives non-content child. 
-var childOfElementWithShadow = document.createElement("span");
-elementWithShadow.appendChild(childOfElementWithShadow);
-container.offsetLeft;
-shouldBe("internals.includerFor(childOfElementWithShadow)", "null");
-
-var elementWithShadowContent = document.createElement("div");
-container.appendChild(elementWithShadowContent);
-var shadowRootOfElementWithShadowContent = internals.ensureShadowRoot(elementWithShadowContent);
-var shadowContentOfElementWithShadowContent = internals.createContentElement();
-shadowRootOfElementWithShadowContent.appendChild(shadowContentOfElementWithShadowContent);
-var childOfElementWithShadowContent = document.createElement("span");
-elementWithShadowContent.appendChild(childOfElementWithShadowContent);
-container.offsetLeft;
-shouldBe("internals.includerFor(childOfElementWithShadowContent)", "shadowContentOfElementWithShadowContent");
-
-//
-// Testing dynamic change
-//
-var movingChild = childOfElementWithShadowContent;
-
-// Removing
-elementWithShadowContent.removeChild(movingChild);
-shouldBe("internals.includerFor(movingChild)", "null");
-
-// Moving to content-less tree
-elementWithShadow.appendChild(movingChild);
-shouldBe("internals.includerFor(movingChild)", "null");
-elementWithShadow.removeChild(movingChild);
-
-// Moving to another content-full tree
-var anotherElementWithShadowContent = document.createElement("div");
-container.appendChild(anotherElementWithShadowContent);
-var anotherShadowRootOfElementWithShadowContent = internals.ensureShadowRoot(anotherElementWithShadowContent);
-var anotherShadowContentOfElementWithShadowContent = internals.createContentElement();
-anotherShadowRootOfElementWithShadowContent.appendChild(anotherShadowContentOfElementWithShadowContent);
-
-anotherElementWithShadowContent.appendChild(movingChild);
-container.offsetLeft;
-shouldBe("internals.includerFor(movingChild)", "anotherShadowContentOfElementWithShadowContent");
-</script>
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-element-move-expected.txt b/LayoutTests/fast/dom/shadow/content-element-move-expected.txt
deleted file mode 100644 (file)
index 648498c..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-testRemoveContent
-PASS
-testRemoveContentToRecalc1
-PASS
-testRemoveContentToRecalc2
-PASS
-testRemoveContentAndRemoveLightChildren
-PASS
-testAppendContent1
-PASS
-testAppendContent2
-PASS
-testAppendContent3
-PASS
-testChangeOrderOfContent
-PASS
-testMoveLightChildOut
-PASS
-testInsertBeforeFallback
-PASS
-TEST COMPLETED
-
diff --git a/LayoutTests/fast/dom/shadow/content-element-move.html b/LayoutTests/fast/dom/shadow/content-element-move.html
deleted file mode 100644 (file)
index f7bc9bb..0000000
+++ /dev/null
@@ -1,326 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-/* relative positioning ensures underlying RenderLayer */
-.container {
-    position: relative;
-}
-
-.span {
-    display: boxed-inline;
-    margin: 2px;
-    border: solid;
-}
-</style>
-<script src="../resources/shadow-test-driver.js"></script>
-<script>
-function testRemoveContent(callIfDone) {
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span>LIGHT</span>";
-
-    // Create shadow tree.
-    var content = createContentWithSelect('span', 'FALLBACK');
-    var sr = internals.ensureShadowRoot(root);
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(content);
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, content, callIfDone) {
-        return function() {
-            content.parentNode.removeChild(content);
-            document.getElementById('expect-container').innerHTML = "<div><span>BEFORE</span><span>AFTER</span></div>";
-            callIfDone();
-        };
-    })(root, content, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testRemoveContentToRecalc1(callIfDone) {
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span class='c1'>LIGHT 1</span><span>LIGHT 2</span>";
-
-    // Create shadow tree.
-    var content1 = createContentWithSelect('.c1', 'FALLBACK');
-    var content2 = createContentWithSelect('span', 'FALLBACK');
-    var sr = internals.ensureShadowRoot(root);
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(content1);
-    sr.appendChild(createSpanWithText("MID"));
-    sr.appendChild(content2);
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, content1, callIfDone) {
-        return function() {
-            content1.parentNode.removeChild(content1);
-            document.getElementById('expect-container').innerHTML = "<div><span>BEFORE</span><span>MID</span><span>LIGHT 1</span><span>LIGHT 2</span><span>AFTER</span></div>";
-            callIfDone();
-        };
-    })(root, content1, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testRemoveContentToRecalc2(callIfDone) {
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span>LIGHT 1</span><span class='c1'>LIGHT 2</span>";
-
-    // Create shadow tree.
-    var content1 = createContentWithSelect('.c1', 'FALLBACK');
-    var content2 = createContentWithSelect('span', 'FALLBACK');
-    var sr = internals.ensureShadowRoot(root);
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(content1);
-    sr.appendChild(createSpanWithText("MID"));
-    sr.appendChild(content2);
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, content1, callIfDone) {
-        return function() {
-            content1.parentNode.removeChild(content1);
-            document.getElementById('expect-container').innerHTML = "<div><span>BEFORE</span><span>MID</span><span>LIGHT 1</span><span>LIGHT 2</span><span>AFTER</span></div>";
-            callIfDone();
-        };
-    })(root, content1, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testRemoveContentAndRemoveLightChildren(callIfDone) {
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span>LIGHT</span>";
-
-    // Create shadow tree.
-    var content = createContentWithSelect('span');
-    var sr = internals.ensureShadowRoot(root);
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(content);
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, content, callIfDone) {
-        return function() {
-            content.parentNode.removeChild(content);
-            removeAllChildren(root);
-            document.getElementById('expect-container').innerHTML = "<div><span>BEFORE</span><span>AFTER</span></div>";
-            callIfDone();
-        };
-    })(root, content, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testAppendContent1(callIfDone) {
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span>LIGHT</span>";
-
-    // Create shadow tree.
-    var sr = internals.ensureShadowRoot(root);
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, callIfDone) {
-        return function() {
-            var content = createContentWithSelect('span', 'FALLBACK');
-            var sr = internals.ensureShadowRoot(root);
-            sr.insertBefore(content, sr.lastChild);
-            document.getElementById('expect-container').innerHTML = "<div><span>BEFORE</span><SPAN>LIGHT</span><span>AFTER</span></div>";
-            callIfDone();
-        };
-    })(root, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testAppendContent2(callIfDone) {
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span>LIGHT 1</span><span class='c2'>LIGHT 2</span>";
-
-    // Create shadow tree.
-    var sr = internals.ensureShadowRoot(root);
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, callIfDone) {
-        return function() {
-            var content1 = createContentWithSelect('.c2', 'FALLBACK');
-            var content2 = createContentWithSelect('span', 'FALLBACK');
-            var sr = internals.ensureShadowRoot(root);
-            sr.insertBefore(content1, sr.lastChild);
-            sr.insertBefore(content2, sr.lastChild);
-            document.getElementById('expect-container').innerHTML = "<div><span>BEFORE</span><span>LIGHT 2</span><span>LIGHT 1</span><span>AFTER</span></div>";
-            callIfDone();
-        };
-    })(root, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testAppendContent3(callIfDone) {
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span>LIGHT 1</span><span class='c2'>LIGHT 2</span>";
-
-    // Create shadow tree.
-    var sr = internals.ensureShadowRoot(root);
-    var mid = createSpanWithText("MID");
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(mid);
-    sr.appendChild(createContentWithSelect('.c2', 'FALLBACK'));
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, mid, callIfDone) {
-        return function() {
-            var content = createContentWithSelect('span', 'FALLBACK');
-            var sr = internals.ensureShadowRoot(root);
-            sr.insertBefore(content, mid);
-            document.getElementById('expect-container').innerHTML =
-                "<div><span>BEFORE</span><span>LIGHT 1</span><span>LIGHT 2</span><span>MID</span><span>FALLBACK</span><span>AFTER</span></div>";
-            callIfDone();
-        };
-    })(root, mid, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testChangeOrderOfContent(callIfDone) {
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span class='c1'>LIGHT 1</span><span>LIGHT 2</span>";
-
-    // Create shadow tree.
-    var sr = internals.ensureShadowRoot(root);
-    var content1 = createContentWithSelect('.c1', 'FALLBACK');
-    var content2 = createContentWithSelect('span', 'FALLBACK');
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(content1);
-    sr.appendChild(content2);
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, content1, callIfDone) {
-        return function() {
-            var sr = internals.ensureShadowRoot(root);
-            sr.removeChild(content1);
-            sr.insertBefore(content1, sr.lastChild);
-            document.getElementById('expect-container').innerHTML =
-                "<div><span>BEFORE</span><SPAN>LIGHT 1</span><span>LIGHT 2</span><span>FALLBACK</span><span>AFTER</span></div>";
-            callIfDone();
-        };
-    })(root, content1, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testMoveLightChildOut(callIfDone) {
-    var root = document.createElement('div');
-
-    // Create light tree.
-    var n1 = document.createElement('div');
-    n1.setAttribute('id', 'n1');
-    n1.innerHTML = "<span id='light1'>LIGHT 1</span><span>LIGHT 2</span>";
-    var n2 = document.createElement('div');
-    n2.setAttribute('id', 'n2');
-
-    root.appendChild(n1);
-    root.appendChild(n2);
-
-    // Create shadow tree in 'n1'
-    var sr = internals.ensureShadowRoot(n1);
-    var content = createContentWithSelect('span', 'FALLBACK');
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(content);
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, n2, callIfDone) {
-        return function() {
-            var e = document.getElementById('light1');
-            e.parentNode.removeChild(e);
-            n2.appendChild(e);
-
-            document.getElementById('expect-container').innerHTML =
-                "<div><div><span>BEFORE</span><span>LIGHT 2</span><span>AFTER</span></div><div><span>LIGHT 1</span></div></div>"
-            callIfDone();
-        };
-    })(root, n2, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testInsertBeforeFallback(callIfDone) {
-    document.getElementById('expect-container').innerHTML =
-        "<div><span>BEFORE</span><span>HOGE</span><span>FALLBACK</span><span>AFTER</span></div>";
-
-    var target = document.createElement('div');
-    document.getElementById('actual-container').appendChild(target);
-
-    var span1 = document.createElement('span');
-    var root = internals.ensureShadowRoot(span1);
-    root.appendChild(createContentWithText("FALLBACK"));
-
-    target.appendChild(createSpanWithText('BEFORE'));
-    target.appendChild(span1);
-    target.appendChild(createSpanWithText('AFTER'));
-
-    var f = (function(target, span1, callIfDone) { return function() {
-        target.insertBefore(createSpanWithText('HOGE'), span1);
-        callIfDone();
-    };})(target, span1, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-var testFuncs = [
-    testRemoveContent,
-    testRemoveContentToRecalc1,
-    testRemoveContentToRecalc2,
-    testRemoveContentAndRemoveLightChildren,
-    testAppendContent1,
-    testAppendContent2,
-    testAppendContent3,
-    testChangeOrderOfContent,
-    testMoveLightChildOut,
-    testInsertBeforeFallback
-];
-
-</script>
-</head>
-<body onload="doTest(testFuncs)">
-
-<div id="actual-container" class="container"></div>
-<div id="expect-container" class="container"></div>
-<pre id="console"></pre>
-
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-element-outside-shadow-expected.txt b/LayoutTests/fast/dom/shadow/content-element-outside-shadow-expected.txt
deleted file mode 100644 (file)
index 9901b29..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-HTMLContentElement should be able to survive even outside shadow.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-<div><content></content></div>
-PASS targetRenderTree is comparisonRenderTree
-<div><content>Here is a text.</content></div>
-PASS targetRenderTree is comparisonRenderTree
-<div><content><div>Here is a </div><div>series of</div><div>blocks</div></content></div>
-PASS targetRenderTree is comparisonRenderTree
-<div><content><span>Here is a<span><span>series of</span><span>inlines.</span></content></div>
-PASS targetRenderTree is comparisonRenderTree
-<div><content>Here is a <content>nested content</content> inside content.</content></div>
-PASS targetRenderTree is comparisonRenderTree
-<div><content>Here is a <div>block and <content>nested content</content> inside the block</div>.</content></div>
-PASS targetRenderTree is comparisonRenderTree
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/dom/shadow/content-element-outside-shadow-style-expected.html b/LayoutTests/fast/dom/shadow/content-element-outside-shadow-style-expected.html
deleted file mode 100644 (file)
index 8404c19..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-span {
-    color: blue;
-}
-</style>
-</head>
-<body>
-  <div>
-    <span>Should be colored blue.</span>
-  </div>
-  <div>
-    <div>Should have no cool color.</div>
-    <div>Should have no cool color either.</div>
-  </div>
-</body>
diff --git a/LayoutTests/fast/dom/shadow/content-element-outside-shadow-style.html b/LayoutTests/fast/dom/shadow/content-element-outside-shadow-style.html
deleted file mode 100644 (file)
index 732c1d2..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-content {
-    color: blue;
-}
-</style>
-</head>
-<body>
-  <div>
-    <content>Should be colored blue.</content>
-  </div>
-  <div>
-    <div id="hostWithChild">Should have no cool color.</div>
-    <content id="toBeMoved">Should have no cool color either.</content>
-    <div id="hostEmpty"></div>
-  </div>
-<script>
-// Ensures that distributed shadow child isn't effected by the style.
-var hostWithChild = document.getElementById("hostWithChild");
-var shadowForHostWithChild = hostWithChild.webkitCreateShadowRoot();
-shadowForHostWithChild.appendChild(document.createElement("content"));
-
-// Also ensures that dynamically moved <content> elements do work.
-var hostEmpty = document.getElementById("hostEmpty");
-var shadowForHostEmpty = hostEmpty.webkitCreateShadowRoot();
-shadowForHostEmpty.appendChild(document.getElementById("toBeMoved"));
-
-</script>
-</body>
diff --git a/LayoutTests/fast/dom/shadow/content-element-outside-shadow.html b/LayoutTests/fast/dom/shadow/content-element-outside-shadow.html
deleted file mode 100644 (file)
index 93992e8..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-
-<div id="targetContainer" style="position: relative;"></div>
-<div id="comparisonContainer" style="position: relative;"></div>
-
-<script src="../../../resources/js-test-pre.js"></script>
-<script><!--
-description("HTMLContentElement should be able to survive even outside shadow.");
-
-function removeContainerLines(text)
-{
-    var lines = text.split("\n");
-    lines.splice(0, 2);
-    return lines.join("\n");
-}
-
-var cases = [
-    ["<div><content></content></div>",
-     "<div><unknown></unknown></div>"],
-    ["<div><content>Here is a text.</content></div>",
-     "<div><unknown>Here is a text.</unknown></div>"],
-    ["<div><content><div>Here is a </div><div>series of</div><div>blocks</div></content></div>",
-     "<div><unknown><div>Here is a </div><div>series of</div><div>blocks</div></unknown></div>"],
-    ["<div><content><span>Here is a<span><span>series of</span><span>inlines.</span></content></div>",
-     "<div><unknown><span>Here is a<span><span>series of</span><span>inlines.</span></unknown></div>"],
-    ["<div><content>Here is a <content>nested content</content> inside content.</content></div>",
-     "<div><unknown>Here is a <unknown>nested content</unknown> inside content.</unknown></div>"],
-    ["<div><content>Here is a <div>block and <content>nested content</content> inside the block</div>.</content></div>",
-     "<div><unknown>Here is a <div>block and <unknown>nested content</unknown> inside the block</div>.</unknown></div>"]
-];
-
-var targetContainer = document.getElementById("targetContainer");
-var comparisonContainer = document.getElementById("comparisonContainer");
-
-for (var i = 0; i < cases.length; ++i) {
-    var targetMarkup = cases[i][0];
-    var expectedMarkup = cases[i][1];
-
-    targetContainer.innerHTML = targetMarkup;
-    comparisonContainer.innerHTML = expectedMarkup;
-    targetRenderTree = removeContainerLines(window.internals.elementRenderTreeAsText(targetContainer));
-    targetRenderTree = targetRenderTree.replace(/CONTENT/g, "UNKNOWN");
-    comparisonRenderTree = removeContainerLines(window.internals.elementRenderTreeAsText(comparisonContainer));
-    debug(escapeHTML(targetMarkup));
-    shouldBe("targetRenderTree", "comparisonRenderTree");
-}
-
-targetContainer.innerHTML = comparisonContainer.innerHTML = "";
-
---></script>
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-element-renderers-expected.txt b/LayoutTests/fast/dom/shadow/content-element-renderers-expected.txt
deleted file mode 100644 (file)
index d29f834..0000000
+++ /dev/null
@@ -1,182 +0,0 @@
-This test compares a shadow-based render tree with one for a reference DOM tree.
-Note that this test only runs on DRT.
-PASS[0,0]: content=<div/> shadow=<content/>
-PASS[0,1]: content=<div/> shadow=<div/><content/><div/>
-PASS[0,2]: content=<div/> shadow=<div/><content/><span/>
-PASS[0,3]: content=<div/> shadow=<span/><content/><span/>
-PASS[0,4]: content=<div/> shadow=<span/><content/><div/>
-PASS[0,5]: content=<div/> shadow=<div/><content/><div/>
-PASS[0,6]: content=<div/> shadow=<div/><content/><span/>
-PASS[0,7]: content=<div/> shadow=<span/><content/><span/>
-PASS[0,8]: content=<div/> shadow=<span/><content/><div/>
-PASS[0,9]: content=<div/> shadow=<div/>#text<content/>#text<div/>
-PASS[0,10]: content=<div/> shadow=<div/>#text<content/>#text<span/>
-PASS[0,11]: content=<div/> shadow=<span/>#text<content/>#text<span/>
-PASS[0,12]: content=<div/> shadow=<span/>#text<content/>#text<div/>
-PASS[0,13]: content=<div/> shadow=<div><content/></div>
-PASS[0,14]: content=<div/> shadow=<span><content/></span>
-PASS[1,0]: content=#text<div/> shadow=<content/>
-PASS[1,1]: content=#text<div/> shadow=<div/><content/><div/>
-PASS[1,2]: content=#text<div/> shadow=<div/><content/><span/>
-PASS[1,3]: content=#text<div/> shadow=<span/><content/><span/>
-PASS[1,4]: content=#text<div/> shadow=<span/><content/><div/>
-PASS[1,5]: content=#text<div/> shadow=<div/><content/><div/>
-PASS[1,6]: content=#text<div/> shadow=<div/><content/><span/>
-PASS[1,7]: content=#text<div/> shadow=<span/><content/><span/>
-PASS[1,8]: content=#text<div/> shadow=<span/><content/><div/>
-PASS[1,9]: content=#text<div/> shadow=<div/>#text<content/>#text<div/>
-PASS[1,10]: content=#text<div/> shadow=<div/>#text<content/>#text<span/>
-PASS[1,11]: content=#text<div/> shadow=<span/>#text<content/>#text<span/>
-PASS[1,12]: content=#text<div/> shadow=<span/>#text<content/>#text<div/>
-PASS[1,13]: content=#text<div/> shadow=<div><content/></div>
-PASS[1,14]: content=#text<div/> shadow=<span><content/></span>
-PASS[2,0]: content=<div/>#text shadow=<content/>
-PASS[2,1]: content=<div/>#text shadow=<div/><content/><div/>
-PASS[2,2]: content=<div/>#text shadow=<div/><content/><span/>
-PASS[2,3]: content=<div/>#text shadow=<span/><content/><span/>
-PASS[2,4]: content=<div/>#text shadow=<span/><content/><div/>
-PASS[2,5]: content=<div/>#text shadow=<div/><content/><div/>
-PASS[2,6]: content=<div/>#text shadow=<div/><content/><span/>
-PASS[2,7]: content=<div/>#text shadow=<span/><content/><span/>
-PASS[2,8]: content=<div/>#text shadow=<span/><content/><div/>
-PASS[2,9]: content=<div/>#text shadow=<div/>#text<content/>#text<div/>
-PASS[2,10]: content=<div/>#text shadow=<div/>#text<content/>#text<span/>
-PASS[2,11]: content=<div/>#text shadow=<span/>#text<content/>#text<span/>
-PASS[2,12]: content=<div/>#text shadow=<span/>#text<content/>#text<div/>
-PASS[2,13]: content=<div/>#text shadow=<div><content/></div>
-PASS[2,14]: content=<div/>#text shadow=<span><content/></span>
-PASS[3,0]: content=#text<div/>#text shadow=<content/>
-PASS[3,1]: content=#text<div/>#text shadow=<div/><content/><div/>
-PASS[3,2]: content=#text<div/>#text shadow=<div/><content/><span/>
-PASS[3,3]: content=#text<div/>#text shadow=<span/><content/><span/>
-PASS[3,4]: content=#text<div/>#text shadow=<span/><content/><div/>
-PASS[3,5]: content=#text<div/>#text shadow=<div/><content/><div/>
-PASS[3,6]: content=#text<div/>#text shadow=<div/><content/><span/>
-PASS[3,7]: content=#text<div/>#text shadow=<span/><content/><span/>
-PASS[3,8]: content=#text<div/>#text shadow=<span/><content/><div/>
-PASS[3,9]: content=#text<div/>#text shadow=<div/>#text<content/>#text<div/>
-PASS[3,10]: content=#text<div/>#text shadow=<div/>#text<content/>#text<span/>
-PASS[3,11]: content=#text<div/>#text shadow=<span/>#text<content/>#text<span/>
-PASS[3,12]: content=#text<div/>#text shadow=<span/>#text<content/>#text<div/>
-PASS[3,13]: content=#text<div/>#text shadow=<div><content/></div>
-PASS[3,14]: content=#text<div/>#text shadow=<span><content/></span>
-PASS[4,0]: content=<span/> shadow=<content/>
-PASS[4,1]: content=<span/> shadow=<div/><content/><div/>
-PASS[4,2]: content=<span/> shadow=<div/><content/><span/>
-PASS[4,3]: content=<span/> shadow=<span/><content/><span/>
-PASS[4,4]: content=<span/> shadow=<span/><content/><div/>
-PASS[4,5]: content=<span/> shadow=<div/><content/><div/>
-PASS[4,6]: content=<span/> shadow=<div/><content/><span/>
-PASS[4,7]: content=<span/> shadow=<span/><content/><span/>
-PASS[4,8]: content=<span/> shadow=<span/><content/><div/>
-PASS[4,9]: content=<span/> shadow=<div/>#text<content/>#text<div/>
-PASS[4,10]: content=<span/> shadow=<div/>#text<content/>#text<span/>
-PASS[4,11]: content=<span/> shadow=<span/>#text<content/>#text<span/>
-PASS[4,12]: content=<span/> shadow=<span/>#text<content/>#text<div/>
-PASS[4,13]: content=<span/> shadow=<div><content/></div>
-PASS[4,14]: content=<span/> shadow=<span><content/></span>
-PASS[5,0]: content=#text<span/> shadow=<content/>
-PASS[5,1]: content=#text<span/> shadow=<div/><content/><div/>
-PASS[5,2]: content=#text<span/> shadow=<div/><content/><span/>
-PASS[5,3]: content=#text<span/> shadow=<span/><content/><span/>
-PASS[5,4]: content=#text<span/> shadow=<span/><content/><div/>
-PASS[5,5]: content=#text<span/> shadow=<div/><content/><div/>
-PASS[5,6]: content=#text<span/> shadow=<div/><content/><span/>
-PASS[5,7]: content=#text<span/> shadow=<span/><content/><span/>
-PASS[5,8]: content=#text<span/> shadow=<span/><content/><div/>
-PASS[5,9]: content=#text<span/> shadow=<div/>#text<content/>#text<div/>
-PASS[5,10]: content=#text<span/> shadow=<div/>#text<content/>#text<span/>
-PASS[5,11]: content=#text<span/> shadow=<span/>#text<content/>#text<span/>
-PASS[5,12]: content=#text<span/> shadow=<span/>#text<content/>#text<div/>
-PASS[5,13]: content=#text<span/> shadow=<div><content/></div>
-PASS[5,14]: content=#text<span/> shadow=<span><content/></span>
-PASS[6,0]: content=<span/>#text shadow=<content/>
-PASS[6,1]: content=<span/>#text shadow=<div/><content/><div/>
-PASS[6,2]: content=<span/>#text shadow=<div/><content/><span/>
-PASS[6,3]: content=<span/>#text shadow=<span/><content/><span/>
-PASS[6,4]: content=<span/>#text shadow=<span/><content/><div/>
-PASS[6,5]: content=<span/>#text shadow=<div/><content/><div/>
-PASS[6,6]: content=<span/>#text shadow=<div/><content/><span/>
-PASS[6,7]: content=<span/>#text shadow=<span/><content/><span/>
-PASS[6,8]: content=<span/>#text shadow=<span/><content/><div/>
-PASS[6,9]: content=<span/>#text shadow=<div/>#text<content/>#text<div/>
-PASS[6,10]: content=<span/>#text shadow=<div/>#text<content/>#text<span/>
-PASS[6,11]: content=<span/>#text shadow=<span/>#text<content/>#text<span/>
-PASS[6,12]: content=<span/>#text shadow=<span/>#text<content/>#text<div/>
-PASS[6,13]: content=<span/>#text shadow=<div><content/></div>
-PASS[6,14]: content=<span/>#text shadow=<span><content/></span>
-PASS[7,0]: content=#text<span/>#text shadow=<content/>
-PASS[7,1]: content=#text<span/>#text shadow=<div/><content/><div/>
-PASS[7,2]: content=#text<span/>#text shadow=<div/><content/><span/>
-PASS[7,3]: content=#text<span/>#text shadow=<span/><content/><span/>
-PASS[7,4]: content=#text<span/>#text shadow=<span/><content/><div/>
-PASS[7,5]: content=#text<span/>#text shadow=<div/><content/><div/>
-PASS[7,6]: content=#text<span/>#text shadow=<div/><content/><span/>
-PASS[7,7]: content=#text<span/>#text shadow=<span/><content/><span/>
-PASS[7,8]: content=#text<span/>#text shadow=<span/><content/><div/>
-PASS[7,9]: content=#text<span/>#text shadow=<div/>#text<content/>#text<div/>
-PASS[7,10]: content=#text<span/>#text shadow=<div/>#text<content/>#text<span/>
-PASS[7,11]: content=#text<span/>#text shadow=<span/>#text<content/>#text<span/>
-PASS[7,12]: content=#text<span/>#text shadow=<span/>#text<content/>#text<div/>
-PASS[7,13]: content=#text<span/>#text shadow=<div><content/></div>
-PASS[7,14]: content=#text<span/>#text shadow=<span><content/></span>
-PASS[8,0]: content=<span/>#text<div/> shadow=<content/>
-PASS[8,1]: content=<span/>#text<div/> shadow=<div/><content/><div/>
-PASS[8,2]: content=<span/>#text<div/> shadow=<div/><content/><span/>
-PASS[8,3]: content=<span/>#text<div/> shadow=<span/><content/><span/>
-PASS[8,4]: content=<span/>#text<div/> shadow=<span/><content/><div/>
-PASS[8,5]: content=<span/>#text<div/> shadow=<div/><content/><div/>
-PASS[8,6]: content=<span/>#text<div/> shadow=<div/><content/><span/>
-PASS[8,7]: content=<span/>#text<div/> shadow=<span/><content/><span/>
-PASS[8,8]: content=<span/>#text<div/> shadow=<span/><content/><div/>
-PASS[8,9]: content=<span/>#text<div/> shadow=<div/>#text<content/>#text<div/>
-PASS[8,10]: content=<span/>#text<div/> shadow=<div/>#text<content/>#text<span/>
-PASS[8,11]: content=<span/>#text<div/> shadow=<span/>#text<content/>#text<span/>
-PASS[8,12]: content=<span/>#text<div/> shadow=<span/>#text<content/>#text<div/>
-PASS[8,13]: content=<span/>#text<div/> shadow=<div><content/></div>
-PASS[8,14]: content=<span/>#text<div/> shadow=<span><content/></span>
-PASS[9,0]: content=<div/>#text<span/> shadow=<content/>
-PASS[9,1]: content=<div/>#text<span/> shadow=<div/><content/><div/>
-PASS[9,2]: content=<div/>#text<span/> shadow=<div/><content/><span/>
-PASS[9,3]: content=<div/>#text<span/> shadow=<span/><content/><span/>
-PASS[9,4]: content=<div/>#text<span/> shadow=<span/><content/><div/>
-PASS[9,5]: content=<div/>#text<span/> shadow=<div/><content/><div/>
-PASS[9,6]: content=<div/>#text<span/> shadow=<div/><content/><span/>
-PASS[9,7]: content=<div/>#text<span/> shadow=<span/><content/><span/>
-PASS[9,8]: content=<div/>#text<span/> shadow=<span/><content/><div/>
-PASS[9,9]: content=<div/>#text<span/> shadow=<div/>#text<content/>#text<div/>
-PASS[9,10]: content=<div/>#text<span/> shadow=<div/>#text<content/>#text<span/>
-PASS[9,11]: content=<div/>#text<span/> shadow=<span/>#text<content/>#text<span/>
-PASS[9,12]: content=<div/>#text<span/> shadow=<span/>#text<content/>#text<div/>
-PASS[9,13]: content=<div/>#text<span/> shadow=<div><content/></div>
-PASS[9,14]: content=<div/>#text<span/> shadow=<span><content/></span>
-PASS[10,0]: content=<div/><span/> shadow=<content/>
-PASS[10,1]: content=<div/><span/> shadow=<div/><content/><div/>
-PASS[10,2]: content=<div/><span/> shadow=<div/><content/><span/>
-PASS[10,3]: content=<div/><span/> shadow=<span/><content/><span/>
-PASS[10,4]: content=<div/><span/> shadow=<span/><content/><div/>
-PASS[10,5]: content=<div/><span/> shadow=<div/><content/><div/>
-PASS[10,6]: content=<div/><span/> shadow=<div/><content/><span/>
-PASS[10,7]: content=<div/><span/> shadow=<span/><content/><span/>
-PASS[10,8]: content=<div/><span/> shadow=<span/><content/><div/>
-PASS[10,9]: content=<div/><span/> shadow=<div/>#text<content/>#text<div/>
-PASS[10,10]: content=<div/><span/> shadow=<div/>#text<content/>#text<span/>
-PASS[10,11]: content=<div/><span/> shadow=<span/>#text<content/>#text<span/>
-PASS[10,12]: content=<div/><span/> shadow=<span/>#text<content/>#text<div/>
-PASS[10,13]: content=<div/><span/> shadow=<div><content/></div>
-PASS[10,14]: content=<div/><span/> shadow=<span><content/></span>
-PASS[11,0]: content=<span/><div/> shadow=<content/>
-PASS[11,1]: content=<span/><div/> shadow=<div/><content/><div/>
-PASS[11,2]: content=<span/><div/> shadow=<div/><content/><span/>
-PASS[11,3]: content=<span/><div/> shadow=<span/><content/><span/>
-PASS[11,4]: content=<span/><div/> shadow=<span/><content/><div/>
-PASS[11,5]: content=<span/><div/> shadow=<div/><content/><div/>
-PASS[11,6]: content=<span/><div/> shadow=<div/><content/><span/>
-PASS[11,7]: content=<span/><div/> shadow=<span/><content/><span/>
-PASS[11,8]: content=<span/><div/> shadow=<span/><content/><div/>
-PASS[11,9]: content=<span/><div/> shadow=<div/>#text<content/>#text<div/>
-PASS[11,10]: content=<span/><div/> shadow=<div/>#text<content/>#text<span/>
-PASS[11,11]: content=<span/><div/> shadow=<span/>#text<content/>#text<span/>
-PASS[11,12]: content=<span/><div/> shadow=<span/>#text<content/>#text<div/>
-PASS[11,13]: content=<span/><div/> shadow=<div><content/></div>
-PASS[11,14]: content=<span/><div/> shadow=<span><content/></span>
diff --git a/LayoutTests/fast/dom/shadow/content-element-renderers.html b/LayoutTests/fast/dom/shadow/content-element-renderers.html
deleted file mode 100644 (file)
index b4de58e..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-/* relative positioning ensures underlying RenderLayer */
-.container {
-    position: relative;
-}
-</style>
-<script>
-function log(message)
-{
-    var line = document.createElement("div");
-    line.textContent = message;
-    document.getElementById("console").appendChild(line);
-}
-
-var contentSources = [
-  "<div/>",
-  "#text<div/>",
-  "<div/>#text",
-  "#text<div/>#text",
-
-  "<span/>",
-  "#text<span/>",
-  "<span/>#text",
-  "#text<span/>#text",
-
-  "<span/>#text<div/>",
-  "<div/>#text<span/>",
-  "<div/><span/>",
-  "<span/><div/>"
-
-];
-
-var shadowSources = [
-  "<content/>",
-  "<div/><content/><div/>",
-  "<div/><content/><span/>",
-  "<span/><content/><span/>",
-  "<span/><content/><div/>",
-
-  "<div/><content/><div/>",
-  "<div/><content/><span/>",
-  "<span/><content/><span/>",
-  "<span/><content/><div/>",
-
-  "<div/>#text<content/>#text<div/>",
-  "<div/>#text<content/>#text<span/>",
-  "<span/>#text<content/>#text<span/>",
-  "<span/>#text<content/>#text<div/>",
-
-  "<div><content/></div>",
-  "<span><content/></span>"
-];
-
-function createTreeFrom(html)
-{
-    var enhancedHtml = html.replace(/<span\/>/g, "<span> </span>").replace(/<div\/>/g, "<div> </div>").replace(/<content\/>/g, "<content></content>").replace(/#text/g, " ");
-    var root = document.createElement("blockquote");
-    root.innerHTML = enhancedHtml;
-    var contentPlaceholder = root.getElementsByTagName("CONTENT")[0];
-    if (contentPlaceholder) {
-        var contentParent = contentPlaceholder.parentNode;
-        contentParent.replaceChild(window.internals.createContentElement(), contentPlaceholder);
-    };
-
-    return root;
-}
-
-function moveChildren(fromParent, toParent)
-{
-    var children = fromParent.childNodes;
-    while (fromParent.firstChild)
-        toParent.appendChild(fromParent.firstChild);
-}
-
-function createTargetTree(contentHtml, shadowHtml)
-{
-    var content = createTreeFrom(contentHtml);
-    var shadow = createTreeFrom(shadowHtml);
-    var host = document.createElement("blockquote");
-    var shadowRoot = internals.ensureShadowRoot(host);
-    moveChildren(content, host);
-    moveChildren(shadow, shadowRoot); 
-    return host;
-}
-
-function cleanupContainer(container)
-{
-    var child = container.firstChild;
-    if (child)
-        container.removeChild(child);
-    container.offsetLeft;
-}
-
-function testWithContentAndShadow(contentHtml, shadowHtml, label)
-{
-    var targetContainer = document.getElementById("targetContainer");
-    cleanupContainer(targetContainer);
-    var target = createTargetTree(contentHtml, shadowHtml);
-    targetContainer.appendChild(target);
-    var targetRenderTree = removeContainerLines(window.internals.elementRenderTreeAsText(targetContainer));
-
-    var referenceContainer = document.getElementById("referenceContainer");
-    cleanupContainer(referenceContainer);
-    var separator = "<!-- -->"; // Uses a separator for keeping text node separate.
-    var referenceHtml = shadowHtml.replace("<content/>", (separator + contentHtml + separator));
-    var reference = createTreeFrom(referenceHtml);
-    referenceContainer.appendChild(reference);
-    var referenceRenderTree = removeContainerLines(window.internals.elementRenderTreeAsText(referenceContainer));
-    if (targetRenderTree == referenceRenderTree)
-        log("PASS[" + label + "]: content=" + contentHtml + " shadow=" + shadowHtml);
-    else {
-        log("FAIL[" + label + "]: content=" + contentHtml + " shadow=" + shadowHtml);
-        log("Expected: (for " + reference.innerHTML + ")");
-        log(referenceRenderTree);
-        log("Actual: (for " + target.innerHTML + ")");
-        log(targetRenderTree);
-    }
-}
-
-function removeContainerLines(text)
-{
-    var lines = text.split("\n");
-    lines.splice(0, 2);
-    return lines.join("\n");
-}
-
-function test()
-{
-    testRunner.dumpAsText();
-    log("This test compares a shadow-based render tree with one for a reference DOM tree.");
-    log("Note that this test only runs on DRT.");
-
-    for (var i = 0; i < contentSources.length; ++i) {
-        for (var j = 0; j < shadowSources.length; ++j) {
-            var testLabel = i + "," + j;
-            testWithContentAndShadow(contentSources[i], shadowSources[j], testLabel);
-        }
-    } 
-
-    document.getElementById("test").style.display = "none";
-    document.getElementById("console").style.display = "block";
-}
-</script>
-</head>
-<body onload="test()">
-<div id="test">
-<div class="container" id="targetContainer"></div>
-<div class="container" id="referenceContainer"></div>
-</div>
-<pre id="console" style="display: none;"></pre>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-element-select-dynamic-expected.txt b/LayoutTests/fast/dom/shadow/content-element-select-dynamic-expected.txt
deleted file mode 100644 (file)
index 9e7b7b3..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-testChangeSelect1
-PASS
-testChangeSelect2
-PASS
-testChangeSelectToEmpty
-PASS
-testChangeSelectToFallback
-PASS
-testChangeSelectFromFallback
-PASS
-TEST COMPLETED
-
diff --git a/LayoutTests/fast/dom/shadow/content-element-select-dynamic.html b/LayoutTests/fast/dom/shadow/content-element-select-dynamic.html
deleted file mode 100644 (file)
index e72335d..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
- <!DOCTYPE html>
-<html>
-<head>
-<style>
-/* relative positioning ensures underlying RenderLayer */
-.container {
-    position: relative;
-}
-
-.span {
-    display: boxed-inline;
-    margin: 2px;
-    border: solid;
-}
-</style>
-<script src="../resources/shadow-test-driver.js"></script>
-<script>
-function testChangeSelect1(callIfDone) {
-    document.getElementById('expect-container').innerHTML =
-        "<div><span>BEFORE</span><span>LIGHT 2</span><span>AFTER</span></div>";
-
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span class='c1'>LIGHT 1</span><span class='c2'>LIGHT 2</span>";
-
-    // Create shadow tree.
-    var content = createContentWithSelect('.c1');
-    var sr = internals.ensureShadowRoot(root);
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(content);
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, content, callIfDone) {
-        return function() {
-            content.setAttribute('select', '.c2');
-            callIfDone();
-        };
-    })(root, content, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testChangeSelect2(callIfDone) {
-    document.getElementById('expect-container').innerHTML =
-        "<div><span>BEFORE</span><span>LIGHT 1</span><span>LIGHT 2</span><span>AFTER</span></div>";
-
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span class='c1'>LIGHT 1</span><span class='c2'>LIGHT 2</span>";
-
-    // Create shadow tree.
-    var content = createContentWithSelect('.c1');
-    var sr = internals.ensureShadowRoot(root);
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(content);
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, content, callIfDone) {
-        return function() {
-            content.setAttribute('select', 'span');
-            callIfDone();
-        };
-    })(root, content, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testChangeSelectToEmpty(callIfDone) {
-    document.getElementById('expect-container').innerHTML =
-        "<div><span>BEFORE</span><span>LIGHT 1</span><span>LIGHT 2</span><span>AFTER</span></div>";
-
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span class='c1'>LIGHT 1</span><span class='c2'>LIGHT 2</span>";
-
-    // Create shadow tree.
-    var content = createContentWithSelect('.c1');
-    var sr = internals.ensureShadowRoot(root);
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(content);
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, content, callIfDone) {
-        return function() {
-            content.removeAttribute('select');
-            callIfDone();
-        };
-    })(root, content, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testChangeSelectToFallback(callIfDone) {
-    document.getElementById('expect-container').innerHTML =
-        "<div><span>BEFORE</span><span>FALLBACK</span><span>AFTER</span></div>";
-
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span class='c1'>LIGHT 1</span><span class='c2'>LIGHT 2</span>";
-
-    // Create shadow tree.
-    var content = createContentWithSelect('.c1');
-    content.innerHTML = "<span>FALLBACK</span>"
-
-    var sr = internals.ensureShadowRoot(root);
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(content);
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, content, callIfDone) {
-        return function() {
-            content.setAttribute('select', 'div')
-            callIfDone();
-        };
-    })(root, content, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-function testChangeSelectFromFallback(callIfDone) {
-    document.getElementById('expect-container').innerHTML =
-        "<div><span>BEFORE</span><span>LIGHT 1</span><span>LIGHT 2</span><span>AFTER</span></div>";
-
-    var root = document.createElement('div');
-
-    // Create light tree.
-    root.innerHTML = "<span class='c1'>LIGHT 1</span><span class='c2'>LIGHT 2</span>";
-
-    // Create shadow tree.
-    var content = createContentWithSelect('div');
-    content.innerHTML = "<span>FALLBACK</span>"
-
-    var sr = internals.ensureShadowRoot(root);
-    sr.appendChild(createSpanWithText("BEFORE"));
-    sr.appendChild(content);
-    sr.appendChild(createSpanWithText("AFTER"));
-
-    document.getElementById('actual-container').appendChild(root);
-
-    var f = (function(root, content, callIfDone) {
-        return function() {
-            content.setAttribute('select', 'span')
-            callIfDone();
-        };
-    })(root, content, callIfDone);
-
-    setTimeout(f, 0);
-}
-
-var testFuncs = [
-    testChangeSelect1,
-    testChangeSelect2,
-    testChangeSelectToEmpty,
-    testChangeSelectToFallback,
-    testChangeSelectFromFallback,
-];
-
-</script>
-</head>
-<body onload="doTest(testFuncs)">
-
-<div id="actual-container" class="container"></div>
-<div id="expect-container" class="container"></div>
-<pre id="console"></pre>
-
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-element-user-agent-shadow-expected.txt b/LayoutTests/fast/dom/shadow/content-element-user-agent-shadow-expected.txt
deleted file mode 100644 (file)
index e2297b3..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-PASS parsedElementShouldBeUnknown.tagName is 'WEBKITSHADOWCONTENT'
-PASS 0 < parsedElementShouldBeUnknown.constructor.toString().indexOf('HTMLUnknownElement') is true
-PASS contentInuserAgentShadow.tagName is 'WEBKITSHADOWCONTENT'
-PASS 0 < contentInuserAgentShadow.constructor.toString().indexOf('HTMLElement') is true
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/fast/dom/shadow/content-element-user-agent-shadow.html b/LayoutTests/fast/dom/shadow/content-element-user-agent-shadow.html
deleted file mode 100644 (file)
index d56870e..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<div id="container"></div>
-<script src="../../../resources/js-test-pre.js"></script>
-<script><!--
-(function()
-{
-    if (!window.internals)
-        return;
-
-    // Parser should build HTMLUnknownElement for <webkitShadowContent>.
-    container = document.getElementById("container");
-    container.innerHTML = "<div><webkitShadowContent id='shouldBeUnknown'></webkitShadowContent></div>";
-    parsedElementShouldBeUnknown = document.getElementById("shouldBeUnknown");
-    shouldBe("parsedElementShouldBeUnknown.tagName", "'WEBKITSHADOWCONTENT'");
-    shouldBeTrue("0 < parsedElementShouldBeUnknown.constructor.toString().indexOf('HTMLUnknownElement')");
-
-    container.innerHTML = "<details id='details'><summary></summary></details>";
-    details = document.getElementById("details");
-
-    // The user agent shadow for <details> has HTMLContentElement with tagName "webkitShadowContent".
-    // This element should be wrapped as an HTMLElement because it isn't HTMLUnknownElement and
-    // HTMLContentElement wrapper is unavailable unless SHADOW_DOM is enabled.
-    shadow = internals.shadowRoot(details);
-    contentInuserAgentShadow = shadow.firstChild;
-    shouldBe("contentInuserAgentShadow.tagName", "'WEBKITSHADOWCONTENT'");
-    shouldBeTrue("0 < contentInuserAgentShadow.constructor.toString().indexOf('HTMLElement')");
-})();
---></script>
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/fast/dom/shadow/content-reprojection-complex-expected.html b/LayoutTests/fast/dom/shadow/content-reprojection-complex-expected.html
deleted file mode 100644 (file)
index d327ef1..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<p>This test ensures that content element cannot select elements assigned to a shadow element.</p>
-