- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / sync_file_system / request_file_system / test.js
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.
4
5 var syncableNameSuffix = ':Syncable';
6
7 chrome.test.runTests([
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));
15         }));
16   }
17 ]);