Skip to content

Commit

Permalink
Merge "test: Merge Fixtures/bug-reports/ into Fixtures/less.php/"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed May 3, 2024
2 parents e964e7b + ee0d9ed commit 44cd5e3
Show file tree
Hide file tree
Showing 69 changed files with 67 additions and 94 deletions.
File renamed without changes.
3 changes: 0 additions & 3 deletions test/Fixtures/bug-reports/305-import.less

This file was deleted.

2 changes: 0 additions & 2 deletions test/Fixtures/bug-reports/css/109.css

This file was deleted.

3 changes: 0 additions & 3 deletions test/Fixtures/bug-reports/css/110.css

This file was deleted.

3 changes: 0 additions & 3 deletions test/Fixtures/bug-reports/css/129.css

This file was deleted.

4 changes: 0 additions & 4 deletions test/Fixtures/bug-reports/css/259.css

This file was deleted.

4 changes: 0 additions & 4 deletions test/Fixtures/bug-reports/css/280.css

This file was deleted.

9 changes: 0 additions & 9 deletions test/Fixtures/bug-reports/css/97.css

This file was deleted.

2 changes: 0 additions & 2 deletions test/Fixtures/bug-reports/less/110.less

This file was deleted.

4 changes: 0 additions & 4 deletions test/Fixtures/bug-reports/less/198.less

This file was deleted.

2 changes: 0 additions & 2 deletions test/Fixtures/bug-reports/less/202.less

This file was deleted.

3 changes: 0 additions & 3 deletions test/Fixtures/bug-reports/less/259.less

This file was deleted.

5 changes: 0 additions & 5 deletions test/Fixtures/bug-reports/less/261.less

This file was deleted.

2 changes: 0 additions & 2 deletions test/Fixtures/bug-reports/less/280-import.less

This file was deleted.

4 changes: 0 additions & 4 deletions test/Fixtures/bug-reports/less/280.less

This file was deleted.

1 change: 0 additions & 1 deletion test/Fixtures/bug-reports/less/305.less

This file was deleted.

1 change: 0 additions & 1 deletion test/Fixtures/bug-reports/less/80.less

This file was deleted.

5 changes: 0 additions & 5 deletions test/Fixtures/bug-reports/less/81.less

This file was deleted.

3 changes: 0 additions & 3 deletions test/Fixtures/bug-reports/less/89.less

This file was deleted.

2 changes: 2 additions & 0 deletions test/Fixtures/less.php/305-import-parent.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

@import "../305-import-grantparent.less";
4 changes: 4 additions & 0 deletions test/Fixtures/less.php/css/oyejorge-109-recursive-var.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Recursive variable definition for @navbar-hydra-inverse-color in oyejorge-109-recursive-var.less on line 2, column 38
1| // https://github.com/oyejorge/less.php/issues/109
2| @navbar-hydra-inverse-color: lighten(@navbar-hydra-inverse-color, 10%);
3|
File renamed without changes.
4 changes: 4 additions & 0 deletions test/Fixtures/less.php/css/oyejorge-129-incomplete.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ParseError: missing closing `}` in oyejorge-129-incomplete.less on line 1, column 8
1| .sr-only{
2| border:
3|
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ body .color-blenders .average {
}
body .color-blenders .negation {
color: rgba(232, 185, 139, 0.99);
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ div a + div b,
div b + div a,
div b + div b {
margin-top: 0;
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#example {
width: 99px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
}
.test {
background: url('http://domain/assets/images/logo.png');
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#div .div {
background: transparent url("images/logo.png") center center no-repeat;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
}
h2 {
color: transparent;
}
}
3 changes: 3 additions & 0 deletions test/Fixtures/less.php/css/oyejorge-97.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.import-a {
color: #fff;
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@navbar-hydra-inverse-color: lighten(@navbar-hydra-inverse-color, 10%);
// https://github.com/oyejorge/less.php/issues/109
@navbar-hydra-inverse-color: lighten(@navbar-hydra-inverse-color, 10%);
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/oyejorge/less.php/issues/124
body{
@stra: 'This is a \
multiline string.';
Expand All @@ -10,4 +11,4 @@ body{

content: @strb;

}
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.sr-only{
border:
border:
4 changes: 4 additions & 0 deletions test/Fixtures/less.php/less/oyejorge-198-alpha.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// https://github.com/oyejorge/less.php/issues/198
.goog-menuitem-icon {
filter: alpha(opacity=30);
}
2 changes: 2 additions & 0 deletions test/Fixtures/less.php/less/oyejorge-202-import-once.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import "imports/202-import1.less";
@import "imports/202-last.less";
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// https://github.com/oyejorge/less.php/pull/210

@color1: rgba(51, 102, 153, 0.9);
@color2: rgba(204, 102, 0, 0.9);
@color3: rgba(252, 179, 208, 0.9);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/oyejorge/less.php/issues/235
.test {
background: url(http://subdomain.domain.com/images/animals/kittens/image.jpg);
}
6 changes: 6 additions & 0 deletions test/Fixtures/less.php/less/oyejorge-261-selector-plus.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// https://github.com/oyejorge/less.php/issues/261
div {
a,b {
&+&{margin-top:0;}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// https://github.com/oyejorge/less.php/issues/269
.test {
font-family: Arial, sans-serif;
font-weight: bold;
}
.another {
.test() !important;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/oyejorge/less.php/issues/298
.test {
background: url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFM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vWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==");
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/oyejorge/less.php/issues/302
@baseFontFamily: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", "微软雅黑", STXihei, "华文细黑", sans-serif;

.text{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// https://github.com/oyejorge/less.php/issues/305
@import "../305-import-parent.less";
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

// https://github.com/oyejorge/less.php/issues/55
.test {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAZCAYAAAAxFw7TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hJREFUeNqUlWtIk2EUx/+7pDln5syy4WWhiIWYdpEluuyCFSntQ1qZSlSUFEVFGITfoigI0k9RnypYSQWapsyM0iGZsnLTZaQGKnlrplvO1mVtnXfv6zbnFu7Af+d9n/d5fjvnOc8F8Lbqvo1nLlY1O9an1ZIKSSEIwIResBz6fTa9VPyR/E7SPpKFoDXkH5Je8vQ626KAFd2T5YlhQVdfjM8KYZjXR0wq4WQk+GMO3k5whzeQx0VWki8NvVeXLeUzr8bps-15xxxxxxxxxxxxx);
background: url(/astring\'withbac\"kslash\chara\cters);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Regression in less.php 1.6.1:
// https://github.com/oyejorge/less.php/issues/63
.foo {
h2,h3 {
font-size: 15px;
Expand All @@ -7,4 +9,4 @@
@num: 3;
:nth-child(@{num}) {
selector: interpolated;
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'imports/80.less';
8 changes: 8 additions & 0 deletions test/Fixtures/less.php/less/oyejorge-81-crash.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Regression in less.php 1.6.1:
// Support bootstrap 2.3.2
// https://github.com/oyejorge/less.php/issues/81
@menu_width:100;
@navbarCollapseWidth: @menu_width+0px;
#example{
width:@navbarCollapseWidth - 1px;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

// https://github.com/oyejorge/less.php/issues/87
@asset_path1: 'assets/';
@url1: '/assets/@{asset_path1}/images/logo.png';
.test{ background:url(@url1); }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// https://github.com/oyejorge/less.php/issues/89
#div{
@import 'imports/80.less';
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// https://github.com/oyejorge/less.php/issues/92
@color: transparent;
#header{
color: @color;
}
h2{
color: @color;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://github.com/oyejorge/less.php/issues/97


@custom_css:'87.less';
@custom_css:'imports/a.less';

.import_custom_css() when ( isstring(@custom_css) ){
@import "@{custom_css}";
Expand Down
4 changes: 0 additions & 4 deletions test/fixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
'lessDir' => "$fixtureDir/less.php/less",
'cssDir' => "$fixtureDir/less.php/css",
],
'bug-reports' => [
'lessDir' => "$fixtureDir/bug-reports/less",
'cssDir' => "$fixtureDir/bug-reports/css",
],
'bootstrap-3.0.3' => [
'lessDir' => "$fixtureDir/bootstrap-3.0.3/less",
'cssDir' => "$fixtureDir/bootstrap-3.0.3/css",
Expand Down
14 changes: 0 additions & 14 deletions test/phpunit/FixturesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@

class phpunit_FixturesTest extends phpunit_bootstrap {
private const KNOWN_FAILURE = [
'bug-reports' => [
// <lessjs> background: transparent url("../images/logo.png")
// <less.php> background: transparent url("images/logo.png")
'110' => true,

// Invalid input, which lessjs autocorrects.
//
// <lessjs> @charset 'UTF-8';
// <lessjs> .test {}
// <less.php> .test {}
// <less.php> @charset 'UTF-8';
'280' => true,
],

'lessjs-2.5.3' => [
// We moved this to Less.php parens.less test case because
// our current version of Less.php suports Less.js v3.x parens
Expand Down

0 comments on commit 44cd5e3

Please sign in to comment.