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-testFile.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: var local = false; michael@0: michael@0: exports.testBasic = function(options) { michael@0: return helpers.audit(options, [ michael@0: { michael@0: // These tests require us to be using node directly or to be in michael@0: // PhantomJS connected to an execute enabled node server or to be in michael@0: // firefox. michael@0: skipRemainingIf: options.isPhantomjs || options.isFirefox, michael@0: setup: 'tsfile open /', michael@0: check: { michael@0: input: 'tsfile open /', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVI', michael@0: cursor: 13, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/\' is not a file', michael@0: args: { michael@0: command: { name: 'tsfile open' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/\' is not a file' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile open /zxcv', michael@0: check: { michael@0: input: 'tsfile open /zxcv', michael@0: // hints: ' -> /etc/', michael@0: markup: 'VVVVVVVVVVVVIIIII', michael@0: cursor: 17, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/zxcv\' doesn\'t exist', michael@0: args: { michael@0: command: { name: 'tsfile open' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /zxcv', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/zxcv\' doesn\'t exist' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: !local, michael@0: setup: 'tsfile open /mach_kernel', michael@0: check: { michael@0: input: 'tsfile open /mach_kernel', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVVVVVVVVVVVV', michael@0: cursor: 24, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile open' }, michael@0: p1: { michael@0: value: '/mach_kernel', michael@0: arg: ' /mach_kernel', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile saveas /', michael@0: check: { michael@0: input: 'tsfile saveas /', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVVI', michael@0: cursor: 15, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/\' already exists', michael@0: args: { michael@0: command: { name: 'tsfile saveas' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/\' already exists' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile saveas /zxcv', michael@0: check: { michael@0: input: 'tsfile saveas /zxcv', michael@0: // hints: ' -> /etc/', michael@0: markup: 'VVVVVVVVVVVVVVVVVVV', michael@0: cursor: 19, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile saveas' }, michael@0: p1: { michael@0: value: '/zxcv', michael@0: arg: ' /zxcv', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: !local, michael@0: setup: 'tsfile saveas /mach_kernel', michael@0: check: { michael@0: input: 'tsfile saveas /mach_kernel', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVVIIIIIIIIIIII', michael@0: cursor: 26, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/mach_kernel\' already exists', michael@0: args: { michael@0: command: { name: 'tsfile saveas' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /mach_kernel', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/mach_kernel\' already exists' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile save /', michael@0: check: { michael@0: input: 'tsfile save /', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVI', michael@0: cursor: 13, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/\' is not a file', michael@0: args: { michael@0: command: { name: 'tsfile save' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/\' is not a file' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile save /zxcv', michael@0: check: { michael@0: input: 'tsfile save /zxcv', michael@0: // hints: ' -> /etc/', michael@0: markup: 'VVVVVVVVVVVVVVVVV', michael@0: cursor: 17, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile save' }, michael@0: p1: { michael@0: value: '/zxcv', michael@0: arg: ' /zxcv', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: !local, michael@0: setup: 'tsfile save /mach_kernel', michael@0: check: { michael@0: input: 'tsfile save /mach_kernel', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVVVVVVVVVVVV', michael@0: cursor: 24, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile save' }, michael@0: p1: { michael@0: value: '/mach_kernel', michael@0: arg: ' /mach_kernel', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile cd /', michael@0: check: { michael@0: input: 'tsfile cd /', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVV', michael@0: cursor: 11, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile cd' }, michael@0: p1: { michael@0: value: '/', michael@0: arg: ' /', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile cd /zxcv', michael@0: check: { michael@0: input: 'tsfile cd /zxcv', michael@0: // hints: ' -> /dev/', michael@0: markup: 'VVVVVVVVVVIIIII', michael@0: cursor: 15, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/zxcv\' doesn\'t exist', michael@0: args: { michael@0: command: { name: 'tsfile cd' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /zxcv', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/zxcv\' doesn\'t exist' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: true || !local, michael@0: setup: 'tsfile cd /etc/passwd', michael@0: check: { michael@0: input: 'tsfile cd /etc/passwd', michael@0: hints: ' -> /etc/pam.d/', michael@0: markup: 'VVVVVVVVVVIIIIIIIIIII', michael@0: cursor: 21, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/etc/passwd\' is not a directory', michael@0: args: { michael@0: command: { name: 'tsfile cd' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /etc/passwd', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/etc/passwd\' is not a directory' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile mkdir /', michael@0: check: { michael@0: input: 'tsfile mkdir /', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVI', michael@0: cursor: 14, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: ''/' already exists', michael@0: args: { michael@0: command: { name: 'tsfile mkdir' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/\' already exists' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile mkdir /zxcv', michael@0: check: { michael@0: input: 'tsfile mkdir /zxcv', michael@0: // hints: ' -> /dev/', michael@0: markup: 'VVVVVVVVVVVVVVVVVV', michael@0: cursor: 18, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile mkdir' }, michael@0: p1: { michael@0: value: '/zxcv', michael@0: arg: ' /zxcv', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: !local, michael@0: setup: 'tsfile mkdir /mach_kernel', michael@0: check: { michael@0: input: 'tsfile mkdir /mach_kernel', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVIIIIIIIIIIII', michael@0: cursor: 25, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/mach_kernel\' already exists', michael@0: args: { michael@0: command: { name: 'tsfile mkdir' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /mach_kernel', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/mach_kernel\' already exists' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile rm /', michael@0: check: { michael@0: input: 'tsfile rm /', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVV', michael@0: cursor: 11, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile rm' }, michael@0: p1: { michael@0: value: '/', michael@0: arg: ' /', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile rm /zxcv', michael@0: check: { michael@0: input: 'tsfile rm /zxcv', michael@0: // hints: ' -> /etc/', michael@0: markup: 'VVVVVVVVVVIIIII', michael@0: cursor: 15, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/zxcv\' doesn\'t exist', michael@0: args: { michael@0: command: { name: 'tsfile rm' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /zxcv', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/zxcv\' doesn\'t exist' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: !local, michael@0: setup: 'tsfile rm /mach_kernel', michael@0: check: { michael@0: input: 'tsfile rm /mach_kernel', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVVVVVVVVVV', michael@0: cursor: 22, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile rm' }, michael@0: p1: { michael@0: value: '/mach_kernel', michael@0: arg: ' /mach_kernel', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: } michael@0: ]); michael@0: }; michael@0: michael@0: exports.testFirefoxBasic = function(options) { michael@0: return helpers.audit(options, [ michael@0: { michael@0: // These tests are just like the ones above tailored for running in michael@0: // Firefox michael@0: skipRemainingIf: true, michael@0: // skipRemainingIf: !options.isFirefox, michael@0: skipIf: true, michael@0: setup: 'tsfile open /', michael@0: check: { michael@0: input: 'tsfile open /', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVI', michael@0: cursor: 13, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/\' is not a file', michael@0: args: { michael@0: command: { name: 'tsfile open' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/\' is not a file' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: true, michael@0: setup: 'tsfile open /zxcv', michael@0: check: { michael@0: input: 'tsfile open /zxcv', michael@0: // hints: ' -> /etc/', michael@0: markup: 'VVVVVVVVVVVVIIIII', michael@0: cursor: 17, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/zxcv\' doesn\'t exist', michael@0: args: { michael@0: command: { name: 'tsfile open' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /zxcv', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/zxcv\' doesn\'t exist' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: !local, michael@0: setup: 'tsfile open /mach_kernel', michael@0: check: { michael@0: input: 'tsfile open /mach_kernel', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVVVVVVVVVVVV', michael@0: cursor: 24, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile open' }, michael@0: p1: { michael@0: value: '/mach_kernel', michael@0: arg: ' /mach_kernel', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: true, michael@0: setup: 'tsfile saveas /', michael@0: check: { michael@0: input: 'tsfile saveas /', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVVI', michael@0: cursor: 15, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/\' already exists', michael@0: args: { michael@0: command: { name: 'tsfile saveas' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/\' already exists' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: true, michael@0: setup: 'tsfile saveas /zxcv', michael@0: check: { michael@0: input: 'tsfile saveas /zxcv', michael@0: // hints: ' -> /etc/', michael@0: markup: 'VVVVVVVVVVVVVVVVVVV', michael@0: cursor: 19, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile saveas' }, michael@0: p1: { michael@0: value: '/zxcv', michael@0: arg: ' /zxcv', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: !local, michael@0: setup: 'tsfile saveas /mach_kernel', michael@0: check: { michael@0: input: 'tsfile saveas /mach_kernel', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVVIIIIIIIIIIII', michael@0: cursor: 26, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/mach_kernel\' already exists', michael@0: args: { michael@0: command: { name: 'tsfile saveas' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /mach_kernel', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/mach_kernel\' already exists' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: true, michael@0: setup: 'tsfile save /', michael@0: check: { michael@0: input: 'tsfile save /', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVI', michael@0: cursor: 13, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/\' is not a file', michael@0: args: { michael@0: command: { name: 'tsfile save' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/\' is not a file' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: true, michael@0: setup: 'tsfile save /zxcv', michael@0: check: { michael@0: input: 'tsfile save /zxcv', michael@0: // hints: ' -> /etc/', michael@0: markup: 'VVVVVVVVVVVVVVVVV', michael@0: cursor: 17, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile save' }, michael@0: p1: { michael@0: value: '/zxcv', michael@0: arg: ' /zxcv', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: !local, michael@0: setup: 'tsfile save /mach_kernel', michael@0: check: { michael@0: input: 'tsfile save /mach_kernel', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVVVVVVVVVVVV', michael@0: cursor: 24, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile save' }, michael@0: p1: { michael@0: value: '/mach_kernel', michael@0: arg: ' /mach_kernel', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile cd /', michael@0: check: { michael@0: input: 'tsfile cd /', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVV', michael@0: cursor: 11, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile cd' }, michael@0: p1: { michael@0: value: '/', michael@0: arg: ' /', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile cd /zxcv', michael@0: check: { michael@0: input: 'tsfile cd /zxcv', michael@0: // hints: ' -> /dev/', michael@0: // markup: 'VVVVVVVVVVIIIII', michael@0: cursor: 15, michael@0: current: 'p1', michael@0: // status: 'ERROR', michael@0: message: '\'/zxcv\' doesn\'t exist', michael@0: args: { michael@0: command: { name: 'tsfile cd' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /zxcv', michael@0: // status: 'INCOMPLETE', michael@0: message: '\'/zxcv\' doesn\'t exist' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: true || !local, michael@0: setup: 'tsfile cd /etc/passwd', michael@0: check: { michael@0: input: 'tsfile cd /etc/passwd', michael@0: hints: ' -> /etc/pam.d/', michael@0: markup: 'VVVVVVVVVVIIIIIIIIIII', michael@0: cursor: 21, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/etc/passwd\' is not a directory', michael@0: args: { michael@0: command: { name: 'tsfile cd' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /etc/passwd', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/etc/passwd\' is not a directory' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile mkdir /', michael@0: check: { michael@0: input: 'tsfile mkdir /', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVI', michael@0: cursor: 14, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: ''/' already exists', michael@0: args: { michael@0: command: { name: 'tsfile mkdir' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/\' already exists' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: setup: 'tsfile mkdir /zxcv', michael@0: check: { michael@0: input: 'tsfile mkdir /zxcv', michael@0: // hints: ' -> /dev/', michael@0: markup: 'VVVVVVVVVVVVVVVVVV', michael@0: cursor: 18, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile mkdir' }, michael@0: p1: { michael@0: value: '/zxcv', michael@0: arg: ' /zxcv', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: !local, michael@0: setup: 'tsfile mkdir /mach_kernel', michael@0: check: { michael@0: input: 'tsfile mkdir /mach_kernel', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVIIIIIIIIIIII', michael@0: cursor: 25, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/mach_kernel\' already exists', michael@0: args: { michael@0: command: { name: 'tsfile mkdir' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /mach_kernel', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/mach_kernel\' already exists' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: true, michael@0: setup: 'tsfile rm /', michael@0: check: { michael@0: input: 'tsfile rm /', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVV', michael@0: cursor: 11, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile rm' }, michael@0: p1: { michael@0: value: '/', michael@0: arg: ' /', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: true, michael@0: setup: 'tsfile rm /zxcv', michael@0: check: { michael@0: input: 'tsfile rm /zxcv', michael@0: // hints: ' -> /etc/', michael@0: markup: 'VVVVVVVVVVIIIII', michael@0: cursor: 15, michael@0: current: 'p1', michael@0: status: 'ERROR', michael@0: message: '\'/zxcv\' doesn\'t exist', michael@0: args: { michael@0: command: { name: 'tsfile rm' }, michael@0: p1: { michael@0: value: undefined, michael@0: arg: ' /zxcv', michael@0: status: 'INCOMPLETE', michael@0: message: '\'/zxcv\' doesn\'t exist' michael@0: } michael@0: } michael@0: } michael@0: }, michael@0: { michael@0: skipIf: !local, michael@0: setup: 'tsfile rm /mach_kernel', michael@0: check: { michael@0: input: 'tsfile rm /mach_kernel', michael@0: hints: '', michael@0: markup: 'VVVVVVVVVVVVVVVVVVVVVV', michael@0: cursor: 22, michael@0: current: 'p1', michael@0: status: 'VALID', michael@0: message: '', michael@0: args: { michael@0: command: { name: 'tsfile rm' }, michael@0: p1: { michael@0: value: '/mach_kernel', michael@0: arg: ' /mach_kernel', michael@0: status: 'VALID', michael@0: message: '' michael@0: } michael@0: } michael@0: } michael@0: } michael@0: ]); michael@0: };