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

Side by Side Diff: chrome/test/data/extensions/api_test/preferences_private/test.js

Issue 118413003: Add hook for extension to check sync status. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: NULL check' Created 7 years 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 2013 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 chrome.test.runTests([function() {
6 chrome.preferencesPrivate.getSyncCategoriesWithoutPassphrase(
7 chrome.test.callbackPass(
8 function(categories) {
9 chrome.test.assertTrue(categories.indexOf("Bookmarks") >= 0,
10 "Bookmarks is missing.");
11 chrome.test.assertTrue(categories.indexOf("Preferences") >= 0,
12 "Preferences is missing.");
13 chrome.test.assertTrue(categories.indexOf("Autofill") == -1,
14 "Autofill present even though it's encrypted.");
15 chrome.test.assertTrue(categories.indexOf("Typed URLs") == -1,
16 "Typed URLs present even though it's not synced.");
17 }
18 )
19 );
20 }]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698