Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-07 17:31:14 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-07 17:31:14 +0300
commit99918be7312b11dd650924e39b2bf8b65a4004d8 (patch)
treedd4655ad0f2257b2ae20ceb36115ba479376f9d3 /spec/javascripts
parent18e2388de19f47093cb3192f4b8dbabdd9c3bfad (diff)
Added variable button fix
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/comment_type_toggle_spec.js18
1 files changed, 16 insertions, 2 deletions
diff --git a/spec/javascripts/comment_type_toggle_spec.js b/spec/javascripts/comment_type_toggle_spec.js
index 9a341ebd811..dfd0810d52e 100644
--- a/spec/javascripts/comment_type_toggle_spec.js
+++ b/spec/javascripts/comment_type_toggle_spec.js
@@ -101,7 +101,7 @@ describe('CommentTypeToggle', function () {
this.setConfig = CommentTypeToggle.prototype.setConfig.call(this.commentTypeToggle);
});
- it('should not add .closeButton or .reopenButton related InputSetter config', function () {
+ it('should not add .closeButton related InputSetter config', function () {
expect(this.setConfig).toEqual({
InputSetter: [{
input: this.commentTypeToggle.noteTypeInput,
@@ -109,6 +109,13 @@ describe('CommentTypeToggle', function () {
}, {
input: this.commentTypeToggle.submitButton,
valueAttribute: 'data-submit-text',
+ }, {
+ input: this.commentTypeToggle.reopenButton,
+ valueAttribute: 'data-reopen-text',
+ }, {
+ input: this.commentTypeToggle.reopenButton,
+ valueAttribute: 'data-reopen-text',
+ inputAttribute: 'data-alternative-text',
}],
});
});
@@ -127,7 +134,7 @@ describe('CommentTypeToggle', function () {
this.setConfig = CommentTypeToggle.prototype.setConfig.call(this.commentTypeToggle);
});
- it('should not add .closeButton or .reopenButton related InputSetter config', function () {
+ it('should not add .reopenButton related InputSetter config', function () {
expect(this.setConfig).toEqual({
InputSetter: [{
input: this.commentTypeToggle.noteTypeInput,
@@ -135,6 +142,13 @@ describe('CommentTypeToggle', function () {
}, {
input: this.commentTypeToggle.submitButton,
valueAttribute: 'data-submit-text',
+ }, {
+ input: this.commentTypeToggle.closeButton,
+ valueAttribute: 'data-close-text',
+ }, {
+ input: this.commentTypeToggle.closeButton,
+ valueAttribute: 'data-close-text',
+ inputAttribute: 'data-alternative-text',
}],
});
});