Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: chrome/test/data/webui/md_bookmarks/list_test.js

Issue 2666033002: [MD Bookmarks] Add edit folder. (Closed)
Patch Set: Remove extra property and add test. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698