From: Jeremy Thomas Date: Sat, 8 Aug 2020 16:16:04 +0000 (+0100) Subject: Add keywords inclusion tests X-Git-Tag: 0.9.1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb604e5fffe772ec2289f4d25f3b6076970a41bd;p=thirdparty%2Fbulma.git Add keywords inclusion tests --- diff --git a/docs/_data/sponsors.json b/docs/_data/sponsors.json index f3b53efdd..4bcac663d 100644 --- a/docs/_data/sponsors.json +++ b/docs/_data/sponsors.json @@ -228,6 +228,13 @@ "title": "Sanyo Digital", "width":"160", "height":"33" + }, + "coupons4printing": { + "name": "coupons4printing", + "url": "https://www.coupons4printing.com/", + "title": "Coupons For Printing", + "width":"60", + "height":"60" } }, "home": [ @@ -250,6 +257,7 @@ ,"tutlance" ,"pillarwm" ,"sanyodigital" + ,"coupons4printing" ], "footer": [ "polygon" diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 032b58458..58f2ef660 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -7,7 +7,7 @@ - {% include global/notice.html %} + {% include global/deprecated.html %} {{ content }} {% include global/footer.html %} diff --git a/docs/images/amis/coupons4printing.png b/docs/images/amis/coupons4printing.png new file mode 100644 index 000000000..8260a2ecc Binary files /dev/null and b/docs/images/amis/coupons4printing.png differ diff --git a/docs/images/amis/coupons4printing@2x.png b/docs/images/amis/coupons4printing@2x.png new file mode 100644 index 000000000..706bb3c40 Binary files /dev/null and b/docs/images/amis/coupons4printing@2x.png differ diff --git a/sass/base/_all.sass b/sass/base/_all.sass index ce1dddc90..8ab98c94f 100644 --- a/sass/base/_all.sass +++ b/sass/base/_all.sass @@ -1,3 +1,4 @@ +/* Bulma Base */ @charset "utf-8" @import "minireset.sass" diff --git a/sass/components/_all.sass b/sass/components/_all.sass index 1de2c214e..a9d219672 100644 --- a/sass/components/_all.sass +++ b/sass/components/_all.sass @@ -1,3 +1,4 @@ +/* Bulma Components */ @charset "utf-8" @import "breadcrumb.sass" diff --git a/sass/elements/_all.sass b/sass/elements/_all.sass index 7490c00d8..321e5fbc1 100644 --- a/sass/elements/_all.sass +++ b/sass/elements/_all.sass @@ -1,3 +1,4 @@ +/* Bulma Elements */ @charset "utf-8" @import "box.sass" diff --git a/sass/form/_all.sass b/sass/form/_all.sass index d9a2b9552..ba51c2c4c 100644 --- a/sass/form/_all.sass +++ b/sass/form/_all.sass @@ -1,3 +1,4 @@ +/* Bulma Form */ @charset "utf-8" @import "shared.sass" diff --git a/sass/grid/_all.sass b/sass/grid/_all.sass index e53070f6c..ac83c3e6d 100644 --- a/sass/grid/_all.sass +++ b/sass/grid/_all.sass @@ -1,3 +1,4 @@ +/* Bulma Grid */ @charset "utf-8" @import "columns.sass" diff --git a/sass/helpers/_all.sass b/sass/helpers/_all.sass index 89ef0a7f5..638ad3045 100644 --- a/sass/helpers/_all.sass +++ b/sass/helpers/_all.sass @@ -1,3 +1,4 @@ +/* Bulma Helpers */ @charset "utf-8" @import "color.sass" diff --git a/sass/layout/_all.sass b/sass/layout/_all.sass index 143ada35b..a7cf41c1d 100644 --- a/sass/layout/_all.sass +++ b/sass/layout/_all.sass @@ -1,3 +1,4 @@ +/* Bulma Layout */ @charset "utf-8" @import "hero.sass" diff --git a/sass/utilities/_all.sass b/sass/utilities/_all.sass index b471577c5..e75c853aa 100644 --- a/sass/utilities/_all.sass +++ b/sass/utilities/_all.sass @@ -1,3 +1,4 @@ +/* Bulma Utilities */ @charset "utf-8" @import "initial-variables.sass" diff --git a/test/keywords.txt b/test/keywords.txt new file mode 100644 index 000000000..42f4f3233 --- /dev/null +++ b/test/keywords.txt @@ -0,0 +1,2 @@ +bulma.io v0.9.0 +.button.is-primary \ No newline at end of file diff --git a/test/keywords/bulma.css.txt b/test/keywords/bulma.css.txt new file mode 100644 index 000000000..7aba0a885 --- /dev/null +++ b/test/keywords/bulma.css.txt @@ -0,0 +1,70 @@ +\* Bulma Base \* +minireset.css +html +article +aside + +\* Bulma Components \* +.breadcrumb +.card +.dropdown +.level +.media +.menu +.message +.message.is-primary +.modal +.navbar +.navbar.is-primary +.pagination +.panel +.tabs + +\* Bulma Elements \* +.box +.button +.button.is-primary +.container +.content +.form +.icon +.notification +.notification.is-primary +.block +.delete +.progress +.table +.tag +.tag:not(body).is-primary +.title + +\* Bulma Form \* +.checkbox +.radio +.file +.input +.is-primary.input +.textarea +.is-primary.textarea +.select +.select.is-primary +.label +.help +.field + +\* Bulma Grid \* +.column +.columns +.columns.is-variable +.tile + +\* Bulma Helpers \* +.has-text-primary +.has-text-primary-light +.has-text-primary-dark +.has-background-primary +.has-background-primary-light +.has-background-primary-dark + +\* Bulma Utilities \* +@keyframes spinAround \ No newline at end of file diff --git a/test/keywords/css-variable.css.txt b/test/keywords/css-variable.css.txt new file mode 100644 index 000000000..7aba0a885 --- /dev/null +++ b/test/keywords/css-variable.css.txt @@ -0,0 +1,70 @@ +\* Bulma Base \* +minireset.css +html +article +aside + +\* Bulma Components \* +.breadcrumb +.card +.dropdown +.level +.media +.menu +.message +.message.is-primary +.modal +.navbar +.navbar.is-primary +.pagination +.panel +.tabs + +\* Bulma Elements \* +.box +.button +.button.is-primary +.container +.content +.form +.icon +.notification +.notification.is-primary +.block +.delete +.progress +.table +.tag +.tag:not(body).is-primary +.title + +\* Bulma Form \* +.checkbox +.radio +.file +.input +.is-primary.input +.textarea +.is-primary.textarea +.select +.select.is-primary +.label +.help +.field + +\* Bulma Grid \* +.column +.columns +.columns.is-variable +.tile + +\* Bulma Helpers \* +.has-text-primary +.has-text-primary-light +.has-text-primary-dark +.has-background-primary +.has-background-primary-light +.has-background-primary-dark + +\* Bulma Utilities \* +@keyframes spinAround \ No newline at end of file diff --git a/test/keywords/customize.css.txt b/test/keywords/customize.css.txt new file mode 100644 index 000000000..14811ea73 --- /dev/null +++ b/test/keywords/customize.css.txt @@ -0,0 +1,32 @@ +https://fonts.googleapis.com/css?family=Nunito:400,700 + +\* Bulma Base \* +minireset.css +html +article +aside + +.navbar +.navbar.is-primary + +.button +.button.is-primary +.container +.title + +\* Bulma Form \* +.checkbox +.radio +.file +.input +.is-primary.input +.textarea +.is-primary.textarea +.select +.select.is-primary +.label +.help +.field + +\* Bulma Utilities \* +@keyframes spinAround \ No newline at end of file diff --git a/test/keywords/only-base.css.txt b/test/keywords/only-base.css.txt new file mode 100644 index 000000000..0ef436fee --- /dev/null +++ b/test/keywords/only-base.css.txt @@ -0,0 +1,5 @@ +\* Bulma Base \* +minireset.css +html +article +aside \ No newline at end of file diff --git a/test/keywords/override.css.txt b/test/keywords/override.css.txt new file mode 100644 index 000000000..11d8a86f5 --- /dev/null +++ b/test/keywords/override.css.txt @@ -0,0 +1,7 @@ +\* Bulma Base \* +minireset.css +html +article +aside + +hsl(39, 100%, 92%) \ No newline at end of file diff --git a/test/sass-compile-tester.sh b/test/sass-compile-tester.sh index eee701971..5e1434869 100755 --- a/test/sass-compile-tester.sh +++ b/test/sass-compile-tester.sh @@ -5,6 +5,7 @@ TEST_DIR=$(dirname $BASH_SOURCE) FILES=$TEST_DIR/sass/* CSS_DIR=$TEST_DIR/css +CSS_FILES=$TEST_DIR/css/*.css SASS_OPTIONS=--sourcemap=none # FUNCTIONS @@ -20,7 +21,7 @@ build_sass() sass "$1" "${destFile}" } -run_it() +build_all_css_files() { rm -r $CSS_DIR @@ -40,6 +41,25 @@ run_it() fi } +check_keywords_inclusion() +{ + for f in $CSS_FILES + do + BASE=$(basename $f) + KEYWORDS_FILE=$TEST_DIR/keywords/$BASE.txt + while read p; do + if ! grep -q "$p" "$f" + then + # echo "Ok" + # else + echo "$p not found in $f" + fi + # echo "Checking for $p " + done < $KEYWORDS_FILE + done +} + # EXECUTION -run_it $@ +build_all_css_files $@ +check_keywords_inclusion $@