2012-09-19 11:22:32 -07:00
|
|
|
/*
|
|
|
|
* Copyright 2009-2011 Mozilla Foundation and contributors
|
|
|
|
* Licensed under the New BSD license. See LICENSE.txt or:
|
|
|
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
// define(function(require, exports, module) {
|
|
|
|
|
|
|
|
// <INJECTED SOURCE:START>
|
|
|
|
|
|
|
|
// THIS FILE IS GENERATED FROM SOURCE IN THE GCLI PROJECT
|
|
|
|
// DO NOT EDIT IT DIRECTLY
|
|
|
|
|
|
|
|
var exports = {};
|
|
|
|
|
|
|
|
const TEST_URI = "data:text/html;charset=utf-8,<p id='gcli-input'>gcli-testMenu.js</p>";
|
|
|
|
|
|
|
|
function test() {
|
2013-03-12 21:51:30 -07:00
|
|
|
helpers.addTabWithToolbar(TEST_URI, function(options) {
|
|
|
|
return helpers.runTests(options, exports);
|
|
|
|
}).then(finish);
|
2012-09-19 11:22:32 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// <INJECTED SOURCE:END>
|
|
|
|
|
2013-03-12 21:51:30 -07:00
|
|
|
'use strict';
|
2012-09-19 11:22:32 -07:00
|
|
|
|
|
|
|
// var helpers = require('gclitest/helpers');
|
|
|
|
// var mockCommands = require('gclitest/mockCommands');
|
|
|
|
|
|
|
|
exports.setup = function(options) {
|
|
|
|
mockCommands.setup();
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.shutdown = function(options) {
|
|
|
|
mockCommands.shutdown();
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.testOptions = function(options) {
|
2013-03-12 21:51:30 -07:00
|
|
|
return helpers.audit(options, [
|
|
|
|
{
|
|
|
|
setup: 'tslong',
|
|
|
|
check: {
|
|
|
|
input: 'tslong',
|
|
|
|
markup: 'VVVVVV',
|
|
|
|
status: 'ERROR',
|
|
|
|
hints: ' <msg> [options]',
|
|
|
|
args: {
|
|
|
|
msg: { value: undefined, status: 'INCOMPLETE' },
|
|
|
|
num: { value: undefined, status: 'VALID' },
|
|
|
|
sel: { value: undefined, status: 'VALID' },
|
|
|
|
bool: { value: false, status: 'VALID' },
|
|
|
|
bool2: { value: false, status: 'VALID' },
|
|
|
|
sel2: { value: undefined, status: 'VALID' },
|
|
|
|
num2: { value: undefined, status: 'VALID' }
|
|
|
|
}
|
|
|
|
}
|
2012-09-19 11:22:32 -07:00
|
|
|
}
|
2013-03-12 21:51:30 -07:00
|
|
|
]);
|
2012-09-19 11:22:32 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// });
|
|
|
|
|