Skip to content
Permalink
Browse files

Update web-platform-tests to revision c2e5b9fbaa17424f05ca2bb04609790…

…a3b61d5c2
  • Loading branch information...
servo-wpt-sync authored and jdm committed Mar 18, 2019
1 parent db7bb2a commit f2c1b70e4a0887f3ae742bac5cb92c6a3cceea01
Showing with 2,798 additions and 850 deletions.
  1. +471 −164 tests/wpt/metadata/MANIFEST.json
  2. +0 −3 tests/wpt/metadata/css/CSS2/css1/c5510-padn-000.xht.ini
  3. +0 −2 tests/wpt/metadata/css/CSS2/text/white-space-003.xht.ini
  4. +0 −2 tests/wpt/metadata/css/CSS2/text/white-space-pre-element-001.xht.ini
  5. +0 −1 tests/wpt/metadata/css/CSS2/text/white-space-processing-040.xht.ini
  6. +0 −9 tests/wpt/metadata/css/css-fonts/variations/at-font-face-font-matching.html.ini
  7. +0 −3 tests/wpt/metadata/css/css-fonts/variations/font-weight-matching.html.ini
  8. +15 −0 tests/wpt/metadata/css/css-transitions/transitions-animatable-properties-01.html.ini
  9. +0 −3 tests/wpt/metadata/css/cssom-view/scroll-behavior-smooth.html.ini
  10. +0 −3 tests/wpt/metadata/custom-elements/custom-element-registry/per-global.html.ini
  11. +0 −6 tests/wpt/metadata/custom-elements/parser/parser-uses-registry-of-owner-document.html.ini
  12. +3 −0 tests/wpt/metadata/domparsing/interfaces.any.js.ini
  13. +5 −0 ...oss-documents/javascript-url-abort/javascript-url-abort-return-value-undefined.tentative.html.ini
  14. +4 −0 ...sers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin-fragment.html.ini
  15. +1 −1 ...history/the-history-interface/{traverse_the_history_5.html.ini → traverse_the_history_4.html.ini}
  16. +0 −6 ...data/html/browsers/history/the-history-interface/traverse_the_history_write_after_load_1.html.ini
  17. +0 −3 tests/wpt/metadata/html/browsers/history/the-location-interface/per-global.window.js.ini
  18. +0 −5 tests/wpt/metadata/html/browsers/history/the-location-interface/reload_document_open_write.html.ini
  19. +7 −0 tests/wpt/metadata/html/browsers/the-window-object/BarProp.window.js.ini
  20. +2 −0 tests/wpt/metadata/html/rendering/non-replaced-elements/tables/table-border-3q.html.ini
  21. +2 −0 tests/wpt/metadata/html/rendering/non-replaced-elements/tables/table-border-3s.html.ini
  22. +10 −0 tests/wpt/metadata/html/semantics/embedded-content/the-img-element/non-active-document.html.ini
  23. +7 −0 tests/wpt/metadata/html/semantics/interactive-elements/the-details-element/toggleEvent.html.ini
  24. +0 −4 tests/wpt/metadata/html/syntax/parsing/DOMContentLoaded-defer.html.ini
  25. +4 −0 ...arkup-insertion/closing-the-input-stream/load-event-after-location-set-during-write.window.js.ini
  26. +5 −0 tests/wpt/metadata/html/webappapis/update-rendering/child-document-raf-order.html.ini
  27. +5 −0 tests/wpt/metadata/resource-timing/TAO-case-insensitive-null-opaque-origin.sub.html.ini
  28. +5 −0 tests/wpt/metadata/resource-timing/TAO-null-opaque-origin.sub.html.ini
  29. +6 −0 tests/wpt/metadata/wasm/webapi/instantiateStreaming.any.js.ini
  30. +1 −0 .../metadata/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-scaling.html.ini
  31. +0 −1 tests/wpt/metadata/workers/semantics/multiple-workers/005.html.ini
  32. +2 −2 tests/wpt/web-platform-tests/.azure-pipelines.yml
  33. +23 −3 tests/wpt/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub.html
  34. +12 −0 tests/wpt/web-platform-tests/animation-worklet/worklet-animation-with-non-ascii-name-ref.html
  35. +59 −0 tests/wpt/web-platform-tests/animation-worklet/worklet-animation-with-non-ascii-name.https.html
  36. +2 −4 tests/wpt/web-platform-tests/common/object-association.js
  37. +1 −1 tests/wpt/web-platform-tests/conformance-checkers/messages.json
  38. +3 −1 tests/wpt/web-platform-tests/css/CSS2/css1/c5510-padn-000-ref.xht
  39. +1 −1 tests/wpt/web-platform-tests/css/CSS2/text/white-space-003.xht
  40. +1 −0 tests/wpt/web-platform-tests/css/CSS2/text/white-space-pre-element-001-ref.xht
  41. +1 −0 tests/wpt/web-platform-tests/css/CSS2/text/white-space-pre-element-001.xht
  42. +1 −1 tests/wpt/web-platform-tests/css/CSS2/text/white-space-processing-040.xht
  43. +6 −8 tests/wpt/web-platform-tests/custom-elements/parser/parser-uses-registry-of-owner-document.html
  44. +0 −10 tests/wpt/web-platform-tests/custom-elements/reactions/Document.html
  45. +73 −3 tests/wpt/web-platform-tests/dom/events/Event-dispatch-on-disabled-elements.html
  46. +10 −1 tests/wpt/web-platform-tests/feature-policy/experimental-features/document-write.tentative.html
  47. +1 −4 ...-tests/html/browsers/history/the-history-interface/traverse_the_history_write_after_load_1-1.html
  48. +2 −3 ...rm-tests/html/browsers/history/the-history-interface/traverse_the_history_write_after_load_1.html
  49. +6 −1 ...web-platform-tests/html/browsers/history/the-location-interface/reload_document_open_write-1.html
  50. +3 −3 ...t/web-platform-tests/html/browsers/history/the-location-interface/reload_document_open_write.html
  51. +59 −0 tests/wpt/web-platform-tests/html/browsers/the-window-object/BarProp.window.js
  52. +0 −29 .../html/browsers/the-window-object/the-windowproxy-object/test-window-proxy-locationbar-manual.html
  53. +0 −29 ...ests/html/browsers/the-window-object/the-windowproxy-object/test-window-proxy-menubar-manual.html
  54. +0 −29 .../html/browsers/the-window-object/the-windowproxy-object/test-window-proxy-personalbar-manual.html
  55. +0 −29 ...s/html/browsers/the-window-object/the-windowproxy-object/test-window-proxy-scrollbars-manual.html
  56. +0 −29 ...ts/html/browsers/the-window-object/the-windowproxy-object/test-window-proxy-statusbar-manual.html
  57. +0 −29 ...ests/html/browsers/the-window-object/the-windowproxy-object/test-window-proxy-toolbar-manual.html
  58. +91 −0 tests/wpt/web-platform-tests/html/rendering/non-replaced-elements/tables/table-border-3-ref.html
  59. +95 −0 tests/wpt/web-platform-tests/html/rendering/non-replaced-elements/tables/table-border-3q.html
  60. +95 −0 tests/wpt/web-platform-tests/html/rendering/non-replaced-elements/tables/table-border-3s.html
  61. +1 −1 ...-tests/html/semantics/embedded-content/media-elements/track/track-element/track-change-event.html
  62. +19 −0 ...ic-markup-insertion/closing-the-input-stream/load-event-after-location-set-during-write.window.js
  63. +1 −1 ...tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/resources/http-refresh.py
  64. +118 −0 tests/wpt/web-platform-tests/html/webappapis/update-rendering/child-document-raf-order.html
  65. +8 −2 tests/wpt/web-platform-tests/interfaces/DOM-Parsing.idl
  66. +3 −4 tests/wpt/web-platform-tests/interfaces/FileAPI.idl
  67. +1 −0 tests/wpt/web-platform-tests/interfaces/IndexedDB.idl
  68. +31 −2 tests/wpt/web-platform-tests/interfaces/clipboard-apis.idl
  69. +1 −1 tests/wpt/web-platform-tests/interfaces/css-layout-api.idl
  70. +3 −16 tests/wpt/web-platform-tests/interfaces/css-pseudo.idl
  71. +1 −3 tests/wpt/web-platform-tests/interfaces/css-regions.idl
  72. +1 −1 tests/wpt/web-platform-tests/interfaces/feature-policy.idl
  73. +2 −62 tests/wpt/web-platform-tests/interfaces/generic-sensor.idl
  74. +3 −1 tests/wpt/web-platform-tests/interfaces/geolocation-sensor.idl
  75. +1 −1 tests/wpt/web-platform-tests/interfaces/keyboard-lock.idl
  76. +4 −57 tests/wpt/web-platform-tests/interfaces/mediacapture-depth.idl
  77. +2 −12 tests/wpt/web-platform-tests/interfaces/mediacapture-streams.idl
  78. +1 −1 tests/wpt/web-platform-tests/interfaces/pointerevents.idl
  79. +6 −6 tests/wpt/web-platform-tests/interfaces/screen-orientation.idl
  80. +26 −4 tests/wpt/web-platform-tests/interfaces/service-workers.idl
  81. +2 −0 tests/wpt/web-platform-tests/interfaces/speech-api.idl
  82. +1 −1 tests/wpt/web-platform-tests/interfaces/touch-events.idl
  83. +5 −8 tests/wpt/web-platform-tests/interfaces/wake-lock.idl
  84. +26 −6 tests/wpt/web-platform-tests/interfaces/webrtc.idl
  85. +2 −1 tests/wpt/web-platform-tests/lint.whitelist
  86. +27 −0 tests/wpt/web-platform-tests/mathml/presentation-markup/fractions/frac-linethickness-004-ref.html
  87. +30 −0 tests/wpt/web-platform-tests/mathml/presentation-markup/fractions/frac-linethickness-004.html
  88. +2 −2 ...-tests/payment-request/PaymentRequestUpdateEvent/updateWith-method-abort-update-manual.https.html
  89. +167 −0 tests/wpt/web-platform-tests/pointerevents/pointerevent_mouse_capture_change_hover.html
  90. +143 −0 tests/wpt/web-platform-tests/pointerevents/pointerevent_mouse_pointercapture_in_frame.html
  91. +55 −0 tests/wpt/web-platform-tests/pointerevents/pointerevent_mouse_pointercapture_inactivate_pointer.html
  92. +9 −0 tests/wpt/web-platform-tests/pointerevents/resources/pointerevent_mouse_pointercapture-iframe.html
  93. +10 −0 ...rm-tests/pointerevents/resources/pointerevent_mouse_pointercapture_inactivate_pointer-iframe.html
  94. +42 −0 tests/wpt/web-platform-tests/resource-timing/TAO-case-insensitive-null-opaque-origin.sub.html
  95. +42 −0 tests/wpt/web-platform-tests/resource-timing/TAO-null-opaque-origin.sub.html
  96. +4 −1 tests/wpt/web-platform-tests/resource-timing/resources/TAOResponse.py
  97. +3 −0 tests/wpt/web-platform-tests/speech-api/SpeechSynthesisEvent-constructor.html
  98. +41 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-001-ref.svg
  99. +60 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-001.svg
  100. +47 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-002-ref.svg
  101. +65 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-002.svg
  102. +47 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-003-ref.svg
  103. +66 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-003.svg
  104. +36 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-102-ref.svg
  105. +54 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-102.svg
  106. +41 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-201-ref.svg
  107. +56 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-201.svg
  108. +41 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-202-ref.svg
  109. +56 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-202.svg
  110. +47 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-203-ref.svg
  111. +62 −0 tests/wpt/web-platform-tests/svg/text/reftests/text-text-anchor-203.svg
  112. +1 −1 tests/wpt/web-platform-tests/tools/ci/azure/affected_tests.yml
  113. +1 −15 tests/wpt/web-platform-tests/tools/manifest/item.py
  114. +16 −5 tests/wpt/web-platform-tests/tools/manifest/manifest.py
  115. +2 −0 tests/wpt/web-platform-tests/tools/manifest/sourcefile.py
  116. +1 −26 tests/wpt/web-platform-tests/tools/manifest/tests/test_item.py
  117. +15 −17 tests/wpt/web-platform-tests/tools/manifest/vcs.py
  118. +16 −0 tests/wpt/web-platform-tests/wake-lock/idlharness.https.any.js
  119. +0 −31 tests/wpt/web-platform-tests/wake-lock/idlharness.https.window.js
  120. +0 −20 tests/wpt/web-platform-tests/wake-lock/wakelock-api.https.html
  121. +17 −9 tests/wpt/web-platform-tests/wake-lock/wakelock-applicability-manual.https.html
  122. +0 −20 tests/wpt/web-platform-tests/wake-lock/wakelock-cancel-twice.https.html
  123. +7 −3 tests/wpt/web-platform-tests/wake-lock/wakelock-document-hidden.https.html
  124. +1 −1 tests/wpt/web-platform-tests/wake-lock/wakelock-insecure-context.html
  125. +6 −3 tests/wpt/web-platform-tests/wake-lock/wakelock-onactivechange.https.html
  126. +0 −13 tests/wpt/web-platform-tests/wake-lock/wakelock-promise.https.html
  127. +7 −5 tests/wpt/web-platform-tests/wake-lock/wakelock-state-is-global.https.html
  128. +19 −9 tests/wpt/web-platform-tests/wake-lock/wakelock-type.https.html
  129. +0 −15 tests/wpt/web-platform-tests/wake-lock/wakelockrequest-is-independent.https.html
  130. +30 −0 tests/wpt/web-platform-tests/wasm/webapi/instantiateStreaming.any.js
  131. +1 −1 tests/wpt/web-platform-tests/web-nfc/resources/nfc_help.js
  132. +8 −21 tests/wpt/web-platform-tests/webrtc/RTCPeerConnection-setRemoteDescription-tracks.https.html
  133. +2 −2 tests/wpt/web-platform-tests/webrtc/RTCRtpTransceiver.https.html
  134. +10 −0 tests/wpt/web-platform-tests/xhr/resources/auth10/auth.py
  135. +10 −0 tests/wpt/web-platform-tests/xhr/resources/auth11/auth.py
  136. +1 −1 tests/wpt/web-platform-tests/xhr/send-authentication-basic-cors-not-enabled.htm
  137. +2 −2 tests/wpt/web-platform-tests/xhr/send-authentication-basic-repeat-no-args.htm
  138. +3 −0 tests/wpt/webgl/meta/conformance/textures/misc/texture-upload-size.html.ini

Large diffs are not rendered by default.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -1,4 +1,3 @@
[white-space-processing-040.xht]
expected:
if os == "linux": FAIL
if not debug and (os == "mac") and (version == "OS X 10.11.6") and (processor == "x86_64") and (bits == 64): FAIL
@@ -44,15 +44,9 @@
[Matching font-weight: '501' should prefer '503 520' over '500']
expected: FAIL

[Matching font-weight: '501' should prefer '500' over '450 460']
expected: FAIL

[Matching font-weight: '501' should prefer '450 460' over '390 410']
expected: FAIL

[Matching font-weight: '399' should prefer '340 360' over '200 300']
expected: FAIL

[Matching font-weight: '399' should prefer '200 300' over '400']
expected: FAIL

@@ -305,9 +299,6 @@
[Matching font-style: 'oblique 21deg' should prefer 'oblique 40deg 50deg' over 'oblique 20deg']
expected: FAIL

[Matching font-style: 'oblique 0deg' should prefer 'oblique 5deg' over 'oblique 15deg 20deg']
expected: FAIL

[Matching font-style: 'oblique 0deg' should prefer 'oblique 40deg 50deg' over 'italic']
expected: FAIL

@@ -1,7 +1,4 @@
[font-weight-matching.html]
[Test @font-face matching for weight 400]
expected: FAIL

[Test @font-face matching for weight 470]
expected: FAIL

@@ -74,3 +74,18 @@
[opacity end]
expected: FAIL

[height end]
expected: FAIL

[border-top-width end]
expected: FAIL

[border-left-width end]
expected: FAIL

[border-bottom-width end]
expected: FAIL

[border-right-width end]
expected: FAIL

@@ -6,6 +6,3 @@
[Instant scrolling while doing history navigation.]
expected: FAIL

[Smooth scrolling while doing history navigation.]
expected: FAIL

@@ -3,6 +3,3 @@
[Navigating from the initial about:blank must not replace window.customElements]
expected: FAIL

[document.open() must replace window.customElements]
expected: FAIL

@@ -6,9 +6,3 @@
[HTML parser must use the registry of window.document in a document created by document.implementation.createHTMLDocument()]
expected: FAIL

[document.write() must not instantiate a custom element without a defined insertion point]
expected: FAIL

[document.writeln() must not instantiate a custom element without a defined insertion point]
expected: FAIL

@@ -38,6 +38,9 @@
[XMLSerializer interface: new XMLSerializer() must inherit property "serializeToString(Node)" with the proper type]
expected: FAIL

[ShadowRoot interface: attribute innerHTML]
expected: FAIL


[interfaces.any.worker.html]
[interfaces]
@@ -0,0 +1,5 @@
[javascript-url-abort-return-value-undefined.tentative.html]
expected: TIMEOUT
[Not aborting fetch for javascript:undefined navigation]
expected: TIMEOUT

@@ -0,0 +1,4 @@
[navigation-unload-same-origin-fragment.html]
[Tests that a fragment navigation in the unload handler will not block the initial navigation]
expected: FAIL

@@ -1,4 +1,4 @@
[traverse_the_history_5.html]
[traverse_the_history_4.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

This file was deleted.

Oops, something went wrong.
@@ -3,6 +3,3 @@
[Navigating from the initial about:blank must not replace window.location]
expected: FAIL

[document.open() must replace window.location]
expected: FAIL

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,7 @@
[BarProp.window.html]
[BarProp objects of an auxiliary Window]
expected: FAIL

[BarBrop objects of a nested Window]
expected: FAIL

@@ -0,0 +1,2 @@
[table-border-3q.html]
expected: FAIL
@@ -0,0 +1,2 @@
[table-border-3s.html]
expected: FAIL
@@ -0,0 +1,10 @@
[non-active-document.html]
[DOMParser]
expected: FAIL

[createHTMLDocument]
expected: FAIL

[<template>]
expected: FAIL

@@ -0,0 +1,7 @@
[toggleEvent.html]
[Calling open twice on 'details' fires only one toggle event]
expected: FAIL

[Setting open=true to opened 'details' element should not fire a toggle event at the 'details' element]
expected: FAIL

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,4 @@
[load-event-after-location-set-during-write.window.html]
[Setting location from document.write() call should not trigger load event until that load completes]
expected: FAIL

@@ -0,0 +1,5 @@
[child-document-raf-order.html]
expected: TIMEOUT
[Ordering of steps in "Update the Rendering" - child document requestAnimationFrame order]
expected: TIMEOUT

@@ -0,0 +1,5 @@
[TAO-case-insensitive-null-opaque-origin.sub.html]
expected: TIMEOUT
[Test case-insensitive null TAO value with opaque origins]
expected: NOTRUN

@@ -0,0 +1,5 @@
[TAO-null-opaque-origin.sub.html]
expected: TIMEOUT
[Test null TAO value with opaque origins]
expected: NOTRUN

@@ -23,6 +23,9 @@
[No imports]
expected: FAIL

[Synchronous options handling]
expected: FAIL


[instantiateStreaming.any.serviceworker.html]
[instantiateStreaming]
@@ -59,3 +62,6 @@
[No imports]
expected: FAIL

[Synchronous options handling]
expected: FAIL

@@ -1,4 +1,5 @@
[realtimeanalyser-fft-scaling.html]
expected: TIMEOUT
[X 2048-point FFT peak position is not equal to 64. Got 0.]
expected: FAIL

@@ -1,5 +1,4 @@
[005.html]
expected: ERROR
[dedicated worker in shared worker in dedicated worker]
expected: FAIL

@@ -183,7 +183,7 @@ jobs:
- template: tools/ci/azure/install_certs.yml
- template: tools/ci/azure/update_hosts.yml
- template: tools/ci/azure/update_manifest.yml
- script: python ./wpt run --no-manifest-update --no-fail-on-unexpected --install-fonts --test-types reftest testharness --this-chunk $(System.JobPositionInPhase) --total-chunks $(System.TotalJobsInPhase) --chunk-type hash --log-tbpl - --log-tbpl-level info --log-wptreport $(Build.ArtifactStagingDirectory)/wpt_report_$(System.JobPositionInPhase).json --log-wptscreenshot $(Build.ArtifactStagingDirectory)/wpt_screenshot_$(System.JobPositionInPhase).txt edge_webdriver
- script: python ./wpt run --no-manifest-update --no-fail-on-unexpected --install-fonts --test-types reftest testharness --this-chunk $(System.JobPositionInPhase) --total-chunks $(System.TotalJobsInPhase) --chunk-type hash --log-tbpl - --log-tbpl-level info --log-wptreport $(Build.ArtifactStagingDirectory)/wpt_report_$(System.JobPositionInPhase).json edge_webdriver
displayName: 'Run tests'
- task: PublishBuildArtifacts@1
displayName: 'Publish results'
@@ -217,7 +217,7 @@ jobs:
- template: tools/ci/azure/install_safari.yml
- template: tools/ci/azure/update_hosts.yml
- template: tools/ci/azure/update_manifest.yml
- script: no_proxy='*' ./wpt run --no-manifest-update --no-restart-on-unexpected --no-fail-on-unexpected --this-chunk=$(System.JobPositionInPhase) --total-chunks=$(System.TotalJobsInPhase) --chunk-type hash --log-wptreport $(Build.ArtifactStagingDirectory)/wpt_report_$(System.JobPositionInPhase).json --log-wptscreenshot $(Build.ArtifactStagingDirectory)/wpt_screenshot_$(System.JobPositionInPhase).txt --channel preview safari
- script: no_proxy='*' ./wpt run --no-manifest-update --no-restart-on-unexpected --no-fail-on-unexpected --this-chunk=$(System.JobPositionInPhase) --total-chunks=$(System.TotalJobsInPhase) --chunk-type hash --log-wptreport $(Build.ArtifactStagingDirectory)/wpt_report_$(System.JobPositionInPhase).json --channel preview safari
displayName: 'Run tests'
- task: PublishBuildArtifacts@1
displayName: 'Publish results'
@@ -9,14 +9,28 @@
<script>
const crossOriginImageUrl = "http://{{domains[www1]}}:{{ports[http][0]}}/images/red.png";
function assert_origin_unclean(bitmap) {
function assert_origin_unclean_getImageData(bitmap) {
const context = document.createElement("canvas").getContext("2d");
context.drawImage(bitmap, 0, 0);
assert_throws("SecurityError", () => {
context.getImageData(0, 0, 1, 1);
});
}
function assert_origin_unclean_drawImage(bitmap) {
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
ctx.drawImage(bitmap, 0, 0);
assert_throws('SecurityError', () => canvas.toDataURL());
}
function assert_origin_unclean_transferFromImageBitmap(bitmap) {
var canvas = document.createElement('canvas');
var ctx = canvas.getContext('bitmaprenderer');
ctx.transferFromImageBitmap(bitmap);
assert_throws('SecurityError', () => canvas.toDataURL());
}
function makeImage() {
return new Promise((resolve, reject) => {
const image = new Image();
@@ -104,7 +118,13 @@
for (let { name, factory } of arguments) {
promise_test(function() {
return factory().then(createImageBitmap).then(assert_origin_unclean);
}, name);
return factory().then(createImageBitmap).then(assert_origin_unclean_getImageData);
}, `${name}: origin unclear getImageData`);
promise_test(function() {
return factory().then(createImageBitmap).then(assert_origin_unclean_drawImage);
}, `${name}: origin unclear 2dContext.drawImage`);
promise_test(function() {
return factory().then(createImageBitmap).then(assert_origin_unclean_transferFromImageBitmap);
}, `${name}: origin unclear bitmaprenderer.transferFromImageBitmap`);
}
</script>
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<title>Reference for WorkletAnimation name should accept non-ASCII characters</title>
<style>
.box {
width: 100px;
height: 100px;
background-color: green;
}
</style>

<div style="transform: translateX(50px);" class="box"></div>
<div style="transform: translateX(150px);" class="box"></div>
@@ -0,0 +1,59 @@
<html class="reftest-wait">
<title>WorkletAnimation name should accept non-ASCII characters</title>
<link rel="help" href="https://drafts.css-houdini.org/css-animationworklet/">
<meta name="assert" content="Worklet Animation name should accept non-ASCII characters">
<link rel="match" href="worklet-animation-with-non-ascii-name-ref.html">

<script src="/web-animations/testcommon.js"></script>
<script src="/common/reftest-wait.js"></script>
<script src="common.js"></script>

<style>
.box {
width: 100px;
height: 100px;
background-color: green;
}
</style>

<div id="t0" class="box"></div>
<div id="t1" class="box"></div>
<script id="visual_update" type="text/worklet">
registerAnimator('bob', class {
animate(currentTime, effect) {
effect.localTime = 250;
}
});
registerAnimator('東京', class {
animate(currentTime, effect) {
effect.localTime = 750;
}
});
</script>
<script>
runInAnimationWorklet(
document.getElementById('visual_update').textContent
).then(() => {
const keyframes = [
{transform: 'translateX(0)' },
{transform: 'translateX(200px)' }
];
const options = {
duration: 1000
};
const $t0 = document.getElementById('t0');
const $t0_effect = new KeyframeEffect($t0, keyframes, options);
const $t0_animation = new WorkletAnimation('bob', $t0_effect);
const $t1 = document.getElementById('t1');
const $t1_effect = new KeyframeEffect($t1, keyframes, options);
const $t1_animation = new WorkletAnimation('東京', $t1_effect);
$t0_animation.play();
$t1_animation.play();
waitForAsyncAnimationFrames(1).then(_ => {
takeScreenshot();
});
});
</script>
@@ -41,9 +41,7 @@ window.testIsPerWindow = propertyName => {
iframe.src = "/common/blank.html";
}, `Navigating from the initial about:blank must not replace window.${propertyName}`);

// Note: document.open()'s spec doesn't match most browsers; see https://github.com/whatwg/html/issues/1698.
// However, as explained in https://github.com/whatwg/html/issues/1698#issuecomment-298748641, even an updated spec
// will probably still reset Window-associated properties.
// Per spec, document.open() should not change any of the Window state.
async_test(t => {
const iframe = document.createElement("iframe");

@@ -55,7 +53,7 @@ window.testIsPerWindow = propertyName => {
frame.document.open();

const after = frame[propertyName];
assert_not_equals(after, before);
assert_equals(after, before);

frame.document.close();
});
@@ -1625,7 +1625,7 @@
"html/elements/picture/object-srcset-novalid.html": "Attribute \u201csrcset\u201d not allowed on element \u201cobject\u201d at this point.",
"html/elements/picture/parent-dl-novalid.html": "Element \u201cpicture\u201d not allowed as child of element \u201cdl\u201d in this context. (Suppressing further errors from this subtree.)",
"html/elements/picture/parent-hgroup-novalid.html": "Element \u201cpicture\u201d not allowed as child of element \u201chgroup\u201d in this context. (Suppressing further errors from this subtree.)",
"html/elements/picture/parent-noscript-in-head-novalid.html": "Bad start tag in \u201cpicture\u201d in \u201chead\u201d.",
"html/elements/picture/parent-noscript-in-head-novalid.html": "Bad start tag in \u201cpicture\u201d in \u201cnoscript\u201d in \u201chead\u201d.",
"html/elements/picture/parent-ul-novalid.html": "Element \u201cpicture\u201d not allowed as child of element \u201cul\u201d in this context. (Suppressing further errors from this subtree.)",
"html/elements/picture/picture-align-novalid.html": "Attribute \u201calign\u201d not allowed on element \u201cpicture\u201d at this point.",
"html/elements/picture/picture-alt-novalid.html": "Attribute \u201calt\u201d not allowed on element \u201cpicture\u201d at this point.",
Oops, something went wrong.

0 comments on commit f2c1b70

Please sign in to comment.
You can’t perform that action at this time.