Permalink
Browse files

Merge branch 'multinode-770213'

  • Loading branch information...
2 parents 2a3d04c + 3eb80ca commit 8d8a02dc7c77e35ecbb7da4a22b6b5fd84b302ec @joewalker joewalker committed Aug 26, 2012
Showing with 6 additions and 26 deletions.
  1. +6 −26 lib/gclitest/testNode.js
@@ -94,26 +94,7 @@ exports.testNode = function(options) {
});
test.is(requisition.getAssignment('node').value.tagName,
'HTML',
- '#gcli-input id');
-
- helpers.setInput('tse #gcli-input');
- helpers.check({
- input: 'tse #gcli-input',
- hints: ' [options]',
- markup: 'VVVVVVVVVVVVVVV',
- cursor: 15,
- current: 'node',
- status: 'VALID',
- args: {
- command: { name: 'tse' },
- node: { arg: ' #gcli-input', status: 'VALID', message: '' },
- nodes: { status: 'VALID' },
- nodes2: { status: 'VALID' }
- }
- });
- test.is(requisition.getAssignment('node').value.id,
- 'gcli-input',
- '#gcli-input id');
+ 'root id');
helpers.setInput('tse #gcli-nomatch');
helpers.check({
@@ -203,18 +184,17 @@ exports.testNode = function(options) {
exports.testNodes = function(options) {
var requisition = options.display.requisition;
- helpers.setInput('tse :root --nodes div');
+ helpers.setInput('tse :root --nodes *');
helpers.check({
- input: 'tse :root --nodes div',
+ input: 'tse :root --nodes *',
hints: ' [options]',
- markup: 'VVVVVVVVVVVVVVVVVVVVV',
- cursor: 21,
+ markup: 'VVVVVVVVVVVVVVVVVVV',
current: 'nodes',
status: 'VALID',
args: {
command: { name: 'tse' },
node: { arg: ' :root', status: 'VALID' },
- nodes: { arg: ' --nodes div', status: 'VALID' },
+ nodes: { arg: ' --nodes *', status: 'VALID' },
nodes2: { status: 'VALID' }
}
});
@@ -239,7 +219,7 @@ exports.testNodes = function(options) {
});
test.is(requisition.getAssignment('node').value.tagName,
'HTML',
- '#gcli-input id');
+ 'root id');
helpers.setInput('tse --nodes ffff');
helpers.check({

0 comments on commit 8d8a02d

Please sign in to comment.