tests(css): more comments tests (#3922)

master
Evilebot Tnawi 2018-02-07 21:31:00 +03:00 committed by GitHub
parent bc027bd661
commit 26ceb854c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 326 additions and 0 deletions

View File

@ -61,6 +61,64 @@ a {
src: /* comment 16 */ local(/* comment 17 */ "Prettier" /* comment 18 */), /* comment 19 */
/* comment 20 */ url("http://prettier.com/font.woff") /* comment 21 */ ; /* comment 22 */
}
.foo {/* comment 23 */color/* comment 24 */:/* comment 25 */blue/* comment 26 */;/* comment 27 */transform/* comment 28 */:/* comment 29 */translate(/* comment 30 */10px/* comment 31 */)/* comment 32 */;/* comment 33 */}
.foo { /* comment 34 */ color /* comment 35 */ : /* comment 36 */ blue /* comment 37 */ ; /* comment 38 */ transform /* comment 39 */ : /* comment 40 */ translate( /* comment 41 */ 10px /* comment 42 */ ) /* comment 43 */ ; /* comment 44 */ }
.foo {
/* comment 45 */
/* comment 46 */ color /* comment 47 */
/* comment 48 */
/* comment 49 */ : /* comment 50 */
/* comment 51 */
/* comment 52 */ blue /* comment 53 */
/* comment 54 */
/* comment 55 */ ; /* comment 56 */
/* comment 57 */
/* comment 58 */ transform /* comment 59 */
/* comment 60 */
/* comment 61 */ : /* comment 62 */
/* comment 63 */
/* comment 64 */ translate( /* comment 65 */
/* comment 66 */
/* comment 67 */ 10px /* comment 68 */
/* comment 69 */
/* comment 70 */ ) /* comment 71 */
/* comment 72 */
/* comment 73 */ ; /* comment 74 */
/* comment 75 */
}
body {/* comment 76 */}
body { /* comment 77 */ }
body
{
/* comment 78 */
}
body
{
/* comment 79 */
}
body
{
/* comment 80 */
}
.tab-bar {
.tab {} /* comment 81 */
}
.selector {
/* comment 82 */
position: absolute;
/* comment 83 */
display: inline-block;
/* comment 84 */
background: #000;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a {
/* comment 1 */
@ -80,6 +138,76 @@ a {
/* comment 21 */; /* comment 22 */
}
.foo {
/* comment 23 */
color/* comment 24 */:/* comment 25 */ blue/* comment 26 */; /* comment 27 */
transform/* comment 28 */:/* comment 29 */ translate(
/* comment 30 */10px/* comment 31 */
)/* comment 32 */; /* comment 33 */
}
.foo {
/* comment 34 */
color/* comment 35 */ : /* comment 36 */ blue /* comment 37 */; /* comment 38 */
transform/* comment 39 */ : /* comment 40 */ translate(
/* comment 41 */ 10px /* comment 42 */
)
/* comment 43 */; /* comment 44 */
}
.foo {
/* comment 45 */
/* comment 46 */
color/* comment 47 */
/* comment 48 */
/* comment 49 */ : /* comment 50 */
/* comment 51 */
/* comment 52 */ blue
/* comment 53 */ /* comment 54 */ /* comment 55 */; /* comment 56 */
/* comment 57 */
/* comment 58 */
transform/* comment 59 */
/* comment 60 */
/* comment 61 */ : /* comment 62 */
/* comment 63 */
/* comment 64 */ translate(
/* comment 65 */ /* comment 66 */ /* comment 67 */ 10px /* comment 68 */
/* comment 69 */ /* comment 70 */
)
/* comment 71 */ /* comment 72 */ /* comment 73 */; /* comment 74 */
/* comment 75 */
}
body {
/* comment 76 */
}
body {
/* comment 77 */
}
body {
/* comment 78 */
}
body {
/* comment 79 */
}
body {
/* comment 80 */
}
.tab-bar {
.tab {
} /* comment 81 */
}
.selector {
/* comment 82 */
position: absolute;
/* comment 83 */
display: inline-block;
/* comment 84 */
background: #000;
}
`;
exports[`if-eslit-at-rule-decloration.scss 1`] = `
@ -671,6 +799,101 @@ a {
`;
exports[`types.css 1`] = `
/* This is a basic comment */
/* ==========================================================================
This is a Section Comment
========================================================================== */
/*
This is a sub-section comment
========================================================================== */
/**
* Short description using Doxygen-style comment format
*
* The first sentence of the long description starts here and continues on this
* line for a while finally concluding here at the end of this paragraph.
*
* The long description is ideal for more detailed explanations and
* documentation. It can include example HTML, URLs, or any other information
* that is deemed necessary or useful.
*
* @tag This is a tag named 'tag'
*
* TODO: This is a todo statement that describes an atomic task to be completed
* at a later date. It wraps after 80 characters and following lines are
* indented by 2 spaces.
*/
/**
* TODO:
*
* => Write some code
* => Make some lists
*
*/
/*
span {
color: blue;
font-size: 1.5em;
}
*/
/*
<small class=tooltip><span>Lorem ipsum dolor</span></small>
*/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* This is a basic comment */
/* ==========================================================================
This is a Section Comment
========================================================================== */
/*
This is a sub-section comment
========================================================================== */
/**
* Short description using Doxygen-style comment format
*
* The first sentence of the long description starts here and continues on this
* line for a while finally concluding here at the end of this paragraph.
*
* The long description is ideal for more detailed explanations and
* documentation. It can include example HTML, URLs, or any other information
* that is deemed necessary or useful.
*
* @tag This is a tag named 'tag'
*
* TODO: This is a todo statement that describes an atomic task to be completed
* at a later date. It wraps after 80 characters and following lines are
* indented by 2 spaces.
*/
/**
* TODO:
*
* => Write some code
* => Make some lists
*
*/
/*
span {
color: blue;
font-size: 1.5em;
}
*/
/*
<small class=tooltip><span>Lorem ipsum dolor</span></small>
*/
`;
exports[`variable-declaration.scss 1`] = `
$var: /* comment 1 */ all /* comment 2 */ !default /* comment 3 */ ; /* comment 4 */

View File

@ -12,3 +12,61 @@ a {
src: /* comment 16 */ local(/* comment 17 */ "Prettier" /* comment 18 */), /* comment 19 */
/* comment 20 */ url("http://prettier.com/font.woff") /* comment 21 */ ; /* comment 22 */
}
.foo {/* comment 23 */color/* comment 24 */:/* comment 25 */blue/* comment 26 */;/* comment 27 */transform/* comment 28 */:/* comment 29 */translate(/* comment 30 */10px/* comment 31 */)/* comment 32 */;/* comment 33 */}
.foo { /* comment 34 */ color /* comment 35 */ : /* comment 36 */ blue /* comment 37 */ ; /* comment 38 */ transform /* comment 39 */ : /* comment 40 */ translate( /* comment 41 */ 10px /* comment 42 */ ) /* comment 43 */ ; /* comment 44 */ }
.foo {
/* comment 45 */
/* comment 46 */ color /* comment 47 */
/* comment 48 */
/* comment 49 */ : /* comment 50 */
/* comment 51 */
/* comment 52 */ blue /* comment 53 */
/* comment 54 */
/* comment 55 */ ; /* comment 56 */
/* comment 57 */
/* comment 58 */ transform /* comment 59 */
/* comment 60 */
/* comment 61 */ : /* comment 62 */
/* comment 63 */
/* comment 64 */ translate( /* comment 65 */
/* comment 66 */
/* comment 67 */ 10px /* comment 68 */
/* comment 69 */
/* comment 70 */ ) /* comment 71 */
/* comment 72 */
/* comment 73 */ ; /* comment 74 */
/* comment 75 */
}
body {/* comment 76 */}
body { /* comment 77 */ }
body
{
/* comment 78 */
}
body
{
/* comment 79 */
}
body
{
/* comment 80 */
}
.tab-bar {
.tab {} /* comment 81 */
}
.selector {
/* comment 82 */
position: absolute;
/* comment 83 */
display: inline-block;
/* comment 84 */
background: #000;
}

View File

@ -0,0 +1,45 @@
/* This is a basic comment */
/* ==========================================================================
This is a Section Comment
========================================================================== */
/*
This is a sub-section comment
========================================================================== */
/**
* Short description using Doxygen-style comment format
*
* The first sentence of the long description starts here and continues on this
* line for a while finally concluding here at the end of this paragraph.
*
* The long description is ideal for more detailed explanations and
* documentation. It can include example HTML, URLs, or any other information
* that is deemed necessary or useful.
*
* @tag This is a tag named 'tag'
*
* TODO: This is a todo statement that describes an atomic task to be completed
* at a later date. It wraps after 80 characters and following lines are
* indented by 2 spaces.
*/
/**
* TODO:
*
* => Write some code
* => Make some lists
*
*/
/*
span {
color: blue;
font-size: 1.5em;
}
*/
/*
<small class=tooltip><span>Lorem ipsum dolor</span></small>
*/