From ca45711d07641aeba01c90882754dfa9f25df3a7 Mon Sep 17 00:00:00 2001 From: WPT Sync Bot Date: Mon, 13 Aug 2018 21:52:18 -0400 Subject: [PATCH] Update web-platform-tests to revision c792ea26624bde49b72afce348de07ab72fb9ad7 --- .../canvas-createImageBitmap-resize.html.ini | 16 + ...as-createImageBitmap-video-resize.html.ini | 4 + .../url/url-in-tags-revoke.window.js.ini | 4 - tests/wpt/metadata/MANIFEST.json | 839 +++++++++--------- .../encoding/remove-only-one-bom.html.ini | 7 + .../encoding/single-byte-decoder.html.ini | 2 +- .../beforeunload-synchronous.html.ini | 4 + .../traverse_the_history_1.html.ini | 5 - .../traverse_the_history_5.html.ini | 4 + ...cation-protocol-setter-non-broken.html.ini | 3 + .../hash-name-reference.html.ini | 60 -- .../metadata/url/urlencoded-parser.any.js.ini | 25 +- .../postMessage/second-argument-null.html.ini | 5 - .../semantics/multiple-workers/005.html.ini | 1 + .../bugs/complex-glsl-does-not-crash.html.ini | 5 + ...ader-uniform-packing-restrictions.html.ini | 5 + .../shader-with-non-reserved-words.html.ini | 5 + .../canvas-createImageBitmap-resize.html | 159 ++++ ...canvas-createImageBitmap-video-resize.html | 58 ++ .../BackgroundSync/interfaces.https.any.js | 3 +- .../FileAPI/idlharness.html | 3 +- .../FileAPI/idlharness.worker.js | 3 +- .../IndexedDB/idlharness.any.js | 3 +- .../WebCryptoAPI/idlharness.https.any.js | 3 +- .../accelerometer/idlharness.https.window.js | 3 +- .../ambient-light/idlharness.https.window.js | 3 +- .../animation-worklet/idlharness.any.js | 17 + .../animation-worklet/interfaces.any.js | 16 - .../appmanifest/idlharness.window.js | 3 +- .../background-fetch/idlharness.https.any.js | 3 +- ...ttery-interface-idlharness.https.window.js | 5 +- .../idl/idlharness.tentative.https.window.js | 3 +- .../embedded-enforcement/idlharness.window.js | 3 +- .../idlharness.window.js | 3 +- .../idlharness.tentative.https.html | 3 +- .../css/css-animations/idlharness.html | 4 +- .../css/css-counter-styles/idlharness.html | 3 +- .../css-font-loading/idlharness.https.html | 3 +- .../css/css-images/idlharness.html | 3 +- .../css/css-masking/idlharness.html | 3 +- .../css/css-parser-api/idlharness.html | 3 +- .../typedom.tentative.html | 138 ++- .../var-reference-registered-properties.html | 39 + .../css/css-regions/idlharness.html | 3 +- .../css/css-transitions/idlharness.html | 3 +- .../css/css-typed-om/interfaces.html | 3 +- .../css/cssom-view/interfaces.html | 3 +- .../css/cssom/interfaces.html | 3 +- .../css/filter-effects/interfaces.any.js | 3 +- .../domparsing/interfaces.any.js | 4 +- .../encoding/remove-only-one-bom.html | 20 + .../encoding/resources/two-boms-utf-16be.html | 1 + .../encoding/resources/two-boms-utf-16le.html | 1 + .../encoding/resources/two-boms-utf-8.html | 1 + .../web-platform-tests/fetch/api/idl.any.js | 3 +- .../cors-rfc1918/idlharness.tentative.any.js | 3 +- .../gamepad/idlharness-manual.html | 3 +- .../gamepad/idlharness.window.js | 3 +- .../generic-sensor/idlharness.https.window.js | 4 +- .../idlharness.https.window.js | 3 +- .../gyroscope/idlharness.https.window.js | 3 +- .../html-media-capture/idlharness.window.js | 4 +- .../beforeunload-synchronous.html | 33 + .../opener-setter.html | 32 + .../resources/opener-setter.html | 23 + .../dir_auto-contained-script-R-ref.html | 1 + .../dir_auto-contained-script-R.html | 1 + .../html/dom/interfaces.https.html | 3 +- .../interfaces/animation-worklet.idl | 22 +- .../interfaces/payment-request.idl | 8 +- .../interfaces/service-workers.idl | 6 +- .../interfaces/speech-api.idl | 7 +- .../web-platform-tests/interfaces/webxr.idl | 7 +- .../observer-exceptions.html | 2 +- .../keyboard-lock/idlharness.https.window.js | 3 +- .../keyboard-map/idlharness.https.window.js | 3 +- .../magnetometer/idlharness.https.window.js | 3 +- .../media-capabilities/idlharness.any.js | 3 +- tests/wpt/web-platform-tests/media/video.ogv | Bin 0 -> 53189 bytes .../idlharness.window.js | 3 +- .../mediacapture-image/idlharness.window.js | 3 +- .../mediacapture-record/idlharness.window.js | 3 +- .../mediasession/idlharness.window.js | 3 +- .../navigation-timing/idlharness.window.js | 3 +- .../netinfo/idlharness.any.js | 4 +- .../idlharness.https.window.js | 3 +- .../page-visibility/idlharness.window.js | 3 +- .../paint-timing/idlharness.window.js | 4 +- .../idlharness.window.js | 2 +- ...retry-shows-error-member-manual.https.html | 50 ++ ...retry-shows-payer-member-manual.https.html | 65 ++ ...s-shippingAddress-member-manual.https.html | 108 +++ .../idlharness.https.window.js | 3 +- .../rejects_if_not_active-manual.https.html | 150 ++++ .../retry-method-manual.https.html | 262 ++++++ .../performance-timeline/idlharness.any.js | 3 +- .../picture-in-picture/idlharness.window.js | 3 +- .../extension/idlharness.window.js | 3 +- .../pointerevents/idlharness.window.js | 3 +- .../pointerlock/interfaces.window.js | 4 +- .../proximity/idlharness.https.window.js | 3 +- .../remote-playback/idlharness.window.js | 3 +- .../resize-observer/idlharness.window.js | 3 +- .../resource-timing/idlharness.any.js | 3 +- .../resources/idlharness.js | 6 +- .../screen-orientation/idlharness.window.js | 3 +- .../selection/idlharness.window.js | 3 +- .../cache-storage/resources/vary.py | 25 + .../cache-storage/script-tests/cache-add.js | 80 ++ .../service-worker/postmessage.https.html | 42 + ...message-dictionary-transferables-worker.js | 24 + .../idlharness.window.js | 6 +- .../svg/idlharness.window.js | 3 +- .../painting/reftests/markers-orient-001.svg | 3 + .../web-platform-tests/tools/serve/serve.py | 7 +- .../tools/serve/test_serve.py | 42 +- .../touch-events/idlharness.window.js | 3 +- .../HTMLAnchorElement-href.tentative.html | 21 - .../HTMLAreaElement-href.tentative.html | 25 - .../HTMLBaseElement-href.tentative.html | 24 - .../HTMLElement-generic.tentative.html | 43 + .../HTMLIFrameElement-src.tentative.html | 23 - .../HTMLImageElement-src.tentative.html | 24 - .../HTMLLinkElement-href.tentative.html | 21 - .../HTMLMediaElement-src.tentative.html | 23 - .../HTMLObjectElement.tentative.html | 23 - .../HTMLSourceElement-src.tentative.html | 22 - ...t-to-HTMLAnchorElement-href.tentative.html | 43 - ...ent-to-HTMLAreaElement-href.tentative.html | 46 - ...ent-to-HTMLBaseElement-href.tentative.html | 43 - ...ment-to-HTMLElement-generic.tentative.html | 50 ++ ...nt-to-HTMLIFrameElement-src.tentative.html | 33 - ...ent-to-HTMLImageElement-src.tentative.html | 33 - ...ent-to-HTMLLinkElement-href.tentative.html | 43 - ...ent-to-HTMLMediaElement-src.tentative.html | 33 - ...gnment-to-HTMLObjectElement.tentative.html | 60 -- ...nt-to-HTMLSourceElement-src.tentative.html | 36 - ...ing-assignment-to-embed-src.tentative.html | 56 -- ...ing-assignment-to-frame-src.tentative.html | 33 - ...ing-assignment-to-input-src.tentative.html | 33 - ...ng-assignment-to-script-src.tentative.html | 56 -- ...ing-assignment-to-track-src.tentative.html | 33 - .../trusted-types/embed-src.tentative.html | 30 - .../trusted-types/frame-src.tentative.html | 23 - .../trusted-types/input-src.tentative.html | 23 - .../trusted-types/script-src.tentative.html | 30 - .../trusted-types/support/helper.sub.js | 28 + .../trusted-types/track-src.tentative.html | 23 - .../user-timing/idlharness.any.js | 4 +- ...ps.html => acquire.tentative.https.any.js} | 13 +- ...https.html => held.tentative.https.any.js} | 13 +- ...tml => ifAvailable.tentative.https.any.js} | 13 +- ...=> lock-attributes.tentative.https.any.js} | 11 +- ... => mode-exclusive.tentative.https.any.js} | 11 +- ...html => mode-mixed.tentative.https.any.js} | 11 +- ...tml => mode-shared.tentative.https.any.js} | 11 +- ...ml => non-secure-context.tentative.any.js} | 12 +- ...tml => query-empty.tentative.https.any.js} | 13 +- ...tml => query-order.tentative.https.any.js} | 13 +- ...ttps.html => query.tentative.https.any.js} | 13 +- ... => resource-names.tentative.https.any.js} | 11 +- ... => secure-context.tentative.https.any.js} | 12 +- ...tps.html => signal.tentative.https.any.js} | 13 +- ...ttps.html => steal.tentative.https.any.js} | 13 +- .../web-nfc/idlharness.https.window.js | 4 +- .../web-share/idlharness.https.window.js | 3 +- .../webaudio/idlharness.https.window.js | 3 +- .../webauthn/idlharness.https.window.js | 3 +- .../webdriver/tests/support/fixtures.py | 9 +- .../webgl/webgl1-idlharness.window.js | 3 +- .../webgl/webgl2-idlharness.window.js | 3 +- .../dictionary-transferrable.html | 18 + .../webrtc-stats/idlharness.window.js | 4 +- .../webstorage/idlharness.window.js | 3 +- .../webusb/idlharness.https.any.js | 3 +- .../webxr/idlharness.https.window.js | 3 +- .../second-argument-dictionary.html | 29 + .../postMessage/second-argument-null.html | 2 +- 178 files changed, 2163 insertions(+), 1807 deletions(-) create mode 100644 tests/wpt/metadata/2dcontext/imagebitmap/canvas-createImageBitmap-resize.html.ini create mode 100644 tests/wpt/metadata/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html.ini create mode 100644 tests/wpt/metadata/encoding/remove-only-one-bom.html.ini create mode 100644 tests/wpt/metadata/html/browsers/browsing-the-web/unloading-documents/beforeunload-synchronous.html.ini delete mode 100644 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini create mode 100644 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini delete mode 100644 tests/wpt/metadata/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null.html.ini create mode 100644 tests/wpt/mozilla/meta/webgl/conformance-1.0.3/conformance/glsl/bugs/complex-glsl-does-not-crash.html.ini create mode 100644 tests/wpt/mozilla/meta/webgl/conformance-1.0.3/conformance/glsl/misc/shader-uniform-packing-restrictions.html.ini create mode 100644 tests/wpt/mozilla/meta/webgl/conformance-1.0.3/conformance/glsl/misc/shader-with-non-reserved-words.html.ini create mode 100644 tests/wpt/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-resize.html create mode 100644 tests/wpt/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html create mode 100644 tests/wpt/web-platform-tests/animation-worklet/idlharness.any.js delete mode 100644 tests/wpt/web-platform-tests/animation-worklet/interfaces.any.js create mode 100644 tests/wpt/web-platform-tests/encoding/remove-only-one-bom.html create mode 100644 tests/wpt/web-platform-tests/encoding/resources/two-boms-utf-16be.html create mode 100644 tests/wpt/web-platform-tests/encoding/resources/two-boms-utf-16le.html create mode 100644 tests/wpt/web-platform-tests/encoding/resources/two-boms-utf-8.html create mode 100644 tests/wpt/web-platform-tests/html/browsers/browsing-the-web/unloading-documents/beforeunload-synchronous.html create mode 100644 tests/wpt/web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-setter.html create mode 100644 tests/wpt/web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/resources/opener-setter.html create mode 100644 tests/wpt/web-platform-tests/media/video.ogv create mode 100644 tests/wpt/web-platform-tests/payment-request/PaymentValidationErrors/retry-shows-error-member-manual.https.html create mode 100644 tests/wpt/web-platform-tests/payment-request/PaymentValidationErrors/retry-shows-payer-member-manual.https.html create mode 100644 tests/wpt/web-platform-tests/payment-request/PaymentValidationErrors/retry-shows-shippingAddress-member-manual.https.html create mode 100644 tests/wpt/web-platform-tests/payment-request/payment-response/rejects_if_not_active-manual.https.html create mode 100644 tests/wpt/web-platform-tests/payment-request/payment-response/retry-method-manual.https.html create mode 100644 tests/wpt/web-platform-tests/service-workers/cache-storage/resources/vary.py create mode 100644 tests/wpt/web-platform-tests/service-workers/service-worker/resources/postmessage-dictionary-transferables-worker.js delete mode 100644 tests/wpt/web-platform-tests/trusted-types/HTMLAnchorElement-href.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/HTMLAreaElement-href.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/HTMLBaseElement-href.tentative.html create mode 100644 tests/wpt/web-platform-tests/trusted-types/HTMLElement-generic.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/HTMLIFrameElement-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/HTMLImageElement-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/HTMLLinkElement-href.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/HTMLMediaElement-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/HTMLObjectElement.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/HTMLSourceElement-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-HTMLAnchorElement-href.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-HTMLAreaElement-href.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-HTMLBaseElement-href.tentative.html create mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-HTMLIFrameElement-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-HTMLImageElement-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-HTMLLinkElement-href.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-HTMLMediaElement-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-HTMLObjectElement.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-HTMLSourceElement-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-embed-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-frame-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-input-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-script-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/block-string-assignment-to-track-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/embed-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/frame-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/input-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/script-src.tentative.html delete mode 100644 tests/wpt/web-platform-tests/trusted-types/track-src.tentative.html rename tests/wpt/web-platform-tests/web-locks/{acquire.tentative.https.html => acquire.tentative.https.any.js} (92%) rename tests/wpt/web-platform-tests/web-locks/{held.tentative.https.html => held.tentative.https.any.js} (88%) rename tests/wpt/web-platform-tests/web-locks/{ifAvailable.tentative.https.html => ifAvailable.tentative.https.any.js} (95%) rename tests/wpt/web-platform-tests/web-locks/{lock-attributes.tentative.https.html => lock-attributes.tentative.https.any.js} (65%) rename tests/wpt/web-platform-tests/web-locks/{mode-exclusive.tentative.https.html => mode-exclusive.tentative.https.any.js} (77%) rename tests/wpt/web-platform-tests/web-locks/{mode-mixed.tentative.https.html => mode-mixed.tentative.https.any.js} (83%) rename tests/wpt/web-platform-tests/web-locks/{mode-shared.tentative.https.html => mode-shared.tentative.https.any.js} (82%) rename tests/wpt/web-platform-tests/web-locks/{non-secure-context.tentative.html => non-secure-context.tentative.any.js} (53%) rename tests/wpt/web-platform-tests/web-locks/{query-empty.tentative.https.html => query-empty.tentative.https.any.js} (64%) rename tests/wpt/web-platform-tests/web-locks/{query-order.tentative.https.html => query-order.tentative.https.any.js} (91%) rename tests/wpt/web-platform-tests/web-locks/{query.tentative.https.html => query.tentative.https.any.js} (96%) rename tests/wpt/web-platform-tests/web-locks/{resource-names.tentative.https.html => resource-names.tentative.https.any.js} (85%) rename tests/wpt/web-platform-tests/web-locks/{secure-context.tentative.https.html => secure-context.tentative.https.any.js} (53%) rename tests/wpt/web-platform-tests/web-locks/{signal.tentative.https.html => signal.tentative.https.any.js} (94%) rename tests/wpt/web-platform-tests/web-locks/{steal.tentative.https.html => steal.tentative.https.any.js} (88%) create mode 100644 tests/wpt/web-platform-tests/webmessaging/message-channels/dictionary-transferrable.html create mode 100644 tests/wpt/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-dictionary.html diff --git a/tests/wpt/metadata/2dcontext/imagebitmap/canvas-createImageBitmap-resize.html.ini b/tests/wpt/metadata/2dcontext/imagebitmap/canvas-createImageBitmap-resize.html.ini new file mode 100644 index 00000000000..689e0cbbe94 --- /dev/null +++ b/tests/wpt/metadata/2dcontext/imagebitmap/canvas-createImageBitmap-resize.html.ini @@ -0,0 +1,16 @@ +[canvas-createImageBitmap-resize.html] + [createImageBitmap from an ImageData with resize option.] + expected: FAIL + + [createImageBitmap from a HTMLImageElement with resize option.] + expected: FAIL + + [createImageBitmap from a HTMLCanvasElement with resize option.] + expected: FAIL + + [createImageBitmap from an ImageBitmap with resize option.] + expected: FAIL + + [createImageBitmap from a Blob with resize option.] + expected: FAIL + diff --git a/tests/wpt/metadata/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html.ini b/tests/wpt/metadata/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html.ini new file mode 100644 index 00000000000..457577efd90 --- /dev/null +++ b/tests/wpt/metadata/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html.ini @@ -0,0 +1,4 @@ +[canvas-createImageBitmap-video-resize.html] + [createImageBitmap(HTMLVideoElement) with resize option] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini index e100670fed4..dd4ffcf4345 100644 --- a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini +++ b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini @@ -1,14 +1,10 @@ [url-in-tags-revoke.window.html] - expected: TIMEOUT [Fetching a blob URL immediately before revoking it works in an iframe.] expected: FAIL [Fetching a blob URL immediately before revoking it works in an iframe navigation.] expected: FAIL - [Fetching a blob URL immediately before revoking it works in + + diff --git a/tests/wpt/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html b/tests/wpt/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html new file mode 100644 index 00000000000..366d1fd36e0 --- /dev/null +++ b/tests/wpt/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-video-resize.html @@ -0,0 +1,58 @@ + + + + diff --git a/tests/wpt/web-platform-tests/BackgroundSync/interfaces.https.any.js b/tests/wpt/web-platform-tests/BackgroundSync/interfaces.https.any.js index 325bef8edbf..989139e9904 100644 --- a/tests/wpt/web-platform-tests/BackgroundSync/interfaces.https.any.js +++ b/tests/wpt/web-platform-tests/BackgroundSync/interfaces.https.any.js @@ -10,6 +10,5 @@ idl_test( ['service-workers', 'html', 'dom'], idlArray => { // TODO: Objects - }, - 'Background Sync interfaces.' + } ); diff --git a/tests/wpt/web-platform-tests/FileAPI/idlharness.html b/tests/wpt/web-platform-tests/FileAPI/idlharness.html index eb55b6550ef..db6592e6220 100644 --- a/tests/wpt/web-platform-tests/FileAPI/idlharness.html +++ b/tests/wpt/web-platform-tests/FileAPI/idlharness.html @@ -35,8 +35,7 @@ FileList: ['document.querySelector("#fileChooser").files'], FileReader: ['new FileReader()'] }); - }, - 'Test FileAPI IDL implementation' + } ); diff --git a/tests/wpt/web-platform-tests/FileAPI/idlharness.worker.js b/tests/wpt/web-platform-tests/FileAPI/idlharness.worker.js index e65ee01ff5b..5bf82e0b890 100644 --- a/tests/wpt/web-platform-tests/FileAPI/idlharness.worker.js +++ b/tests/wpt/web-platform-tests/FileAPI/idlharness.worker.js @@ -16,7 +16,6 @@ idl_test( FileReader: ['new FileReader()'], FileReaderSync: ['new FileReaderSync()'] }); - }, - 'Test FileAPI IDL implementation' + } ); done(); diff --git a/tests/wpt/web-platform-tests/IndexedDB/idlharness.any.js b/tests/wpt/web-platform-tests/IndexedDB/idlharness.any.js index bf83066ea82..efb84661e80 100644 --- a/tests/wpt/web-platform-tests/IndexedDB/idlharness.any.js +++ b/tests/wpt/web-platform-tests/IndexedDB/idlharness.any.js @@ -20,6 +20,5 @@ idl_test( IDBVersionChangeEvent: ['new IDBVersionChangeEvent("type")'], DOMStringList: [], }); - }, - 'IndexedDB interfaces' + } ); diff --git a/tests/wpt/web-platform-tests/WebCryptoAPI/idlharness.https.any.js b/tests/wpt/web-platform-tests/WebCryptoAPI/idlharness.https.any.js index f5095cba4f7..b0ccebd9f48 100644 --- a/tests/wpt/web-platform-tests/WebCryptoAPI/idlharness.https.any.js +++ b/tests/wpt/web-platform-tests/WebCryptoAPI/idlharness.https.any.js @@ -11,6 +11,5 @@ idl_test( Crypto: ['crypto'], SubtleCrypto: ['crypto.subtle'] }); - }, - 'WebCryptoAPI interfaces' + } ); diff --git a/tests/wpt/web-platform-tests/accelerometer/idlharness.https.window.js b/tests/wpt/web-platform-tests/accelerometer/idlharness.https.window.js index f6cbcd960cb..1e041e9a23b 100644 --- a/tests/wpt/web-platform-tests/accelerometer/idlharness.https.window.js +++ b/tests/wpt/web-platform-tests/accelerometer/idlharness.https.window.js @@ -14,6 +14,5 @@ idl_test( LinearAccelerationSensor: ['new LinearAccelerationSensor();'], GravitySensor: ['new GravitySensor();'] }); - }, - 'Test IDL implementation of Accelerometer Sensor' + } ); diff --git a/tests/wpt/web-platform-tests/ambient-light/idlharness.https.window.js b/tests/wpt/web-platform-tests/ambient-light/idlharness.https.window.js index ea99fc1fc8a..211e6aa0171 100644 --- a/tests/wpt/web-platform-tests/ambient-light/idlharness.https.window.js +++ b/tests/wpt/web-platform-tests/ambient-light/idlharness.https.window.js @@ -12,6 +12,5 @@ idl_test( idl_array.add_objects({ AmbientLightSensor: ['new AmbientLightSensor()'] }); - }, - 'Test IDL implementation of Ambient Light Sensor' + } ); diff --git a/tests/wpt/web-platform-tests/animation-worklet/idlharness.any.js b/tests/wpt/web-platform-tests/animation-worklet/idlharness.any.js new file mode 100644 index 00000000000..e821a2fee8a --- /dev/null +++ b/tests/wpt/web-platform-tests/animation-worklet/idlharness.any.js @@ -0,0 +1,17 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +'use strict'; + +// https://wicg.github.io/animation-worklet/ + +idl_test( + ['animation-worklet'], + ['worklets', 'web-animations', 'html', 'cssom', 'dom'], + idl_array => { + idl_array.add_objects({ + WorkletAnimation: ['new WorkletAnimation("name")'], + // TODO: WorkletGroupEffect + }); + } +); diff --git a/tests/wpt/web-platform-tests/animation-worklet/interfaces.any.js b/tests/wpt/web-platform-tests/animation-worklet/interfaces.any.js deleted file mode 100644 index 9b1d75649a0..00000000000 --- a/tests/wpt/web-platform-tests/animation-worklet/interfaces.any.js +++ /dev/null @@ -1,16 +0,0 @@ -// META: script=/resources/WebIDLParser.js -// META: script=/resources/idlharness.js - -'use strict'; - -// https://wicg.github.io/animation-worklet/ - -promise_test(async () => { - const idl = await (await fetch('/interfaces/animation-worklet.idl')).text(); - const html = await (await fetch('/interfaces/html.idl')).text(); - const idlArray = new IdlArray(); - idlArray.add_idls(idl); - idlArray.add_dependency_idls(html); - idlArray.test(); - done(); -}, 'Test driver'); diff --git a/tests/wpt/web-platform-tests/appmanifest/idlharness.window.js b/tests/wpt/web-platform-tests/appmanifest/idlharness.window.js index a877c76fa31..55e8b9871e7 100644 --- a/tests/wpt/web-platform-tests/appmanifest/idlharness.window.js +++ b/tests/wpt/web-platform-tests/appmanifest/idlharness.window.js @@ -13,6 +13,5 @@ idl_test( Window: ['window'], BeforeInstallPromptEvent: ['new BeforeInstallPromptEvent("type")'], }); - }, - 'appmanifest interfaces' + } ); diff --git a/tests/wpt/web-platform-tests/background-fetch/idlharness.https.any.js b/tests/wpt/web-platform-tests/background-fetch/idlharness.https.any.js index ad204771c3a..f2c8a56590a 100644 --- a/tests/wpt/web-platform-tests/background-fetch/idlharness.https.any.js +++ b/tests/wpt/web-platform-tests/background-fetch/idlharness.https.any.js @@ -20,6 +20,5 @@ idl_test( BackgroundFetchUpdateEvent: ['new BackgroundFetchUpdateEvent("type")'], }); } - }, - 'background-fetch interfaces' + } ); diff --git a/tests/wpt/web-platform-tests/battery-status/battery-interface-idlharness.https.window.js b/tests/wpt/web-platform-tests/battery-status/battery-interface-idlharness.https.window.js index 3db3e16e2e4..b33c82e426c 100644 --- a/tests/wpt/web-platform-tests/battery-status/battery-interface-idlharness.https.window.js +++ b/tests/wpt/web-platform-tests/battery-status/battery-interface-idlharness.https.window.js @@ -6,7 +6,7 @@ 'use strict'; idl_test( - ['battery'], + ['battery-status'], ['dom', 'html'], async idl_array => { idl_array.add_objects({ @@ -15,6 +15,5 @@ idl_test( }) self.manager = await navigator.getBattery(); - }, - 'Test IDL implementation of Battery Status API' + } ); diff --git a/tests/wpt/web-platform-tests/bluetooth/idl/idlharness.tentative.https.window.js b/tests/wpt/web-platform-tests/bluetooth/idl/idlharness.tentative.https.window.js index 4bacd5688f7..f4e6d958696 100644 --- a/tests/wpt/web-platform-tests/bluetooth/idl/idlharness.tentative.https.window.js +++ b/tests/wpt/web-platform-tests/bluetooth/idl/idlharness.tentative.https.window.js @@ -20,6 +20,5 @@ idl_test( Bluetooth: ['navigator.bluetooth'], BluetoothAdvertisingEvent: ['event'], }); - }, - 'web-bluetooth interfaces.' + } ); diff --git a/tests/wpt/web-platform-tests/content-security-policy/embedded-enforcement/idlharness.window.js b/tests/wpt/web-platform-tests/content-security-policy/embedded-enforcement/idlharness.window.js index 6ac306ca0a1..2845f82c955 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/embedded-enforcement/idlharness.window.js +++ b/tests/wpt/web-platform-tests/content-security-policy/embedded-enforcement/idlharness.window.js @@ -12,6 +12,5 @@ idl_test( idl_array.add_objects({ HTMLIFrameElement: ['document.createElement("iframe")'], }); - }, - 'csp-embedded-enforcement IDL' + } ); diff --git a/tests/wpt/web-platform-tests/content-security-policy/securitypolicyviolation/idlharness.window.js b/tests/wpt/web-platform-tests/content-security-policy/securitypolicyviolation/idlharness.window.js index 361282a327d..fc5e65d6cfd 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/securitypolicyviolation/idlharness.window.js +++ b/tests/wpt/web-platform-tests/content-security-policy/securitypolicyviolation/idlharness.window.js @@ -14,6 +14,5 @@ idl_test( 'new SecurityPolicyViolationEvent("securitypolicyviolation")' ] }) - }, - 'Test Content Security Policy IDL implementation' + } ); diff --git a/tests/wpt/web-platform-tests/cookie-store/idlharness.tentative.https.html b/tests/wpt/web-platform-tests/cookie-store/idlharness.tentative.https.html index 864b6994f0d..fafe79ad570 100644 --- a/tests/wpt/web-platform-tests/cookie-store/idlharness.tentative.https.html +++ b/tests/wpt/web-platform-tests/cookie-store/idlharness.tentative.https.html @@ -17,7 +17,6 @@ idl_test( CookieStore: ['cookieStore'], CookieChangeEvent: ['new CookieChangeEvent("change")'], }); - }, - 'Interface test' + } ); diff --git a/tests/wpt/web-platform-tests/css/css-animations/idlharness.html b/tests/wpt/web-platform-tests/css/css-animations/idlharness.html index b25b97048a4..1d3ed2b9b80 100644 --- a/tests/wpt/web-platform-tests/css/css-animations/idlharness.html +++ b/tests/wpt/web-platform-tests/css/css-animations/idlharness.html @@ -39,8 +39,8 @@ CSSKeyframesRule: ['keyframes'], CSSKeyframeRule: ['keyframes.cssRules[0]'], }); - }, - 'Test css-animations IDL implementation'); + } + ); diff --git a/tests/wpt/web-platform-tests/css/css-counter-styles/idlharness.html b/tests/wpt/web-platform-tests/css/css-counter-styles/idlharness.html index b36a5de12f0..e914b41b0e4 100644 --- a/tests/wpt/web-platform-tests/css/css-counter-styles/idlharness.html +++ b/tests/wpt/web-platform-tests/css/css-counter-styles/idlharness.html @@ -28,7 +28,6 @@ idl_array.add_objects({ CSSCounterStyleRule: ['counter'], }); - }, - 'css-counter-styles interfaces' + } ); diff --git a/tests/wpt/web-platform-tests/css/css-font-loading/idlharness.https.html b/tests/wpt/web-platform-tests/css/css-font-loading/idlharness.https.html index 9e3d45fbe19..61a99e01b51 100644 --- a/tests/wpt/web-platform-tests/css/css-font-loading/idlharness.https.html +++ b/tests/wpt/web-platform-tests/css/css-font-loading/idlharness.https.html @@ -18,7 +18,6 @@ idl_test( FontFaceSetLoadEvent: ['new FontFaceSetLoadEvent("type")'], FontFaceSet: ['document.fonts'], }); - }, - 'css-font-loading interfaces' + } ); diff --git a/tests/wpt/web-platform-tests/css/css-images/idlharness.html b/tests/wpt/web-platform-tests/css/css-images/idlharness.html index ec9c3584c2b..17bccbddcee 100644 --- a/tests/wpt/web-platform-tests/css/css-images/idlharness.html +++ b/tests/wpt/web-platform-tests/css/css-images/idlharness.html @@ -13,7 +13,6 @@ ['cssom'], idl_array => { // No objects, - }, - 'Test IDL implementation of css-masking' + } ); diff --git a/tests/wpt/web-platform-tests/css/css-masking/idlharness.html b/tests/wpt/web-platform-tests/css/css-masking/idlharness.html index 41bab663d40..c415eaaa67a 100644 --- a/tests/wpt/web-platform-tests/css/css-masking/idlharness.html +++ b/tests/wpt/web-platform-tests/css/css-masking/idlharness.html @@ -17,8 +17,7 @@ SVGClipPathElement: [document.querySelector('#clip1')], SVGMaskElement: [document.querySelector('#mask1')], }); - }, - 'Test IDL implementation of css-masking' + } ); diff --git a/tests/wpt/web-platform-tests/css/css-parser-api/idlharness.html b/tests/wpt/web-platform-tests/css/css-parser-api/idlharness.html index 79b607954dd..078a1081ca4 100644 --- a/tests/wpt/web-platform-tests/css/css-parser-api/idlharness.html +++ b/tests/wpt/web-platform-tests/css/css-parser-api/idlharness.html @@ -13,7 +13,6 @@ ['cssom'], idl_array => { // No objects - }, - 'CSS-Parser-API interfaces' + } ); diff --git a/tests/wpt/web-platform-tests/css/css-properties-values-api/typedom.tentative.html b/tests/wpt/web-platform-tests/css/css-properties-values-api/typedom.tentative.html index 9fff08004cb..065280614cc 100644 --- a/tests/wpt/web-platform-tests/css/css-properties-values-api/typedom.tentative.html +++ b/tests/wpt/web-platform-tests/css/css-properties-values-api/typedom.tentative.html @@ -13,16 +13,22 @@ // Properties are generated on demand, as `--prop-${g_counter}`. let g_counter = 1; +// Generate a new property name. +function gen_name() { + let name = `--prop-${g_counter}`; + g_counter++; + return name; +} + // Generate a property and return its name. function gen_prop(syntax, initialValue) { - let name = `--prop-${g_counter}`; + let name = gen_name(); CSS.registerProperty({ name: name, syntax: syntax, initialValue: initialValue, inherits: false }); - g_counter++; return name; } @@ -50,6 +56,28 @@ function assert_computed_type(name, value, expected) { } } +function assert_attribute_get_type(syntax, value, expected) { + let name = gen_name(); + target.style = `${name}: ${value}`; + + assert_true(target.attributeStyleMap.get(name) instanceof CSSUnparsedValue); + + CSS.registerProperty({ + name: name, + syntax: syntax, + initialValue: value, + inherits: false + }); + + if (expected == CSSStyleValue) { + assert_false(target.attributeStyleMap.get(name) instanceof CSSUnparsedValue); + } + + assert_true(target.attributeStyleMap.get(name) instanceof expected); +} + +// computedStyleMap + test(function(){ let name = gen_prop('*', 'if(){}'); assert_true(target.computedStyleMap().get(name) instanceof CSSUnparsedValue); @@ -164,4 +192,110 @@ test(function(){ assert_true(target.computedStyleMap().getAll(name).every(x => x instanceof CSSUnitValue)); }, 'All computed values correctly reified in comma-separated list'); +// attributeStyleMap.get + +test(function(){ + let name1 = gen_prop('', '100px'); + let name2 = gen_prop('', '0px'); + target.style = `${name2}: var(${name1})`; + assert_true(target.attributeStyleMap.get(name2) instanceof CSSUnparsedValue); +}, 'attributeStyleMap.get returns CSSUnparsedValue for value with var references'); + +test(function(){ + let name1 = gen_prop('', '100px'); + let name2 = gen_prop('#', '0px'); + target.style = `${name2}: 1px, var(${name1}), 3px`; + assert_true(target.attributeStyleMap.get(name2) instanceof CSSUnparsedValue); +}, 'attributeStyleMap.get returns CSSUnparsedValue for value with var reference in list'); + +test(function(){ + assert_attribute_get_type('*', 'if(){}', CSSUnparsedValue); +}, 'attributeStyleMap.get returns CSSUnparsedValue for *'); + +test(function(){ + assert_attribute_get_type('', '42deg', CSSUnitValue); +}, 'attributeStyleMap.get returns CSSUnitValue for '); + +test(function(){ + assert_attribute_get_type('', '#fefefe', CSSStyleValue); +}, 'attributeStyleMap.get returns CSSStyleValue for '); + +test(function(){ + assert_attribute_get_type('', 'none', CSSKeywordValue); +}, 'attributeStyleMap.get returns CSSKeywordValue for '); + +test(function(){ + assert_attribute_get_type('', 'url(thing.png)', CSSImageValue); +}, 'attributeStyleMap.get returns CSSImageValue for '); + +test(function(){ + assert_attribute_get_type('', '100', CSSUnitValue); +}, 'attributeStyleMap.get returns CSSUnitValue for '); + +test(function(){ + assert_attribute_get_type('', '10%', CSSUnitValue); +}, 'attributeStyleMap.get returns CSSUnitValue for [10%]'); + +test(function(){ + assert_attribute_get_type('', '10px', CSSUnitValue); +}, 'attributeStyleMap.get returns CSSUnitValue for [10px]'); + +test(function(){ + assert_attribute_get_type('', 'calc(10px + 10%)', CSSMathSum); +}, 'attributeStyleMap.get returns CSSMathSum for [calc(10px + 10%)]'); + +test(function(){ + assert_attribute_get_type('', '10px', CSSUnitValue); +}, 'attributeStyleMap.get returns CSSUnitValue for '); + +test(function(){ + assert_attribute_get_type('', '42', CSSUnitValue); +}, 'attributeStyleMap.get returns CSSUnitValue for '); + +test(function(){ + assert_attribute_get_type('', '10%', CSSUnitValue); +}, 'attributeStyleMap.get returns CSSUnitValue for '); + +test(function(){ + assert_attribute_get_type('', '300dpi', CSSUnitValue); +}, 'attributeStyleMap.get returns CSSUnitValue for '); + +test(function(){ + assert_attribute_get_type('