2017-05-11 02:13:21 +03:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = `
// Wrapping text
x =
<div>
Some text that would need to wrap on to a new line in order to display correctly and nicely
</div>
// Wrapping tags
x =
<div>
<first>f</first> <first>f</first> <first>f</first> <first>f</first> <first>f</first> <first>f</first>
</div>
// Wrapping tags
x =
<div>
<first>f</first><first>f</first><first>f</first><first>f</first><first>f</first><first>f</first>
</div>
// Wrapping tags
x =
<div>
<a /><b /><c />
<first>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</first> <first>f</first>
</div>
// Wrapping tags
x =
<div>
<sadashdkjahsdkjhaskjdhaksjdhkashdkashdkasjhdkajshdkashdkashd /> <first>f</first>
</div>
x =
<div>
before<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at mollis lorem.</div>after
</div>
x =
<div>
before{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff}{stuff}{stuff}after{stuff}after
</div>
x =
<div>
before {stuff} after {stuff} after {stuff} after {stuff} after {stuff} after {stuff} {stuff} {stuff} after {stuff} after
</div>
x =
<div>
Please state your <b>name</b> and <b>occupation</b> for the board of <b>school</b> directors.
</div>
function DiffOverview(props) {
const { source, target, since } = props;
return (
<div>
<div className="alert alert-info">
<p>
This diff overview is computed against the current list of records in
this collection and the list it contained on <b>{humanDate(since)}</b>.
</p>
<p>
<b>Note:</b> <code>last_modified</code> and <code>schema</code> record metadata
are omitted for easier review.
</p>
</div>
<Diff source={source} target={target} />
</div>
);
}
x = <font size={-3}><i>Starting at minute {graphActivity.startTime}, running for {graphActivity.length} to minute {graphActivity.startTime + graphActivity.length}</i></font>
x =
<div>
First second third
<div attr="a very long string attribute that will overflow because it is very long">Something</div>
</div>
x =
<div>
<div>
First
</div>
Second
<div>
Third
</div>
</div>
x =
<div>
First <div>
Second
</div> Third
</div>
2017-05-23 01:32:57 +03:00
leading_whitespace =
<div> First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh Twelfth Thirteenth Fourteenth</div>
2017-05-31 20:16:50 +03:00
trailing_whitespace =
<div>First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh Twelfth Thirteenth Fourteenth </div>
no_leading_or_trailing_whitespace =
2017-05-23 01:32:57 +03:00
<div>First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh Twelfth Thirteenth Fourteenth</div>
2017-05-23 21:56:21 +03:00
facebook_translation_leave_text_around_tag =
<div>
<span>
First
</span>,
(<span>
Second
</span>)
</div>
2018-06-25 21:11:40 +03:00
x =
<div>
<span>
First second third fourth fifth sixth seventh
</span>,
(<span>
Second
</span>)
</div>
2017-05-23 21:56:21 +03:00
this_really_should_split_across_lines =
<div>
before{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after{stuff}after
</div>
2017-05-31 19:42:36 +03:00
unstable_before =
<div className="yourScore">
Your score: <span className="score">{\`\${mini.crosstable.users[sessionUserId]} - \${mini.crosstable.users[user.id]}\`}</span>
</div>
unstable_after_first_run = (
<div className="yourScore">
2017-06-05 23:52:54 +03:00
Your score:{" "}
2017-05-31 19:42:36 +03:00
<span className="score">{\`\${mini.crosstable.users[sessionUserId]} - \${mini
.crosstable.users[user.id]}\`}</span>
</div>
);
solitary_whitespace =
<div first="first" second="second" third="third" fourth="fourth" fifth="fifth" sixth="sixth"> </div>
2017-05-31 20:16:50 +03:00
jsx_whitespace_on_newline =
<div>
<div>
First
</div> <div>
Second
</div> <div>
Third
</div>
</div>
jsx_around_multiline_element =
<div>Before <div>{"Enough text to make this element wrap on to multiple lines when formatting"}</div> After</div>
jsx_around_multiline_element_second_pass = (
<div>
2017-06-05 23:52:54 +03:00
Before{" "}
<div>
2017-05-31 20:16:50 +03:00
{
"Enough text to make this element wrap on to multiple lines when formatting"
}
2017-06-05 23:52:54 +03:00
</div>{" "}
After
2017-05-31 20:16:50 +03:00
</div>
);
2017-06-22 19:19:44 +03:00
convert_space_expressions =
<div>{" "}</div>
x =
<div>
<first />
<second />
<third />
<fourth />
<fifth />
<sixth />
</div>
const Abc = () => {
return (
<div>
Please state your
{" "}
<b>name</b>
{" "}
and
{" "}
<b>occupation</b>
{" "}
for the board of directors.
</div>
);
};
x = <div id="moo">Some stuff here</div>
headers_and_paragraphs = (
<div>
<h2>First</h2>
<p>The first paragraph.</p>
<h2>Second</h2>
<p>The second paragraph.</p>
</div>
);
no_text_one_tag_per_line =
<div>
<first /><second />
</div>
with_text_fill_line =
<div>
Text <first /><second />
</div>
line_after_br =
<div>
Text<br />
2018-06-25 21:11:40 +03:00
More text<br />
2017-06-22 19:19:44 +03:00
And more<br />
</div>
2018-06-25 21:11:40 +03:00
line_after_br =
<div>
Text<br />More text<br />And more<br />
</div>
line_after_br =
<div>
Text
<br />
More text
<br />
And more
<br />
</div>
2017-06-22 19:19:44 +03:00
line_after_br_2 = <div>A<br />B<br />C</div>
br_followed_by_whitespace = <div><br /> text</div>
dont_preserve_blank_lines_when_jsx_contains_text =
<div>
<div>Zeroth</div>
<div>First</div>
Second
</div>
multiple_expressions =
<div>
{header}
{body}
{footer}
</div>
single_expression_child_tags =
<div>
You currently have <strong>{dashboardStr}</strong> and <strong>{userStr}</strong>
</div>
expression_does_not_break =
<div>texty text text text text text text text text text text text {this.props.type} </div>
// FIXME
br_triggers_expression_break =
2017-06-26 19:30:52 +03:00
<div><br />
text text text text text text text text text text text {this.props.type} </div>
2017-06-22 19:19:44 +03:00
jsx_whitespace_after_tag =
<div>
<span a="a" b="b">
{variable}
</span>
{" "}
({variable})
</div>
2017-06-26 13:03:13 +03:00
x =
<div>
ENDS IN <div>
text text text text text text text text text text text
</div>{" "}
HRS
</div>
2017-06-26 19:30:52 +03:00
x =
<div>
<h2>Message</h2>
Hello, I'm a simple message.
</div>
x =
<div>
Hello, I'm a simple message.
<h2>Message</h2>
</div>
x =
<div>
<div>
<div>
<div>
<div>
Line {startRange.row + 1}:{startRange.column + 1} - {endRange.row + 1}:{endRange.column + 1}{caller}
</div>
</div>
</div>
</div>
</div>
2017-10-03 22:51:18 +03:00
x =
<div>
{" "} <div>text</div>
</div>
2017-06-26 19:30:52 +03:00
2017-10-03 22:51:18 +03:00
// NOTE: Multiple JSX whitespaces are collapsed into a single space.
x =
<div>
{" "}{" "}{" "}
</div>
2017-11-13 07:20:17 +03:00
// Don't break a self-closing element without attributes
// ----------
x =
<p>
text text text text text text text text text text text text text text text<br />text text text text text text
</p>;
2018-06-25 21:11:40 +03:00
x =
<div>
<div>
First
</div>-
<div>
Second
</div>
</div>
x =
<div>
<div>
First
</div>
-
<div>
Second
</div>
</div>
x =
<div>
<div>First</div>-<div>Second</div>
</div>
x =
<div>
<div className="first" tabIndex="1">
First
</div>-
<div className="second" tabIndex="2">
Second
</div>
</div>
x =
<div>
<div className="first" tabIndex="1">
First
</div>
-
<div className="second" tabIndex="2">
Second
</div>
</div>
x =
<div>
<div className="first" tabIndex="1">First</div>-<div className="second" tabIndex="2">Second</div>
</div>
x =
<div>
{hour}:{minute}:{second}
</div>
x =
<div>
{hour}
:
{minute}
:
{second}
</div>
x =
<div>
{hour}:
{minute}:
{second}
</div>
2017-05-11 02:13:21 +03:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Wrapping text
x = (
<div>
Some text that would need to wrap on to a new line in order to display
correctly and nicely
</div>
);
// Wrapping tags
x = (
<div>
2017-06-05 23:52:54 +03:00
<first>f</first> <first>f</first> <first>f</first> <first>f</first>{" "}
<first>f</first> <first>f</first>
2017-05-11 02:13:21 +03:00
</div>
);
// Wrapping tags
x = (
<div>
2017-06-22 19:19:44 +03:00
<first>f</first>
<first>f</first>
<first>f</first>
<first>f</first>
<first>f</first>
<first>f</first>
2017-05-11 02:13:21 +03:00
</div>
);
// Wrapping tags
x = (
<div>
2017-06-26 19:30:52 +03:00
<a />
<b />
<c />
2017-06-05 23:52:54 +03:00
<first>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</first>{" "}
<first>f</first>
2017-05-11 02:13:21 +03:00
</div>
);
// Wrapping tags
x = (
<div>
2017-06-05 23:52:54 +03:00
<sadashdkjahsdkjhaskjdhaksjdhkashdkashdkasjhdkajshdkashdkashd />{" "}
<first>f</first>
2017-05-11 02:13:21 +03:00
</div>
);
x = (
<div>
2018-06-25 21:11:40 +03:00
before
<div>
2017-05-11 02:13:21 +03:00
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at
mollis lorem.
2018-06-25 21:11:40 +03:00
</div>
after
2017-05-11 02:13:21 +03:00
</div>
);
x = (
<div>
2018-06-25 21:11:40 +03:00
before
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
2017-06-26 19:30:52 +03:00
{stuff}
2018-06-25 21:11:40 +03:00
{stuff}
{stuff}
after
{stuff}
after
2017-05-11 02:13:21 +03:00
</div>
);
x = (
<div>
2017-06-05 23:52:54 +03:00
before {stuff} after {stuff} after {stuff} after {stuff} after {stuff} after{" "}
2017-06-22 19:19:44 +03:00
{stuff} {stuff} {stuff} after {stuff} after
2017-05-11 02:13:21 +03:00
</div>
);
x = (
<div>
2017-06-05 23:52:54 +03:00
Please state your <b>name</b> and <b>occupation</b> for the board of{" "}
<b>school</b> directors.
2017-05-11 02:13:21 +03:00
</div>
);
function DiffOverview(props) {
const { source, target, since } = props;
return (
<div>
<div className="alert alert-info">
<p>
This diff overview is computed against the current list of records in
2018-06-25 21:11:40 +03:00
this collection and the list it contained on <b>{humanDate(since)}</b>
.
2017-05-11 02:13:21 +03:00
</p>
<p>
<b>Note:</b> <code>last_modified</code> and <code>schema</code> record
2017-06-22 19:19:44 +03:00
metadata are omitted for easier review.
2017-05-11 02:13:21 +03:00
</p>
</div>
<Diff source={source} target={target} />
</div>
);
}
x = (
<font size={-3}>
<i>
2017-06-05 23:52:54 +03:00
Starting at minute {graphActivity.startTime}, running for{" "}
{graphActivity.length} to minute{" "}
{graphActivity.startTime + graphActivity.length}
2017-05-11 02:13:21 +03:00
</i>
</font>
);
x = (
<div>
First second third
<div attr="a very long string attribute that will overflow because it is very long">
Something
</div>
</div>
);
x = (
<div>
2017-06-26 19:30:52 +03:00
<div>First</div>
Second
<div>Third</div>
2017-05-11 02:13:21 +03:00
</div>
);
x = (
<div>
2017-06-22 19:19:44 +03:00
First <div>Second</div> Third
2017-05-11 02:13:21 +03:00
</div>
);
2017-05-23 01:32:57 +03:00
leading_whitespace = (
<div>
2017-07-03 13:43:10 +03:00
{" "}
First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh
Twelfth Thirteenth Fourteenth
2017-05-31 20:16:50 +03:00
</div>
);
trailing_whitespace = (
<div>
2017-05-23 01:32:57 +03:00
First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh
2017-06-05 23:52:54 +03:00
Twelfth Thirteenth Fourteenth{" "}
2017-05-23 01:32:57 +03:00
</div>
);
2017-05-31 20:16:50 +03:00
no_leading_or_trailing_whitespace = (
2017-05-23 01:32:57 +03:00
<div>
First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh
Twelfth Thirteenth Fourteenth
</div>
);
2017-05-23 21:56:21 +03:00
facebook_translation_leave_text_around_tag = (
<div>
2017-06-22 19:19:44 +03:00
<span>First</span>, (<span>Second</span>)
2017-05-23 21:56:21 +03:00
</div>
);
2018-06-25 21:11:40 +03:00
x = (
<div>
<span>First second third fourth fifth sixth seventh</span>, (
<span>Second</span>)
</div>
);
2017-05-23 21:56:21 +03:00
this_really_should_split_across_lines = (
<div>
2018-06-25 21:11:40 +03:00
before
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
{stuff}
after
2017-05-23 21:56:21 +03:00
</div>
);
2017-05-31 19:42:36 +03:00
unstable_before = (
<div className="yourScore">
2017-06-05 23:52:54 +03:00
Your score:{" "}
2017-10-31 23:31:27 +03:00
<span className="score">{\`\${mini.crosstable.users[sessionUserId]} - \${
mini.crosstable.users[user.id]
}\`}</span>
2017-05-31 19:42:36 +03:00
</div>
);
unstable_after_first_run = (
<div className="yourScore">
2017-06-05 23:52:54 +03:00
Your score:{" "}
2017-10-31 23:31:27 +03:00
<span className="score">{\`\${mini.crosstable.users[sessionUserId]} - \${
mini.crosstable.users[user.id]
}\`}</span>
2017-05-31 19:42:36 +03:00
</div>
);
solitary_whitespace = (
<div
first="first"
second="second"
third="third"
fourth="fourth"
fifth="fifth"
sixth="sixth"
>
{" "}
</div>
);
2017-05-31 20:16:50 +03:00
jsx_whitespace_on_newline = (
<div>
2017-06-22 19:19:44 +03:00
<div>First</div> <div>Second</div> <div>Third</div>
2017-05-31 20:16:50 +03:00
</div>
);
jsx_around_multiline_element = (
<div>
2017-06-05 23:52:54 +03:00
Before{" "}
<div>
2017-05-31 20:16:50 +03:00
{
"Enough text to make this element wrap on to multiple lines when formatting"
}
2017-06-05 23:52:54 +03:00
</div>{" "}
After
2017-05-31 20:16:50 +03:00
</div>
);
jsx_around_multiline_element_second_pass = (
<div>
2017-06-05 23:52:54 +03:00
Before{" "}
2017-05-31 20:16:50 +03:00
<div>
{
"Enough text to make this element wrap on to multiple lines when formatting"
}
2017-06-05 23:52:54 +03:00
</div>{" "}
After
2017-05-31 20:16:50 +03:00
</div>
);
2017-06-22 19:19:44 +03:00
convert_space_expressions = <div> </div>;
x = (
<div>
<first />
<second />
<third />
<fourth />
<fifth />
<sixth />
</div>
);
const Abc = () => {
return (
<div>
Please state your <b>name</b> and <b>occupation</b> for the board of
directors.
</div>
);
};
x = <div id="moo">Some stuff here</div>;
headers_and_paragraphs = (
<div>
<h2>First</h2>
<p>The first paragraph.</p>
<h2>Second</h2>
<p>The second paragraph.</p>
</div>
);
no_text_one_tag_per_line = (
<div>
<first />
<second />
</div>
);
with_text_fill_line = (
<div>
2017-06-26 19:30:52 +03:00
Text <first />
<second />
2017-06-22 19:19:44 +03:00
</div>
);
line_after_br = (
<div>
2018-06-25 21:11:40 +03:00
Text
<br />
More text
<br />
And more
<br />
</div>
);
line_after_br = (
<div>
Text
<br />
More text
<br />
And more
<br />
</div>
);
line_after_br = (
<div>
Text
<br />
More text
<br />
And more
<br />
2017-06-22 19:19:44 +03:00
</div>
);
line_after_br_2 = (
<div>
2017-06-26 19:30:52 +03:00
A<br />B<br />C
2017-06-22 19:19:44 +03:00
</div>
);
br_followed_by_whitespace = (
<div>
2017-06-26 19:30:52 +03:00
<br /> text
2017-06-22 19:19:44 +03:00
</div>
);
dont_preserve_blank_lines_when_jsx_contains_text = (
<div>
2017-06-26 19:30:52 +03:00
<div>Zeroth</div>
<div>First</div>
Second
2017-06-22 19:19:44 +03:00
</div>
);
multiple_expressions = (
<div>
{header}
{body}
{footer}
</div>
);
single_expression_child_tags = (
<div>
You currently have <strong>{dashboardStr}</strong> and{" "}
<strong>{userStr}</strong>
</div>
);
expression_does_not_break = (
<div>
texty text text text text text text text text text text text{" "}
{this.props.type}{" "}
</div>
);
// FIXME
br_triggers_expression_break = (
<div>
<br />
text text text text text text text text text text text {
this.props.type
}{" "}
</div>
);
jsx_whitespace_after_tag = (
<div>
<span a="a" b="b">
{variable}
</span>{" "}
({variable})
</div>
);
2017-06-26 13:03:13 +03:00
x = (
<div>
2017-10-22 09:54:23 +03:00
ENDS IN <div>text text text text text text text text text text text</div>{" "}
2017-06-26 13:03:13 +03:00
HRS
</div>
);
2017-06-26 19:30:52 +03:00
x = (
<div>
<h2>Message</h2>
Hello, I'm a simple message.
</div>
);
x = (
<div>
Hello, I'm a simple message.
<h2>Message</h2>
</div>
);
x = (
<div>
<div>
<div>
<div>
<div>
Line {startRange.row + 1}:{startRange.column + 1} -{" "}
{endRange.row + 1}:{endRange.column + 1}
{caller}
</div>
</div>
</div>
</div>
</div>
);
2017-10-03 22:51:18 +03:00
x = (
<div>
{" "}
<div>text</div>
</div>
);
// NOTE: Multiple JSX whitespaces are collapsed into a single space.
x = <div> </div>;
2017-11-13 07:20:17 +03:00
// Don't break a self-closing element without attributes
// ----------
x = (
<p>
2018-06-25 21:11:40 +03:00
text text text text text text text text text text text text text text text
<br />
text text text text text text
2017-11-13 07:20:17 +03:00
</p>
);
2018-06-25 21:11:40 +03:00
x = (
<div>
<div>First</div>-<div>Second</div>
</div>
);
x = (
<div>
<div>First</div>-<div>Second</div>
</div>
);
x = (
<div>
<div>First</div>-<div>Second</div>
</div>
);
x = (
<div>
<div className="first" tabIndex="1">
First
</div>
-
<div className="second" tabIndex="2">
Second
</div>
</div>
);
x = (
<div>
<div className="first" tabIndex="1">
First
</div>
-
<div className="second" tabIndex="2">
Second
</div>
</div>
);
x = (
<div>
<div className="first" tabIndex="1">
First
</div>
-
<div className="second" tabIndex="2">
Second
</div>
</div>
);
x = (
<div>
{hour}:{minute}:{second}
</div>
);
x = (
<div>
{hour}:{minute}:{second}
</div>
);
x = (
<div>
{hour}:{minute}:{second}
</div>
);
2017-05-11 02:13:21 +03:00
`;