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

Side by Side Diff: chrome/test/data/webui/print_preview.js

Issue 2689163002: Remove webkit prefixes for CSS Animation in chrome/ styles (Closed)
Patch Set: rebase Created 3 years, 10 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 GEN('#include "base/feature_list.h"'); 5 GEN('#include "base/feature_list.h"');
6 GEN('#include "chrome/common/chrome_features.h"'); 6 GEN('#include "chrome/common/chrome_features.h"');
7 7
8 /** 8 /**
9 * Test fixture for print preview WebUI testing. 9 * Test fixture for print preview WebUI testing.
10 * @constructor 10 * @constructor
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 capsSetEvent.settingsInfo = device; 153 capsSetEvent.settingsInfo = device;
154 this.nativeLayer_.dispatchEvent(capsSetEvent); 154 this.nativeLayer_.dispatchEvent(capsSetEvent);
155 }, 155 },
156 156
157 /** 157 /**
158 * Even though animation duration and delay is set to zero, it is necessary to 158 * Even though animation duration and delay is set to zero, it is necessary to
159 * wait until the animation has finished. 159 * wait until the animation has finished.
160 */ 160 */
161 waitForAnimationToEnd: function(elementId) { 161 waitForAnimationToEnd: function(elementId) {
162 // add a listener for the animation end event 162 // add a listener for the animation end event
163 document.addEventListener('webkitAnimationEnd', function f(e) { 163 document.addEventListener('animationend', function f(e) {
164 if (e.target.id == elementId) { 164 if (e.target.id == elementId) {
165 document.removeEventListener(f, 'webkitAnimationEnd'); 165 document.removeEventListener(f, 'animationend');
166 testDone(); 166 testDone();
167 } 167 }
168 }); 168 });
169 }, 169 },
170 170
171 /** 171 /**
172 * Expand the 'More Settings' div to expose all options. 172 * Expand the 'More Settings' div to expose all options.
173 */ 173 */
174 expandMoreSettings: function() { 174 expandMoreSettings: function() {
175 var moreSettings = $('more-settings'); 175 var moreSettings = $('more-settings');
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 // increments by 1 for each startGetPreview call it makes. It should only 1311 // increments by 1 for each startGetPreview call it makes. It should only
1312 // make one such call during initialization or there will be a race; see 1312 // make one such call during initialization or there will be a race; see
1313 // crbug.com/666595 1313 // crbug.com/666595
1314 expectEquals(printPreview.previewArea_.previewGenerator_.inFlightRequestId_, 1314 expectEquals(printPreview.previewArea_.previewGenerator_.inFlightRequestId_,
1315 -1); 1315 -1);
1316 this.setInitialSettings(); 1316 this.setInitialSettings();
1317 expectEquals(printPreview.previewArea_.previewGenerator_.inFlightRequestId_, 1317 expectEquals(printPreview.previewArea_.previewGenerator_.inFlightRequestId_,
1318 0); 1318 0);
1319 testDone(); 1319 testDone();
1320 }); 1320 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/supervised_user_internals.css ('k') | chrome/test/data/webui/test_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698