Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 suite('<bookmarks-list>', function() { | |
| 6 var list; | |
| 7 var TEST_LIST = | |
| 8 [createItem('0'), createItem('1'), createFolder('2', [], null)]; | |
| 9 | |
| 10 setup(function() { | |
| 11 list = document.createElement('bookmarks-list'); | |
| 12 replaceBody(list); | |
| 13 list.displayedList = TEST_LIST; | |
| 14 }); | |
| 15 | |
| 16 test('folder menu item hide the url field', function() { | |
| 17 // Bookmark editor shows the url field. | |
| 18 list.menuItem_ = TEST_LIST[0]; | |
| 19 assertFalse(list.$['url'].hidden); | |
| 20 | |
| 21 // Folder editor hides the url field. | |
| 22 list.menuItem_ = TEST_LIST[2]; | |
| 23 assertTrue(list.$['url'].hidden); | |
| 24 }); | |
|
calamity
2017/02/02 06:49:13
Also mock out chrome.bookmarks.update and make sur
angelayang
2017/02/03 02:26:24
Done.
| |
| 25 }); | |
| OLD | NEW |