1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/commandline/test/browser_cmd_restart.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +/* Any copyright is dedicated to the Public Domain. 1.5 + * http://creativecommons.org/publicdomain/zero/1.0/ */ 1.6 + 1.7 +// Test that restart command works properly (input wise) 1.8 + 1.9 +const TEST_URI = "data:text/html;charset=utf-8,gcli-command-restart"; 1.10 + 1.11 +function test() { 1.12 + helpers.addTabWithToolbar(TEST_URI, function(options) { 1.13 + return helpers.audit(options, [ 1.14 + { 1.15 + setup: 'restart', 1.16 + check: { 1.17 + input: 'restart', 1.18 + markup: 'VVVVVVV', 1.19 + status: 'VALID', 1.20 + args: { 1.21 + nocache: { value: false }, 1.22 + } 1.23 + }, 1.24 + }, 1.25 + { 1.26 + setup: 'restart --nocache', 1.27 + check: { 1.28 + input: 'restart --nocache', 1.29 + markup: 'VVVVVVVVVVVVVVVVV', 1.30 + status: 'VALID', 1.31 + args: { 1.32 + nocache: { value: true }, 1.33 + } 1.34 + }, 1.35 + }, 1.36 + ]); 1.37 + }).then(finish, helpers.handleError); 1.38 +}