]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Add keywords inclusion tests
authorJeremy Thomas <bbxdesign@gmail.com>
Sat, 8 Aug 2020 16:16:04 +0000 (17:16 +0100)
committerJeremy Thomas <bbxdesign@gmail.com>
Sat, 8 Aug 2020 16:16:04 +0000 (17:16 +0100)
19 files changed:
docs/_data/sponsors.json
docs/_layouts/default.html
docs/images/amis/coupons4printing.png [new file with mode: 0644]
docs/images/amis/coupons4printing@2x.png [new file with mode: 0644]
sass/base/_all.sass
sass/components/_all.sass
sass/elements/_all.sass
sass/form/_all.sass
sass/grid/_all.sass
sass/helpers/_all.sass
sass/layout/_all.sass
sass/utilities/_all.sass
test/keywords.txt [new file with mode: 0644]
test/keywords/bulma.css.txt [new file with mode: 0644]
test/keywords/css-variable.css.txt [new file with mode: 0644]
test/keywords/customize.css.txt [new file with mode: 0644]
test/keywords/only-base.css.txt [new file with mode: 0644]
test/keywords/override.css.txt [new file with mode: 0644]
test/sass-compile-tester.sh

index f3b53efdd79f62db6ebc387795c5fba20bf62dfc..4bcac663d069c1366237a15c1adfdbb543f1cb8c 100644 (file)
       "title": "Sanyo Digital",
       "width":"160",
       "height":"33"
+    },
+    "coupons4printing": {
+      "name": "coupons4printing",
+      "url": "https://www.coupons4printing.com/",
+      "title": "Coupons For Printing",
+      "width":"60",
+      "height":"60"
     }
   },
   "home": [
     ,"tutlance"
     ,"pillarwm"
     ,"sanyodigital"
+    ,"coupons4printing"
   ],
   "footer": [
     "polygon"
index 032b584584d88b7db5922956391b499503c0633d..58f2ef660f3b8e5230c9567e858938d61c62568a 100644 (file)
@@ -7,7 +7,7 @@
   <body
     class="layout-{{ page.layout }}{% if page.doc-tab %} page-{{ page.doc-tab}}{% endif %}"
   >
-    {% include global/notice.html %}
+    <!-- {% 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 (file)
index 0000000..8260a2e
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 (file)
index 0000000..706bb3c
Binary files /dev/null and b/docs/images/amis/coupons4printing@2x.png differ
index ce1dddc90fccc45a31049a5f89cbaa26844d99ca..8ab98c94f29c1ea70991e689b0fde4a6760aabab 100644 (file)
@@ -1,3 +1,4 @@
+/* Bulma Base */
 @charset "utf-8"
 
 @import "minireset.sass"
index 1de2c214ed00a9f759688f65c5a8c258b55f415f..a9d219672ac0bf9cbe66079f7e8b6860dba0a536 100644 (file)
@@ -1,3 +1,4 @@
+/* Bulma Components */
 @charset "utf-8"
 
 @import "breadcrumb.sass"
index 7490c00d86e11207478bc6d905371915d5f31f15..321e5fbc1c505cb822ae31d16653b29816761113 100644 (file)
@@ -1,3 +1,4 @@
+/* Bulma Elements */
 @charset "utf-8"
 
 @import "box.sass"
index d9a2b95525f55f1ddf3ff8e40720b0d81f9b10c4..ba51c2c4c65f3f56c406b5294df155b17bfc1114 100644 (file)
@@ -1,3 +1,4 @@
+/* Bulma Form */
 @charset "utf-8"
 
 @import "shared.sass"
index e53070f6c32c6c3cca390dd596b5a373f737112a..ac83c3e6df2edd32fb1023cb96554ac10394002d 100644 (file)
@@ -1,3 +1,4 @@
+/* Bulma Grid */
 @charset "utf-8"
 
 @import "columns.sass"
index 89ef0a7f5d96f2253387265522983363a48673f0..638ad30457d0727fc9b2dd06c01b4e0b6757588e 100644 (file)
@@ -1,3 +1,4 @@
+/* Bulma Helpers */
 @charset "utf-8"
 
 @import "color.sass"
index 143ada35be8f297e3bf9d70ec415fabd8291254e..a7cf41c1da4270989ac6851581e7e4cbbe599e4d 100644 (file)
@@ -1,3 +1,4 @@
+/* Bulma Layout */
 @charset "utf-8"
 
 @import "hero.sass"
index b471577c5e9e7b764915ae76eaf651ea5bdb32d7..e75c853aa8b88e64dc4caa5f462612cebe626273 100644 (file)
@@ -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 (file)
index 0000000..42f4f32
--- /dev/null
@@ -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 (file)
index 0000000..7aba0a8
--- /dev/null
@@ -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 (file)
index 0000000..7aba0a8
--- /dev/null
@@ -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 (file)
index 0000000..14811ea
--- /dev/null
@@ -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 (file)
index 0000000..0ef436f
--- /dev/null
@@ -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 (file)
index 0000000..11d8a86
--- /dev/null
@@ -0,0 +1,7 @@
+\* Bulma Base \*
+minireset.css
+html
+article
+aside
+
+hsl(39, 100%, 92%)
\ No newline at end of file
index eee701971a706a6e83c3fbdc435118f421e5b13c..5e1434869c9556902bce950f9a63997e8d56015d 100755 (executable)
@@ -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 $@