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

Unified Diff: components/test_runner/test_runner.cc

Issue 2521043003: Replace LayoutTests/paint/invalidation/text-selection-focus.html with a SimTest. (Closed)
Patch Set: copyrights. Created 4 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: components/test_runner/test_runner.cc
diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc
index e96d2c77751299149e3e6579415051d50b883a69..e24c5b030855d78fd5bbd7356859d2c72d2c119a 100644
--- a/components/test_runner/test_runner.cc
+++ b/components/test_runner/test_runner.cc
@@ -266,7 +266,6 @@ class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> {
const std::string& avatar,
const std::string& password);
void ClearMockCredentialManagerResponse();
- bool AnimationScheduled();
bool CallShouldCloseOnWebView();
bool DisableAutoResizeMode(int new_width, int new_height);
bool EnableAutoResizeMode(int min_width,
@@ -351,7 +350,6 @@ gin::ObjectTemplateBuilder TestRunnerBindings::GetObjectTemplateBuilder(
.SetMethod("addOriginAccessWhitelistEntry",
&TestRunnerBindings::AddOriginAccessWhitelistEntry)
.SetMethod("addWebPageOverlay", &TestRunnerBindings::AddWebPageOverlay)
- .SetMethod("animationScheduled", &TestRunnerBindings::AnimationScheduled)
.SetMethod("callShouldCloseOnWebView",
&TestRunnerBindings::CallShouldCloseOnWebView)
.SetMethod("capturePixelsAsyncThen",
@@ -1057,13 +1055,6 @@ void TestRunnerBindings::SetPluginsEnabled(bool enabled) {
runner_->SetPluginsEnabled(enabled);
}
-bool TestRunnerBindings::AnimationScheduled() {
- if (runner_)
- return runner_->GetAnimationScheduled();
- else
- return false;
-}
-
void TestRunnerBindings::DumpEditingCallbacks() {
if (runner_)
runner_->DumpEditingCallbacks();
@@ -1644,7 +1635,6 @@ void TestRunner::Reset() {
layout_test_runtime_flags_.Reset();
mock_screen_orientation_client_->ResetData();
drag_image_.reset();
- widgets_with_scheduled_animations_.clear();
WebSecurityPolicy::resetOriginAccessWhitelists();
#if defined(__linux__) || defined(ANDROID)
@@ -2407,19 +2397,6 @@ void TestRunner::SetPluginsEnabled(bool enabled) {
delegate_->ApplyPreferences();
}
-bool TestRunner::GetAnimationScheduled() const {
- bool is_animation_scheduled = !widgets_with_scheduled_animations_.empty();
- return is_animation_scheduled;
-}
-
-void TestRunner::OnAnimationScheduled(blink::WebWidget* widget) {
- widgets_with_scheduled_animations_.insert(widget);
-}
-
-void TestRunner::OnAnimationBegun(blink::WebWidget* widget) {
- widgets_with_scheduled_animations_.erase(widget);
-}
-
void TestRunner::DumpEditingCallbacks() {
layout_test_runtime_flags_.set_dump_editting_callbacks(true);
OnLayoutTestRuntimeFlagsChanged();

Powered by Google App Engine
This is Rietveld 408576698