-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecated warning on old import-once and import-multiple #126
- Loading branch information
meri
committed
Feb 15, 2014
1 parent
bb2d597
commit 573db1b
Showing
29 changed files
with
66 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/resources/compile-basic-features/import/import-deep-incorrect.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/test/resources/compile-basic-features/import/import-file-not-exists.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@import url(somewhere/this-file-does-not-exists.less); | ||
@import url(somewhere/this-file-does-not-exists-old-syntax.less); | ||
.class { | ||
padding: 2 2 2 2; | ||
} |
3 changes: 3 additions & 0 deletions
3
src/test/resources/compile-basic-features/import/import-file-not-exists.err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
Warnings produced by compilation of testCase | ||
WARNING 2:1 `@import-once <url>` have been deprecated. Use `@import (once) <url>` instead. Input file is less.js incompatible. | ||
Errors produced by compilation of testCase | ||
ERROR 1:1 The file somewhere/this-file-does-not-exists.less does not exist. | ||
ERROR 2:1 The file somewhere/this-file-does-not-exists-old-syntax.less does not exist. |
3 changes: 2 additions & 1 deletion
3
src/test/resources/compile-basic-features/import/import-file-not-exists.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@import-once url(somewhere/this-file-does-not-exists.less); | ||
@import (once) url(somewhere/this-file-does-not-exists.less); | ||
@import-once url(somewhere/this-file-does-not-exists-old-syntax.less); | ||
.class { | ||
padding: 2 2 2 2; | ||
} |
6 changes: 3 additions & 3 deletions
6
src/test/resources/compile-basic-features/import/import-interpolated-complicated.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
@filename: "chained-reference-import-"; | ||
@filename2: "chained-reference-import-"; | ||
@import-multiple "import/@{filename}1.less"; | ||
@import (multiple) "import/@{filename}1.less"; | ||
.mainMixin { | ||
color: green; | ||
} | ||
.see-global { | ||
@import-multiple url("import/@{filename}2.less"); | ||
@import (multiple) url("import/@{filename}2.less"); | ||
} | ||
.redefined { | ||
@import-multiple url('import/@{filename}import-2.less'); | ||
@import (multiple) url('import/@{filename}import-2.less'); | ||
@filename: "chained-reference-"; | ||
} | ||
@definitelyLast: 3; |
6 changes: 3 additions & 3 deletions
6
src/test/resources/compile-basic-features/import/import-interpolated-dependence.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
@variable: "import/imports-dependence-1"; | ||
@import-multiple "@{variable}.less"; | ||
@import (multiple) "@{variable}.less"; | ||
.mainMixin { | ||
color: @another; | ||
} | ||
.see-global { | ||
@import-multiple "@{variable}.less"; | ||
@import (multiple) "@{variable}.less"; | ||
} | ||
@import-multiple "@{variable}.less"; | ||
@import (multiple) "@{variable}.less"; | ||
@definitelyLast: 3; |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
src/test/resources/compile-basic-features/import/import-old-media-queries.err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Warnings produced by compilation of testCase | ||
WARNING 1:1 `@import-multiple <url>` have been deprecated. Use `@import (multiple) <url>` instead. Input file is less.js incompatible. | ||
WARNING 2:1 `@import-multiple <url>` have been deprecated. Use `@import (multiple) <url>` instead. Input file is less.js incompatible. |
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
src/test/resources/compile-basic-features/import/import-old-multiplicity-css-files.err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Warnings produced by compilation of testCase | ||
WARNING 11:1 `@import-once <url>` have been deprecated. Use `@import (once) <url>` instead. Input file is less.js incompatible. | ||
WARNING 12:1 `@import-once <url>` have been deprecated. Use `@import (once) <url>` instead. Input file is less.js incompatible. | ||
WARNING 13:1 `@import-once <url>` have been deprecated. Use `@import (once) <url>` instead. Input file is less.js incompatible. | ||
WARNING 14:1 `@import-once <url>` have been deprecated. Use `@import (once) <url>` instead. Input file is less.js incompatible. | ||
WARNING 15:1 `@import-once <url>` have been deprecated. Use `@import (once) <url>` instead. Input file is less.js incompatible. | ||
WARNING 17:1 `@import-multiple <url>` have been deprecated. Use `@import (multiple) <url>` instead. Input file is less.js incompatible. | ||
WARNING 18:1 `@import-multiple <url>` have been deprecated. Use `@import (multiple) <url>` instead. Input file is less.js incompatible. | ||
WARNING 19:1 `@import-multiple <url>` have been deprecated. Use `@import (multiple) <url>` instead. Input file is less.js incompatible. | ||
WARNING 20:1 `@import-multiple <url>` have been deprecated. Use `@import (multiple) <url>` instead. Input file is less.js incompatible. | ||
WARNING 21:1 `@import-multiple <url>` have been deprecated. Use `@import (multiple) <url>` instead. Input file is less.js incompatible. |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
src/test/resources/compile-basic-features/import/import-once-order.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@import-once "import/chained-import-1.less"; | ||
@import (once) "import/chained-import-1.less"; | ||
h1 { | ||
color: green; | ||
} | ||
@import-once "import/chained-import-2.less"; | ||
@import (once) "import/chained-import-2.less"; |
2 changes: 1 addition & 1 deletion
2
...ources/compile-basic-features/import/import-syntactically-incorrect-unclosed-ruleset.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...esources/compile-basic-features/import/import-syntactically-incorrect-wrong-variable.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/test/resources/compile-basic-features/import/import-types-combinations.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@import "import/one-simple-ruleset.less"; | ||
@import "import/one-simple-ruleset.less"; | ||
@import-once "import/one-simple-ruleset.less"; | ||
@import-once "import/one-simple-ruleset.less"; | ||
//@import-multiple "import/one-simple-ruleset.less"; | ||
@import (once) "import/one-simple-ruleset.less"; | ||
@import (once) "import/one-simple-ruleset.less"; | ||
//@import (multiple) "import/one-simple-ruleset.less"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/resources/compile-basic-features/import/import-variables-and-mixins.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/resources/compile-basic-features/import/import/chained-import-1.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
chained-import-1 { | ||
content: ~"chained-import-1"; | ||
} | ||
@import-once "chained-import-2.less"; | ||
@import (once) "chained-import-2.less"; |
2 changes: 1 addition & 1 deletion
2
src/test/resources/compile-basic-features/import/import/chained-reference-import-1.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
chained-import-1 { | ||
content: ~"chained-referenced-import-1"; | ||
} | ||
@import-multiple "@{filename2}2.less"; | ||
@import (multiple) "@{filename2}2.less"; |
2 changes: 1 addition & 1 deletion
2
src/test/resources/compile-basic-features/import/import/import-namespaces-and-mixins.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
@import-multiple "namespaces-and-mixins.less"; | ||
@import (multiple) "namespaces-and-mixins.less"; |
4 changes: 2 additions & 2 deletions
4
src/test/resources/compile-basic-features/import/imports-depend-on-each-other.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@import-once "import/cyclic-1.less"; | ||
@import-once "import/cyclic-2.less"; | ||
@import (once) "import/cyclic-1.less"; | ||
@import (once) "import/cyclic-2.less"; |
8 changes: 4 additions & 4 deletions
8
.../resources/compile-basic-features/import/unknown-input-file/import-types-combinations.err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Warnings produced by compilation of testCase | ||
WARNING 4:9 Attempt to import less file with an unknown compiled file location. Import statement left unchanged. | ||
WARNING 5:9 Attempt to import less file with an unknown compiled file location. Import statement left unchanged. | ||
WARNING 6:14 Attempt to import less file with an unknown compiled file location. Import statement left unchanged. | ||
WARNING 7:14 Attempt to import less file with an unknown compiled file location. Import statement left unchanged. | ||
WARNING 8:18 Attempt to import less file with an unknown compiled file location. Import statement left unchanged. | ||
WARNING 9:18 Attempt to import less file with an unknown compiled file location. Import statement left unchanged. | ||
WARNING 6:16 Attempt to import less file with an unknown compiled file location. Import statement left unchanged. | ||
WARNING 7:16 Attempt to import less file with an unknown compiled file location. Import statement left unchanged. | ||
WARNING 8:20 Attempt to import less file with an unknown compiled file location. Import statement left unchanged. | ||
WARNING 9:20 Attempt to import less file with an unknown compiled file location. Import statement left unchanged. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import-once "import/import-once-test-c"; | ||
@import-once "import/import-once-test-c"; | ||
//@import-once "import/import-once-test-c.less"; | ||
//@import-once "import/deeper/import-once-test-a"; | ||
@import (once) "import/import-once-test-c"; | ||
@import (once) "import/import-once-test-c"; | ||
//@import (once) "import/import-once-test-c.less"; | ||
//@import (once) "import/deeper/import-once-test-a"; |
2 changes: 1 addition & 1 deletion
2
src/test/resources/source-map/content/import/chained-import-1.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.chained-import-1 { | ||
content: ~"chained-import-1"; | ||
} | ||
@import-once "chained-import-2.less"; | ||
@import (once) "chained-import-2.less"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters