Mercurial > irccd
diff tests/js-elapsedtimer/main.cpp @ 565:194162717ec9
Irccd: bring new duktape.hpp
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Nov 2017 10:16:45 +0100 |
parents | b3a0f61a35fe |
children | bf56628e070b |
line wrap: on
line diff
--- a/tests/js-elapsedtimer/main.cpp Mon Nov 27 08:51:47 2017 +0100 +++ b/tests/js-elapsedtimer/main.cpp Mon Nov 27 10:16:45 2017 +0100 @@ -34,12 +34,12 @@ BOOST_AUTO_TEST_CASE(standard) { if (duk_peval_string(plugin_->context(), "timer = new Irccd.ElapsedTimer();") != 0) - throw dukx_exception(plugin_->context(), -1); + throw dukx_get_exception(plugin_->context(), -1); std::this_thread::sleep_for(300ms); if (duk_peval_string(plugin_->context(), "result = timer.elapsed();") != 0) - throw dukx_exception(plugin_->context(), -1); + throw dukx_get_exception(plugin_->context(), -1); BOOST_REQUIRE(duk_get_global_string(plugin_->context(), "result")); BOOST_REQUIRE_GE(duk_get_int(plugin_->context(), -1), 250);