From a0487f0516babb12a8e20caddca4473e151b0bc4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 21 Dec 2015 22:14:21 -0500 Subject: [PATCH] Add parser tests for border-image properties This adds tests for border-image-source, border-image-repeat, border-image-slice and border-image-width. --- testsuite/css/parser/Makefile.am | 8 +++ testsuite/css/parser/border-image-repeat.css | 39 ++++++++++ .../css/parser/border-image-repeat.ref.css | 39 ++++++++++ testsuite/css/parser/border-image-slice.css | 52 ++++++++++++++ .../css/parser/border-image-slice.ref.css | 51 +++++++++++++ testsuite/css/parser/border-image-source.css | 19 +++++ .../css/parser/border-image-source.ref.css | 19 +++++ testsuite/css/parser/border-image-width.css | 71 +++++++++++++++++++ .../css/parser/border-image-width.ref.css | 71 +++++++++++++++++++ 9 files changed, 369 insertions(+) create mode 100644 testsuite/css/parser/border-image-repeat.css create mode 100644 testsuite/css/parser/border-image-repeat.ref.css create mode 100644 testsuite/css/parser/border-image-slice.css create mode 100644 testsuite/css/parser/border-image-slice.ref.css create mode 100644 testsuite/css/parser/border-image-source.css create mode 100644 testsuite/css/parser/border-image-source.ref.css create mode 100644 testsuite/css/parser/border-image-width.css create mode 100644 testsuite/css/parser/border-image-width.ref.css diff --git a/testsuite/css/parser/Makefile.am b/testsuite/css/parser/Makefile.am index 69be6c7bb7..811278f14b 100644 --- a/testsuite/css/parser/Makefile.am +++ b/testsuite/css/parser/Makefile.am @@ -186,6 +186,14 @@ test_data = \ border-color.ref.css \ border-color-currentcolor.css \ border-color-currentcolor.ref.css \ + border-image-source.css \ + border-image-source.ref.css \ + border-image-repeat.css \ + border-image-repeat.ref.css \ + border-image-slice.css \ + border-image-slice.ref.css \ + border-image-width.css \ + border-image-width.ref.css \ border-infloop-3.12.css \ border-infloop-3.12.errors \ border-infloop-3.12.ref.css \ diff --git a/testsuite/css/parser/border-image-repeat.css b/testsuite/css/parser/border-image-repeat.css new file mode 100644 index 0000000000..866fd0214f --- /dev/null +++ b/testsuite/css/parser/border-image-repeat.css @@ -0,0 +1,39 @@ +a { + border-image-repeat: initial; +} + +b { + border-image-repeat: inherit; +} + +c { + border-image-repeat: unset; +} + +d { + border-image-repeat: stretch stretch; +} + +e { + border-image-repeat: stretch; +} + +f { + border-image-repeat: repeat; +} + +g { + border-image-repeat: round; +} + +h { + border-image-repeat: space; +} + +i { + border-image-repeat: stretch round; +} + +j { + border-image-repeat: space repeat; +} diff --git a/testsuite/css/parser/border-image-repeat.ref.css b/testsuite/css/parser/border-image-repeat.ref.css new file mode 100644 index 0000000000..257f9201d3 --- /dev/null +++ b/testsuite/css/parser/border-image-repeat.ref.css @@ -0,0 +1,39 @@ +a { + border-image-repeat: initial; +} + +b { + border-image-repeat: inherit; +} + +c { + border-image-repeat: unset; +} + +d { + border-image-repeat: stretch; +} + +e { + border-image-repeat: stretch; +} + +f { + border-image-repeat: repeat; +} + +g { + border-image-repeat: round; +} + +h { + border-image-repeat: space; +} + +i { + border-image-repeat: stretch round; +} + +j { + border-image-repeat: space repeat; +} diff --git a/testsuite/css/parser/border-image-slice.css b/testsuite/css/parser/border-image-slice.css new file mode 100644 index 0000000000..3e01401bcf --- /dev/null +++ b/testsuite/css/parser/border-image-slice.css @@ -0,0 +1,52 @@ +a { + border-image-slice: initial; +} + +b { + border-image-slice: inherit; +} + +c { + border-image-slice: unset; +} + +d { + border-image-slice: 10; +} + +e { + border-image-slice: 10 11; +} + +f { + border-image-slice: 10 11 12; +} + +f { + border-image-slice: 10 11 12 13; +} + +g { + border-image-slice: 10%; +} + +h { + border-image-slice: 10% 11%; +} + +i { + border-image-slice: 10% 11% 12%; +} + +j { + border-image-slice: 10% 11% 12% 13%; +} + +k { + border-image-slice: fill 10% 11% 12%; +} + +l { + border-image-slice: 10% 11 12 fill; +} + diff --git a/testsuite/css/parser/border-image-slice.ref.css b/testsuite/css/parser/border-image-slice.ref.css new file mode 100644 index 0000000000..5aea88719e --- /dev/null +++ b/testsuite/css/parser/border-image-slice.ref.css @@ -0,0 +1,51 @@ +a { + border-image-slice: initial; +} + +b { + border-image-slice: inherit; +} + +c { + border-image-slice: unset; +} + +d { + border-image-slice: 10; +} + +e { + border-image-slice: 10 11; +} + +f { + border-image-slice: 10 11 12; +} + +f { + border-image-slice: 10 11 12 13; +} + +g { + border-image-slice: 10%; +} + +h { + border-image-slice: 10% 11%; +} + +i { + border-image-slice: 10% 11% 12%; +} + +j { + border-image-slice: 10% 11% 12% 13%; +} + +k { + border-image-slice: 10% 11% 12% fill; +} + +l { + border-image-slice: 10% 11 12 fill; +} diff --git a/testsuite/css/parser/border-image-source.css b/testsuite/css/parser/border-image-source.css new file mode 100644 index 0000000000..e64597f9a4 --- /dev/null +++ b/testsuite/css/parser/border-image-source.css @@ -0,0 +1,19 @@ +a { + border-image-source: initial; +} + +b { + border-image-source: inherit; +} + +c { + border-image-source: unset; +} + +d { + border-image-source: none; +} + +e { + border-image-source: linear-gradient(yellow, blue); +} diff --git a/testsuite/css/parser/border-image-source.ref.css b/testsuite/css/parser/border-image-source.ref.css new file mode 100644 index 0000000000..054ab83885 --- /dev/null +++ b/testsuite/css/parser/border-image-source.ref.css @@ -0,0 +1,19 @@ +a { + border-image-source: initial; +} + +b { + border-image-source: inherit; +} + +c { + border-image-source: unset; +} + +d { + border-image-source: none; +} + +e { + border-image-source: linear-gradient(rgb(255,255,0), rgb(0,0,255)); +} diff --git a/testsuite/css/parser/border-image-width.css b/testsuite/css/parser/border-image-width.css new file mode 100644 index 0000000000..0f149aabe4 --- /dev/null +++ b/testsuite/css/parser/border-image-width.css @@ -0,0 +1,71 @@ +a { + border-image-width: initial; +} + +b { + border-image-width: inherit; +} + +c { + border-image-width: unset; +} + +d { + border-image-width: 1 1 1 1; +} + +e { + border-image-width: 1; +} + +f { + border-image-width: 1 2; +} + +g { + border-image-width: 1 2 3; +} + +h { + border-image-width: 1 2 3 4; +} + +i { + border-image-width: 1px; +} + +j { + border-image-width: 1px 2px; +} + +k { + border-image-width: 1px 2px 3px; +} + +l { + border-image-width: 1px 2px 3px 4px; +} + +m { + border-image-width: 1%; +} + +n { + border-image-width: 1% 2%; +} + +o { + border-image-width: 1% 2% 3%; +} + +p { + border-image-width: 1% 2% 3% 4%; +} + +q { + border-image-width: auto; +} + +r { + border-image-width: 1 2px 3% auto; +} diff --git a/testsuite/css/parser/border-image-width.ref.css b/testsuite/css/parser/border-image-width.ref.css new file mode 100644 index 0000000000..1bfc00cfb3 --- /dev/null +++ b/testsuite/css/parser/border-image-width.ref.css @@ -0,0 +1,71 @@ +a { + border-image-width: initial; +} + +b { + border-image-width: inherit; +} + +c { + border-image-width: unset; +} + +d { + border-image-width: 1; +} + +e { + border-image-width: 1; +} + +f { + border-image-width: 1 2; +} + +g { + border-image-width: 1 2 3; +} + +h { + border-image-width: 1 2 3 4; +} + +i { + border-image-width: 1px; +} + +j { + border-image-width: 1px 2px; +} + +k { + border-image-width: 1px 2px 3px; +} + +l { + border-image-width: 1px 2px 3px 4px; +} + +m { + border-image-width: 1%; +} + +n { + border-image-width: 1% 2%; +} + +o { + border-image-width: 1% 2% 3%; +} + +p { + border-image-width: 1% 2% 3% 4%; +} + +q { + border-image-width: auto; +} + +r { + border-image-width: 1 2px 3% auto; +}