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

Unified Diff: ui/views/test/views_test_helper.cc

Issue 2119813002: views::Textfield: Implement yank editing command. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. Created 4 years, 5 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: ui/views/test/views_test_helper.cc
diff --git a/ui/views/test/views_test_helper.cc b/ui/views/test/views_test_helper.cc
index 75588a6cb7f0d338bc55788cc8a4b7d1e71be643..7490b569f8a615c62b0e21d49735d081080db8ef 100644
--- a/ui/views/test/views_test_helper.cc
+++ b/ui/views/test/views_test_helper.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "ui/views/controls/textfield/textfield_model.h"
#include "ui/views/test/views_test_helper.h"
namespace views {
@@ -10,6 +11,9 @@ ViewsTestHelper::ViewsTestHelper() {
}
ViewsTestHelper::~ViewsTestHelper() {
+ // Clear kill buffer used for "Yank" text editing command so that no state
+ // persists between tests.
+ TextfieldModel::ClearKillBufferForTesting();
msw 2016/07/22 17:44:03 Would it be sufficient to clear this in Textfield[
karandeepb 2016/07/25 06:38:11 Done.
}
void ViewsTestHelper::SetUp() {

Powered by Google App Engine
This is Rietveld 408576698