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

Unified Diff: content/browser/renderer_host/input/touch_emulator_unittest.cc

Issue 867973002: [DevTools] Ignore TouchEmulator::CancelTouch calls when disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « content/browser/renderer_host/input/touch_emulator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/touch_emulator_unittest.cc
diff --git a/content/browser/renderer_host/input/touch_emulator_unittest.cc b/content/browser/renderer_host/input/touch_emulator_unittest.cc
index 09441af44e86d543092b58625aae4c055e51526a..440e39afffa32c20968beb241052da9e8f9e07fa 100644
--- a/content/browser/renderer_host/input/touch_emulator_unittest.cc
+++ b/content/browser/renderer_host/input/touch_emulator_unittest.cc
@@ -552,4 +552,12 @@ TEST_F(TouchEmulatorTest, MultipleTouchStreamsLateEnable) {
ExpectedEvents());
}
+TEST_F(TouchEmulatorTest, CancelAfterDisableDoesNotCrash) {
+ DisableSynchronousTouchAck();
+ MouseDown(100, 200);
+ emulator()->Disable();
+ EXPECT_EQ("TouchStart TouchCancel", ExpectedEvents());
+ emulator()->CancelTouch();
+}
+
} // namespace content
« no previous file with comments | « content/browser/renderer_host/input/touch_emulator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698