Index: chrome/browser/resources/ntp_search/mock/mockData.js |
diff --git a/chrome/browser/resources/ntp_search/mock/mockData.js b/chrome/browser/resources/ntp_search/mock/mockData.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c78ac080561386de9ce394f0a38fefc75517a620 |
--- /dev/null |
+++ b/chrome/browser/resources/ntp_search/mock/mockData.js |
@@ -0,0 +1,194 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// Paste mock data here |
+chrome.mock({ |
+ "getApps": [ |
+ { |
+ "appPageNames": [ |
+ "Apps" |
+ ], |
+ "apps": [ |
+ { |
+ "app_launch_ordinal": "n", |
+ "description": "Web Store", |
+ "direction": "ltr", |
+ "enabled": true, |
+ "homepageUrl": "", |
+ "icon_big": "chrome://extension-icon/ahfgeienlihckogmohjhadlkjgocpleb/128/1", |
+ "icon_big_exists": false, |
+ "icon_small": "chrome://extension-icon/ahfgeienlihckogmohjhadlkjgocpleb/16/1", |
+ "icon_small_exists": false, |
+ "id": "ahfgeienlihckogmohjhadlkjgocpleb", |
+ "is_component": true, |
+ "is_webstore": true, |
+ "launch_container": 2, |
+ "launch_type": 1, |
+ "mayDisable": false, |
+ "name": "Chrome Web Store", |
+ "notifications_disabled": false, |
+ "offlineEnabled": false, |
+ "optionsUrl": "", |
+ "page_index": 0, |
+ "title": "Chrome Web Store", |
+ "url": "https://chrome.google.com/webstore", |
+ "version": "0.1" |
+ } |
+ ], |
+ "showLauncher": false, |
+ "showPromo": false |
+ } |
+ ], |
+ "getRecentlyClosedTabs": [ |
+ [ |
+ { |
+ "sessionId": 2, |
+ "tabs": [ |
+ { |
+ "direction": "ltr", |
+ "timestamp": 0, |
+ "title": "YouTube - Broadcast Yourself.", |
+ "type": "tab", |
+ "url": "http://www.youtube.com/" |
jeremycho_google
2012/08/02 03:00:49
Drop the www (everywhere in getRecentlyClosedTabs)
pedrosimonetti2
2012/08/03 18:14:12
This file is generated by chrome.mock() function,
|
+ }, |
+ { |
+ "direction": "ltr", |
+ "timestamp": 0, |
+ "title": "CNN.com - Breaking News, U.S., World, Weather, Entertainment & Video News", |
+ "type": "tab", |
+ "url": "http://www.cnn.com/" |
+ } |
+ ], |
+ "timestamp": 1343253129.824551, |
+ "type": "window" |
+ }, |
+ { |
+ "direction": "ltr", |
+ "sessionId": 1, |
+ "timestamp": 1343253127.485749, |
+ "title": "Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay", |
+ "type": "tab", |
+ "url": "http://www.ebay.com/" |
+ } |
+ ] |
+ ], |
+ "getMostVisited": [ |
+ [ |
+ { |
+ "direction": "ltr", |
+ "title": "Wikipedia", |
+ "url": "http://www.wikipedia.org/" |
+ }, |
+ { |
+ "direction": "ltr", |
+ "title": "deviantART: where ART meets application!", |
+ "url": "http://www.deviantart.com/" |
+ }, |
+ { |
+ "direction": "ltr", |
+ "title": "WEFUNK Radio - Hip-Hop & The Original Funk", |
+ "url": "http://wefunkradio.com/" |
+ }, |
+ { |
+ "direction": "ltr", |
+ "title": "YouTube - Broadcast Yourself.", |
+ "url": "http://youtube.com/" |
+ }, |
+ { |
+ "direction": "ltr", |
+ "title": "Amazon.com: Online Shopping for Electronics, Apparel, Computers, Books, DVDs & more", |
+ "url": "http://amazon.com/" |
+ }, |
+ { |
+ "direction": "ltr", |
+ "title": "The New York Times - Breaking News, World News & Multimedia", |
+ "url": "http://nytimes.com/" |
+ }, |
+ { |
+ "direction": "ltr", |
+ "title": "Hacker News", |
+ "url": "http://news.ycombinator.com/" |
+ }, |
+ { |
+ "direction": "ltr", |
+ "title": "CNN.com - Breaking News, U.S., World, Weather, Entertainment & Video News", |
+ "url": "http://cnn.com/" |
+ }, |
+ { |
+ "direction": "ltr", |
+ "title": "Electronics, Cars, Fashion, Collectibles, Coupons and More Online Shopping | eBay", |
+ "url": "http://ebay.com/" |
+ }, |
+ { |
+ "direction": "ltr", |
+ "title": "Welcome to Chromium", |
+ "url": "http://www.google.com/chrome/intl/en/welcome.html" |
+ }, |
+ { |
+ "direction": "ltr", |
+ "title": "Chrome Web Store", |
+ "url": "https://chrome.google.com/webstore?hl=en" |
+ } |
+ ], |
+ false |
+ ], |
+ "__loadTimeData__": { |
+ "anim": true, |
+ "appDefaultPageName": "Apps", |
+ "appInstallHintText": "Add more apps", |
+ "appcreateshortcut": "Create Shortcut", |
+ "appdisablenotifications": "Disable Notifications", |
+ "applaunchtypefullscreen": "Open Full Screen", |
+ "applaunchtypepinned": "Open as Pinned Tab", |
+ "applaunchtyperegular": "Open as Regular Tab", |
+ "applaunchtypewindow": "Open as Window", |
+ "appoptions": "Options", |
+ "apps_page_id": 2048, |
+ "appuninstall": "Remove from Chromium", |
+ "attributionintro": "Theme created by", |
+ "bookmarkbarattached": false, |
+ "closedwindowmultiple": "$1 Tabs", |
+ "closedwindowsingle": "1 Tab", |
+ "collapseSessionMenuItemText": "Collapse list", |
+ "expandSessionMenuItemText": "Expand list", |
+ "fontfamily": "DejaVu Sans, Arial, sans-serif", |
+ "fontsize": "75%", |
+ "hasattribution": false, |
+ "isSuggestionsPageEnabled": false, |
+ "isSwipeTrackingFromScrollEventsEnabled": false, |
+ "isUserSignedIn": false, |
+ "learnMore": "Learn more", |
+ "learn_more": "Learn more", |
+ "login_status_advanced": "", |
+ "login_status_dismiss": "", |
+ "login_status_message": "", |
+ "login_status_url": "", |
+ "most_visited_page_id": 1024, |
+ "mostvisited": "Most visited", |
+ "otherSessions": "Other devices", |
+ "otherSessionsEmpty": "Access your open tabs on all of your devices.", |
+ "otherSessionsLearnMoreUrl": "http://support.google.com/chrome/bin/answer.py?answer=185277&hl=en", |
+ "recentlyclosed": "Recently closed", |
+ "removethumbnailtooltip": "Don't show on this page", |
+ "restoreSessionMenuItemText": "Open all", |
+ "restoreThumbnailsShort": "Restore all", |
+ "showApps": true, |
+ "showOtherSessionsMenu": true, |
+ "shown_page_index": 0, |
+ "shown_page_type": 1024, |
+ "suggestions": "Suggested", |
+ "suggestions_page_id": 4096, |
+ "syncLinkText": "Advanced settings", |
+ "syncpromotext": "Sign in to $1", |
+ "textdirection": "ltr", |
+ "themegravity": "", |
+ "thumbnailremovednotification": "Thumbnail removed.", |
+ "title": "New Tab", |
+ "undothumbnailremove": "Undo", |
+ "webStoreLink": "https://chrome.google.com/webstore?hl=en-US", |
+ "webStoreTitle": "Chrome Web Store", |
+ "webStoreTitleShort": "Web Store" |
+ } |
+}); |
+ |
jeremycho_google
2012/08/02 03:00:49
Extra newline.
pedrosimonetti2
2012/08/03 18:14:12
Done.
|