| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 (function() { | 5 (function() { |
| 6 | 6 |
| 7 'use strict'; | 7 'use strict'; |
| 8 | 8 |
| 9 /** @type {(sinon.Spy|function():void)} */ | 9 /** @type {(sinon.Spy|function():void)} */ |
| 10 var onShow = null; | 10 var onShow = null; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 ok(style.backgroundImage == 'none'); | 85 ok(style.backgroundImage == 'none'); |
| 86 remoting.MenuButton.select(element, true); | 86 remoting.MenuButton.select(element, true); |
| 87 style = window.getComputedStyle(element); | 87 style = window.getComputedStyle(element); |
| 88 ok(style.backgroundImage != 'none'); | 88 ok(style.backgroundImage != 'none'); |
| 89 remoting.MenuButton.select(element, false); | 89 remoting.MenuButton.select(element, false); |
| 90 style = window.getComputedStyle(element); | 90 style = window.getComputedStyle(element); |
| 91 ok(style.backgroundImage == 'none'); | 91 ok(style.backgroundImage == 'none'); |
| 92 }); | 92 }); |
| 93 | 93 |
| 94 }()); | 94 }()); |
| OLD | NEW |