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

Side by Side Diff: chrome/test/data/webui/settings/easy_unlock_browsertest_chromeos.js

Issue 2180823004: Migrate <cr-dialog> from PaperDialogBehavior to native <dialog>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 /** @fileoverview Suite of tests for Easy Unlock within People section. */ 5 /** @fileoverview Suite of tests for Easy Unlock within People section. */
6 6
7 GEN_INCLUDE(['settings_page_browsertest.js']); 7 GEN_INCLUDE(['settings_page_browsertest.js']);
8 8
9 /** 9 /**
10 * @constructor 10 * @constructor
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 return browserProxy.whenCalled('startTurnOffFlow'); 202 return browserProxy.whenCalled('startTurnOffFlow');
203 }).then(function() { 203 }).then(function() {
204 // To signal successful turnoff, the enabled status is broadcast 204 // To signal successful turnoff, the enabled status is broadcast
205 // as false. At that point, the dialog should close and cancel 205 // as false. At that point, the dialog should close and cancel
206 // any in-progress turnoff flow. The cancellation should be 206 // any in-progress turnoff flow. The cancellation should be
207 // a no-op assuming the turnoff originated from this tab. 207 // a no-op assuming the turnoff originated from this tab.
208 cr.webUIListenerCallback('easy-unlock-enabled-status', false); 208 cr.webUIListenerCallback('easy-unlock-enabled-status', false);
209 return browserProxy.whenCalled('cancelTurnOffFlow'); 209 return browserProxy.whenCalled('cancelTurnOffFlow');
210 }).then(function() { 210 }).then(function() {
211 Polymer.dom.flush(); 211 Polymer.dom.flush();
212 expectFalse(turnOffDialog.$.dialog.opened); 212 expectFalse(turnOffDialog.$.dialog.open);
213 }); 213 });
214 }); 214 });
215 }); 215 });
216 216
217 // Run all registered tests. 217 // Run all registered tests.
218 mocha.run(); 218 mocha.run();
219 }); 219 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698