1 // Copyright (c) 2012 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.
5 var syncableNameSuffix = ':Syncable';
8 function requestFileSystem() {
9 chrome.syncFileSystem.requestFileSystem(
10 chrome.test.callbackPass(function(fs) {
11 chrome.test.assertEq('DOMFileSystem', fs.constructor.name);
12 chrome.test.assertTrue(fs.name != undefined);
13 chrome.test.assertEq(fs.name.length - syncableNameSuffix.length,
14 fs.name.lastIndexOf(syncableNameSuffix));