Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
lib-ical
Commits
2d46a933
Commit
2d46a933
authored
Dec 08, 2015
by
Andi Sidwell
Browse files
Add failing test for CRLF line breaks
parent
8dbe43f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_0.2.x.js
View file @
2d46a933
...
@@ -789,6 +789,18 @@ describe('ical-generator 0.2.x / ICalCalendar', function() {
...
@@ -789,6 +789,18 @@ describe('ical-generator 0.2.x / ICalCalendar', function() {
event
.
summary
(
'
Example Event II
'
);
event
.
summary
(
'
Example Event II
'
);
assert
.
ok
(
str
!==
cal
.
toString
());
assert
.
ok
(
str
!==
cal
.
toString
());
});
});
it
(
'
should escape CR/CRLF line breaks
'
,
function
()
{
var
cal
=
ical
(),
event
=
cal
.
createEvent
({
start
:
new
Date
(),
end
:
new
Date
(
new
Date
().
getTime
()
+
3600000
),
summary
:
'
Example with a
\r
linebreak
'
}),
str
=
cal
.
toString
();
assert
.
equal
(
str
.
indexOf
(
'
\r
linebreak
'
),
-
1
);
});
});
});
describe
(
'
location()
'
,
function
()
{
describe
(
'
location()
'
,
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment