Mercurial > irccd
diff tests/js-elapsedtimer/main.cpp @ 489:349fe29d86d5
Tests: switch to Boost, closes #680
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 20 Aug 2017 08:16:39 +0200 |
parents | 7e273b7f4f92 |
children | 173c52d3120b |
line wrap: on
line diff
--- a/tests/js-elapsedtimer/main.cpp Tue Sep 26 17:18:47 2017 +0200 +++ b/tests/js-elapsedtimer/main.cpp Sun Aug 20 08:16:39 2017 +0200 @@ -61,24 +61,6 @@ } } -TEST_F(TestElapsedTimer, reset) -{ - try { - if (duk_peval_string(m_plugin->context(), "timer = new Irccd.ElapsedTimer();") != 0) - throw dukx_exception(m_plugin->context(), -1); - - std::this_thread::sleep_for(300ms); - - if (duk_peval_string(m_plugin->context(), "timer.reset(); result = timer.elapsed();") != 0) - throw dukx_exception(m_plugin->context(), -1); - - ASSERT_TRUE(duk_get_global_string(m_plugin->context(), "result")); - ASSERT_LE(duk_get_int(m_plugin->context(), -1), 100); - } catch (const std::exception &ex) { - FAIL() << ex.what(); - } -} - int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv);