michael@0: /* michael@0: * Copyright 2012, Mozilla Foundation and contributors michael@0: * michael@0: * Licensed under the Apache License, Version 2.0 (the "License"); michael@0: * you may not use this file except in compliance with the License. michael@0: * You may obtain a copy of the License at michael@0: * michael@0: * http://www.apache.org/licenses/LICENSE-2.0 michael@0: * michael@0: * Unless required by applicable law or agreed to in writing, software michael@0: * distributed under the License is distributed on an "AS IS" BASIS, michael@0: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. michael@0: * See the License for the specific language governing permissions and michael@0: * limitations under the License. michael@0: */ michael@0: michael@0: 'use strict'; michael@0: // michael@0: michael@0: // THIS FILE IS GENERATED FROM SOURCE IN THE GCLI PROJECT michael@0: // DO NOT EDIT IT DIRECTLY michael@0: michael@0: var exports = {}; michael@0: michael@0: var TEST_URI = "data:text/html;charset=utf-8,

gcli-testCompletion1.js

"; michael@0: michael@0: function test() { michael@0: return Task.spawn(function() { michael@0: let options = yield helpers.openTab(TEST_URI); michael@0: yield helpers.openToolbar(options); michael@0: gcli.addItems(mockCommands.items); michael@0: michael@0: yield helpers.runTests(options, exports); michael@0: michael@0: gcli.removeItems(mockCommands.items); michael@0: yield helpers.closeToolbar(options); michael@0: yield helpers.closeTab(options); michael@0: }).then(finish, helpers.handleError); michael@0: } michael@0: michael@0: // michael@0: michael@0: // var helpers = require('./helpers'); michael@0: michael@0: exports.testActivate = function(options) { michael@0: return helpers.audit(options, [ michael@0: { michael@0: setup: '', michael@0: check: { michael@0: hints: '' michael@0: } michael@0: }, michael@0: { michael@0: setup: ' ', michael@0: check: { michael@0: hints: '' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsr', michael@0: check: { michael@0: hints: ' ' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsr ', michael@0: check: { michael@0: hints: '' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsr b', michael@0: check: { michael@0: hints: '' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsb', michael@0: check: { michael@0: hints: ' [toggle]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm', michael@0: check: { michael@0: hints: ' ' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm ', michael@0: check: { michael@0: hints: 'a ' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm a', michael@0: check: { michael@0: hints: ' ' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm a ', michael@0: check: { michael@0: hints: ' ' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm a ', michael@0: check: { michael@0: hints: ' ' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm a d', michael@0: check: { michael@0: hints: ' ' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm a "d d"', michael@0: check: { michael@0: hints: ' ' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm a "d ', michael@0: check: { michael@0: hints: ' ' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm a "d d" ', michael@0: check: { michael@0: hints: '' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm a "d d ', michael@0: check: { michael@0: hints: ' ' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm d r', michael@0: check: { michael@0: hints: ' ' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm a d ', michael@0: check: { michael@0: hints: '' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsm a d 4', michael@0: check: { michael@0: hints: '' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg', michael@0: check: { michael@0: hints: ' [options]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg ', michael@0: check: { michael@0: hints: 'aaa [options]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg a', michael@0: check: { michael@0: hints: 'aa [options]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg b', michael@0: check: { michael@0: hints: 'bb [options]' michael@0: } michael@0: }, michael@0: { michael@0: skipIf: options.isPhantomjs, michael@0: setup: 'tsg d', michael@0: check: { michael@0: hints: ' [options] -> ccc' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg aa', michael@0: check: { michael@0: hints: 'a [options]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg aaa', michael@0: check: { michael@0: hints: ' [options]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg aaa ', michael@0: check: { michael@0: hints: '[options]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg aaa d', michael@0: check: { michael@0: hints: ' [options]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg aaa dddddd', michael@0: check: { michael@0: hints: ' [options]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg aaa dddddd ', michael@0: check: { michael@0: hints: '[options]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg aaa "d', michael@0: check: { michael@0: hints: ' [options]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg aaa "d d', michael@0: check: { michael@0: hints: ' [options]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsg aaa "d d"', michael@0: check: { michael@0: hints: ' [options]' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsn ex ', michael@0: check: { michael@0: hints: '' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'selarr', michael@0: check: { michael@0: hints: ' -> tselarr' michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tselar 1', michael@0: check: { michael@0: hints: '' michael@0: } michael@0: }, michael@0: { michael@0: name: 'tselar |1', michael@0: setup: function() { michael@0: return helpers.setInput(options, 'tselar 1', 7); michael@0: }, michael@0: check: { michael@0: hints: '' michael@0: } michael@0: }, michael@0: { michael@0: name: 'tselar| 1', michael@0: setup: function() { michael@0: return helpers.setInput(options, 'tselar 1', 6); michael@0: }, michael@0: check: { michael@0: hints: ' -> tselarr' michael@0: } michael@0: }, michael@0: { michael@0: name: 'tsela|r 1', michael@0: setup: function() { michael@0: return helpers.setInput(options, 'tselar 1', 5); michael@0: }, michael@0: check: { michael@0: hints: ' -> tselarr' michael@0: } michael@0: }, michael@0: ]); michael@0: };