| Index: chrome/test/data/webui/md_bookmarks/router_test.js
|
| diff --git a/chrome/test/data/webui/md_bookmarks/router_test.js b/chrome/test/data/webui/md_bookmarks/router_test.js
|
| index fc8fcbb727ae737ac0c2fb772931648f44affda6..ecba392f5fc2fd96345f68e64da6905eb8100cdd 100644
|
| --- a/chrome/test/data/webui/md_bookmarks/router_test.js
|
| +++ b/chrome/test/data/webui/md_bookmarks/router_test.js
|
| @@ -75,8 +75,6 @@ suite('URL preload', function() {
|
| window.history.replaceState({}, '', url);
|
|
|
| chrome.bookmarks.getTree = function(callback) {
|
| - console.log('getTree');
|
| - console.log(window.location.href);
|
| callback([
|
| createFolder(
|
| '0',
|
| @@ -116,4 +114,13 @@ suite('URL preload', function() {
|
| assertEquals('2', state.selectedFolder);
|
| assertDeepEquals(['21'], bookmarks.util.getDisplayedList(state));
|
| });
|
| +
|
| + test('loading an invalid folder URL selects the Bookmarks Bar', function() {
|
| + setupWithUrl('/?id=42');
|
| + var state = bookmarks.Store.getInstance().data;
|
| + assertEquals('1', state.selectedFolder);
|
| + return Promise.resolve().then(function() {
|
| + assertEquals('chrome://bookmarks/?id=1', window.location.href);
|
| + });
|
| + });
|
| });
|
|
|