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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Tests.js

Issue 1631223003: [DevTools] Do not use OverridesSupport anywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/devtools/front_end/main/Tests.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Tests.js b/third_party/WebKit/Source/devtools/front_end/main/Tests.js
index 1912f822204a2c93b7b8d8fe9d250716485649df..7ca3377b75a3e93371c5231732b245432157b4fd 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Tests.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Tests.js
@@ -413,7 +413,9 @@ TestSuite.prototype.testPauseInSharedWorkerInitialization2 = function()
TestSuite.prototype.enableTouchEmulation = function()
{
- WebInspector.overridesSupport._emulateTouchEventsInTarget(WebInspector.targetManager.mainTarget(), true, "mobile");
+ var deviceModeModel = new WebInspector.DeviceModeModel(function() {});
+ deviceModeModel._target = WebInspector.targetManager.mainTarget();
+ deviceModeModel._applyTouch(true, true);
};
TestSuite.prototype.switchToPanel = function(panelName)

Powered by Google App Engine
This is Rietveld 408576698