diff options
Diffstat (limited to 'testing/web-platform/tests/eventsource/format-mime-trailing-semicolon.any.js')
-rw-r--r-- | testing/web-platform/tests/eventsource/format-mime-trailing-semicolon.any.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/eventsource/format-mime-trailing-semicolon.any.js b/testing/web-platform/tests/eventsource/format-mime-trailing-semicolon.any.js new file mode 100644 index 0000000000..55a314bf52 --- /dev/null +++ b/testing/web-platform/tests/eventsource/format-mime-trailing-semicolon.any.js @@ -0,0 +1,20 @@ +// META: title=EventSource: MIME type with trailing ; + var test = async_test() + test.step(function() { + var source = new EventSource("resources/message.py?mime=text/event-stream%3B") + source.onopen = function() { + test.step(function() { + assert_equals(source.readyState, source.OPEN) + source.close() + }) + test.done() + } + source.onerror = function() { + test.step(function() { + assert_unreached() + source.close() + }) + test.done() + } + }) + |