blob: a00b9f6a208434c70b0b133ac27ca824212a051a [file] [log] [blame]
Test that EventSource discards event data if there is no newline before eof.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS evt.type is "message"
PASS evt.data is "DATA1"
PASS evt.lastEventId is "1"
PASS evt.type is "message"
PASS evt.data is "DATA2"
PASS evt.lastEventId is "2"
PASS evt.type is "message"
PASS evt.data is "DATA3"
PASS evt.lastEventId is "3"
PASS evt.type is "msg"
PASS evt.data is "DATA"
PASS evt.lastEventId is "3.1"
PASS successfullyParsed is true
TEST COMPLETE