Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add various missing todo tests #749

Merged
merged 1 commit into from
Apr 5, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions spec/libsass-todo-issues/issue_1889/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@media (min-width: 640px) { /* comment */ }
@media (min-width: 320px) { div { /* comment */ } }
Empty file.
8 changes: 8 additions & 0 deletions spec/libsass-todo-issues/issue_1889/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@media (min-width: 640px) {
/* comment */
}
@media (min-width: 320px) {
div {
/* comment */
}
}
5 changes: 5 additions & 0 deletions spec/libsass-todo-issues/issue_1889/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@media (min-width: 640px) {
/* comment */ }
@media (min-width: 320px) {
div {
/* comment */ } }
9 changes: 9 additions & 0 deletions spec/libsass-todo-issues/issue_1889/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@media (min-width: 640px) {
/* comment */
}

div {
@media (min-width: 320px) {
/* comment */
}
}
2 changes: 2 additions & 0 deletions spec/libsass-todo-issues/issue_1890/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@media (min-width: 480px) { .wrap { display: block; } }
.wrap .box { display: inline-block; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@media (min-width: 480px){.wrap{display:block}}.wrap .box{display:inline-block}
8 changes: 8 additions & 0 deletions spec/libsass-todo-issues/issue_1890/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@media (min-width: 480px) {
.wrap {
display: block;
}
}
.wrap .box {
display: inline-block;
}
5 changes: 5 additions & 0 deletions spec/libsass-todo-issues/issue_1890/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@media (min-width: 480px) {
.wrap {
display: block; } }
.wrap .box {
display: inline-block; }
10 changes: 10 additions & 0 deletions spec/libsass-todo-issues/issue_1890/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.wrap {
@media (min-width: 480px) {
display: block;
@at-root (without: media){
.box {
display: inline-block;
}
}
}
}
2 changes: 2 additions & 0 deletions spec/libsass-todo-issues/issue_1898/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@media (min-width: 640px) { /* comment */ }
@media (min-width: 320px) { div { /* comment */ } }
Empty file.
8 changes: 8 additions & 0 deletions spec/libsass-todo-issues/issue_1898/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@media (min-width: 640px) {
/* comment */
}
@media (min-width: 320px) {
div {
/* comment */
}
}
5 changes: 5 additions & 0 deletions spec/libsass-todo-issues/issue_1898/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@media (min-width: 640px) {
/* comment */ }
@media (min-width: 320px) {
div {
/* comment */ } }
9 changes: 9 additions & 0 deletions spec/libsass-todo-issues/issue_1898/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@media (min-width: 640px) {
/* comment */
}

div {
@media (min-width: 320px) {
/* comment */
}
}
32 changes: 32 additions & 0 deletions spec/libsass-todo-issues/issue_1926/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.grid [class*="one wide"] { width: 6.25%; }
.grid[class*="one column"] > .column:not(.row), .grid .row[class*="one column"] > .column:not(.row) { width: 6.25% !important; }
.grid [class*="two wide"] { width: 12.5%; }
.grid[class*="two column"] > .column:not(.row), .grid .row[class*="two column"] > .column:not(.row) { width: 12.5% !important; }
.grid [class*="three wide"] { width: 18.75%; }
.grid[class*="three column"] > .column:not(.row), .grid .row[class*="three column"] > .column:not(.row) { width: 18.75% !important; }
.grid [class*="four wide"] { width: 25%; }
.grid[class*="four column"] > .column:not(.row), .grid .row[class*="four column"] > .column:not(.row) { width: 25% !important; }
.grid [class*="five wide"] { width: 31.25%; }
.grid[class*="five column"] > .column:not(.row), .grid .row[class*="five column"] > .column:not(.row) { width: 31.25% !important; }
.grid [class*="six wide"] { width: 37.5%; }
.grid[class*="six column"] > .column:not(.row), .grid .row[class*="six column"] > .column:not(.row) { width: 37.5% !important; }
.grid [class*="seven wide"] { width: 43.75%; }
.grid[class*="seven column"] > .column:not(.row), .grid .row[class*="seven column"] > .column:not(.row) { width: 43.75% !important; }
.grid [class*="eight wide"] { width: 50%; }
.grid[class*="eight column"] > .column:not(.row), .grid .row[class*="eight column"] > .column:not(.row) { width: 50% !important; }
.grid [class*="nine wide"] { width: 56.25%; }
.grid[class*="nine column"] > .column:not(.row), .grid .row[class*="nine column"] > .column:not(.row) { width: 56.25% !important; }
.grid [class*="ten wide"] { width: 62.5%; }
.grid[class*="ten column"] > .column:not(.row), .grid .row[class*="ten column"] > .column:not(.row) { width: 62.5% !important; }
.grid [class*="eleven wide"] { width: 68.75%; }
.grid[class*="eleven column"] > .column:not(.row), .grid .row[class*="eleven column"] > .column:not(.row) { width: 68.75% !important; }
.grid [class*="twelve wide"] { width: 75%; }
.grid[class*="twelve column"] > .column:not(.row), .grid .row[class*="twelve column"] > .column:not(.row) { width: 75% !important; }
.grid [class*="thirteen wide"] { width: 81.25%; }
.grid[class*="thirteen column"] > .column:not(.row), .grid .row[class*="thirteen column"] > .column:not(.row) { width: 81.25% !important; }
.grid [class*="fourteen wide"] { width: 87.5%; }
.grid[class*="fourteen column"] > .column:not(.row), .grid .row[class*="fourteen column"] > .column:not(.row) { width: 87.5% !important; }
.grid [class*="fifteen wide"] { width: 93.75%; }
.grid[class*="fifteen column"] > .column:not(.row), .grid .row[class*="fifteen column"] > .column:not(.row) { width: 93.75% !important; }
.grid [class*="sixteen wide"] { width: 100%; }
.grid[class*="sixteen column"] > .column:not(.row), .grid .row[class*="sixteen column"] > .column:not(.row) { width: 100% !important; }

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

96 changes: 96 additions & 0 deletions spec/libsass-todo-issues/issue_1926/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
.grid [class*="one wide"] {
width: 6.25%;
}
.grid[class*="one column"] > .column:not(.row), .grid .row[class*="one column"] > .column:not(.row) {
width: 6.25% !important;
}
.grid [class*="two wide"] {
width: 12.5%;
}
.grid[class*="two column"] > .column:not(.row), .grid .row[class*="two column"] > .column:not(.row) {
width: 12.5% !important;
}
.grid [class*="three wide"] {
width: 18.75%;
}
.grid[class*="three column"] > .column:not(.row), .grid .row[class*="three column"] > .column:not(.row) {
width: 18.75% !important;
}
.grid [class*="four wide"] {
width: 25%;
}
.grid[class*="four column"] > .column:not(.row), .grid .row[class*="four column"] > .column:not(.row) {
width: 25% !important;
}
.grid [class*="five wide"] {
width: 31.25%;
}
.grid[class*="five column"] > .column:not(.row), .grid .row[class*="five column"] > .column:not(.row) {
width: 31.25% !important;
}
.grid [class*="six wide"] {
width: 37.5%;
}
.grid[class*="six column"] > .column:not(.row), .grid .row[class*="six column"] > .column:not(.row) {
width: 37.5% !important;
}
.grid [class*="seven wide"] {
width: 43.75%;
}
.grid[class*="seven column"] > .column:not(.row), .grid .row[class*="seven column"] > .column:not(.row) {
width: 43.75% !important;
}
.grid [class*="eight wide"] {
width: 50%;
}
.grid[class*="eight column"] > .column:not(.row), .grid .row[class*="eight column"] > .column:not(.row) {
width: 50% !important;
}
.grid [class*="nine wide"] {
width: 56.25%;
}
.grid[class*="nine column"] > .column:not(.row), .grid .row[class*="nine column"] > .column:not(.row) {
width: 56.25% !important;
}
.grid [class*="ten wide"] {
width: 62.5%;
}
.grid[class*="ten column"] > .column:not(.row), .grid .row[class*="ten column"] > .column:not(.row) {
width: 62.5% !important;
}
.grid [class*="eleven wide"] {
width: 68.75%;
}
.grid[class*="eleven column"] > .column:not(.row), .grid .row[class*="eleven column"] > .column:not(.row) {
width: 68.75% !important;
}
.grid [class*="twelve wide"] {
width: 75%;
}
.grid[class*="twelve column"] > .column:not(.row), .grid .row[class*="twelve column"] > .column:not(.row) {
width: 75% !important;
}
.grid [class*="thirteen wide"] {
width: 81.25%;
}
.grid[class*="thirteen column"] > .column:not(.row), .grid .row[class*="thirteen column"] > .column:not(.row) {
width: 81.25% !important;
}
.grid [class*="fourteen wide"] {
width: 87.5%;
}
.grid[class*="fourteen column"] > .column:not(.row), .grid .row[class*="fourteen column"] > .column:not(.row) {
width: 87.5% !important;
}
.grid [class*="fifteen wide"] {
width: 93.75%;
}
.grid[class*="fifteen column"] > .column:not(.row), .grid .row[class*="fifteen column"] > .column:not(.row) {
width: 93.75% !important;
}
.grid [class*="sixteen wide"] {
width: 100%;
}
.grid[class*="sixteen column"] > .column:not(.row), .grid .row[class*="sixteen column"] > .column:not(.row) {
width: 100% !important;
}
64 changes: 64 additions & 0 deletions spec/libsass-todo-issues/issue_1926/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
.grid [class*="one wide"] {
width: 6.25%; }
.grid[class*="one column"] > .column:not(.row), .grid .row[class*="one column"] > .column:not(.row) {
width: 6.25% !important; }
.grid [class*="two wide"] {
width: 12.5%; }
.grid[class*="two column"] > .column:not(.row), .grid .row[class*="two column"] > .column:not(.row) {
width: 12.5% !important; }
.grid [class*="three wide"] {
width: 18.75%; }
.grid[class*="three column"] > .column:not(.row), .grid .row[class*="three column"] > .column:not(.row) {
width: 18.75% !important; }
.grid [class*="four wide"] {
width: 25%; }
.grid[class*="four column"] > .column:not(.row), .grid .row[class*="four column"] > .column:not(.row) {
width: 25% !important; }
.grid [class*="five wide"] {
width: 31.25%; }
.grid[class*="five column"] > .column:not(.row), .grid .row[class*="five column"] > .column:not(.row) {
width: 31.25% !important; }
.grid [class*="six wide"] {
width: 37.5%; }
.grid[class*="six column"] > .column:not(.row), .grid .row[class*="six column"] > .column:not(.row) {
width: 37.5% !important; }
.grid [class*="seven wide"] {
width: 43.75%; }
.grid[class*="seven column"] > .column:not(.row), .grid .row[class*="seven column"] > .column:not(.row) {
width: 43.75% !important; }
.grid [class*="eight wide"] {
width: 50%; }
.grid[class*="eight column"] > .column:not(.row), .grid .row[class*="eight column"] > .column:not(.row) {
width: 50% !important; }
.grid [class*="nine wide"] {
width: 56.25%; }
.grid[class*="nine column"] > .column:not(.row), .grid .row[class*="nine column"] > .column:not(.row) {
width: 56.25% !important; }
.grid [class*="ten wide"] {
width: 62.5%; }
.grid[class*="ten column"] > .column:not(.row), .grid .row[class*="ten column"] > .column:not(.row) {
width: 62.5% !important; }
.grid [class*="eleven wide"] {
width: 68.75%; }
.grid[class*="eleven column"] > .column:not(.row), .grid .row[class*="eleven column"] > .column:not(.row) {
width: 68.75% !important; }
.grid [class*="twelve wide"] {
width: 75%; }
.grid[class*="twelve column"] > .column:not(.row), .grid .row[class*="twelve column"] > .column:not(.row) {
width: 75% !important; }
.grid [class*="thirteen wide"] {
width: 81.25%; }
.grid[class*="thirteen column"] > .column:not(.row), .grid .row[class*="thirteen column"] > .column:not(.row) {
width: 81.25% !important; }
.grid [class*="fourteen wide"] {
width: 87.5%; }
.grid[class*="fourteen column"] > .column:not(.row), .grid .row[class*="fourteen column"] > .column:not(.row) {
width: 87.5% !important; }
.grid [class*="fifteen wide"] {
width: 93.75%; }
.grid[class*="fifteen column"] > .column:not(.row), .grid .row[class*="fifteen column"] > .column:not(.row) {
width: 93.75% !important; }
.grid [class*="sixteen wide"] {
width: 100%; }
.grid[class*="sixteen column"] > .column:not(.row), .grid .row[class*="sixteen column"] > .column:not(.row) {
width: 100% !important; }
17 changes: 17 additions & 0 deletions spec/libsass-todo-issues/issue_1926/input.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// The amount of the column of a single row.
$columnAmount: 16

// The name of the each column size.
$columnName : one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen

=column-generator
@for $i from 1 through $columnAmount
[class*="#{nth($columnName, $i)} wide"]
width: 100% / $columnAmount * $i

&[class*="#{nth($columnName, $i)} column"], & .row[class*="#{nth($columnName, $i)} column"]
> .column:not(.row)
width : 100% / $columnAmount * $i !important

.grid
+column-generator
1 change: 1 addition & 0 deletions spec/libsass-todo-issues/issue_1931/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
body { background-image: url(http://test.com); }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
body{background-image:url(http://test.com)}
3 changes: 3 additions & 0 deletions spec/libsass-todo-issues/issue_1931/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
background-image: url(http://test.com);
}
2 changes: 2 additions & 0 deletions spec/libsass-todo-issues/issue_1931/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
body {
background-image: url(http://test.com); }
4 changes: 4 additions & 0 deletions spec/libsass-todo-issues/issue_1931/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$var: 'http://test.com';
body {
background-image: url( #{$var});
}
2 changes: 2 additions & 0 deletions spec/libsass-todo-issues/issue_1960/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
foo:not(.missing):not(bar) { a: b; }
foo:not(.missing):not(bar):hover { c: d; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
foo:not(.missing):not(bar){a:b}foo:not(.missing):not(bar):hover{c:d}
6 changes: 6 additions & 0 deletions spec/libsass-todo-issues/issue_1960/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
foo:not(.missing):not(bar) {
a: b;
}
foo:not(.missing):not(bar):hover {
c: d;
}
4 changes: 4 additions & 0 deletions spec/libsass-todo-issues/issue_1960/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
foo:not(.missing):not(bar) {
a: b; }
foo:not(.missing):not(bar):hover {
c: d; }
9 changes: 9 additions & 0 deletions spec/libsass-todo-issues/issue_1960/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
foo:not(.missing) {
a: b;

&:hover { c: d; }
}

bar {
@extend .missing;
}
1 change: 1 addition & 0 deletions spec/libsass-todo-issues/issue_1969/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.test_class { color: #999999; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.test_class{color:#999}
3 changes: 3 additions & 0 deletions spec/libsass-todo-issues/issue_1969/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.test_class {
color: #999999;
}
2 changes: 2 additions & 0 deletions spec/libsass-todo-issues/issue_1969/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.test_class {
color: #999999; }
11 changes: 11 additions & 0 deletions spec/libsass-todo-issues/issue_1969/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$base-text-color: #666;

@function calcNavbarTextColor ($base-text-color) {
@return $base-text-color;
}

$header-text-color: calcNavbarTextColor($base-text-color);

.test_class {
color: lighten($header-text-color, 20%);
}
4 changes: 4 additions & 0 deletions spec/libsass-todo-issues/issue_1977/expected.compact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@charset "UTF-8";
body#some-\(selector\) { color: red; }

#äöü { color: reds; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
body#some-\(selector\){color:red}#äöü{color:reds}
8 changes: 8 additions & 0 deletions spec/libsass-todo-issues/issue_1977/expected.expanded.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@charset "UTF-8";
body#some-\(selector\) {
color: red;
}

#äöü {
color: reds;
}
6 changes: 6 additions & 0 deletions spec/libsass-todo-issues/issue_1977/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@charset "UTF-8";
body#some-\(selector\) {
color: red; }

#äöü {
color: reds; }
Loading