// Copyright (c) 2014 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.

chrome.system.storage.onAttached.addListener(function(info) {
  logger('onAttached fired. info = ' + JSON.stringify(info, null, 4));
});

chrome.system.storage.onDetached.addListener(function(id) {
  logger('onDetached fired. id = ' + id);
});

registerManualTests('chrome.system.storage', function(rootEl, addButton) {

  addButton('Get Storage Info', function() {
    chrome.system.storage.getInfo(function(storageInfo) {
      logger(JSON.stringify(storageInfo, null, 4));
    });
  });
});

@@ -412,52 +412,35 @@
 );%0A%0A
-registerManualTests('chrome.system.storage',
+exports.defineManualTests =
  fun
@@ -633,15 +633,14 @@
  %7D);%0A  %7D);%0A%7D
-)
 ;%0A

Convert manual tests to use Cordova plugin test framework