Commit 83e621d3 authored by mike@belshe.com's avatar mike@belshe.com

Fix test error for IdleNotification() return code check.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3020 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5191c81d
......@@ -7913,11 +7913,15 @@ THREADED_TEST(StackTrace) {
}
// Test that idle notification can be handled when V8 has not yet been
// set up.
// Test that idle notification can be handled and eventually returns true.
THREADED_TEST(IdleNotification) {
for (int i = 0; i < 100; i++)
CHECK(v8::V8::IdleNotification());
bool rv = false;
for (int i = 0; i < 100; i++) {
rv = v8::V8::IdleNotification();
if (rv)
break;
}
CHECK(rv == true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment