Skip to content

Commit

Permalink
trimmed whitespace for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
GarthDB committed Dec 5, 2014
1 parent 9a1ee7b commit e908f16
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 63 deletions.
116 changes: 58 additions & 58 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
/**
*
* Copyright 2012 Adobe Systems Inc.;
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
*
* Copyright 2012 Adobe Systems Inc.;
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

/*global module:false*/

module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
// Project configuration.
grunt.initConfig({

clean: {
release: ['css']
},
clean: {
release: ['css']
},

topcoat: {
options: {
browsers: ['last 2 versions']
},
compile: {
files: [{
src: 'test/fixtures/select.css',
dest: 'css/select.css'
}
]
}
},
topcoat: {
options: {
browsers: ['last 2 versions']
},
compile: {
files: [{
src: 'test/fixtures/select.css',
dest: 'css/select.css'
}
]
}
},

cssmin: {
minify: {
expand: true,
cwd: 'css',
src: ['*.css', '!*.min.css'],
dest: 'css',
ext: '.min.css'
},
},
cssmin: {
minify: {
expand: true,
cwd: 'css',
src: ['*.css', '!*.min.css'],
dest: 'css',
ext: '.min.css'
},
},

simplemocha: {
all: {
src: ['test/*.test.js']
}
}
});
simplemocha: {
all: {
src: ['test/*.test.js']
}
}
});

// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-topcoat');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-clean');
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-topcoat');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-clean');

grunt.registerTask('default', ['clean', 'build', 'test', 'release']);
grunt.registerTask('build', ['topcoat']);
grunt.registerTask('test', ['simplemocha']);
grunt.registerTask('release', ['cssmin']);
grunt.registerTask('default', ['clean', 'build', 'test', 'release']);
grunt.registerTask('build', ['topcoat']);
grunt.registerTask('test', ['simplemocha']);
grunt.registerTask('release', ['cssmin']);

};
};
1 change: 0 additions & 1 deletion css/select.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
}

.select {
-moz-appearance: none;
-webkit-appearance: none;
}

Expand Down
2 changes: 1 addition & 1 deletion css/select.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions test/expected/select.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@
}

.select {
-moz-appearance: none;
-webkit-appearance: none;
}

.select::-ms-expand {
display: none;
}
}
2 changes: 1 addition & 1 deletion test/select.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Topcoat select base', function() {
it('should output correct reset css', function() {
var actual = grunt.file.read('css/select.css');
var expected = grunt.file.read('test/expected/select.css');
assert.equal(actual, expected, 'should generate correct css');
assert.equal(actual.trim(), expected.trim(), 'should generate correct css');
});

});

0 comments on commit e908f16

Please sign in to comment.