ソースを参照

Add validator and test suite for rgba() color validation

Emil Rømer Christensen 11 年 前
コミット
4deeb7d532

+ 1 - 1
dist/css/bootstrapValidator.min.css

@@ -2,7 +2,7 @@
  * BootstrapValidator (http://bootstrapvalidator.com)
  * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
- * @version     v0.5.2-dev, built on 2014-09-18 10:00:59 PM
+ * @version     v0.5.2-dev, built on 2014-09-18 10:01:09 PM
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -2,7 +2,7 @@
  * BootstrapValidator (http://bootstrapvalidator.com)
  * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
- * @version     v0.5.2-dev, built on 2014-09-18 10:00:59 PM
+ * @version     v0.5.2-dev, built on 2014-09-18 10:01:09 PM
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT

+ 1 - 1
dist/js/bootstrapValidator.min.js

@@ -2,7 +2,7 @@
  * BootstrapValidator (http://bootstrapvalidator.com)
  * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
- * @version     v0.5.2-dev, built on 2014-09-18 10:00:59 PM
+ * @version     v0.5.2-dev, built on 2014-09-18 10:01:09 PM
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT

+ 14 - 0
test/spec.js

@@ -6127,7 +6127,11 @@ describe('rgbaColor', function() {
     beforeEach(function() {
         var html = [
             '<div class="container">',
+<<<<<<< HEAD
                 '<form class="form-horizontal" id="rgbaColorForm">',
+=======
+                '<form class="form-horizontal" id="rbgColorForm">',
+>>>>>>> Add validator and test suite for rgba() color validation
                     '<div class="form-group">',
                         '<input type="text" name="rgba" data-bv-rgbacolor />',
                     '</div>',
@@ -6136,14 +6140,24 @@ describe('rgbaColor', function() {
         ].join('\n');
 
         $(html).appendTo('body');
+<<<<<<< HEAD
         $('#rgbaColorForm').bootstrapValidator();
 
         this.bv          = $('#rgbaColorForm').data('bootstrapValidator');
+=======
+        $('#rbgColorForm').bootstrapValidator();
+
+        this.bv          = $('#rbgColorForm').data('bootstrapValidator');
+>>>>>>> Add validator and test suite for rgba() color validation
         this.$rgbaColor = this.bv.getFieldElements('rgba');
     });
 
     afterEach(function() {
+<<<<<<< HEAD
         $('#rgbaColorForm').bootstrapValidator('destroy').parent().remove();
+=======
+        $('#rbgColorForm').bootstrapValidator('destroy').parent().remove();
+>>>>>>> Add validator and test suite for rgba() color validation
     });
 
     it('accept rgba()', function() {

+ 14 - 0
test/spec/validator/rgbaColor.js

@@ -3,7 +3,11 @@ describe('rgbaColor', function() {
     beforeEach(function() {
         var html = [
             '<div class="container">',
+<<<<<<< HEAD
                 '<form class="form-horizontal" id="rgbaColorForm">',
+=======
+                '<form class="form-horizontal" id="rbgColorForm">',
+>>>>>>> Add validator and test suite for rgba() color validation
                     '<div class="form-group">',
                         '<input type="text" name="rgba" data-bv-rgbacolor />',
                     '</div>',
@@ -12,14 +16,24 @@ describe('rgbaColor', function() {
         ].join('\n');
 
         $(html).appendTo('body');
+<<<<<<< HEAD
         $('#rgbaColorForm').bootstrapValidator();
 
         this.bv          = $('#rgbaColorForm').data('bootstrapValidator');
+=======
+        $('#rbgColorForm').bootstrapValidator();
+
+        this.bv          = $('#rbgColorForm').data('bootstrapValidator');
+>>>>>>> Add validator and test suite for rgba() color validation
         this.$rgbaColor = this.bv.getFieldElements('rgba');
     });
 
     afterEach(function() {
+<<<<<<< HEAD
         $('#rgbaColorForm').bootstrapValidator('destroy').parent().remove();
+=======
+        $('#rbgColorForm').bootstrapValidator('destroy').parent().remove();
+>>>>>>> Add validator and test suite for rgba() color validation
     });
 
     it('accept rgba()', function() {