Doug Stewart avatar Doug Stewart committed 612dc37

Removing spurious tests (we don't need these to be tracked in the project.)

Comments (0)

Files changed (46)

includes/wp-less/lessc/tests/README

-test.php
-========================================
-
-to run:
-	php test.php [test-name-glob]
-
-
-Runs through all files in `inputs`, compiles them, then
-compares to respective file in `outputs`. If there are
-any differences then the test will fail.
-
-Add the -d flag to show the differences of failed tests
-in your diff tool (currently assigned in code, $difftool)
-Defaults to diff, but I like using meld.
-
-Pass the -C flag to save the output of the inputs to
-the appropriate file. This will overwrite any existing
-outputs. Use this when you want to save verified test
-results.
-
-You can also run specific tests by passing in an argument 
-that contains any part of the test name.
-

includes/wp-less/lessc/tests/inputs/accessors.less.disable

-/* accessors */
-
-#defaults {
-	@width: 960px;
-	@color: black;
-	.something {
-		@space: 10px;
-		@hello {
-			color: green;
-		}
-	}
-}
-
-.article { color: #294366; }
-
-.comment {
-	width: #defaults[@width];
-	color: .article['color']; 
-	padding: #defaults > .something[@space];
-}
-
-.wow {
-	height: .comment['width'];
-	background-color: .comment['color']; 
-	color: #defaults > .something > @hello['color'];
-
-	padding: #defaults > non-existant['padding'];
-	margin: #defaults > .something['non-existant'];
-}
-
-.mix {
-	#defaults;
-	font-size: .something[@space];
-}
-
-

includes/wp-less/lessc/tests/inputs/attributes.less

-* { color: blue; }
-E { color: blue; }
-E[foo] { color: blue; }
-[foo] { color: blue; }
-[foo] .helloWorld { color: blue; }
-[foo].helloWorld { color: blue; }
-E[foo="barbar"] { color: blue; }
-E[foo~="hello#$@%@$#^"] { color: blue; }
-E[foo^="color: green;"] { color: blue; }
-E[foo$="239023"] { color: blue; }
-E[foo*="29302"] { color: blue; }
-E[foo|="239032"] { color: blue; }
-E:root { color: blue; }
-
-E:nth-child(odd) { color: blue; }
-E:nth-child(2n+1) { color: blue; }
-E:nth-child(5) { color: blue; }
-E:nth-last-child(-n+2) { color: blue; }
-E:nth-of-type(2n) { color: blue; }
-E:nth-last-of-type(n) { color: blue; }
-
-E:first-child { color: blue; }
-E:last-child { color: blue; }
-E:first-of-type { color: blue; }
-E:last-of-type { color: blue; }
-E:only-child { color: blue; }
-E:only-of-type { color: blue; }
-E:empty { color: blue; }
-
-E:lang(en) { color: blue; }
-E::first-line { color: blue; }
-E::before { color: blue; }
-
-E#id { color: blue; }
-E:not(:link) { color: blue; }
-
-E F { color: blue; }
-E > F { color: blue; }
-E + F { color: blue; }
-E ~ F { color: blue; }
-

includes/wp-less/lessc/tests/inputs/builtins.less

-// builtin
-
-@something: "hello world";
-@color: #112233;
-@color2: rgba(44,55,66, .6);
-
-body {
-	color: @something;
-
-	@num: 7 / 6;
-	height: @num + 4;
-	height: floor(@num) + 4px;
-
-	@num2: 2 / 3;
-	width: @num2;
-	width: round(@num2);
-	width: floor(@num2);
-
-	color: rgbahex(@color);
-	color: rgbahex(@color2);
-}
-
-
-format {
-  @r: 32;
-  format: %("rgb(%d, %d, %d)", @r, 128, 64);
-  format-string: %("hello %s", "world");
-  format-multiple: %("hello %s %d", "earth", 2);
-  format-url-encode: %('red is %A', #ff0000);
-  eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64));
-}
-
-

includes/wp-less/lessc/tests/inputs/colors.less

-
-body {
-	color: hsl(34, 50%, 40%);
-	color: hsla(34, 50%, 40%, 0.3);
-
-	lighten: lighten(#efefef, 10%);
-	lighten: lighten(rgb(23, 53, 231), 22%);
-	lighten: lighten(rgba(212, 103, 88, 0.5), 10%);
-
-	darken: darken(#efefef, 10%);
-	darken: darken(rgb(23, 53, 231), 22%);
-	darken: darken(rgba(23, 53, 231, 0.5), 10%);
-
-	saturate: saturate(#efefef, 10%);
-	saturate: saturate(rgb(23, 53, 231), 22%);
-	saturate: saturate(rgba(23, 53, 231, 0.5), 10%);
-
-	desaturate: desaturate(#efefef, 10%);
-	desaturate: desaturate(rgb(23, 53, 231), 22%);
-	desaturate: desaturate(rgba(23, 53, 231, 0.5), 10%);
-
-	spin: spin(#efefef, 12);
-	spin: spin(rgb(23, 53, 231), 15);
-	spin: spin(rgba(23, 53, 231, 0.5), 19);
-
-	spin: spin(#efefef, -12);
-	spin: spin(rgb(23, 53, 231), -15);
-	spin: spin(rgba(23, 53, 231, 0.5), -19);
-
-	one: fadein(#abcdef, 10%);
-	one: fadeout(#abcdef, -10%);
-
-	two: fadeout(#029f23, 10%);
-	two: fadein(#029f23, -10%);
-
-
-	three: fadein(rgba(1,2,3, 0.5), 10%);
-	three: fadeout(rgba(1,2,3, 0.5), -10%);
-
-	four: fadeout(rgba(1,2,3, 0), 10%);
-	four: fadein(rgba(1,2,3, 0), -10%);
-
-	hue: hue(rgb(34,20,40));
-	sat: saturation(rgb(34,20,40));
-	lit: lightness(rgb(34,20,40));
-
-	@old: #34fa03;
-	@new: hsl(hue(@old), 45%, 90%);
-	what: @new;
-
-	zero: saturate(#123456, -100%);
-	zero: saturate(#123456, 100%);
-	zero: saturate(#000000, 100%);
-	zero: saturate(#ffffff, 100%);
-
-	zero: lighten(#123456, -100%);
-	zero: lighten(#123456, 100%);
-	zero: lighten(#000000, 100%);
-	zero: lighten(#ffffff, 100%);
-
-	zero: spin(#123456, -100);
-	zero: spin(#123456, 100);
-	zero: spin(#000000, 100);
-	zero: spin(#ffffff, 100);
-}

includes/wp-less/lessc/tests/inputs/compile_on_mixin.less

-
-@mixin {
-	height: 22px;
-	ul {
-		height: 20px;
-		li {
-			@color: red;
-			height: 10px;
-			div span, link {
-				margin: 10px;
-				color: @color;
-			}
-		}
-
-		div, p {
-			border: 1px;
-			&.hello {
-				color: green;
-			}
-
-			:what {
-				color: blue;
-			}
-		}
-
-
-		a {
-			b {
-				color: blue;
-			}
-		}
-	}
-}
-
-
-
-body {
-	@mixin;
-}

includes/wp-less/lessc/tests/inputs/escape.less

-
-body {
-	@hello: "world";
-	border: e("this is simple");
-	border: e(this is simple); // bug in lessjs
-	border: e("this is simple", "cool lad");
-	border: e(1232);
-	border: e(@hello);
-	border: e("one" + 'more'); // no string addition lessjs
-	border: e(); // syntax error lessjs
-
-	line-height: ~"eating rice";
-	line-height: ~"string cheese";
-	line-height: a b c ~"string me" d e f;
-}
-
-.class {
-	filter: ~"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png')";
-}

includes/wp-less/lessc/tests/inputs/font_family.less

-
-@font-directory: 'fonts/';
-@some-family: Gentium;
-
-@font-face: maroon; // won't collide with @font-face { } 
-
-@font-face {
-	font-family: Graublau Sans Web;
-	src: url(@{font-directory}GraublauWeb.otf) format("opentype");
-}
-
-@font-face {
-  font-family: @some-family;
-  src: url('@{font-directory}Gentium.ttf');
-}
- 
-@font-face {
-  font-family: @some-family;
-  src: url("@{font-directory}GentiumItalic.ttf");
-  font-style: italic;
-}
-
-h2 { 
-	font-family: @some-family;
-	crazy: @font-face;
-}
-
-

includes/wp-less/lessc/tests/inputs/hacks.less

-// css hacks
-
-:root .alert-message, :root .btn {
-	border-radius: 0 \0;
-}
-

includes/wp-less/lessc/tests/inputs/import.less

-
-@import 'file1.less'; // file found and imported
-
-@import "something.css" media;
-@import url("something.css") media;
-@import url(something.css) media, screen, print; 
-
-@color: maroon;
-
-@import url(file2); // found and imported
-
-body { 
-	line-height: 10em;
-	@colors;
-}
-
-div {
-	@color: fuchsia;
-	@import "file2";
-}
-

includes/wp-less/lessc/tests/inputs/keyframes.less

-@keyframes 'bounce' {
-	from {
-		top: 100px;
-		animation-timing-function: ease-out;
-	}
-
-	25% {
-		top: 50px;
-		animation-timing-function: ease-in;
-	}
-
-	50% {
-		top: 100px;
-		animation-timing-function: ease-out;
-	}
-
-	75% {
-		top: 75px;
-		animation-timing-function: ease-in;
-	}
-
-	to {
-		top: 100px;
-	}
-}
-
-
-
-div {
-	animation-name: 'diagonal-slide';
-	animation-duration: 5s;
-	animation-iteration-count: 10;
-}
-
-@keyframes 'diagonal-slide' {
-
-	from {
-		left: 0;
-		top: 0;
-	}
-
-	to {
-		left: 100px;
-		top: 100px;
-	}
-
-}
-

includes/wp-less/lessc/tests/inputs/math.less

-
-.unary {
-	// all operators are parsable as unary operators, anything
-	// but - throws an error right now though,
-
-	// this gives two numbers
-	sub: 10 -5;
-	// add: 10 +5; // error
-	// div: 10 /5; // error
-	// mul: 10 *5; // error
-}
-
-.spaces {
-	// we can make the parser do math by leaving out the 
-	// space after the first value, or putting spaces on both sides
-
-	sub: 10-5;
-	sub: 10 - 5;
-
-	add: 10+5; 
-	add: 10 + 5; 
-
-	// div: 10/5; // this wont work, read on
-	div: 10 / 5; 
-
-	mul: 10*5; 
-	mul: 10 * 5; 
-}
-
-
-.shorthand {
-	// 10/5 is a special shorthand syntax that can be used in the font property
-	div: 10/5; // outputs a literal 10/5
-}
-
-
-.parens {
-	// if you are unsure, then just wrap the expression in parentheses and it will
-	// always evaluate.
-
-	// notice we no longer have unary operators, and these will evaluate
-	sub: (10 -5);
-	add: (10 +5);
-	div: (10 /5);
-	div: (10/5); // no longer interpreted as the shorthand
-	mul: (10 *5);
-}
-
-.keyword-names {
-	// watch out when doing math with keywords, - is a valid keyword character
-	@a: 100;
-	@b: 25;
-	@a-: "hello";
-	height: @a-@b; // here we get "hello" 25, not 75
-}
-
-
-// and now here are the tests
-
-.test {
-	single: (5);
-	single: 5+(5);
-	single: (5)+((5));
-
-	parens: (5 +(5)) -2;
-	// parens: ((5 +(5)) -2); // FAILS - fixme
-
-	math: (5 + 5)*(2 / 1);
-	math: (5+5)*(2/1);
-
-	width: 2 * (4 * (2 + (1 + 6))) - 1;
-	height: ((2+3)*(2+3) / (9-4)) + 1;
-	padding: (2px + 4px) 1em 2px 2;
-
-	@var: (2 * 2);
-	padding: (2 * @var) 4 4 (@var * 1px);
-	width: (@var * @var) * 6;
-	height: (7 * 7) + (8 * 8);
-	margin: 4 * (5 + 5) / 2 - (@var * 2);
-}
-

includes/wp-less/lessc/tests/inputs/media.less

-@media screen, 3D {
-	P { color: green; }
-}
-@media print {
-	body { font-size: 10pt }
-}
-@media screen {
-	body { font-size: 13px }
-}
-@media screen, print {
-	body { line-height: 1.2 }
-}
-
-@media all and (min-width: 0px) {
-	body { line-height: 1.2 }
-}
-
-@media all and (min-width: 0) {
-	body { line-height: 1.2 }
-}
-
-@media
-	screen and (min-width: 102.5em) and (max-width: 117.9375em),
-	screen and (min-width: 150em) {
-    body { color: blue }
-}
-

includes/wp-less/lessc/tests/inputs/misc.less

-
-@hello: "utf-8";
-@charset @hello;
-
-@color: #fff;
-@images: "/assets/images/";
-@images: @images + "test/"; 
-.topbar { background: url(@{images}topbar.png); }
-.hello { test: empty-function(@images, 40%, to(@color)); }
-
-.css3 {
-	background-image: -webkit-gradient(linear, 0% 0%, 0% 90%, 
-		from(#E9A000), to(#A37000));
-}
-
-
-/**
-
-Here is a block comment
-
-**/
-
-
-// this is a comment
-
-.test, /*hello*/.world {
-	border: 1px solid red; // world
-	/* another property */
-	color: url(http://mage-page.com);
-	string: "hello /* this is not a comment */";
-	world: "// neither is this";
-	string: 'hello /* this is not a comment */' /*what if this is a comment */;
-	world: '// neither is this' // hell world;
-	;
-	what-/*something?*/ever: 100px;
-	background: url(/*no comment here*/);
-}
-

includes/wp-less/lessc/tests/inputs/mixin_functions.less

-
-@outer: 10px;
-@class(@var:22px, @car: 400px + @outer) {
-  margin: @var;
-  height: @car;
-}
-
-@group { 
-  @f(@color) {
-    color: @color;
-  }
-  .cool {
-    border-bottom: 1px solid green;
-  }
-}
-
-.class(@width:200px) {
-  padding: @width;
-}
-
-body {
-  .class(2.0em);
-  @group > @f(red);
-  @class(10px, 10px + 2);
-  @group > .cool;
-}
-
-
-@lots(@a: 10px, @b: 20px, @c: 30px, @d: 40px, @e: 4px, @f:3px, @g:2px, @h: 1px) {
-	padding: @a @b @c @d;
-	margin: @e @f @g @h;
-}
-
-.skip_args {
-	@class(,12px);
-	@lots(,,,88px,,12px);
-	@group > @f(red,,,,);
-}
-

includes/wp-less/lessc/tests/inputs/mixin_merging.less.disable

-
-@tester {
-	p, div { height: 10px; }
-}
-
-#test1 {
-	div { color: red; }
-	@tester;
-}
-
-
-@cool {
-	a,b,i { width: 1px; }
-}
-
-#test2 {
-	b { color: red; }
-	@cool;
-}
-
-#test3 {
-	@cool;
-	b { color: red; }
-}
-
-@cooler {
-	a { margin: 1px; }
-}
-
-#test4 {
-	a, div, html { color: blue; }
-	@cooler;
-}
-
-@hi {
-	img, strong { float: right; }
-}
-
-#test5 {
-	img, strong { padding: 2px; }
-	@hi;
-}
-
-@nested {
-	div, span {
-		a {
-			color: red;
-		}
-	}
-}
-
-#test6 {
-	div, span {
-		a {
-			line-height: 10px;
-		}
-	}
-	@nested;
-}
-
-@broken-nesting {
-	div, span {
-		strong, b { 
-			color: red;
-		}
-	}
-
-}
-
-#test7 {
-	div {
-		strong { 
-			margin: 1px;
-		}
-	}
-	@broken-nesting;
-}
-
-
-@another-nest {
-	a,b {
-		i {
-			color: red;
-		}
-
-		s {
-			color: blue;
-		}
-	}
-}
-
-#test8 {
-	a, b {
-		i,s {
-			background: red;
-		}
-	}
-	@another-nest;
-}
-

includes/wp-less/lessc/tests/inputs/mixins.less

-
-@rounded-corners {
-	border-radius: 10px;
-}
-
-.bold {
-	@font-size: 20px;
-	font-size: @font-size;
-	font-weight: bold;
-}
-
-body #window {
-	@rounded-corners;
-	.bold;
-	line-height: @font-size * 1.5;
-}
-
-#bundle {
-  .button {
-    display: block;
-    border: 1px solid black;
-    background-color: grey;
-    &:hover { background-color: white }
-  }
-}
-#header a {
-  color: orange;
-  #bundle > .button; // mixin the button class
-}
-
-div {
-	@abstract {
-		hello: world;
-		b {
-			color: blue;
-		}
-	}
-
-	@abstract > b;
-	@abstract;
-}
-
-@poop {
-	big: baby;
-}
-
-body {
-	div;
-}
-
-// not using > to list mixins
-
-.hello {
-  .world {
-    color: blue;
-  }
-}
-
-.foobar {
-  .hello .world;
-}
-
-
-.butter {
-	.this .one .isnt .found;
-}
-
-

includes/wp-less/lessc/tests/inputs/nested.less

-#header {
-  color: black;
-
-  .navigation {
-    font-size: 12px;
-	.border {
-		.outside {
-			color: blue;
-		}
-	}
-  }
-  .logo {
-    width: 300px;
-    &:hover { text-decoration: none }
-  }
-}
-
-a { b { ul { li { color: green; } } } }
-
-this { will { not { show { } } } }
-
-.cool {
-  div & { color: green; }
-  p & span { color: yellow; }
-}
-
-another {
- .cool;
-}
-
-b {
-  & .something {
-    color: blue;
-  }
-
-  &.something {
-    color: blue;
-  }
-}
-
-.foo {
-  .bar, .baz {
-    & .qux {
-      display: block;
-    }
-    .qux & {
-      display: inline;
-    }
-    .qux & .biz {
-      display: none;
-    }
-  }
-}
-
-b {
-	hello [x="&yeah"] {
-		color: red;
-	}
-}
-
Add a comment to this file

includes/wp-less/lessc/tests/inputs/out.html

Empty file removed.

includes/wp-less/lessc/tests/inputs/scopes.less

-
-
-@x: 10;
-@some {
-	@x: @x + 10;
-	div {
-		@x: @x + 10;
-		other {
-			@x: @x + 10;
-			world {
-				@x: @x + 10;
-				height: @x;
-			}
-		}
-	}
-}
-
-
-body {
-	@some;
-}
-
-@some;
-
-.test(@x: 10) {
-	height: @x;	
-	.test(@y: 11) {
-		height: @y;	
-		.test(@z: 12) {
-			height: @z;	
-		}
-		.test;
-	}
-	.test;
-}
-
-pre {
-	.test;
-}
-

includes/wp-less/lessc/tests/inputs/site_demos.less

-// these are the demos from the lessphp homepage
-
-default {
-	@base: 24px;
-	@border-color: #B2B;
-
-	.underline { border-bottom: 1px solid green }
-
-	#header {
-	  color: black;
-	  border: 1px solid @border-color + #222222;
-
-	  .navigation {
-		font-size: @base / 2;
-		a {
-		.underline;
-		}
-	  }
-	  .logo {
-		width: 300px;
-		&:hover { text-decoration: none }
-	  }
-	}
-}
-
-variables {
-	@a: 2;
-	@x: @a * @a;
-	@y: @x + 1;
-	@z: @x * 2 + @y;
-	 
-	@nice-blue: #5B83AD;
-	@light-blue: @nice-blue + #111;
-	 
-	@b: @a * 10;
-	@c: #888;
-	@fonts: "Trebuchet MS", Verdana, sans-serif;
-	 
-	.variables {
-	  width: @z + 1cm; // 14cm
-	  height: @b + @x + 0px; // 24px
-	  color: @c;
-	  background: @light-blue;
-	  font-family: @fonts;
-	}
-}
-
-mixins {
-	.bordered {
-	  border-top: dotted 1px black;
-	  border-bottom: solid 2px black;
-	}
-	#menu a {
-	  color: #111;
-	  .bordered;
-	}
-
-	.post a {
-	  color: red;
-	  .bordered;
-	}
-}
-
-nested-rules {
-	#header {
-	  color: black;
-
-	  .navigation {
-		font-size: 12px;
-	  }
-	  .logo {
-		width: 300px;
-		&:hover { text-decoration: none }
-	  }
-	}
-}
-
-namespaces {
-	#bundle {
-	  .button {
-		display: block;
-		border: 1px solid black;
-		background-color: grey;
-		&:hover { background-color: white }
-	  }
-	}
-	#header a {
-	  color: orange;
-	  #bundle > .button; // mixin the button class
-	}	
-}
-
-mixin-functions {
-	@outer: 10px;
-	@class(@var:22px, @car: 400px + @outer) {
-	  margin: @var;
-	  height: @car;
-	}
-
-	@group { 
-	  @f(@color) {
-		color: @color;
-	  }
-	  .cool {
-		border-bottom: 1px solid green;
-	  }
-	}
-
-	.class(@width:200px) {
-	  padding: @width;
-	}
-
-	body {
-	  .class(2.0em);
-	  @group > @f(red);
-	  @class(10px, 10px + 2);
-	  @group > .cool;
-	}
-}
-

includes/wp-less/lessc/tests/inputs/test-imports/file1.less

-
-
-/**
- * This is a test import file
- */
-
-@colors {
-	div.bright {
-		color: red;
-	}
-
-	div.sad {
-		color: blue;
-	}
-}
-

includes/wp-less/lessc/tests/inputs/test-imports/file2.less

-
-b {
-	color: @color;
-	padding: 16px;
-}
-

includes/wp-less/lessc/tests/inputs/variables.less

-@a: 2;
-@x: @a * @a;
-@y: @x + 1;
-@z: @y + @x * 2;
-@m: @z % @y;
- 
-@nice-blue: #5B83AD;
-@light-blue: @nice-blue + #111;
-
-@rgb-color: rgb(20%, 15%, 80%);
-@rgba-color: rgba(23,68,149,0.5);
- 
-@b: @a * 10px;
-@c: #888;
-@fonts: "Trebuchet MS", Verdana, sans-serif;
- 
-.variables {
-  width: @z + 1cm; // 14cm
-  height: @b + @x + 0px; // 24px
-  margin-top: -@b; // -20px
-  margin-bottom: 10 - -@b; // 30px
-  @c: @c + #001;
-  color: @c;
-  background: @light-blue;
-  font-family: @fonts;
-  margin: @m + 0px; // 3px
-  font-size: 10px/12px;
-  font-size: 120%/120%;
-}
-
-.external {
-  color: @c;
-  border: 1px solid @rgb-color;
-  background: @rgba-color;
-  padding: @nonexistant + 4px;
-}
-
-

includes/wp-less/lessc/tests/outputs/accessors.css

-.article { color:#294366; }
-.comment {
-  width:960px;
-  color:#294366;
-  padding:10px;
-}
-.wow {
-  height:960px;
-  background-color:#294366;
-  color:green;
-  padding:;
-  margin:;
-}
-.mix { font-size:10px; }

includes/wp-less/lessc/tests/outputs/attributes.css

-* { color:blue; }
-E { color:blue; }
-E[foo] { color:blue; }
-[foo] { color:blue; }
-[foo] .helloWorld { color:blue; }
-[foo].helloWorld { color:blue; }
-E[foo="barbar"] { color:blue; }
-E[foo~="hello#$@%@$#^"] { color:blue; }
-E[foo^="color: green;"] { color:blue; }
-E[foo$="239023"] { color:blue; }
-E[foo*="29302"] { color:blue; }
-E[foo|="239032"] { color:blue; }
-E:root { color:blue; }
-E:nth-child(odd) { color:blue; }
-E:nth-child(2n+1) { color:blue; }
-E:nth-child(5) { color:blue; }
-E:nth-last-child(-n+2) { color:blue; }
-E:nth-of-type(2n) { color:blue; }
-E:nth-last-of-type(n) { color:blue; }
-E:first-child { color:blue; }
-E:last-child { color:blue; }
-E:first-of-type { color:blue; }
-E:last-of-type { color:blue; }
-E:only-child { color:blue; }
-E:only-of-type { color:blue; }
-E:empty { color:blue; }
-E:lang(en) { color:blue; }
-E::first-line { color:blue; }
-E::before { color:blue; }
-E#id { color:blue; }
-E:not(:link) { color:blue; }
-E F { color:blue; }
-E > F { color:blue; }
-E + F { color:blue; }
-E ~ F { color:blue; }

includes/wp-less/lessc/tests/outputs/builtins.css

-body {
-  color:"hello world";
-  height:5.1666666666667;
-  height:5px;
-  width:0.66666666666667;
-  width:1;
-  width:0;
-  color:#00112233;
-  color:#992c3742;
-}
-format {
-  format:"rgb(32, 128, 64)";
-  format-string:"hello world";
-  format-multiple:"hello earth 2";
-  format-url-encode:'red is %A';
-  eformat:rgb(32, 128, 64);
-}

includes/wp-less/lessc/tests/outputs/colors.css

-body {
-  color:#996d33;
-  color:rgba(153,109,51,0.3);
-  lighten:#ffffff;
-  lighten:#7c8df2;
-  lighten:rgba(222,140,129,0.5);
-  darken:#d6d6d6;
-  darken:#0d1e81;
-  darken:rgba(18,42,185,0.5);
-  saturate:#f1eded;
-  saturate:#0025fe;
-  saturate:rgba(10,44,244,0.5);
-  desaturate:#efefef;
-  desaturate:#3349cb;
-  desaturate:rgba(36,62,218,0.5);
-  spin:#efefef;
-  spin:#2d17e7;
-  spin:rgba(59,23,231,0.5);
-  spin:#efefef;
-  spin:#1769e7;
-  spin:rgba(23,119,231,0.5);
-  one:rgba(171,205,239,1);
-  one:rgba(171,205,239,1);
-  two:rgba(2,159,35,0.9);
-  two:rgba(2,159,35,0.9);
-  three:rgba(1,2,3,0.6);
-  three:rgba(1,2,3,0.6);
-  four:rgba(1,2,3,0);
-  four:rgba(1,2,3,0);
-  hue:282;
-  sat:33;
-  lit:12;
-  what:#dff1da;
-  zero:#343434;
-  zero:#003468;
-  zero:#000000;
-  zero:#ffffff;
-  zero:#000000;
-  zero:#ffffff;
-  zero:#ffffff;
-  zero:#ffffff;
-  zero:#1d5612;
-  zero:#56124b;
-  zero:#000000;
-  zero:#ffffff;
-}

includes/wp-less/lessc/tests/outputs/compile_on_mixin.css

-body { height:22px; }
-body ul { height:20px; }
-body ul li { height:10px; }
-body ul li div span, body ul li link {
-  margin:10px;
-  color:red;
-}
-body ul div, body ul p { border:1px; }
-body ul div.hello, body ul p.hello { color:green; }
-body ul div :what, body ul p :what { color:blue; }
-body ul a b { color:blue; }

includes/wp-less/lessc/tests/outputs/escape.css

-body {
-  border:this is simple;
-  border:this;
-  border:this is simple;
-  border:1232;
-  border:world;
-  border:onemore;
-  border:;
-  line-height:eating rice;
-  line-height:string cheese;
-  line-height:a b c string me d e f;
-}
-.class { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png'); }

includes/wp-less/lessc/tests/outputs/font_family.css

-@font-face {
-  font-family:Graublau Sans Web;
-  src:url(fonts/GraublauWeb.otf) format("opentype");
-}
-@font-face {
-  font-family:Gentium;
-  src:url('fonts/Gentium.ttf');
-}
-@font-face {
-  font-family:Gentium;
-  src:url("fonts/GentiumItalic.ttf");
-  font-style:italic;
-}
-h2 {
-  font-family:Gentium;
-  crazy:maroon;
-}

includes/wp-less/lessc/tests/outputs/hacks.css

-:root .alert-message, :root .btn { border-radius:0 \0; }

includes/wp-less/lessc/tests/outputs/import.css

-@import url("something.css") media;
-@import url("something.css") media;
-@import url("something.css") media, screen, print;
-b {
-  color:maroon;
-  padding:16px;
-}
-body { line-height:10em; }
-body div.bright { color:red; }
-body div.sad { color:blue; }
-div b {
-  color:fuchsia;
-  padding:16px;
-}

includes/wp-less/lessc/tests/outputs/keyframes.css

-@keyframes 'bounce' {
-  from {
-    top:100px;
-    animation-timing-function:ease-out;
-  }
-  25% {
-    top:50px;
-    animation-timing-function:ease-in;
-  }
-  50% {
-    top:100px;
-    animation-timing-function:ease-out;
-  }
-  75% {
-    top:75px;
-    animation-timing-function:ease-in;
-  }
-  to {
-    top:100px;
-  }
-}
-div {
-  animation-name:'diagonal-slide';
-  animation-duration:5s;
-  animation-iteration-count:10;
-}
-@keyframes 'diagonal-slide' {
-  from {
-    left:0;
-    top:0;
-  }
-  to {
-    left:100px;
-    top:100px;
-  }
-}

includes/wp-less/lessc/tests/outputs/math.css

-.unary { sub:10 -5; }
-.spaces {
-  sub:5;
-  sub:5;
-  add:15;
-  add:15;
-  div:2;
-  mul:50;
-  mul:50;
-}
-.shorthand { div:10/5; }
-.parens {
-  sub:5;
-  add:15;
-  div:2;
-  div:2;
-  mul:50;
-}
-.keyword-names { height:"hello" 25; }
-.test {
-  single:5;
-  single:10;
-  single:10;
-  parens:10 -2;
-  math:20;
-  math:20;
-  width:71;
-  height:6;
-  padding:6px 1em 2px 2;
-  padding:8 4 4 4px;
-  width:96;
-  height:113;
-  margin:12;
-}

includes/wp-less/lessc/tests/outputs/media.css

-@media screen, 3D {
-  P { color:green; }
-}
-@media print {
-  body { font-size:10pt; }
-}
-@media screen {
-  body { font-size:13px; }
-}
-@media screen, print {
-  body { line-height:1.2; }
-}
-@media all and (min-width: 0px) {
-  body { line-height:1.2; }
-}
-@media all and (min-width: 0) {
-  body { line-height:1.2; }
-}
-@media screen and (min-width: 102.5em) and (max-width: 117.9375em),
-	screen and (min-width: 150em) {
-  body { color:blue; }
-}

includes/wp-less/lessc/tests/outputs/misc.css

-@charset "utf-8";
-.topbar { background:url(/assets/images/test/topbar.png); }
-.hello { test:empty-function("/assets/images/test/",40%,to(#ffffff)); }
-.css3 { background-image:-webkit-gradient(linear,0% 0%,0% 90%,from(#e9a000),to(#a37000)); }
-.test, .world {
-  border:1px solid red;
-  color:url(http://mage-page.com);
-  string:"hello /* this is not a comment */";
-  world:"// neither is this";
-  string:'hello /* this is not a comment */';
-  world:'// neither is this';
-  what-ever:100px;
-  background:url(/*no comment here*/);
-}

includes/wp-less/lessc/tests/outputs/mixin_functions.css

-body {
-  padding:2.0em;
-  color:red;
-  margin:10px;
-  height:12px;
-  border-bottom:1px solid green;
-}
-.skip_args {
-  margin:22px;
-  height:12px;
-  padding:10px 20px 30px 88px;
-  margin:4px 12px 2px 1px;
-  color:red;
-}

includes/wp-less/lessc/tests/outputs/mixin_merging.css

-#test1 div {
-  color:red;
-  height:10px;
-}
-#test1 p { height:10px; }
-#test2 b {
-  color:red;
-  width:1px;
-}
-#test2 a, #test2 i { width:1px; }
-#test3 a, #test3 i { width:1px; }
-#test3 b {
-  width:1px;
-  color:red;
-}
-#test4 a {
-  color:blue;
-  margin:1px;
-}
-#test4 div, #test4 html { color:blue; }
-#test5 img, #test5 strong {
-  padding:2px;
-  float:right;
-}
-#test6 div a, #test6 span a {
-  line-height:10px;
-  color:red;
-}
-#test7 div strong {
-  margin:1px;
-  color:red;
-}
-#test7 div b { color:red; }
-#test7 span strong, #test7 span b { color:red; }
-#test8 a i, #test8 b i {
-  background:red;
-  color:red;
-}
-#test8 a s, #test8 b s {
-  background:red;
-  color:blue;
-}

includes/wp-less/lessc/tests/outputs/mixins.css

-.bold {
-  font-size:20px;
-  font-weight:bold;
-}
-body #window {
-  border-radius:10px;
-  font-size:20px;
-  font-weight:bold;
-  line-height:30px;
-}
-#bundle .button {
-  display:block;
-  border:1px solid black;
-  background-color:grey;
-}
-#bundle .button:hover { background-color:white; }
-#header a {
-  color:orange;
-  display:block;
-  border:1px solid black;
-  background-color:grey;
-}
-#header a:hover { background-color:white; }
-div {
-  color:blue;
-  hello:world;
-}
-div b { color:blue; }
-body {
-  color:blue;
-  hello:world;
-}
-body b { color:blue; }
-.hello .world { color:blue; }
-.foobar { color:blue; }

includes/wp-less/lessc/tests/outputs/nested.css

-#header { color:black; }
-#header .navigation { font-size:12px; }
-#header .navigation .border .outside { color:blue; }
-#header .logo { width:300px; }
-#header .logo:hover { text-decoration:none; }
-a b ul li { color:green; }
-div .cool { color:green; }
-p .cool span { color:yellow; }
-div another { color:green; }
-p another span { color:yellow; }
-b .something { color:blue; }
-b.something { color:blue; }
-.foo .bar .qux, .foo .baz .qux { display:block; }
-.qux .foo .bar, .qux .foo .baz { display:inline; }
-.qux .foo .bar .biz, .qux .foo .baz .biz { display:none; }
-b hello [x="&yeah"] { color:red; }

includes/wp-less/lessc/tests/outputs/nesting.css

-#header .navigation .border .outside { color:blue; }
-#header .navigation { font-size:12px; }
-#header .logo:hover { text-decoration:none; }
-#header .logo { width:300px; }
-#header { color:black; }
-a b ul li { color:green; }

includes/wp-less/lessc/tests/outputs/scopes.css

-body div other world { height:50; }
-div other world { height:50; }
-pre {
-  height:10;
-  height:11;
-  height:12;
-}

includes/wp-less/lessc/tests/outputs/site_demos.css

-default .underline { border-bottom:1px solid green; }
-default #header {
-  color:black;
-  border:1px solid #dd44dd;
-}
-default #header .navigation { font-size:12px; }
-default #header .navigation a { border-bottom:1px solid green; }
-default #header .logo { width:300px; }
-default #header .logo:hover { text-decoration:none; }
-variables .variables {
-  width:14cm;
-  height:24px;
-  color:#888888;
-  background:#6c94be;
-  font-family:"Trebuchet MS", Verdana, sans-serif;
-}
-mixins .bordered {
-  border-top:dotted 1px black;
-  border-bottom:solid 2px black;
-}
-mixins #menu a {
-  color:#111111;
-  border-top:dotted 1px black;
-  border-bottom:solid 2px black;
-}
-mixins .post a {
-  color:red;
-  border-top:dotted 1px black;
-  border-bottom:solid 2px black;
-}
-nested-rules #header { color:black; }
-nested-rules #header .navigation { font-size:12px; }
-nested-rules #header .logo { width:300px; }
-nested-rules #header .logo:hover { text-decoration:none; }
-namespaces #bundle .button {
-  display:block;
-  border:1px solid black;
-  background-color:grey;
-}
-namespaces #bundle .button:hover { background-color:white; }
-namespaces #header a {
-  color:orange;
-  display:block;
-  border:1px solid black;
-  background-color:grey;
-}
-namespaces #header a:hover { background-color:white; }
-mixin-functions body {
-  padding:2.0em;
-  color:red;
-  margin:10px;
-  height:12px;
-  border-bottom:1px solid green;
-}

includes/wp-less/lessc/tests/outputs/variables.css

-.variables {
-  width:14cm;
-  height:24px;
-  margin-top:-20px;
-  margin-bottom:30px;
-  color:#888899;
-  background:#6c94be;
-  font-family:"Trebuchet MS", Verdana, sans-serif;
-  margin:3px;
-  font-size:10px/12px;
-  font-size:120%/120%;
-}
-.external {
-  color:#888888;
-  border:1px solid #3326cc;
-  background:rgba(23,68,149,0.5);
-  padding:4px;
-}

includes/wp-less/lessc/tests/test.php

-<?php
-error_reporting(E_ALL);
-
-/**
- * Go through all files matching pattern in input directory
- * and compile them, then compare them to paired file in
- * output directory.
- */
-$difftool = 'meld';
-$input = array(
-	'dir' => 'inputs',
-	'glob' => '*.less',
-);
-
-$output = array(
-	'dir' => 'outputs',
-	'filename' => '%s.css',
-);
-
-
-$prefix = realpath(dirname(__FILE__));
-require $prefix.'/../lessc.inc.php';
-
-$compiler = new lessc();
-$compiler->importDir = $input['dir'].'/test-imports';
-
-$fa = 'Fatal Error: ';
-if (php_sapi_name() != 'cli') { 
-	exit($fa.$argv[0].' must be run in the command line.');
-}
-
-$exe = array_shift($argv); // remove filename
-function flag($f) {
-	if (func_num_args() > 1) {
-		foreach (func_get_args() as $f) if (flag($f)) return true;
-		return false;
-	}
-	global $argv;
-	$pre = strlen($f) > 1 ? '--' : '-';
-	foreach ($argv as $a) {
-		if (preg_match('/^'.$pre.$f.'($|\s)/', $a)) return true;
-	}
-	return false;
-}
-
-if (flag('h', 'help')) {
-	exit('help me');
-}
-
-$input['dir'] = $prefix.'/'.$input['dir'];
-$output['dir'] = $prefix.'/'.$output['dir'];
-if (!is_dir($input['dir']) || !is_dir($output['dir']))
-	exit($fa." both input and output directories must exist\n");
-
-// get the first non flag as search string
-$searchString = null;
-foreach ($argv as $a) {
-	if (strlen($a) > 0 && $a{0} != '-') {
-		$searchString = $a;
-		break;
-	}
-}
-
-$tests = array();
-$matches = glob($input['dir'].'/'.(!is_null($searchString) ? '*'.$searchString : '' ).$input['glob']);
-if ($matches) {
-	foreach ($matches as $fname) {
-		extract(pathinfo($fname)); // for $filename, from php 5.2
-		$tests[] = array(
-			'in' => $fname,
-			'out' => $output['dir'].'/'.sprintf($output['filename'], $filename), 
-		);
-	}
-}
-
-$count = count($tests);
-$compiling = flag('C');
-$showDiff = flag('d', 'diff');
-echo ($compiling ? "Compiling" : "Running")." $count test".($count == 1 ? '' : 's').":\n";
-
-function dump($msgs, $depth = 1) {
-	if (!is_array($msgs)) $msgs = array($msgs);
-	foreach ($msgs as $m) {
-		echo str_repeat("\t", $depth).' - '.$m."\n";
-	}
-}
-
-$i = 1;
-foreach ($tests as $test) {
-	printf("\t[Test %04d/%04d] %s -> %s\n", $i, $count, basename($test['in']), basename($test['out']));
-
-	try {
-		ob_start();
-		$parsed = trim($compiler->parse(file_get_contents($test['in'])));
-		ob_end_clean();
-	} catch (exception $e) {
-		dump(array(
-			"Failed to compile input, reason:",
-			$e->getMessage(),
-			"Aborting"
-		));
-		break;
-	}
-
-	if ($compiling) {
-		file_put_contents($test['out'], $parsed);
-	} else {
-		if (!is_file($test['out'])) {
-			dump(array(
-				"Failed to find output file: $test[out]",
-				"Maybe you forgot to compile tests?",
-				"Aborting"
-			));
-			break;
-		}
-		$expected = trim(file_get_contents($test['out']));
-
-		if ($expected != $parsed) {
-			if ($showDiff) {
-				dump("Failed:");
-				$tmp = $test['out'].".tmp";
-				file_put_contents($tmp, $parsed);
-				system($difftool.' '.$test['out'].' '.$tmp);
-				unlink($tmp);
-
-				dump("Aborting");
-				break;
-			} else dump("Failed, run with -d flag to view diff");
-		} else {
-			dump("Passed");
-		}
-	}
-
-	$i++;
-}
-
-?>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.