| Index: test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc
|
| diff --git a/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc b/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc
|
| index 5b4ea7f3d7191c46d77020d1dc019e1b78521379..a2b7c8f0e27015ec31132472a0b274ab6881530c 100644
|
| --- a/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc
|
| +++ b/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc
|
| @@ -20,5 +20,15 @@ TEST_F(CompilerDispatcherJobTest, Construct) {
|
| new CompilerDispatcherJob(i_isolate, i_isolate->object_function()));
|
| }
|
|
|
| +TEST_F(CompilerDispatcherJobTest, PrepareToParse) {
|
| + Isolate* i_isolate = reinterpret_cast<Isolate*>(isolate());
|
| + std::unique_ptr<CompilerDispatcherJob> job(
|
| + new CompilerDispatcherJob(i_isolate, i_isolate->object_function()));
|
| +
|
| + ASSERT_TRUE(job->status() == CompileJobStatus::kInitial);
|
| + job->PrepareToParseOnMainThread();
|
| + ASSERT_TRUE(job->status() == CompileJobStatus::kReadyToParse);
|
| +}
|
| +
|
| } // namespace internal
|
| } // namespace v8
|
|
|