| 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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 } | 905 } |
| 906 override.apply(original, arguments); | 906 override.apply(original, arguments); |
| 907 return value; | 907 return value; |
| 908 }; | 908 }; |
| 909 }; | 909 }; |
| 910 | 910 |
| 911 TestSuite.prototype.startTimeline = function(callback) { | 911 TestSuite.prototype.startTimeline = function(callback) { |
| 912 var test = this; | 912 var test = this; |
| 913 this.showPanel('timeline').then(function() { | 913 this.showPanel('timeline').then(function() { |
| 914 var timeline = UI.panels.timeline; | 914 var timeline = UI.panels.timeline; |
| 915 test._overrideMethod(timeline, 'recordingStarted', callback); | 915 test._overrideMethod(timeline, '_recordingStarted', callback); |
| 916 timeline._toggleRecording(); | 916 timeline._toggleRecording(); |
| 917 }); | 917 }); |
| 918 }; | 918 }; |
| 919 | 919 |
| 920 TestSuite.prototype.stopTimeline = function(callback) { | 920 TestSuite.prototype.stopTimeline = function(callback) { |
| 921 var timeline = UI.panels.timeline; | 921 var timeline = UI.panels.timeline; |
| 922 this._overrideMethod(timeline, 'loadingComplete', callback); | 922 this._overrideMethod(timeline, 'loadingComplete', callback); |
| 923 timeline._toggleRecording(); | 923 timeline._toggleRecording(); |
| 924 }; | 924 }; |
| 925 | 925 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 if (runtimeModel.executionContexts().length >= n) | 1102 if (runtimeModel.executionContexts().length >= n) |
| 1103 callback.call(null); | 1103 callback.call(null); |
| 1104 else | 1104 else |
| 1105 this.addSniffer(SDK.RuntimeModel.prototype, '_executionContextCreated',
checkForExecutionContexts.bind(this)); | 1105 this.addSniffer(SDK.RuntimeModel.prototype, '_executionContextCreated',
checkForExecutionContexts.bind(this)); |
| 1106 } | 1106 } |
| 1107 }; | 1107 }; |
| 1108 | 1108 |
| 1109 | 1109 |
| 1110 window.uiTests = new TestSuite(window.domAutomationController); | 1110 window.uiTests = new TestSuite(window.domAutomationController); |
| 1111 })(window); | 1111 })(window); |
| OLD | NEW |