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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. Created 4 years, 2 months 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: third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp b/third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp
index d42e327321d23bcca1cbadb76963d77cecbadbe9..3b92e16b6a089c5efd88d666a97e5b32718704ef 100644
--- a/third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp
@@ -45,9 +45,10 @@ class ScriptRunnerTest : public testing::Test {
m_element(m_document->createElement("foo", ASSERT_NO_EXCEPTION)) {}
void SetUp() override {
- // We have to create ScriptRunner after initializing platform, because we need
- // Platform::current()->currentThread()->scheduler()->loadingTaskRunner()
- // to be initialized before creating ScriptRunner to save it in constructor.
+ // We have to create ScriptRunner after initializing platform, because we
+ // need Platform::current()->currentThread()->scheduler()->
+ // loadingTaskRunner() to be initialized before creating ScriptRunner to
+ // save it in constructor.
m_scriptRunner = ScriptRunner::create(m_document.get());
}
@@ -195,8 +196,8 @@ TEST_F(ScriptRunnerTest, QueueReentrantScript_Async) {
m_order.append(3);
}));
- // Make sure that re-entrant calls to notifyScriptReady don't cause ScriptRunner::execute to do
- // more work than expected.
+ // Make sure that re-entrant calls to notifyScriptReady don't cause
+ // ScriptRunner::execute to do more work than expected.
m_platform.runSingleTask();
EXPECT_THAT(m_order, ElementsAre(1));
@@ -241,8 +242,8 @@ TEST_F(ScriptRunnerTest, QueueReentrantScript_InOrder) {
m_order.append(3);
}));
- // Make sure that re-entrant calls to queueScriptForExecution don't cause ScriptRunner::execute to do
- // more work than expected.
+ // Make sure that re-entrant calls to queueScriptForExecution don't cause
+ // ScriptRunner::execute to do more work than expected.
m_platform.runSingleTask();
EXPECT_THAT(m_order, ElementsAre(1));
@@ -385,7 +386,8 @@ TEST_F(ScriptRunnerTest, LateNotifications) {
m_scriptRunner->notifyScriptReady(scriptLoader1, ScriptRunner::InOrder);
m_platform.runUntilIdle();
- // At this moment all tasks can be already executed. Make sure that we do not crash here.
+ // At this moment all tasks can be already executed. Make sure that we do not
+ // crash here.
m_scriptRunner->notifyScriptReady(scriptLoader2, ScriptRunner::InOrder);
m_platform.runUntilIdle();
@@ -411,7 +413,8 @@ TEST_F(ScriptRunnerTest, TasksWithDeadScriptRunner) {
ThreadState::current()->collectAllGarbage();
- // m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do not access dead object.
+ // m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do not
+ // access dead object.
EXPECT_CALL(*scriptLoader1, execute()).Times(0);
EXPECT_CALL(*scriptLoader2, execute()).Times(0);
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | third_party/WebKit/Source/core/dom/ScriptedAnimationController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698