Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(810)

Unified Diff: content/browser/service_worker/embedded_worker_instance_unittest.cc

Issue 697593002: ServiceWorker: Registering a malformed script should fail [2/3] (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/embedded_worker_instance_unittest.cc
diff --git a/content/browser/service_worker/embedded_worker_instance_unittest.cc b/content/browser/service_worker/embedded_worker_instance_unittest.cc
index 5c1b853d56b806988f41646ea158ab16fbb0dc5e..3f4df24f730ba54691c9c8aa188d64b86bbf3d45 100644
--- a/content/browser/service_worker/embedded_worker_instance_unittest.cc
+++ b/content/browser/service_worker/embedded_worker_instance_unittest.cc
@@ -74,11 +74,13 @@ TEST_F(EmbeddedWorkerInstanceTest, StartAndStop) {
url,
false,
base::Bind(&SaveStatusAndCall, &status, run_loop.QuitClosure()));
- run_loop.Run();
- EXPECT_EQ(SERVICE_WORKER_OK, status);
EXPECT_EQ(EmbeddedWorkerInstance::STARTING, worker->status());
+ run_loop.Run();
base::RunLoop().RunUntilIdle();
falken 2014/11/06 03:15:31 I'm not sure I understand base::RunLoop. Do you ne
nhiroki 2014/11/06 04:12:46 Yes, this is not necessary. Removed. (I thought t
+ // Script evaluated message should be notified (by EmbeddedWorkerTestHelper).
falken 2014/11/06 03:15:31 I don't understand this comment, both the wording
nhiroki 2014/11/06 04:12:46 Fixed.
+ EXPECT_EQ(SERVICE_WORKER_OK, status);
+
// Worker started message should be notified (by EmbeddedWorkerTestHelper).
EXPECT_EQ(EmbeddedWorkerInstance::RUNNING, worker->status());
EXPECT_EQ(kRenderProcessId, worker->process_id());
« no previous file with comments | « content/browser/service_worker/embedded_worker_instance.cc ('k') | content/browser/service_worker/embedded_worker_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698