diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-typed-om/stylevalue-serialization/crashtests')
3 files changed, 36 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-typed-om/stylevalue-serialization/crashtests/cssInvertValue-convert-crash.html b/testing/web-platform/tests/css/css-typed-om/stylevalue-serialization/crashtests/cssInvertValue-convert-crash.html new file mode 100644 index 0000000000..8ca27efc3a --- /dev/null +++ b/testing/web-platform/tests/css/css-typed-om/stylevalue-serialization/crashtests/cssInvertValue-convert-crash.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<link rel="author" href="mailto:0xdevssh@gmail.com"> +<link rel="help" href="https://crbug.com/1238543"> +<link rel="help" href="https://www.w3.org/TR/css-typed-om-1/"> +<meta name="assert" content="The renderer should not crash."> + +<p>This test passes if it does not crash.</p> +<script> + var inverted = new CSSMathInvert(CSS.number(0)); + var converted = inverted.to('number'); + converted.toString() +</script>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/css-typed-om/stylevalue-serialization/crashtests/cssInvertValue-zero.html b/testing/web-platform/tests/css/css-typed-om/stylevalue-serialization/crashtests/cssInvertValue-zero.html new file mode 100644 index 0000000000..b767cf69c0 --- /dev/null +++ b/testing/web-platform/tests/css/css-typed-om/stylevalue-serialization/crashtests/cssInvertValue-zero.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<link rel="help" href="https://crbug.com/1232775"> +<title>Do not crash when serializing inverted zero via CSSTransformValue</title> +<script> + const inverted = new CSSMathInvert(new CSSUnitValue(0, 'number')); + const rotate = new CSSRotate(inverted, 0, 0, CSS.deg(0)); + const transform = new CSSTransformValue([rotate]); + inverted.toString(); + rotate.toString(); + transform.toString(); +</script> diff --git a/testing/web-platform/tests/css/css-typed-om/stylevalue-serialization/crashtests/cssTransform-Internal-value.html b/testing/web-platform/tests/css/css-typed-om/stylevalue-serialization/crashtests/cssTransform-Internal-value.html new file mode 100644 index 0000000000..96097e4f94 --- /dev/null +++ b/testing/web-platform/tests/css/css-typed-om/stylevalue-serialization/crashtests/cssTransform-Internal-value.html @@ -0,0 +1,12 @@ +<!doctype html> +<meta charset="utf-8"> +<link rel="help" href="https://crbug.com/1204782"> +<title>Serialize transform components must not crash when the internal CSS value is null</title> + +<script> + var v98 = new CSSUnitValue(1, "px"); + var v100 = v98.div(CSS.px(1)); + var v106 = v98.mul(v100); + var v201 = new CSSTranslate(v106, v98, v98); + v201.toString() +</script>
\ No newline at end of file |