test: fix test-repl-tab-complete.js
authorcjihrig <cjihrig@gmail.com>
Wed, 24 Jun 2015 20:11:43 +0000 (16:11 -0400)
committercjihrig <cjihrig@gmail.com>
Thu, 25 Jun 2015 16:18:56 +0000 (12:18 -0400)
commit06721fe00589d9ad61fe8defcd31c5f40df72c9b
treeb02141ccdc26cf04734941a6502cb56eb71cd536
parenta198c68b5680307f20a1602c622b94f497f7b642
test: fix test-repl-tab-complete.js

test-repl-tab-complete.js contains numerous assertions that are
never run. Anything that results in a ReferenceError bails out,
and never calls the functions containing the assertions. This
commit adds checking for successful tab completions, as well as
ReferenceErrors.

PR-URL: https://github.com/nodejs/io.js/pull/2052
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
test/parallel/test-repl-tab-complete.js