summaryrefslogtreecommitdiff
path: root/spec/javascripts
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-09-04 16:35:01 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-09-04 18:01:36 -0400
commit38f1d571fe17725d437dae2f6c4f18006117ef9d (patch)
tree9e1c0198fe3b7c8c7b3501e4cf4c0cb9c6e6d79c /spec/javascripts
parent50f76ae0eae29f7362702da274055f76a350ee6f (diff)
downloadgitlab-ce-38f1d571fe17725d437dae2f6c4f18006117ef9d.tar.gz
Remove style attribute from textarea during ZenMode activationrs-dev-issue-2466
Closes internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2466
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/zen_mode_spec.js.coffee5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/javascripts/zen_mode_spec.js.coffee b/spec/javascripts/zen_mode_spec.js.coffee
index 1f4ea58ad48..4cb3836755f 100644
--- a/spec/javascripts/zen_mode_spec.js.coffee
+++ b/spec/javascripts/zen_mode_spec.js.coffee
@@ -29,6 +29,11 @@ describe 'ZenMode', ->
enterZen()
expect(Mousetrap.pause).toHaveBeenCalled()
+ it 'removes textarea styling', ->
+ $('textarea').attr('style', 'height: 400px')
+ enterZen()
+ expect('textarea').not.toHaveAttr('style')
+
describe 'in use', ->
beforeEach ->
enterZen()