Skip to content

Commit 13fbb8d

Browse files
committed
add jasmine tests for v3
1 parent 6e4c968 commit 13fbb8d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.circleci/config.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,25 @@ jobs:
234234
name: Test MathJax v3 on firefox-latest
235235
command: .circleci/test.sh mathjax-v3-firefox82+
236236

237+
mathjax-v3-firefox81:
238+
docker:
239+
# need '-browsers' version to test in real (xvfb-wrapped) browsers
240+
- image: cimg/node:16.8.0-browsers
241+
environment:
242+
# Alaska time (arbitrary timezone to test date logic)
243+
TZ: "America/Anchorage"
244+
working_directory: ~/plotly.js
245+
steps:
246+
- browser-tools/install-browser-tools: &browser-versions
247+
firefox-version: '81.0'
248+
install-chrome: false
249+
install-chromedriver: false
250+
- attach_workspace:
251+
at: ~/
252+
- run:
253+
name: Test MathJax v2 on firefox-81
254+
command: .circleci/test.sh mathjax-v3-firefox
255+
237256
make-baselines:
238257
parallelism: 4
239258
docker:
@@ -425,6 +444,9 @@ workflows:
425444
- mathjax-v3-firefoxLatest:
426445
requires:
427446
- install-and-cibuild
447+
- mathjax-v3-firefox81:
448+
requires:
449+
- install-and-cibuild
428450
- no-gl-jasmine:
429451
requires:
430452
- install-and-cibuild

.circleci/test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ case $1 in
8484
exit $EXIT_STATE
8585
;;
8686

87+
mathjax-v3-firefox)
88+
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax_v3 --nowatch || EXIT_STATE=$?
89+
exit $EXIT_STATE
90+
;;
91+
8792
make-baselines)
8893
SUITE=$(find $ROOT/test/image/mocks/ -type f -printf "%f\n" | sed 's/\.json$//1' | circleci tests split)
8994
python3 test/image/make_baseline.py $SUITE || EXIT_STATE=$?

0 commit comments

Comments
 (0)