gecko-dev/testing/web-platform/tests/streams/readable-streams/cancel.js
James Graham 32298a805b Bug 1273176 - Update web-platform-tests to revision 55905788bebbdfacb49c94e579e93c19531e0199, a=testonly
MozReview-Commit-ID: 9bnFcIi0oX3


--HG--
rename : testing/web-platform/tests/custom-elements/concepts/custom-elements-type-allowed-chars-first-char.html => testing/web-platform/tests/custom-elements/v0/concepts/custom-elements-type-allowed-chars-first-char.html
rename : testing/web-platform/tests/custom-elements/concepts/custom-elements-type-allowed-chars.html => testing/web-platform/tests/custom-elements/v0/concepts/custom-elements-type-allowed-chars.html
rename : testing/web-platform/tests/custom-elements/concepts/custom-elements-type-naming.html => testing/web-platform/tests/custom-elements/v0/concepts/custom-elements-type-naming.html
rename : testing/web-platform/tests/custom-elements/creating-and-passing-registries/new-registry-test.html => testing/web-platform/tests/custom-elements/v0/creating-and-passing-registries/new-registry-test.html
rename : testing/web-platform/tests/custom-elements/creating-and-passing-registries/no-registry-test.html => testing/web-platform/tests/custom-elements/v0/creating-and-passing-registries/no-registry-test.html
rename : testing/web-platform/tests/custom-elements/creating-and-passing-registries/share-registry-create-document.html => testing/web-platform/tests/custom-elements/v0/creating-and-passing-registries/share-registry-create-document.html
rename : testing/web-platform/tests/custom-elements/creating-and-passing-registries/share-registry-import-document.html => testing/web-platform/tests/custom-elements/v0/creating-and-passing-registries/share-registry-import-document.html
rename : testing/web-platform/tests/custom-elements/custom-element-lifecycle/enqueuing-and-invoking-callbacks/invoke-callbacks.html => testing/web-platform/tests/custom-elements/v0/custom-element-lifecycle/enqueuing-and-invoking-callbacks/invoke-callbacks.html
rename : testing/web-platform/tests/custom-elements/custom-element-lifecycle/types-of-callbacks/attached-callback-move-element-test.html => testing/web-platform/tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/attached-callback-move-element-test.html
rename : testing/web-platform/tests/custom-elements/custom-element-lifecycle/types-of-callbacks/attached-callback-test.html => testing/web-platform/tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/attached-callback-test.html
rename : testing/web-platform/tests/custom-elements/custom-element-lifecycle/types-of-callbacks/attribute-changed-callback-change-attribute-test.html => testing/web-platform/tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/attribute-changed-callback-change-attribute-test.html
rename : testing/web-platform/tests/custom-elements/custom-element-lifecycle/types-of-callbacks/attribute-changed-callback-remove-attribute-test.html => testing/web-platform/tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/attribute-changed-callback-remove-attribute-test.html
rename : testing/web-platform/tests/custom-elements/custom-element-lifecycle/types-of-callbacks/attribute-changed-callback-set-attribute-test.html => testing/web-platform/tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/attribute-changed-callback-set-attribute-test.html
rename : testing/web-platform/tests/custom-elements/custom-element-lifecycle/types-of-callbacks/created-callback-element-prototype-test.html => testing/web-platform/tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/created-callback-element-prototype-test.html
rename : testing/web-platform/tests/custom-elements/custom-element-lifecycle/types-of-callbacks/created-callback-invocation-order-test.html => testing/web-platform/tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/created-callback-invocation-order-test.html
rename : testing/web-platform/tests/custom-elements/custom-element-lifecycle/types-of-callbacks/created-callback-invocation-test.html => testing/web-platform/tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/created-callback-invocation-test.html
rename : testing/web-platform/tests/custom-elements/custom-element-lifecycle/types-of-callbacks/detached-callback-move-element-test.html => testing/web-platform/tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/detached-callback-move-element-test.html
rename : testing/web-platform/tests/custom-elements/custom-element-lifecycle/types-of-callbacks/detached-callback-no-browsing-context-test.html => testing/web-platform/tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/detached-callback-no-browsing-context-test.html
rename : testing/web-platform/tests/custom-elements/custom-element-lifecycle/types-of-callbacks/detached-callback-with-browsing-context-test.html => testing/web-platform/tests/custom-elements/v0/custom-element-lifecycle/types-of-callbacks/detached-callback-with-browsing-context-test.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/changing-is-attribute.html => testing/web-platform/tests/custom-elements/v0/instantiating/changing-is-attribute.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/custom-element-constructor-is-attribute.html => testing/web-platform/tests/custom-elements/v0/instantiating/custom-element-constructor-is-attribute.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/custom-element-constructor-local-name.html => testing/web-platform/tests/custom-elements/v0/instantiating/custom-element-constructor-local-name.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/custom-element-constructor-namespace.html => testing/web-platform/tests/custom-elements/v0/instantiating/custom-element-constructor-namespace.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/custom-element-constructor-node-document.html => testing/web-platform/tests/custom-elements/v0/instantiating/custom-element-constructor-node-document.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/custom-element-constructor-prototype.html => testing/web-platform/tests/custom-elements/v0/instantiating/custom-element-constructor-prototype.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/custom-element-prototype.html => testing/web-platform/tests/custom-elements/v0/instantiating/custom-element-prototype.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/custom-element-type-is-attribute.html => testing/web-platform/tests/custom-elements/v0/instantiating/custom-element-type-is-attribute.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/custom-element-type-local-name-and-is-attribute.html => testing/web-platform/tests/custom-elements/v0/instantiating/custom-element-type-local-name-and-is-attribute.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/custom-element-type-local-name.html => testing/web-platform/tests/custom-elements/v0/instantiating/custom-element-type-local-name.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/extensions-to-document-interface/create-element-interface-type-is-a-local-name.html => testing/web-platform/tests/custom-elements/v0/instantiating/extensions-to-document-interface/create-element-interface-type-is-a-local-name.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/extensions-to-document-interface/create-element-interface-type-is-a-type-extension.html => testing/web-platform/tests/custom-elements/v0/instantiating/extensions-to-document-interface/create-element-interface-type-is-a-type-extension.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/extensions-to-document-interface/create-element-is-attribute.html => testing/web-platform/tests/custom-elements/v0/instantiating/extensions-to-document-interface/create-element-is-attribute.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/extensions-to-document-interface/create-element-namespace.html => testing/web-platform/tests/custom-elements/v0/instantiating/extensions-to-document-interface/create-element-namespace.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/extensions-to-document-interface/create-element-type-extension-is-a-type.html => testing/web-platform/tests/custom-elements/v0/instantiating/extensions-to-document-interface/create-element-type-extension-is-a-type.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/extensions-to-document-interface/create-element-type-extension-unresolved.html => testing/web-platform/tests/custom-elements/v0/instantiating/extensions-to-document-interface/create-element-type-extension-unresolved.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/extensions-to-document-interface/create-element-type-is-a-local-name.html => testing/web-platform/tests/custom-elements/v0/instantiating/extensions-to-document-interface/create-element-type-is-a-local-name.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/extensions-to-document-interface/created-callback-create-element-ns.html => testing/web-platform/tests/custom-elements/v0/instantiating/extensions-to-document-interface/created-callback-create-element-ns.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/extensions-to-document-interface/created-callback-create-element.html => testing/web-platform/tests/custom-elements/v0/instantiating/extensions-to-document-interface/created-callback-create-element.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/non-configurable-constructor-property.html => testing/web-platform/tests/custom-elements/v0/instantiating/non-configurable-constructor-property.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/prototype-is-interface-prototype-object.html => testing/web-platform/tests/custom-elements/v0/instantiating/prototype-is-interface-prototype-object.html
rename : testing/web-platform/tests/custom-elements/instantiating-custom-elements/unchanged-attribute.html => testing/web-platform/tests/custom-elements/v0/instantiating/unchanged-attribute.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/definition-construction-algorithm-default-namespace.html => testing/web-platform/tests/custom-elements/v0/registering/definition-construction-algorithm-default-namespace.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/definition-construction-algorithm-duplicate-definition.html => testing/web-platform/tests/custom-elements/v0/registering/definition-construction-algorithm-duplicate-definition.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/definition-construction-algorithm-invalid-type.html => testing/web-platform/tests/custom-elements/v0/registering/definition-construction-algorithm-invalid-type.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/definition-construction-algorithm-local-name-lowercased.html => testing/web-platform/tests/custom-elements/v0/registering/definition-construction-algorithm-local-name-lowercased.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/definition-construction-algorithm-name-is-null.html => testing/web-platform/tests/custom-elements/v0/registering/definition-construction-algorithm-name-is-null.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/definition-construction-algorithm-no-interface-for-name.html => testing/web-platform/tests/custom-elements/v0/registering/definition-construction-algorithm-no-interface-for-name.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/definition-construction-algorithm-svg-namespace-name-is-null.html => testing/web-platform/tests/custom-elements/v0/registering/definition-construction-algorithm-svg-namespace-name-is-null.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/definition-construction-algorithm-svg-namespace.html => testing/web-platform/tests/custom-elements/v0/registering/definition-construction-algorithm-svg-namespace.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/definition-construction-algorithm-type-name-lowercased.html => testing/web-platform/tests/custom-elements/v0/registering/definition-construction-algorithm-type-name-lowercased.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/element-registration-algorithm-no-registry.html => testing/web-platform/tests/custom-elements/v0/registering/element-registration-algorithm-no-registry.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/extensions-to-document-interface/custom-element-name.html => testing/web-platform/tests/custom-elements/v0/registering/extensions-to-document-interface/custom-element-name.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/extensions-to-document-interface/custom-element-prototype.html => testing/web-platform/tests/custom-elements/v0/registering/extensions-to-document-interface/custom-element-prototype.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-custom-tag-ref.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-custom-tag-ref.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-custom-tag.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-custom-tag.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-registered-custom-tag-ref.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-registered-custom-tag-ref.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-registered-custom-tag.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-registered-custom-tag.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-registered-type-extension-ref.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-registered-type-extension-ref.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-registered-type-extension.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-registered-type-extension.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-type-extension-ref.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-type-extension-ref.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-type-extension.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-type-extension.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-matching-query-selector-all.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-element-pseudoclass/unresolved-element-pseudoclass-matching-query-selector-all.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-matching-query-selector.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-element-pseudoclass/unresolved-element-pseudoclass-matching-query-selector.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-elements-interface-html-element.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-elements-interface-html-element.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-elements-interface-html-unknown-element.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-elements-interface-html-unknown-element.html
rename : testing/web-platform/tests/custom-elements/registering-custom-elements/unresolved-elements-interface-svg-element.html => testing/web-platform/tests/custom-elements/v0/registering/unresolved-elements-interface-svg-element.html
rename : testing/web-platform/tests/custom-elements/resources/blank.html => testing/web-platform/tests/custom-elements/v0/resources/blank.html
rename : testing/web-platform/tests/custom-elements/resources/import-master-async.html => testing/web-platform/tests/custom-elements/v0/resources/import-master-async.html
rename : testing/web-platform/tests/custom-elements/resources/import-master.html => testing/web-platform/tests/custom-elements/v0/resources/import-master.html
rename : testing/web-platform/tests/custom-elements/resources/import.html => testing/web-platform/tests/custom-elements/v0/resources/import.html
rename : testing/web-platform/tests/custom-elements/resources/register-and-create-custom-element.html => testing/web-platform/tests/custom-elements/v0/resources/register-and-create-custom-element.html
rename : testing/web-platform/tests/custom-elements/resources/x-element.html => testing/web-platform/tests/custom-elements/v0/resources/x-element.html
rename : testing/web-platform/tests/custom-elements/resources/x-mathml-element.html => testing/web-platform/tests/custom-elements/v0/resources/x-mathml-element.html
rename : testing/web-platform/tests/custom-elements/resources/x-svg-element.html => testing/web-platform/tests/custom-elements/v0/resources/x-svg-element.html
rename : testing/web-platform/tests/custom-elements/testcommon.js => testing/web-platform/tests/custom-elements/v0/testcommon.js
rename : testing/web-platform/tests/DOMEvents/ClickFakeEvent.nondocument.html => testing/web-platform/tests/uievents/ClickFakeEvent.nondocument.html
rename : testing/web-platform/tests/DOMEvents/OWNERS => testing/web-platform/tests/uievents/OWNERS
rename : testing/web-platform/tests/DOMEvents/constructors.html => testing/web-platform/tests/uievents/constructors/constructors.html
rename : testing/web-platform/tests/uievents/keyboard/key-mtest.css => testing/web-platform/tests/uievents/keyboard/key-manual.css
rename : testing/web-platform/tests/uievents/keyboard/key-mtest.js => testing/web-platform/tests/uievents/keyboard/key-manual.js
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/converted/DOM.event.flow.html => testing/web-platform/tests/uievents/legacy-domevents-tests/approved/DOM.event.flow.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/converted/dispatchEvent.click.checkbox.html => testing/web-platform/tests/uievents/legacy-domevents-tests/approved/dispatchEvent.click.checkbox.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/converted/domnodeinserted.html => testing/web-platform/tests/uievents/legacy-domevents-tests/approved/domnodeinserted.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/CompositionEvent.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/CompositionEvent.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/DOMAttrModified.attrChange.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/DOMAttrModified.attrChange.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/DOMAttrModified.attrName.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/DOMAttrModified.attrName.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/DOMAttrModified.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/DOMAttrModified.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/DOMAttrModified.newValue.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/DOMAttrModified.newValue.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/DOMAttrModified.prevValue.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/DOMAttrModified.prevValue.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/DOMAttrModified.relatedNode.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/DOMAttrModified.relatedNode.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/DOMCharacterDataModified.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/DOMCharacterDataModified.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/DOMNodeInserted.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/DOMNodeInserted.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/DOMNodeRemoved.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/DOMNodeRemoved.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/DOMSubtreeModified.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/DOMSubtreeModified.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/KeyboardEvent.location.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/KeyboardEvent.location.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/KeyboardEvent.modifiers.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/KeyboardEvent.modifiers.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/MouseEvent.image.map.area.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/MouseEvent.image.map.area.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/MouseEvent.preventDefault.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/MouseEvent.preventDefault.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/MutationEvent.hasFeature.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/MutationEvent.hasFeature.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/MutationEvent.initMutationEvent.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/MutationEvent.initMutationEvent.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/MutationEvent.relatedNode.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/MutationEvent.relatedNode.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/ProcessingInstruction.DOMCharacterDataModified.fail.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/ProcessingInstruction.DOMCharacterDataModified.fail.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/TextEvent.hasFeature.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/TextEvent.hasFeature.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/TextEvent.initTextEvent.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/TextEvent.initTextEvent.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/TextEvent.inputMode.IME.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/TextEvent.inputMode.IME.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/TextEvent.inputMode.drop.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/TextEvent.inputMode.drop.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/TextEvent.inputMode.keyboard.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/TextEvent.inputMode.keyboard.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/TextEvent.inputMode.paste.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/TextEvent.inputMode.paste.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/TextEvent.inputMode.script.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/TextEvent.inputMode.script.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/UIEvent.load.stylesheet.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/UIEvent.load.stylesheet.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/WheelEvent.Capture.Bubble.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/WheelEvent.Capture.Bubble.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/WheelEvent.ctrlKey.zoom.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/WheelEvent.ctrlKey.zoom.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/WheelEvent.deltaMode.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/WheelEvent.deltaMode.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/WheelEvent.hasFeature.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/WheelEvent.hasFeature.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/WheelEvent.initWheelEvent.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/WheelEvent.initWheelEvent.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/WheelEvent.preventDefault.scroll.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/WheelEvent.preventDefault.scroll.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/compositionstart.data.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/compositionstart.data.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/compositionstart.keydown.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/compositionstart.keydown.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/compositionstart.preventDefault.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/compositionstart.preventDefault.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/converted/EventListener.dispatch.new.event.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/converted/EventListener.dispatch.new.event.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/dispatchEvent.UNSPECIFIED_EVENT_TYPE_ERR.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/dispatchEvent.UNSPECIFIED_EVENT_TYPE_ERR.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/dispatchEvent.click.checkbox.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/dispatchEvent.click.checkbox.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/focusin.relatedTarget.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/focusin.relatedTarget.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/focusout.relatedTarget.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/focusout.relatedTarget.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/hasFeature.Events.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/hasFeature.Events.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/hasFeature.feature.string.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/hasFeature.feature.string.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/mouseenter.ctrlKey.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/mouseenter.ctrlKey.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/mouseenter.relatedTarget.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/mouseenter.relatedTarget.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/mouseleave.relatedTarget.html => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/mouseleave.relatedTarget.html
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/support/InvalidBitMap.png => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/support/InvalidBitMap.png
rename : testing/web-platform/tests/DOMEvents/tests/submissions/Microsoft/support/iepreview.png => testing/web-platform/tests/uievents/legacy-domevents-tests/submissions/Microsoft/support/iepreview.png
rename : testing/web-platform/tests/DOMEvents/event-phases-order.html => testing/web-platform/tests/uievents/order-of-events/event-phases-order.html
rename : testing/web-platform/tests/DOMEvents/init-event-while-dispatching.html => testing/web-platform/tests/uievents/order-of-events/init-event-while-dispatching.html
rename : testing/web-platform/tests/DOMEvents/throwing-in-listener-and-window-error-event.html => testing/web-platform/tests/uievents/throwing-in-listener-and-window-error-event.html
rename : testing/web-platform/tests/DOMEvents/throwing-in-listener-when-all-have-not-run-yet.html => testing/web-platform/tests/uievents/throwing-in-listener-when-all-have-not-run-yet.html
2016-05-16 17:05:32 +01:00

241 lines
7.1 KiB
JavaScript

'use strict';
if (self.importScripts) {
self.importScripts('../resources/test-utils.js');
self.importScripts('../resources/rs-utils.js');
self.importScripts('/resources/testharness.js');
}
promise_test(() => {
const randomSource = new RandomPushSource();
let cancellationFinished = false;
const rs = new ReadableStream({
start(c) {
randomSource.ondata = c.enqueue.bind(c);
randomSource.onend = c.close.bind(c);
randomSource.onerror = c.error.bind(c);
},
pull() {
randomSource.readStart();
},
cancel() {
randomSource.readStop();
return new Promise(resolve => {
setTimeout(() => {
cancellationFinished = true;
resolve();
}, 1);
});
}
});
const reader = rs.getReader();
// We call delay multiple times to avoid cancelling too early for the
// source to enqueue at least one chunk.
const cancel = delay(5).then(() => delay(5)).then(() => delay(5)).then(() => {
let cancelPromise = reader.cancel();
assert_false(cancellationFinished, 'cancellation in source should happen later');
return cancelPromise;
})
return readableStreamToArray(rs, reader).then(chunks => {
assert_greater_than(chunks.length, 0, 'at least one chunk should be read');
for (let i = 0; i < chunks.length; i++) {
assert_equals(chunks[i].length, 128, 'chunk ' + i + ' should have 128 bytes');
}
return cancel;
}).then(() => {
assert_true(cancellationFinished, 'it returns a promise that is fulfilled when the cancellation finishes');
});
}, 'ReadableStream cancellation: integration test on an infinite stream derived from a random push source');
test(() => {
let recordedReason;
const rs = new ReadableStream({
cancel(reason) {
recordedReason = reason;
}
});
const passedReason = new Error('Sorry, it just wasn\'t meant to be.');
rs.cancel(passedReason);
assert_equals(recordedReason, passedReason,
'the error passed to the underlying source\'s cancel method should equal the one passed to the stream\'s cancel');
}, 'ReadableStream cancellation: cancel(reason) should pass through the given reason to the underlying source');
promise_test(() => {
const rs = new ReadableStream({
start(c) {
c.enqueue('a');
c.close();
},
cancel() {
assert_unreached('underlying source cancel() should not have been called');
}
});
const reader = rs.getReader();
return rs.cancel().then(() => {
assert_unreached('cancel() should be rejected');
}, e => {
assert_equals(e.name, 'TypeError', 'cancel() should be rejected with a TypeError');
}).then(() => {
return reader.read();
}).then(result => {
assert_object_equals(result, { value: 'a', done: false }, 'read() should still work after the attempted cancel');
return reader.closed;
});
}, 'ReadableStream cancellation: cancel() on a locked stream should fail and not call the underlying source cancel');
promise_test(() => {
let cancelReceived = false;
const cancelReason = new Error('I am tired of this stream, I prefer to cancel it');
const rs = new ReadableStream({
cancel(reason) {
cancelReceived = true;
assert_equals(reason, cancelReason, 'cancellation reason given to the underlying source should be equal to the one passed');
}
});
return rs.cancel(cancelReason).then(() => {
assert_true(cancelReceived);
});
}, 'ReadableStream cancellation: should fulfill promise when cancel callback went fine');
promise_test(() => {
const rs = new ReadableStream({
cancel() {
return 'Hello';
}
});
return rs.cancel().then(v => {
assert_equals(v, undefined, 'cancel() return value should be fulfilled with undefined');
});
}, 'ReadableStream cancellation: returning a value from the underlying source\'s cancel should not affect the fulfillment value of the promise returned by the stream\'s cancel');
promise_test(() => {
const thrownError = new Error('test');
let cancelCalled = false;
const rs = new ReadableStream({
cancel() {
cancelCalled = true;
throw thrownError;
}
});
return rs.cancel('test').then(() => {
assert_unreached('cancel should reject');
}, e => {
assert_true(cancelCalled);
assert_equals(e, thrownError);
});
}, 'ReadableStream cancellation: should reject promise when cancel callback raises an exception');
promise_test(() => {
const cancelReason = new Error('test');
const rs = new ReadableStream({
cancel(error) {
assert_equals(error, cancelReason);
return delay(1);
}
});
return rs.cancel(cancelReason);
}, 'ReadableStream cancellation: if the underlying source\'s cancel method returns a promise, the promise returned by the stream\'s cancel should fulfill when that one does (1)');
promise_test(() => {
let resolveSourceCancelPromise;
let sourceCancelPromiseHasFulfilled = false;
const rs = new ReadableStream({
cancel() {
const sourceCancelPromise = new Promise(resolve => resolveSourceCancelPromise = resolve);
sourceCancelPromise.then(() => {
sourceCancelPromiseHasFulfilled = true;
});
return sourceCancelPromise;
}
});
setTimeout(() => resolveSourceCancelPromise('Hello'), 1);
return rs.cancel().then(value => {
assert_true(sourceCancelPromiseHasFulfilled, 'cancel() return value should be fulfilled only after the promise returned by the underlying source\'s cancel');
assert_equals(value, undefined, 'cancel() return value should be fulfilled with undefined');
});
}, 'ReadableStream cancellation: if the underlying source\'s cancel method returns a promise, the promise returned by the stream\'s cancel should fulfill when that one does (2)');
promise_test(() => {
let rejectSourceCancelPromise;
let sourceCancelPromiseHasRejected = false;
const rs = new ReadableStream({
cancel() {
const sourceCancelPromise = new Promise((resolve, reject) => rejectSourceCancelPromise = reject);
sourceCancelPromise.catch(() => {
sourceCancelPromiseHasRejected = true;
});
return sourceCancelPromise;
}
});
const errorInCancel = new Error('Sorry, it just wasn\'t meant to be.');
setTimeout(() => rejectSourceCancelPromise(errorInCancel), 1);
return rs.cancel().then(() => {
assert_unreached('cancel() return value should be rejected');
}, r => {
assert_true(sourceCancelPromiseHasRejected, 'cancel() return value should be rejected only after the promise returned by the underlying source\'s cancel');
assert_equals(r, errorInCancel, 'cancel() return value should be rejected with the underlying source\'s rejection reason');
});
}, 'ReadableStream cancellation: if the underlying source\'s cancel method returns a promise, the promise returned by the stream\'s cancel should reject when that one does');
promise_test(() => {
const rs = new ReadableStream({
start() {
return new Promise(() => {});
},
pull() {
assert_unreached('pull should not have been called');
}
});
return Promise.all([rs.cancel(), rs.getReader().closed]);
}, 'ReadableStream cancellation: cancelling before start finishes should prevent pull() from being called');
done();