michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: // Test that restart command works properly (input wise) michael@0: michael@0: const TEST_URI = "data:text/html;charset=utf-8,gcli-command-restart"; michael@0: michael@0: function test() { michael@0: helpers.addTabWithToolbar(TEST_URI, function(options) { michael@0: return helpers.audit(options, [ michael@0: { michael@0: setup: 'restart', michael@0: check: { michael@0: input: 'restart', michael@0: markup: 'VVVVVVV', michael@0: status: 'VALID', michael@0: args: { michael@0: nocache: { value: false }, michael@0: } michael@0: }, michael@0: }, michael@0: { michael@0: setup: 'restart --nocache', michael@0: check: { michael@0: input: 'restart --nocache', michael@0: markup: 'VVVVVVVVVVVVVVVVV', michael@0: status: 'VALID', michael@0: args: { michael@0: nocache: { value: true }, michael@0: } michael@0: }, michael@0: }, michael@0: ]); michael@0: }).then(finish, helpers.handleError); michael@0: }