Mercurial > malikania
diff tests/libclient/js-size/main.cpp @ 27:0a1adf7dcca0
Common: update libjs and adapt code
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 12 Apr 2016 13:53:11 +0200 |
parents | fb7c2c096101 |
children | a1e80d991968 |
line wrap: on
line diff
--- a/tests/libclient/js-size/main.cpp Fri Apr 08 14:16:47 2016 +0200 +++ b/tests/libclient/js-size/main.cpp Tue Apr 12 13:53:11 2016 +0200 @@ -50,7 +50,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ(0, duk::getGlobal<int>(m_ctx, "w")); @@ -70,7 +70,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ(100, duk::getGlobal<int>(m_ctx, "w")); @@ -90,7 +90,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ(100, duk::getGlobal<int>(m_ctx, "w")); @@ -110,7 +110,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ(100, duk::getGlobal<int>(m_ctx, "w")); @@ -138,7 +138,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ("TypeError", duk::getGlobal<std::string>(m_ctx, "name")); @@ -161,7 +161,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ("RangeError", duk::getGlobal<std::string>(m_ctx, "name")); @@ -184,7 +184,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ("RangeError", duk::getGlobal<std::string>(m_ctx, "name")); @@ -207,7 +207,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ("RangeError", duk::getGlobal<std::string>(m_ctx, "name")); @@ -230,7 +230,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ("RangeError", duk::getGlobal<std::string>(m_ctx, "name")); @@ -260,7 +260,7 @@ auto ret = duk::pevalString(m_ctx, "build({ width: 100, height: 200 });"); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ(100, duk::getGlobal<int>(m_ctx, "w")); @@ -289,7 +289,7 @@ ); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ("Error", duk::getGlobal<std::string>(m_ctx, "name")); @@ -319,7 +319,7 @@ auto ret = duk::pevalString(m_ctx, "build({});"); if (ret != 0) { - throw duk::error(m_ctx, -1); + throw duk::exception(m_ctx, -1); } ASSERT_EQ(0, duk::getGlobal<int>(m_ctx, "r"));