Skip to content
Permalink
Browse files

Update web-platform-tests to revision 70df598b894bfa4a7122720608a3110…

…cb25ceb42
  • Loading branch information...
servo-wpt-sync committed Feb 23, 2019
1 parent 7f495fd commit 4334a9c855144a93a1df6347fe9aa29e544a2e7f
Showing with 3,427 additions and 314 deletions.
  1. +696 −34 tests/wpt/metadata/MANIFEST.json
  2. +0 −1 tests/wpt/metadata/css/css-paint-api/parse-input-arguments-002.https.html.ini
  3. +0 −1 tests/wpt/metadata/css/css-paint-api/parse-input-arguments-003.https.html.ini
  4. +0 −1 tests/wpt/metadata/css/css-paint-api/parse-input-arguments-005.https.html.ini
  5. +0 −1 tests/wpt/metadata/css/css-paint-api/parse-input-arguments-006.https.html.ini
  6. +0 −1 tests/wpt/metadata/css/css-paint-api/parse-input-arguments-008.https.html.ini
  7. +0 −1 tests/wpt/metadata/css/css-paint-api/parse-input-arguments-009.https.html.ini
  8. +0 −1 tests/wpt/metadata/css/css-paint-api/parse-input-arguments-010.https.html.ini
  9. +0 −1 tests/wpt/metadata/css/css-paint-api/parse-input-arguments-011.https.html.ini
  10. +0 −1 tests/wpt/metadata/css/css-paint-api/parse-input-arguments-012.https.html.ini
  11. +0 −1 tests/wpt/metadata/css/css-paint-api/parse-input-arguments-016.https.html.ini
  12. +43 −0 tests/wpt/metadata/custom-elements/reactions/HTMLAreaElement.html.ini
  13. +25 −0 tests/wpt/metadata/custom-elements/reactions/HTMLEmbedElement.html.ini
  14. +7 −0 tests/wpt/metadata/custom-elements/reactions/HTMLFieldSetElement.html.ini
  15. +19 −0 tests/wpt/metadata/custom-elements/reactions/HTMLImageElement.html.ini
  16. +56 −8 tests/wpt/metadata/encoding/single-byte-decoder.html.ini
  17. +2 −14 tests/wpt/metadata/fetch/content-type/response.window.js.ini
  18. +0 −3 tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini
  19. +4 −0 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini
  20. +4 −0 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini
  21. +4 −0 tests/wpt/metadata/html/browsers/the-window-object/focus.window.js.ini
  22. +4 −0 tests/wpt/metadata/html/browsers/windows/embedded-opener-remove-frame.html.ini
  23. +0 −10 tests/wpt/metadata/html/semantics/embedded-content/the-img-element/non-active-document.html.ini
  24. +3 −0 tests/wpt/metadata/performance-timeline/webtiming-resolution.any.js.ini
  25. +1 −0 tests/wpt/metadata/workers/semantics/multiple-workers/005.html.ini
  26. +2 −1 tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-002.https.html
  27. +2 −1 tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-003.https.html
  28. +2 −1 tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-005.https.html
  29. +2 −1 tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-006.https.html
  30. +2 −1 tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-008.https.html
  31. +2 −1 tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-009.https.html
  32. +2 −1 tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-010.https.html
  33. +2 −1 tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-011.https.html
  34. +2 −1 tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-012.https.html
  35. +2 −1 tests/wpt/web-platform-tests/css/css-paint-api/parse-input-arguments-016.https.html
  36. +17 −0 ...form-tests/css/css-position/static-position/inline-level-absolute-in-block-level-context-001.html
  37. +17 −0 ...form-tests/css/css-position/static-position/inline-level-absolute-in-block-level-context-002.html
  38. +17 −0 ...form-tests/css/css-position/static-position/inline-level-absolute-in-block-level-context-003.html
  39. +17 −0 ...form-tests/css/css-position/static-position/inline-level-absolute-in-block-level-context-004.html
  40. +17 −0 ...form-tests/css/css-position/static-position/inline-level-absolute-in-block-level-context-005.html
  41. +17 −0 ...form-tests/css/css-position/static-position/inline-level-absolute-in-block-level-context-006.html
  42. +17 −0 ...form-tests/css/css-position/static-position/inline-level-absolute-in-block-level-context-007.html
  43. +17 −0 ...form-tests/css/css-position/static-position/inline-level-absolute-in-block-level-context-008.html
  44. +17 −0 ...form-tests/css/css-position/static-position/inline-level-absolute-in-block-level-context-009.html
  45. +17 −0 ...form-tests/css/css-position/static-position/inline-level-absolute-in-block-level-context-010.html
  46. +17 −0 ...form-tests/css/css-position/static-position/inline-level-absolute-in-block-level-context-011.html
  47. +17 −0 ...form-tests/css/css-position/static-position/inline-level-absolute-in-block-level-context-012.html
  48. +35 −0 tests/wpt/web-platform-tests/css/cssom/CSSStyleSheet-constructable.html
  49. +69 −0 tests/wpt/web-platform-tests/custom-elements/reactions/HTMLAreaElement.html
  50. +58 −53 tests/wpt/web-platform-tests/custom-elements/reactions/HTMLButtonElement.html
  51. +35 −0 tests/wpt/web-platform-tests/custom-elements/reactions/HTMLEmbedElement.html
  52. +32 −0 tests/wpt/web-platform-tests/custom-elements/reactions/HTMLFieldSetElement.html
  53. +89 −0 tests/wpt/web-platform-tests/custom-elements/reactions/HTMLImageElement.html
  54. +46 −0 tests/wpt/web-platform-tests/custom-elements/reactions/resources/reactions.js
  55. +25 −0 tests/wpt/web-platform-tests/docs/_running-tests/custom-runner.md
  56. +114 −0 tests/wpt/web-platform-tests/docs/_running-tests/from-local-system.md
  57. +26 −0 tests/wpt/web-platform-tests/docs/_running-tests/from-web.md
  58. +10 −72 tests/wpt/web-platform-tests/docs/_running-tests/index.md
  59. +6 −1 tests/wpt/web-platform-tests/docs/_writing-tests/h2tests.md
  60. +0 −86 tests/wpt/web-platform-tests/docs/introduction.md
  61. +15 −0 tests/wpt/web-platform-tests/html/browsers/the-window-object/focus.window.js
  62. +46 −0 tests/wpt/web-platform-tests/html/browsers/windows/embedded-opener-remove-frame.html
  63. +1 −1 tests/wpt/web-platform-tests/mathml/META.yml
  64. +2 −8 tests/wpt/web-platform-tests/mathml/README.md
  65. +6 −1 tests/wpt/web-platform-tests/network-error-logging/support/nel.sub.js
  66. +1 −1 tests/wpt/web-platform-tests/network-error-logging/support/pass.png.sub.headers
  67. 0 ...latform-tests/orientation-event/{devicemotionevent-init.html → devicemotionevent-init.https.html}
  68. 0 ...ientation-event/{deviceorientationabsoluteevent.html → deviceorientationabsoluteevent.https.html}
  69. 0 ...sts/orientation-event/{deviceorientationevent-init.html → deviceorientationevent-init.https.html}
  70. 0 ...sts/orientation-event/{ondeviceorientationabsolute.html → ondeviceorientationabsolute.https.html}
  71. +64 −0 ...sts/signed-exchange/reporting/sxg-reporting-navigation-cert_fetch_error-downgraded.tentative.html
  72. +76 −0 ...platform-tests/signed-exchange/reporting/sxg-reporting-navigation-cert_fetch_error.tentative.html
  73. +65 −0 ...sts/signed-exchange/reporting/sxg-reporting-navigation-cert_parse_error-downgraded.tentative.html
  74. +76 −0 ...platform-tests/signed-exchange/reporting/sxg-reporting-navigation-cert_parse_error.tentative.html
  75. +65 −0 ...ned-exchange/reporting/sxg-reporting-navigation-cert_verification_error-downgraded.tentative.html
  76. +60 −0 ...m-tests/signed-exchange/reporting/sxg-reporting-navigation-cert_verification_error.tentative.html
  77. +69 −0 ...ts/signed-exchange/reporting/sxg-reporting-navigation-failed-zero-success-fraction.tentative.html
  78. +61 −0 ...-tests/signed-exchange/reporting/sxg-reporting-navigation-invalid_integrity_header.tentative.html
  79. +67 −0 ...wpt/web-platform-tests/signed-exchange/reporting/sxg-reporting-navigation-mi_error.tentative.html
  80. +64 −0 .../web-platform-tests/signed-exchange/reporting/sxg-reporting-navigation-parse_error.tentative.html
  81. +65 −0 ...xchange/reporting/sxg-reporting-navigation-signature_verification_error-downgraded.tentative.html
  82. +60 −0 ...ts/signed-exchange/reporting/sxg-reporting-navigation-signature_verification_error.tentative.html
  83. +62 −0 ...tests/signed-exchange/reporting/sxg-reporting-prefetch-cert_fetch_error-downgraded.tentative.html
  84. +73 −0 ...b-platform-tests/signed-exchange/reporting/sxg-reporting-prefetch-cert_fetch_error.tentative.html
  85. +63 −0 ...tests/signed-exchange/reporting/sxg-reporting-prefetch-cert_parse_error-downgraded.tentative.html
  86. +73 −0 ...b-platform-tests/signed-exchange/reporting/sxg-reporting-prefetch-cert_parse_error.tentative.html
  87. +62 −0 ...igned-exchange/reporting/sxg-reporting-prefetch-cert_verification_error-downgraded.tentative.html
  88. +57 −0 ...orm-tests/signed-exchange/reporting/sxg-reporting-prefetch-cert_verification_error.tentative.html
  89. +67 −0 ...ests/signed-exchange/reporting/sxg-reporting-prefetch-failed-zero-success-feaction.tentative.html
  90. +58 −0 ...rm-tests/signed-exchange/reporting/sxg-reporting-prefetch-invalid_integrity_header.tentative.html
  91. +58 −0 ...s/wpt/web-platform-tests/signed-exchange/reporting/sxg-reporting-prefetch-mi_error.tentative.html
  92. +54 −0 ...pt/web-platform-tests/signed-exchange/reporting/sxg-reporting-prefetch-parse_error.tentative.html
  93. +62 −0 ...-exchange/reporting/sxg-reporting-prefetch-signature_verification_error-downgraded.tentative.html
  94. +57 −0 ...ests/signed-exchange/reporting/sxg-reporting-prefetch-signature_verification_error.tentative.html
  95. +130 −0 tests/wpt/web-platform-tests/signed-exchange/resources/generate-test-sxgs.sh
  96. +1 −0 tests/wpt/web-platform-tests/signed-exchange/resources/invalid-cert-format.cbor
  97. +1 −0 tests/wpt/web-platform-tests/signed-exchange/resources/invalid-cert-format.cbor.headers
  98. BIN tests/wpt/web-platform-tests/signed-exchange/resources/sxg/sxg-cert-not-found-on-alt-origin.sxg
  99. BIN tests/wpt/web-platform-tests/signed-exchange/resources/sxg/sxg-cert-not-found.sxg
  100. BIN tests/wpt/web-platform-tests/signed-exchange/resources/sxg/sxg-invalid-cert-format-on-alt-origin.sxg
  101. BIN tests/wpt/web-platform-tests/signed-exchange/resources/sxg/sxg-invalid-cert-format.sxg
  102. BIN ...t/web-platform-tests/signed-exchange/resources/sxg/sxg-invalid-cert-sha256-cert-on-alt-origin.sxg
  103. BIN tests/wpt/web-platform-tests/signed-exchange/resources/sxg/sxg-invalid-cert-sha256.sxg
  104. +1 −0 tests/wpt/web-platform-tests/signed-exchange/resources/sxg/sxg-invalid-format.sxg
  105. BIN tests/wpt/web-platform-tests/signed-exchange/resources/sxg/sxg-invalid-integrity-header.sxg
  106. BIN tests/wpt/web-platform-tests/signed-exchange/resources/sxg/sxg-location-cert-on-alt-origin.sxg
  107. BIN ...-platform-tests/signed-exchange/resources/sxg/sxg-validity-period-too-long-cert-on-alt-origin.sxg
  108. BIN tests/wpt/web-platform-tests/signed-exchange/resources/sxg/sxg-validity-period-too-long.sxg
  109. +16 −0 tests/wpt/web-platform-tests/svg/pservers/reftests/radialgradient-fully-overlapping.svg
  110. +2 −2 tests/wpt/web-platform-tests/tools/ci/azure/fyi_hook.yml
  111. +30 −0 tests/wpt/web-platform-tests/webrtc/RTCPeerConnection-onsignalingstatechanged.https.html

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,4 +1,3 @@
[parse-input-arguments-002.https.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/17852
@@ -1,4 +1,3 @@
[parse-input-arguments-003.https.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/17852
@@ -1,4 +1,3 @@
[parse-input-arguments-005.https.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/17852
@@ -1,4 +1,3 @@
[parse-input-arguments-006.https.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/17852
@@ -1,4 +1,3 @@
[parse-input-arguments-008.https.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/17852
@@ -1,4 +1,3 @@
[parse-input-arguments-009.https.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/17852
@@ -1,4 +1,3 @@
[parse-input-arguments-010.https.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/17852
@@ -1,4 +1,3 @@
[parse-input-arguments-011.https.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/17852
@@ -1,4 +1,3 @@
[parse-input-arguments-012.https.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/17852
@@ -1,4 +1,3 @@
[parse-input-arguments-016.https.html]
type: reftest
expected: FAIL
bug: https://github.com/servo/servo/issues/17852
@@ -0,0 +1,43 @@
[HTMLAreaElement.html]
[alt on HTMLAreaElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[shape on HTMLAreaElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[referrerPolicy on HTMLAreaElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[download on HTMLAreaElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL

[coords on HTMLAreaElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL

[alt on HTMLAreaElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL

[rel on HTMLAreaElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[rel on HTMLAreaElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL

[ping on HTMLAreaElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[ping on HTMLAreaElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL

[referrerPolicy on HTMLAreaElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL

[download on HTMLAreaElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[coords on HTMLAreaElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[shape on HTMLAreaElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL

@@ -0,0 +1,25 @@
[HTMLEmbedElement.html]
[src on HTMLEmbedElement must enqueue an attributeChanged reaction when adding src content attribute]
expected: FAIL

[height on HTMLEmbedElement must enqueue an attributeChanged reaction when adding height content attribute]
expected: FAIL

[type on HTMLEmbedElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[type on HTMLEmbedElement must enqueue an attributeChanged reaction when adding type content attribute]
expected: FAIL

[src on HTMLEmbedElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[width on HTMLEmbedElement must enqueue an attributeChanged reaction when adding width content attribute]
expected: FAIL

[width on HTMLEmbedElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[height on HTMLEmbedElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

@@ -0,0 +1,7 @@
[HTMLFieldSetElement.html]
[name on HTMLFieldSetElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL

[name on HTMLFieldSetElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

@@ -0,0 +1,19 @@
[HTMLImageElement.html]
[referrerPolicy on HTMLImageElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[referrerPolicy on HTMLImageElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL

[decoding on HTMLImageElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[decoding on HTMLImageElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL

[sizes on HTMLImageElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

[sizes on HTMLImageElement must enqueue an attributeChanged reaction when adding a new attribute]
expected: FAIL

@@ -32,7 +32,7 @@


[single-byte-decoder.html?XMLHttpRequest]
expected: CRASH
expected: TIMEOUT
[ISO-8859-2: iso_8859-2:1987 (XMLHttpRequest)]
expected: FAIL

@@ -55,12 +55,9 @@
expected: FAIL

[windows-1252: iso_8859-1:1987 (XMLHttpRequest)]
expected: FAIL

[windows-1254: iso_8859-9:1989 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: iso_8859-9 (XMLHttpRequest)]
[windows-1254: iso_8859-9:1989 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: windows-1254 (XMLHttpRequest)]
@@ -87,9 +84,6 @@
[windows-1255: cp1255 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1257: windows-1257 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: iso88599 (XMLHttpRequest)]
expected: TIMEOUT

@@ -111,5 +105,59 @@
[x-mac-cyrillic: x-mac-cyrillic (XMLHttpRequest)]
expected: TIMEOUT

[windows-1258: cp1258 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1253: x-cp1253 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1256: cp1256 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1252: iso88591 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: iso-8859-9 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1252: iso_8859-1 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1252: latin1 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: csisolatin5 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1257: x-cp1257 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: cp1254 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1253: windows-1253 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1252: iso8859-1 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: iso-ir-148 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1252: l1 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1252: iso-8859-1 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1252: iso-ir-100 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1252: us-ascii (XMLHttpRequest)]
expected: TIMEOUT

[windows-1256: windows-1256 (XMLHttpRequest)]
expected: TIMEOUT


[single-byte-decoder.html?TextDecoder]
@@ -312,24 +312,12 @@
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;x=" text/plain]
expected: FAIL

[<iframe>: combined response Content-Type: */* text/html]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;" text/plain]
expected: FAIL

[<iframe>: separate response Content-Type: */* text/html]
expected: FAIL

[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
[<iframe>: combined response Content-Type: text/html;x=" text/plain]
expected: FAIL

[<iframe>: combined response Content-Type: text/html;x=" text/plain]
[<iframe>: separate response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL

@@ -11,6 +11,3 @@
[X-Content-Type-Options%3A%20nosniff%0C]
expected: FAIL

[X-Content-Type-Options%3A%20%22nosniFF%22]
expected: FAIL

@@ -0,0 +1,4 @@
[traverse_the_history_1.html]
[Multiple history traversals from the same task]
expected: FAIL

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

@@ -0,0 +1,4 @@
[focus.window.html]
[focus]
expected: FAIL

@@ -0,0 +1,4 @@
[embedded-opener-remove-frame.html]
[opener and "removed" embedded documents]
expected: FAIL

This file was deleted.

Oops, something went wrong.
@@ -12,3 +12,6 @@
[Verifies the resolution of entry.startTime is at least 5 microseconds.]
expected: TIMEOUT

[Verifies the resolution of performance.now() is at least 5 microseconds.]
expected: FAIL

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

@@ -25,7 +25,8 @@
}
});
} catch(ex) {
if (ex.name == "TypeError" && ex.message == "Failed to execute 'registerPaint' on 'PaintWorkletGlobalScope': The provided value cannot be converted to a sequence.")
// 'inputArguments' property is a string, not a sequence.
if (ex.name == 'TypeError')
testsPassed = true;
}
@@ -25,7 +25,8 @@
}
});
} catch(ex) {
if (ex.name == "TypeError" && ex.message == "Failed to execute 'registerPaint' on 'PaintWorkletGlobalScope': Invalid argument types.")
// 'non-sense-type' is not a proper name of CSS properties.
if (ex.name == 'TypeError')
testsPassed = true;
}
@@ -22,7 +22,8 @@
registerPaint('foo', class { paint() { } });
registerPaint('foo', class { paint() { } });
} catch(ex) {
if (ex.name == "NotSupportedError" && ex.message == "Failed to execute 'registerPaint' on 'PaintWorkletGlobalScope': A class with name:'foo' is already registered.")
// 'foo' gets registered twice.
if (ex.name == 'InvalidModificationError')
testsPassed = true;
}
@@ -21,7 +21,8 @@
try {
registerPaint('', class { });
} catch(ex) {
if (ex.name == 'TypeError' && ex.message == "Failed to execute 'registerPaint' on 'PaintWorkletGlobalScope': The empty string is not a valid name.")
// The empty string is not a valid name.
if (ex.name == 'TypeError')
testsPassed = true;
}
@@ -25,7 +25,8 @@
}
});
} catch(ex) {
if (ex.name == 'TypeError' && ex.message == "Failed to execute 'registerPaint' on 'PaintWorkletGlobalScope': The provided value cannot be converted to a sequence.")
// 'inputProperties' property is 42, not a sequence<DOMString>.
if (ex.name == 'TypeError')
testsPassed = true;
}
@@ -23,7 +23,8 @@
a.prototype = undefined;
registerPaint('foo5', a);
} catch(ex) {
if (ex.name == 'TypeError' && ex.message == "Failed to execute 'registerPaint' on 'PaintWorkletGlobalScope': The 'prototype' object on the class does not exist.")
// The prototype object is undefined, not an object.
if (ex.name == 'TypeError')
testsPassed = true;
}
@@ -23,7 +23,8 @@
b.prototype = 42;
registerPaint('foo6', b);
} catch(ex) {
if (ex.name == 'TypeError' && ex.message == "Failed to execute 'registerPaint' on 'PaintWorkletGlobalScope': The 'prototype' property on the class is not an object.")
// The prototype object is 42, not an object.
if (ex.name == 'TypeError')
testsPassed = true;
}
@@ -21,7 +21,8 @@
try {
registerPaint('foo7', class { });
} catch(ex) {
if (ex.name == 'TypeError' && ex.message == "Failed to execute 'registerPaint' on 'PaintWorkletGlobalScope': The 'paint' property on the prototype does not exist.")
// 'paint' property doesn't exist on the prototype chain.
if (ex.name == 'TypeError')
testsPassed = true;
}
Oops, something went wrong.

0 comments on commit 4334a9c

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