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

Unified Diff: chrome/test/data/webui/md_bookmarks/store_test.js

Issue 2613943003: [MD Bookmarks] Test Util (Closed)
Patch Set: style fix Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/md_bookmarks/store_test.js
diff --git a/chrome/test/data/webui/md_bookmarks/store_test.js b/chrome/test/data/webui/md_bookmarks/store_test.js
index 8b9099f329e4430e50e9f279220833e61c9004d6..1322a78742cce7421967961832567c6dbb7114af 100644
--- a/chrome/test/data/webui/md_bookmarks/store_test.js
+++ b/chrome/test/data/webui/md_bookmarks/store_test.js
@@ -7,20 +7,16 @@ suite('<bookmarks-store>', function() {
var TEST_TREE;
setup(function() {
- TEST_TREE = {
- id: '0',
- children: [
- {
- id: '1',
- children: [
- {id: '2', url: 'link2'},
- {id: '3', children: []}
- ]
- },
- {id: '4', url: 'link4'},
- {id: '5', url: 'link5'}
- ]
- };
+ TEST_TREE = createFolder('0', [
+ createFolder(
+ '1',
+ [
+ createItem('2', {url: 'link2'}),
+ createFolder('3', []),
+ ]),
+ createItem('4', {url: 'link4'}),
+ createItem('5', {url: 'link5'}),
+ ]);
store = document.createElement('bookmarks-store');
replaceBody(store);

Powered by Google App Engine
This is Rietveld 408576698