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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 } | 737 } |
738 } | 738 } |
739 | 739 |
740 var captureFilmStripSetting = Common.settings.createSetting('timelineCapture
FilmStrip', false); | 740 var captureFilmStripSetting = Common.settings.createSetting('timelineCapture
FilmStrip', false); |
741 captureFilmStripSetting.set(true); | 741 captureFilmStripSetting.set(true); |
742 test.evaluateInConsole_(performActionsInPage.toString(), function() {}); | 742 test.evaluateInConsole_(performActionsInPage.toString(), function() {}); |
743 test.invokeAsyncWithTimeline_('performActionsInPage', onTimelineDone); | 743 test.invokeAsyncWithTimeline_('performActionsInPage', onTimelineDone); |
744 | 744 |
745 function onTimelineDone() { | 745 function onTimelineDone() { |
746 captureFilmStripSetting.set(false); | 746 captureFilmStripSetting.set(false); |
747 var filmStripModel = new Components.FilmStripModel(UI.panels.timeline._tra
cingModel); | 747 var filmStripModel = new SDK.FilmStripModel(UI.panels.timeline._tracingMod
el); |
748 var frames = filmStripModel.frames(); | 748 var frames = filmStripModel.frames(); |
749 test.assertTrue(frames.length > 4 && typeof frames.length === 'number'); | 749 test.assertTrue(frames.length > 4 && typeof frames.length === 'number'); |
750 loadFrameImages(frames); | 750 loadFrameImages(frames); |
751 } | 751 } |
752 | 752 |
753 function loadFrameImages(frames) { | 753 function loadFrameImages(frames) { |
754 var readyImages = []; | 754 var readyImages = []; |
755 for (var frame of frames) | 755 for (var frame of frames) |
756 frame.imageDataPromise().then(onGotImageData); | 756 frame.imageDataPromise().then(onGotImageData); |
757 | 757 |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 if (runtimeModel.executionContexts().length >= n) | 1103 if (runtimeModel.executionContexts().length >= n) |
1104 callback.call(null); | 1104 callback.call(null); |
1105 else | 1105 else |
1106 this.addSniffer(SDK.RuntimeModel.prototype, '_executionContextCreated',
checkForExecutionContexts.bind(this)); | 1106 this.addSniffer(SDK.RuntimeModel.prototype, '_executionContextCreated',
checkForExecutionContexts.bind(this)); |
1107 } | 1107 } |
1108 }; | 1108 }; |
1109 | 1109 |
1110 | 1110 |
1111 window.uiTests = new TestSuite(window.domAutomationController); | 1111 window.uiTests = new TestSuite(window.domAutomationController); |
1112 })(window); | 1112 })(window); |
OLD | NEW |