mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Add unit tests for concatCSS() and concatJS()
This commit is contained in:
parent
7363f71d4a
commit
b5a10e850f
10 changed files with 120 additions and 2 deletions
4
tests/_data/formatter/concat.source1.css
Normal file
4
tests/_data/formatter/concat.source1.css
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
@charset "UTF-8";
|
||||
.rhymix {
|
||||
background: url("foo/bar.jpg");
|
||||
}
|
||||
6
tests/_data/formatter/concat.source1.js
Normal file
6
tests/_data/formatter/concat.source1.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(function($) {
|
||||
$(".foo").click(function(event) {
|
||||
event.preventDefault();
|
||||
$(this).attr("bar", "baz");
|
||||
});
|
||||
})(jQuery);
|
||||
7
tests/_data/formatter/concat.source2.css
Normal file
7
tests/_data/formatter/concat.source2.css
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@charset "UTF-8";
|
||||
.wordpress {
|
||||
border-radius: 4px;
|
||||
}
|
||||
.xpressengine {
|
||||
margin: 320px;
|
||||
}
|
||||
3
tests/_data/formatter/concat.source2.js
Normal file
3
tests/_data/formatter/concat.source2.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(function($) {
|
||||
$(".xe").hide();
|
||||
})(jQuery);
|
||||
16
tests/_data/formatter/concat.target1.css
Normal file
16
tests/_data/formatter/concat.target1.css
Normal 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;
|
||||
}
|
||||
14
tests/_data/formatter/concat.target1.js
Normal file
14
tests/_data/formatter/concat.target1.js
Normal 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);;
|
||||
20
tests/_data/formatter/concat.target2.css
Normal file
20
tests/_data/formatter/concat.target2.css
Normal 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;
|
||||
}
|
||||
18
tests/_data/formatter/concat.target2.js
Normal file
18
tests/_data/formatter/concat.target2.js
Normal 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);;
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue