summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-05-12 22:57:50 +0100
committerClement Ho <ClemMakesApps@gmail.com>2017-05-16 14:02:31 -0500
commit872777936790205b139e60868f1b530144be9844 (patch)
tree871b429fb571729bc75159d692c22f144b7b94c3 /app/assets
parenta1d44a9ec98674f8404a14bcccbee242fbe1acdb (diff)
downloadgitlab-ce-872777936790205b139e60868f1b530144be9844.tar.gz
Add test.js and test.css to disable animations during testing and include these in _head when testing
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/test.js1
-rw-r--r--app/assets/stylesheets/test.scss17
2 files changed, 18 insertions, 0 deletions
diff --git a/app/assets/javascripts/test.js b/app/assets/javascripts/test.js
new file mode 100644
index 00000000000..c4c7918a68f
--- /dev/null
+++ b/app/assets/javascripts/test.js
@@ -0,0 +1 @@
+$.fx.off = true;
diff --git a/app/assets/stylesheets/test.scss b/app/assets/stylesheets/test.scss
new file mode 100644
index 00000000000..7d9f3da79c5
--- /dev/null
+++ b/app/assets/stylesheets/test.scss
@@ -0,0 +1,17 @@
+* {
+ -o-transition: none !important;
+ -moz-transition: none !important;
+ -ms-transition: none !important;
+ -webkit-transition: none !important;
+ transition: none !important;
+ -o-transform: none !important;
+ -moz-transform: none !important;
+ -ms-transform: none !important;
+ -webkit-transform: none !important;
+ transform: none !important;
+ -webkit-animation: none !important;
+ -moz-animation: none !important;
+ -o-animation: none !important;
+ -ms-animation: none !important;
+ animation: none !important;
+}