diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3147878 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +script: script/test +language: node_js +node_js: +- '0.10' diff --git a/script/test b/script/test new file mode 100755 index 0000000..e3508e8 --- /dev/null +++ b/script/test @@ -0,0 +1,23 @@ +#!/bin/bash +set -e + +if [ -t 1 ]; then + red="$(printf "\033[31m")" + brightred="$(printf "\033[31;1m")" + green="$(printf "\033[32m")" + reset="$(printf "\033[m")" +else + red= + brightred= + green= + reset= +fi + +phantomjs tests/runner.coffee tests/qunit.html | sed -E " + # failure line: + s/^(✘.+)/${red}\\1${reset}/ + # failure details: + s/^( .+)/${brightred}\\1${reset}/ + # success marker: + s/(✔︎)/${green}\\1${reset}/ +" diff --git a/tests/duplicationTest.html b/tests/duplicationTest.html deleted file mode 100644 index 97df0a1..0000000 --- a/tests/duplicationTest.html +++ /dev/null @@ -1,30 +0,0 @@ - - -
- - - - - - The below box will be green in browsers with native classList support. - It will be red if the classList polyfill doesn't handle duplicate classes