diff options
author | Lars Thorsen <[email protected]> | 2017-06-05 10:18:31 +0200 |
---|---|---|
committer | Lars Thorsen <[email protected]> | 2017-06-05 10:18:31 +0200 |
commit | 645371eb3a5cdcdbf73bde2ec906181ec701e1cf (patch) | |
tree | 03f5f7f2bcff6b67316c0e7364c75b0066e7aea3 /lib/xmerl/test/xmerl_sax_stream_SUITE.erl | |
parent | 736de00985c1ed44760e52283eeb727d3f14bb1f (diff) | |
parent | 87bca557898bea79dbd53d59b21f6e7384e3a25d (diff) | |
download | otp-645371eb3a5cdcdbf73bde2ec906181ec701e1cf.tar.gz otp-645371eb3a5cdcdbf73bde2ec906181ec701e1cf.tar.bz2 otp-645371eb3a5cdcdbf73bde2ec906181ec701e1cf.zip |
Merge branch 'maint-19' into maint
Diffstat (limited to 'lib/xmerl/test/xmerl_sax_stream_SUITE.erl')
-rw-r--r-- | lib/xmerl/test/xmerl_sax_stream_SUITE.erl | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/xmerl/test/xmerl_sax_stream_SUITE.erl b/lib/xmerl/test/xmerl_sax_stream_SUITE.erl index a306eb66a2..7315f67374 100644 --- a/lib/xmerl/test/xmerl_sax_stream_SUITE.erl +++ b/lib/xmerl/test/xmerl_sax_stream_SUITE.erl @@ -40,7 +40,8 @@ all() -> [ one_document, two_documents, - one_document_and_junk + one_document_and_junk, + end_of_stream ]. %%---------------------------------------------------------------------- @@ -62,6 +63,9 @@ end_per_testcase(_Func, _Config) -> %%---------------------------------------------------------------------- %% Tests %%---------------------------------------------------------------------- + +%%---------------------------------------------------------------------- +%% Send One doc over stream one_document(Config) -> Port = 11111, @@ -107,6 +111,8 @@ one_document(Config) -> end, ok. +%%---------------------------------------------------------------------- +%% Send Two doc over stream two_documents(Config) -> Port = 11111, @@ -152,6 +158,8 @@ two_documents(Config) -> end, ok. +%%---------------------------------------------------------------------- +%% Send one doc and then junk on stream one_document_and_junk(Config) -> Port = 11111, @@ -196,6 +204,13 @@ one_document_and_junk(Config) -> ct:fail("Timeout") end, ok. + +%%---------------------------------------------------------------------- +%% Test of continuation when end of stream +end_of_stream(Config) -> + Stream = <<"<?xml version=\"1.0\" encoding=\"utf-8\"?><a>hej</a>">>, + {ok, undefined, <<>>} = xmerl_sax_parser:stream(Stream, []), + ok. %%---------------------------------------------------------------------- %% Utility functions |