OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |