mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Add keywords inclusion tests
This commit is contained in:
2
test/keywords.txt
Normal file
2
test/keywords.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
bulma.io v0.9.0
|
||||
.button.is-primary
|
||||
70
test/keywords/bulma.css.txt
Normal file
70
test/keywords/bulma.css.txt
Normal file
@@ -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
|
||||
70
test/keywords/css-variable.css.txt
Normal file
70
test/keywords/css-variable.css.txt
Normal file
@@ -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
|
||||
32
test/keywords/customize.css.txt
Normal file
32
test/keywords/customize.css.txt
Normal file
@@ -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
|
||||
5
test/keywords/only-base.css.txt
Normal file
5
test/keywords/only-base.css.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
\* Bulma Base \*
|
||||
minireset.css
|
||||
html
|
||||
article
|
||||
aside
|
||||
7
test/keywords/override.css.txt
Normal file
7
test/keywords/override.css.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
\* Bulma Base \*
|
||||
minireset.css
|
||||
html
|
||||
article
|
||||
aside
|
||||
|
||||
hsl(39, 100%, 92%)
|
||||
@@ -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 $@
|
||||
|
||||
Reference in New Issue
Block a user