Add unit tests for concatCSS() and concatJS()

This commit is contained in:
Kijin Sung 2016-05-05 13:45:57 +09:00
parent 7363f71d4a
commit b5a10e850f
10 changed files with 120 additions and 2 deletions

View file

@ -0,0 +1,4 @@
@charset "UTF-8";
.rhymix {
background: url("foo/bar.jpg");
}

View file

@ -0,0 +1,6 @@
(function($) {
$(".foo").click(function(event) {
event.preventDefault();
$(this).attr("bar", "baz");
});
})(jQuery);

View file

@ -0,0 +1,7 @@
@charset "UTF-8";
.wordpress {
border-radius: 4px;
}
.xpressengine {
margin: 320px;
}

View file

@ -0,0 +1,3 @@
(function($) {
$(".xe").hide();
})(jQuery);

View file

@ -0,0 +1,16 @@
/* Original file: tests/_data/formatter/concat.source1.css */
@charset "UTF-8";
.rhymix {
background: url("../_data/formatter/foo/bar.jpg");
}
/* Original file: tests/_data/formatter/concat.source2.css */
@charset "UTF-8";
.wordpress {
border-radius: 4px;
}
.xpressengine {
margin: 320px;
}

View file

@ -0,0 +1,14 @@
/* Original file: tests/_data/formatter/concat.source1.js */
(function($) {
$(".foo").click(function(event) {
event.preventDefault();
$(this).attr("bar", "baz");
});
})(jQuery);;
/* Original file: tests/_data/formatter/concat.source2.js */
(function($) {
$(".xe").hide();
})(jQuery);;

View file

@ -0,0 +1,20 @@
/* Original file: tests/_data/formatter/concat.source1.css */
@media screen and (max-width: 640px) {
@charset "UTF-8";
.rhymix {
background: url("../_data/formatter/foo/bar.jpg");
}
}
/* Original file: tests/_data/formatter/concat.source2.css */
@charset "UTF-8";
.wordpress {
border-radius: 4px;
}
.xpressengine {
margin: 320px;
}

View file

@ -0,0 +1,18 @@
/* Original file: tests/_data/formatter/concat.source1.js */
(function($) {
$(".foo").click(function(event) {
event.preventDefault();
$(this).attr("bar", "baz");
});
})(jQuery);;
/* Original file: tests/_data/formatter/concat.source2.js */
if ((/MSIE (\d+)/.exec(window.navigator.userAgent) && /MSIE (\d+)/.exec(window.navigator.userAgent)[1] >= 6) && (/MSIE (\d+)/.exec(window.navigator.userAgent) && /MSIE (\d+)/.exec(window.navigator.userAgent)[1] <= 8)) {
(function($) {
$(".xe").hide();
})(jQuery);;
};