| OLD | NEW |
| 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 cr.define('device_page_tests', function() { | 5 cr.define('device_page_tests', function() { |
| 6 /** @enum {string} */ | 6 /** @enum {string} */ |
| 7 var TestNames = { | 7 var TestNames = { |
| 8 DevicePage: 'device page', | 8 DevicePage: 'device page', |
| 9 Display: 'display', | 9 Display: 'display', |
| 10 Keyboard: 'keyboard', | 10 Keyboard: 'keyboard', |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 | 27 |
| 28 TestDevicePageBrowserProxy.prototype = { | 28 TestDevicePageBrowserProxy.prototype = { |
| 29 /** override */ | 29 /** override */ |
| 30 initializePointers: function() { | 30 initializePointers: function() { |
| 31 // Enable mouse and touchpad. | 31 // Enable mouse and touchpad. |
| 32 cr.webUIListenerCallback('has-mouse-changed', true); | 32 cr.webUIListenerCallback('has-mouse-changed', true); |
| 33 cr.webUIListenerCallback('has-touchpad-changed', true); | 33 cr.webUIListenerCallback('has-touchpad-changed', true); |
| 34 }, | 34 }, |
| 35 | 35 |
| 36 /** override */ |
| 37 initializeStylus: function() { |
| 38 // Enable stylus. |
| 39 cr.webUIListenerCallback('has-stylus-changed', true); |
| 40 }, |
| 41 |
| 36 /** @override */ | 42 /** @override */ |
| 37 handleLinkEvent: function(e) { | 43 handleLinkEvent: function(e) { |
| 38 settings.DevicePageBrowserProxyImpl.prototype.handleLinkEvent.call( | 44 settings.DevicePageBrowserProxyImpl.prototype.handleLinkEvent.call( |
| 39 this, e); | 45 this, e); |
| 40 // Prevent opening the link, which can block the test. | 46 // Prevent opening the link, which can block the test. |
| 41 e.preventDefault(); | 47 e.preventDefault(); |
| 42 }, | 48 }, |
| 43 | 49 |
| 44 /** override */ | 50 /** override */ |
| 45 initializeKeyboard: function() {}, | 51 initializeKeyboard: function() {}, |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 assert(waitingDiv.hidden); | 842 assert(waitingDiv.hidden); |
| 837 assert(!selectAppDiv.hidden); | 843 assert(!selectAppDiv.hidden); |
| 838 }); | 844 }); |
| 839 }); | 845 }); |
| 840 }); | 846 }); |
| 841 | 847 |
| 842 return { | 848 return { |
| 843 TestNames: TestNames | 849 TestNames: TestNames |
| 844 }; | 850 }; |
| 845 }); | 851 }); |
| OLD | NEW |