• Home
  • Raw
  • Download

Lines Matching +full:software +full:- +full:properties +full:- +full:common

4 // copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
7 // distribute, sublicense, and/or sell copies of the Software, and to permit
8 // persons to whom the Software is furnished to do so, subject to the
12 // in all copies or substantial portions of the Software.
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20 // USE OR OTHER DEALINGS IN THE SOFTWARE.
24 const common = require('../common'); constant
25 const ArrayStream = require('../common/arraystream');
29 } = require('../common/hijackstdio');
32 const fixtures = require('../common/fixtures');
40 if (!common.isMainThread)
41 common.skip('process.chdir is not available in Workers');
51 return common.mustSucceed((data) => {
75 testMe.complete('console.lo', common.mustCall(function(error, data) {
79 testMe.complete('console?.lo', common.mustCall((error, data) => {
83 testMe.complete('console?.zzz', common.mustCall((error, data) => {
87 testMe.complete('console?.', common.mustCall((error, data) => {
94 testMe.complete('inner.o', common.mustCall(function(error, data) {
200 // Make sure tab completion works on non-Objects
204 testMe.complete('str.len', common.mustCall(function(error, data) {
215 testMe.complete(' ', common.mustSucceed((data) => {
222 // any other properties up the "global" object's prototype chain
223 testMe.complete('toSt', common.mustCall(function(error, data) {
227 // Own properties should shadow properties on the prototype
237 testMe.complete('y.', common.mustCall(function(error, data) {
244 testMe.complete('require(\'', common.mustCall(function(error, data) {
255 testMe.complete('require(\'', common.mustCall((_, [modules]) => {
261 testMe.complete("require\t( 'n", common.mustCall(function(error, data) {
265 // require(...) completions include `node:`-prefixed modules:
272 // It's possible to pick up non-core modules too
283 testMe.complete('require(`@nodejs', common.mustCall((err, data) => {
291 testMe.complete(input, common.mustCall((err, data) => {
302 testMe.complete('require \t("no_ind', common.mustCall((err, data) => {
316 testMe.complete(input, common.mustCall((err, data) => {
327 testMe.complete(input, common.mustCall((err, data) => {
333 ['./', './test-'].forEach((path) => {
335 testMe.complete(input, common.mustCall((err, data) => {
339 assert.ok(data[0].includes('./test-repl-tab-complete'));
344 ['../parallel/', '../parallel/test-'].forEach((path) => {
346 testMe.complete(input, common.mustCall((err, data) => {
350 assert.ok(data[0].includes('../parallel/test-repl-tab-complete'));
356 const path = '../fixtures/repl-folder-extensions/f';
357 testMe.complete(`require('${path}`, common.mustSucceed((data) => {
360 assert.ok(data[0].includes('../fixtures/repl-folder-extensions/foo.js'));
367 // Make sure tab completion works on context properties
373 testMe.complete('cus', common.mustCall(function(error, data) {
377 // Make sure tab completion doesn't crash REPL with half-baked proxy objects.
385 testMe.complete('proxy.', common.mustCall(function(error, data) {
394 testMe.complete('ary.', common.mustCall(function(error, data) {
404 testMe.complete('obj.', common.mustCall(function(error, data) {
410 // Don't try to complete results of non-simple expressions
420 testMe.complete(' obj.', common.mustCall((error, data) => {
429 testMe.complete('var log = console.lo', common.mustCall((error, data) => {
436 testMe.complete('.b', common.mustCall((error, data) => {
441 testMe.complete('obj.', common.mustCall((error, data) => {
450 testMe.complete('obj.', common.mustCall(function(error, data) {
464 if (!common.isWindows) {
466 const fixturePath = `${readFileSync}../fixtures/test-repl-tab-completion`;
467 testMe.complete(fixturePath, common.mustCall((err, data) => {
475 common.mustCall((err, data) => {
483 common.mustCall((err, data) => {
490 common.mustCall((err, data) => {
496 const testPath = fixturePath.slice(0, -1);
497 testMe.complete(testPath, common.mustCall((err, data) => {
499 assert.ok(data[0][0].includes('test-repl-tab-completion'));
538 hijackStderr(common.mustNotCall());
539 testMe.complete('ele.', common.mustCall((err, data) => {
561 testMe.complete('Buffer.prototype.', common.mustCall());
572 if (common.hasIntl) {
575 testNonGlobal.complete('I', common.mustCall((error, data) => {
595 testCustomCompleterSyncMode.complete('', common.mustCall((error, data) => {
603 testCustomCompleterSyncMode.complete('a', common.mustCall((error, data) => {
625 testCustomCompleterAsyncMode.complete('', common.mustCall((error, data) => {
633 testCustomCompleterAsyncMode.complete('a', common.mustCall((error, data) => {
651 editor.completer('Uin', common.mustCall((error, data) => {
658 editor.completer('var log = console.l', common.mustCall((error, data) => {
677 testRepl.complete(query, common.mustCall((error, data) => {