forked from Meteor-Community-Packages/meteor-scss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.js
29 lines (25 loc) · 823 Bytes
/
tests.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Tinytest.add("sass/scss - imports", function (test) {
var div = document.createElement('div');
document.body.appendChild(div);
var prefixes = ['scss'/*,'sass'*/];
try {
var t = function (className, style) {
prefixes.forEach(function(prefix){
div.className = prefix + '-' + className;
test.equal(getStyleProperty(div, 'border-style'), style, div.className);
});
};
t('el1', 'dotted');
t('el2', 'dashed');
t('el3', 'solid');
t('el4', 'double');
t('el5', 'groove');
t('el6', 'inset');
// This is assigned to 'ridge' in not-included.s(a|c)ss, which is ... not
// included. So that's why it should be 'none'. (This tests that we don't
// process non-main files.)
t('el0', 'none');
} finally {
document.body.removeChild(div);
}
});