| OLD | NEW |
| 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 /** | 5 /** |
| 6 * TestFixture for EditDictionaryOverlay WebUI testing. | 6 * TestFixture for EditDictionaryOverlay WebUI testing. |
| 7 * @extends {testing.Test} | 7 * @extends {testing.Test} |
| 8 * @constructor | 8 * @constructor |
| 9 **/ | 9 */ |
| 10 function EditDictionaryWebUITest() {} | 10 function EditDictionaryWebUITest() {} |
| 11 | 11 |
| 12 EditDictionaryWebUITest.prototype = { | 12 EditDictionaryWebUITest.prototype = { |
| 13 __proto__: testing.Test.prototype, | 13 __proto__: testing.Test.prototype, |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * Browse to the edit dictionary page & call our preLoad(). | 16 * Browse to the edit dictionary page & call our preLoad(). |
| 17 */ | 17 */ |
| 18 browsePreload: 'chrome://settings-frame/editDictionary', | 18 browsePreload: 'chrome://settings-frame/editDictionary', |
| 19 | 19 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Backend notifies UI that the word 'baz' has been removed. UI ignores this | 127 // Backend notifies UI that the word 'baz' has been removed. UI ignores this |
| 128 // notification. | 128 // notification. |
| 129 EditDictionaryOverlay.updateWords([], ['baz']); | 129 EditDictionaryOverlay.updateWords([], ['baz']); |
| 130 expectEquals(4, EditDictionaryOverlay.getWordListForTesting().items.length); | 130 expectEquals(4, EditDictionaryOverlay.getWordListForTesting().items.length); |
| 131 | 131 |
| 132 // Backend notifies UI that words 'foo' and 'bar' have been removed. UI | 132 // Backend notifies UI that words 'foo' and 'bar' have been removed. UI |
| 133 // removes these words. | 133 // removes these words. |
| 134 EditDictionaryOverlay.updateWords([], ['foo', 'bar']); | 134 EditDictionaryOverlay.updateWords([], ['foo', 'bar']); |
| 135 expectEquals(2, EditDictionaryOverlay.getWordListForTesting().items.length); | 135 expectEquals(2, EditDictionaryOverlay.getWordListForTesting().items.length); |
| 136 }); | 136 }); |
| OLD | NEW |