xref: /third_party/node/test/parallel/test-repl-tab-complete-on-editor-mode.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/parallel/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_cirequire('../common');
41cb0ef41Sopenharmony_ciconst ArrayStream = require('../common/arraystream');
51cb0ef41Sopenharmony_ciconst repl = require('repl');
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ciconst stream = new ArrayStream();
81cb0ef41Sopenharmony_ciconst replServer = repl.start({
91cb0ef41Sopenharmony_ci  input: stream,
101cb0ef41Sopenharmony_ci  output: stream,
111cb0ef41Sopenharmony_ci  terminal: true,
121cb0ef41Sopenharmony_ci});
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_ci// Editor mode
151cb0ef41Sopenharmony_cireplServer.write('.editor\n');
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_ci// Regression test for https://github.com/nodejs/node/issues/43528
181cb0ef41Sopenharmony_cireplServer.write('a');
191cb0ef41Sopenharmony_cireplServer.write(null, { name: 'tab' }); // Should not throw
201cb0ef41Sopenharmony_ci
211cb0ef41Sopenharmony_cireplServer.close();
22

Indexes created Thu Nov 07 10:32:03 CST 2024