From 5ceeaa729747e091a1728aa20c5605314c41ee10 Mon Sep 17 00:00:00 2001 From: Roel Walraven Date: Fri, 24 Feb 2017 14:08:47 +0100 Subject: [PATCH] Move deprecated methods to own section --- src/LightDMMock.js | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/LightDMMock.js b/src/LightDMMock.js index 1c9bc6d..0a78896 100644 --- a/src/LightDMMock.js +++ b/src/LightDMMock.js @@ -333,9 +333,39 @@ LightDMMock.prototype.suspend = function() { /****************************************************************************** - * Throwables * + * Deprecated * *******************************************************************************/ +LightDMMock.prototype.cancel_timed_login = function() { + window.logCall("cancel_timed_login", arguments); + window.deprecationNotifier("method", "lightdm.cancel_timed_login()", "lightdm.cancel_autologin()"); +}; + +LightDMMock.prototype.start_authentication = function() { + window.logCall("start_authentication", arguments); + window.deprecationNotifier("method", "lightdm.start_authentication()", "lightdm.authenticate(username)"); +}; + +LightDMMock.prototype.login = function() { + window.logCall("login", arguments); + window.deprecationNotifier("method", "lightdm.login()", "lightdm.start_session(session)"); +}; + +LightDMMock.prototype.provide_secret = function() { + window.logCall("provide_secret", arguments); + window.deprecationNotifier("method", "lightdm.provide_secret(text)", "lightdm.respond(text)"); +}; + +LightDMMock.prototype.start_session_sync = function() { + window.logCall("login", arguments); + window.deprecationNotifier("method", "lightdm.start_session_sync(session)", "lightdm.start_session(session)"); +}; + + +/****************************************************************************** + * Throwables * + ******************************************************************************/ + /** * Throwable IlligalUsageException *