Skip to content

Commit

Permalink
Add missing todo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Aug 24, 2015
1 parent 6c78ece commit 0209d61
Show file tree
Hide file tree
Showing 35 changed files with 340 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/libsass-todo-issues/issue_1370/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.test { display: inline-block; background: url(i/"icon.png"); background-repeat: no-repeat; width: 100px; height: 100px; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.test{display:inline-block;background:url(i/"icon.png");background-repeat:no-repeat;width:100px;height:100px}
7 changes: 7 additions & 0 deletions spec/libsass-todo-issues/issue_1370/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.test {
display: inline-block;
background: url(i/"icon.png");
background-repeat: no-repeat;
width: 100px;
height: 100px;
}
6 changes: 6 additions & 0 deletions spec/libsass-todo-issues/issue_1370/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.test {
display: inline-block;
background: url(i/"icon.png");
background-repeat: no-repeat;
width: 100px;
height: 100px; }
16 changes: 16 additions & 0 deletions spec/libsass-todo-issues/issue_1370/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@mixin ico-common($imgUrl){
display: inline-block;
background: url(i/$imgUrl);
background-repeat: no-repeat;
}

@mixin ico-size($width,$height){
width: $width;
height: $height;
}

.test{
@include ico-common("icon.png");

@include ico-size(100px, 100px);
}
1 change: 1 addition & 0 deletions spec/libsass-todo-issues/issue_1404/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.test { color: #aaabbb--1-2-a; color: string; color: string; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.test{color:#aaabbb--1-2-a;color:string;color:string}
5 changes: 5 additions & 0 deletions spec/libsass-todo-issues/issue_1404/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.test {
color: #aaabbb--1-2-a;
color: string;
color: string;
}
4 changes: 4 additions & 0 deletions spec/libsass-todo-issues/issue_1404/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.test {
color: #aaabbb--1-2-a;
color: string;
color: string; }
5 changes: 5 additions & 0 deletions spec/libsass-todo-issues/issue_1404/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.test {
color: #aaabbb--1-2-a;
color: type-of(#aaabbb--1-2-a);
color: type-of(#aaabbb--1-2);
}
1 change: 1 addition & 0 deletions spec/libsass-todo-issues/issue_1405/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
div { foo: 1; foo: number; foo: "a2b3c"; foo: 1a2b3c; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
div{foo:1;foo:number;foo:"a2b3c";foo:1a2b3c}
6 changes: 6 additions & 0 deletions spec/libsass-todo-issues/issue_1405/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
div {
foo: 1;
foo: number;
foo: "a2b3c";
foo: 1a2b3c;
}
5 changes: 5 additions & 0 deletions spec/libsass-todo-issues/issue_1405/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
div {
foo: 1;
foo: number;
foo: "a2b3c";
foo: 1a2b3c; }
6 changes: 6 additions & 0 deletions spec/libsass-todo-issues/issue_1405/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
div {
foo: length(1a2b3c);
foo: type-of(1a2b3c);
foo: unit(1a2b3c);
foo: (1a2b3c);
}
5 changes: 5 additions & 0 deletions spec/libsass-todo-issues/issue_1413/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
div { foo: "A"B; foo: A"B"; foo: "A"B"C"; foo: A"B"C; foo: AB"C"; foo: "A"BC; foo: AB "C"; foo: "A"BC "D"; foo: "A" BCD "E"; foo: A "B"CD "E"; foo: A"B" C "D" "E"; }

div { foo: string; foo: string; foo: string; foo: string; foo: string; foo: string; foo: string; foo: string; foo: string; foo: string; foo: string; }

div { foo: 1; foo: 1; foo: 1; foo: 1; foo: 1; foo: 1; foo: 1; foo: 1; foo: 1; foo: 1; foo: 1; }

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

41 changes: 41 additions & 0 deletions spec/libsass-todo-issues/issue_1413/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
div {
foo: "A"B;
foo: A"B";
foo: "A"B"C";
foo: A"B"C;
foo: AB"C";
foo: "A"BC;
foo: AB "C";
foo: "A"BC "D";
foo: "A" BCD "E";
foo: A "B"CD "E";
foo: A"B" C "D" "E";
}

div {
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
}

div {
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
}
38 changes: 38 additions & 0 deletions spec/libsass-todo-issues/issue_1413/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
div {
foo: "A"B;
foo: A"B";
foo: "A"B"C";
foo: A"B"C;
foo: AB"C";
foo: "A"BC;
foo: AB "C";
foo: "A"BC "D";
foo: "A" BCD "E";
foo: A "B"CD "E";
foo: A"B" C "D" "E"; }

div {
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
foo: string;
foo: string; }

div {
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1;
foo: 1; }
41 changes: 41 additions & 0 deletions spec/libsass-todo-issues/issue_1413/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
div {
foo: 'A'#{B};
foo: #{A}'B';
foo: 'A'#{B}'C';
foo: #{A}'B'#{C};
foo: A#{B}'C';
foo: 'A'#{B}C;
foo: #{A}B'C';
foo: 'A'#{B}C'D';
foo: 'A'B#{C}D'E';
foo: A'B'#{C}D'E';
foo: #{A}'B'C'D''E';
}

div {
foo: type-of('A'#{B});
foo: type-of(#{A}'B');
foo: type-of('A'#{B}'C');
foo: type-of(#{A}'B'#{C});
foo: type-of(A#{B}'C');
foo: type-of('A'#{B}C);
foo: type-of(#{A}B'C');
foo: type-of('A'#{B}C'D');
foo: type-of('A'B#{C}D'E');
foo: type-of(A'B'#{C}D'E');
foo: type-of(#{A}'B'C'D''E');
}

div {
foo: length('A'#{B});
foo: length(#{A}'B');
foo: length('A'#{B}'C');
foo: length(#{A}'B'#{C});
foo: length(A#{B}'C');
foo: length('A'#{B}C);
foo: length(#{A}B'C');
foo: length('A'#{B}C'D');
foo: length('A'B#{C}D'E');
foo: length(A'B'#{C}D'E');
foo: length(#{A}'B'C'D''E');
}
2 changes: 2 additions & 0 deletions spec/libsass-todo-issues/issue_1437/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@media screen and (min-width: 37.5em) { div { /* asd */ } }
@media screen and (min-width: 48em) { div { display: none; } }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@media screen and (min-width: 48em){div{display:none}}
10 changes: 10 additions & 0 deletions spec/libsass-todo-issues/issue_1437/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@media screen and (min-width: 37.5em) {
div {
/* asd */
}
}
@media screen and (min-width: 48em) {
div {
display: none;
}
}
6 changes: 6 additions & 0 deletions spec/libsass-todo-issues/issue_1437/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@media screen and (min-width: 37.5em) {
div {
/* asd */ } }
@media screen and (min-width: 48em) {
div {
display: none; } }
10 changes: 10 additions & 0 deletions spec/libsass-todo-issues/issue_1437/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
div {

@media screen and (min-width: 37.5em) {
/* asd */
}

@media screen and (min-width: 48em) {
display: none;
}
}
11 changes: 11 additions & 0 deletions spec/libsass-todo-issues/issue_1440/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.okay1 { width: 132px; }

.okay2 { width: 100px; background-position: -100px -25px; }

.okay3 { width: 200px; background-position: -500px -100px; }

.error1 { width: 132px; }

.error2 { width: 100px; background-position: -100px -25px; }

.error3 { width: 200px; background-position: -500px -100px; }

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

27 changes: 27 additions & 0 deletions spec/libsass-todo-issues/issue_1440/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.okay1 {
width: 132px;
}

.okay2 {
width: 100px;
background-position: -100px -25px;
}

.okay3 {
width: 200px;
background-position: -500px -100px;
}

.error1 {
width: 132px;
}

.error2 {
width: 100px;
background-position: -100px -25px;
}

.error3 {
width: 200px;
background-position: -500px -100px;
}
21 changes: 21 additions & 0 deletions spec/libsass-todo-issues/issue_1440/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.okay1 {
width: 132px; }

.okay2 {
width: 100px;
background-position: -100px -25px; }

.okay3 {
width: 200px;
background-position: -500px -100px; }

.error1 {
width: 132px; }

.error2 {
width: 100px;
background-position: -100px -25px; }

.error3 {
width: 200px;
background-position: -500px -100px; }
34 changes: 34 additions & 0 deletions spec/libsass-todo-issues/issue_1440/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// works fine with plain @each directive
$i: 1;
$prop1: width;
$prop2: background-position;
$values: 132px,
100px "-100px -25px",
200px "-500px -100px";

@each $value1, $value2 in $values{
.okay#{$i} {
#{$prop1}: #{$value1};
#{$prop2}: #{$value2};
}
$i: ($i + 1);
}

// when using @each inside @mixin with variable arguments($values...),
// $value2 is missing and no errors while compiling
@mixin eachProp($prop1, $prop2, $values...){
$i: 1;
@each $value1, $value2 in $values{
.error#{$i} {
#{$prop1}: #{$value1};
#{$prop2}: #{$value2};
}
$i: ($i + 1);
}
}

@include eachProp($prop1, $prop2,
132px,
100px "-100px -25px",
200px "-500px -100px"
);
2 changes: 2 additions & 0 deletions spec/libsass-todo-issues/issue_1448/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.md-card .md-info-card-highlight { background: red; color: blue; }
.md-card .md-info-card-highlight .ng-md-icon { color: green; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.md-card .md-info-card-highlight{background:red;color:blue}.md-card .md-info-card-highlight .ng-md-icon{color:green}
7 changes: 7 additions & 0 deletions spec/libsass-todo-issues/issue_1448/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.md-card .md-info-card-highlight {
background: red;
color: blue;
}
.md-card .md-info-card-highlight .ng-md-icon {
color: green;
}
5 changes: 5 additions & 0 deletions spec/libsass-todo-issues/issue_1448/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.md-card .md-info-card-highlight {
background: red;
color: blue; }
.md-card .md-info-card-highlight .ng-md-icon {
color: green; }
10 changes: 10 additions & 0 deletions spec/libsass-todo-issues/issue_1448/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.md-card {
.md-info-card-highlight {
background: red;
color: blue;

.ng-md-icon {
color: green;
}
}
}

0 comments on commit 0209d61

Please sign in to comment.