-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Improve rule diffing algorithm (#104)
Diffing algorithm now handles comments between rules correctly
- Loading branch information
1 parent
2548c94
commit 2527189
Showing
7 changed files
with
117 additions
and
1 deletion.
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
32 changes: 32 additions & 0 deletions
32
test/expected/libraries/lib5/my/ui/lib/themes/cascading/library-RTL.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
body { | ||
color: black; | ||
} | ||
a { | ||
color: black; | ||
} | ||
b { | ||
text-align: center; | ||
} | ||
.sapContrastPlus { | ||
color: orange; | ||
} | ||
|
||
body.sapContrastPlus, | ||
body .sapContrastPlus { | ||
color: blue; | ||
} | ||
|
||
.sapContrastPlus a { | ||
color: blue; | ||
} | ||
/* ============================= */ | ||
|
||
/* Shared CSS 1 theme */ | ||
|
||
/* ============================= */ | ||
|
||
/* ============================= */ | ||
|
||
/* Shared CSS 2 theme */ | ||
|
||
/* ============================= */ |
32 changes: 32 additions & 0 deletions
32
test/expected/libraries/lib5/my/ui/lib/themes/cascading/library.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
body { | ||
color: black; | ||
} | ||
a { | ||
color: black; | ||
} | ||
b { | ||
text-align: center; | ||
} | ||
.sapContrastPlus { | ||
color: orange; | ||
} | ||
|
||
body.sapContrastPlus, | ||
body .sapContrastPlus { | ||
color: blue; | ||
} | ||
|
||
.sapContrastPlus a { | ||
color: blue; | ||
} | ||
/* ============================= */ | ||
|
||
/* Shared CSS 1 theme */ | ||
|
||
/* ============================= */ | ||
|
||
/* ============================= */ | ||
|
||
/* Shared CSS 2 theme */ | ||
|
||
/* ============================= */ |
11 changes: 11 additions & 0 deletions
11
test/fixtures/libraries/lib5/my/ui/lib/themes/cascading/base/library.source.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
body { | ||
color: black; | ||
} | ||
|
||
a { | ||
color: black; | ||
} | ||
|
||
b { | ||
text-align: center; | ||
} |
2 changes: 2 additions & 0 deletions
2
test/fixtures/libraries/lib5/my/ui/lib/themes/cascading/library.source.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import "base/library.source.less"; | ||
@import "plus/library.source.less"; |
19 changes: 19 additions & 0 deletions
19
test/fixtures/libraries/lib5/my/ui/lib/themes/cascading/plus/library.source.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
body { | ||
color: blue; | ||
} | ||
/* ============================= */ | ||
/* Shared CSS 1 theme */ | ||
/* ============================= */ | ||
#CSS_SCOPE_ROOT { | ||
color: orange; | ||
} | ||
/* ============================= */ | ||
/* Shared CSS 2 theme */ | ||
/* ============================= */ | ||
a { | ||
color: blue; | ||
} | ||
|
||
b { | ||
text-align: center; | ||
} |
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