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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 function step4() | 472 function step4() |
473 { | 473 { |
474 testOverrides({width: 1200, height: 1000, deviceScaleFactor: 3, mobile:
false, fitWindow: false}, {width: 1200, height: 1000, deviceScaleFactor: 3}, fin
ish); | 474 testOverrides({width: 1200, height: 1000, deviceScaleFactor: 3, mobile:
false, fitWindow: false}, {width: 1200, height: 1000, deviceScaleFactor: 3}, fin
ish); |
475 } | 475 } |
476 | 476 |
477 function finish() | 477 function finish() |
478 { | 478 { |
479 test.releaseControl(); | 479 test.releaseControl(); |
480 } | 480 } |
481 | 481 |
482 WebInspector.overridesSupport._deviceMetricsChangedListenerMuted = true; | |
483 test.takeControl(); | 482 test.takeControl(); |
484 this.waitForThrottler(WebInspector.overridesSupport._deviceMetricsThrottler,
step1); | 483 step1(); |
485 }; | 484 }; |
486 | 485 |
487 TestSuite.prototype.testScreenshotRecording = function() | 486 TestSuite.prototype.testScreenshotRecording = function() |
488 { | 487 { |
489 var test = this; | 488 var test = this; |
490 | 489 |
491 function performActionsInPage(callback) | 490 function performActionsInPage(callback) |
492 { | 491 { |
493 var count = 0; | 492 var count = 0; |
494 var div = document.createElement("div"); | 493 var div = document.createElement("div"); |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 }; | 818 }; |
820 | 819 |
821 return new TestSuite(); | 820 return new TestSuite(); |
822 | 821 |
823 } | 822 } |
824 | 823 |
825 if (window.uiTests) { | 824 if (window.uiTests) { |
826 WebInspector.notifications.addEventListener(WebInspector.NotificationService
.Events.InspectorAgentEnabledForTests, | 825 WebInspector.notifications.addEventListener(WebInspector.NotificationService
.Events.InspectorAgentEnabledForTests, |
827 window.uiTests.testSuiteReady.bind(null, createTestSuite)); | 826 window.uiTests.testSuiteReady.bind(null, createTestSuite)); |
828 } | 827 } |
OLD | NEW |