| Index: Source/modules/websockets/DOMWebSocketTest.cpp
|
| diff --git a/Source/modules/websockets/DOMWebSocketTest.cpp b/Source/modules/websockets/DOMWebSocketTest.cpp
|
| index e21e5a823cd8b34ab90b2f0b4b415790664b1af0..75ac744c470b18ed8156770722a06d6f6ed3fccd 100644
|
| --- a/Source/modules/websockets/DOMWebSocketTest.cpp
|
| +++ b/Source/modules/websockets/DOMWebSocketTest.cpp
|
| @@ -666,23 +666,28 @@ TEST_F(DOMWebSocketTest, binaryType)
|
| {
|
| EXPECT_EQ("blob", m_websocket->binaryType());
|
|
|
| - m_websocket->setBinaryType("hoge");
|
| -
|
| - EXPECT_EQ("blob", m_websocket->binaryType());
|
| -
|
| m_websocket->setBinaryType("arraybuffer");
|
|
|
| EXPECT_EQ("arraybuffer", m_websocket->binaryType());
|
|
|
| - m_websocket->setBinaryType("fuga");
|
| -
|
| - EXPECT_EQ("arraybuffer", m_websocket->binaryType());
|
| -
|
| m_websocket->setBinaryType("blob");
|
|
|
| EXPECT_EQ("blob", m_websocket->binaryType());
|
| }
|
|
|
| +class DOMWebSocketDeathTest : public DOMWebSocketTestBase, public ::testing::Test {
|
| +public:
|
| +};
|
| +
|
| +TEST_F(DOMWebSocketDeathTest, binaryType)
|
| +{
|
| + m_websocket->setBinaryType("arraybuffer");
|
| +
|
| + EXPECT_EQ("arraybuffer", m_websocket->binaryType());
|
| + EXPECT_DEATH(m_websocket->setBinaryType("hoge"), "");
|
| + EXPECT_EQ("arraybuffer", m_websocket->binaryType());
|
| +}
|
| +
|
| // FIXME: We should add tests for suspend / resume.
|
|
|
| class DOMWebSocketValidClosingTest : public DOMWebSocketTestBase, public ::testing::TestWithParam<unsigned short> {
|
|
|