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

Side by Side Diff: Source/devtools/front_end/main/Tests.js

Issue 693893002: [DevTools] Add configuration parameter to Page.setTouchEmulationEnabled. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/devtools/front_end/sdk/DOMModel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 TestSuite.prototype.testPauseInSharedWorkerInitialization2 = function() 609 TestSuite.prototype.testPauseInSharedWorkerInitialization2 = function()
610 { 610 {
611 if (WebInspector.debuggerModel.isPaused()) 611 if (WebInspector.debuggerModel.isPaused())
612 return; 612 return;
613 this._waitForScriptPause(this.releaseControl.bind(this)); 613 this._waitForScriptPause(this.releaseControl.bind(this));
614 this.takeControl(); 614 this.takeControl();
615 }; 615 };
616 616
617 TestSuite.prototype.enableTouchEmulation = function() 617 TestSuite.prototype.enableTouchEmulation = function()
618 { 618 {
619 WebInspector.targetManager.mainTarget().domModel.emulateTouchEventObjects(tr ue); 619 WebInspector.targetManager.mainTarget().domModel.emulateTouchEventObjects(tr ue, "mobile");
620 }; 620 };
621 621
622 622
623 // Regression test for crbug.com/370035. 623 // Regression test for crbug.com/370035.
624 TestSuite.prototype.testDeviceMetricsOverrides = function() 624 TestSuite.prototype.testDeviceMetricsOverrides = function()
625 { 625 {
626 const dumpPageMetrics = function() 626 const dumpPageMetrics = function()
627 { 627 {
628 return JSON.stringify({ 628 return JSON.stringify({
629 width: window.innerWidth, 629 width: window.innerWidth,
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 delete uiTests._pendingTestName; 944 delete uiTests._pendingTestName;
945 if (name) 945 if (name)
946 new TestSuite().runTest(name); 946 new TestSuite().runTest(name);
947 } 947 }
948 948
949 WebInspector.notifications.addEventListener(WebInspector.NotificationService.Eve nts.InspectorAgentEnabledForTests, runTests); 949 WebInspector.notifications.addEventListener(WebInspector.NotificationService.Eve nts.InspectorAgentEnabledForTests, runTests);
950 950
951 })(); 951 })();
952 952
953 } 953 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/devtools/front_end/sdk/DOMModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698