11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst { mustCall } = require('../common'); 31cb0ef41Sopenharmony_ciconst { notStrictEqual } = require('assert'); 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ci// tty.WriteStream#_refreshSize() only emits the 'resize' event when the 61cb0ef41Sopenharmony_ci// window dimensions change. We cannot influence that from the script 71cb0ef41Sopenharmony_ci// but we can set the old values to something exceedingly unlikely. 81cb0ef41Sopenharmony_ciprocess.stdout.columns = 9001; 91cb0ef41Sopenharmony_ciprocess.stdout.on('resize', mustCall()); 101cb0ef41Sopenharmony_ciprocess.kill(process.pid, 'SIGWINCH'); 111cb0ef41Sopenharmony_cisetImmediate(mustCall(() => notStrictEqual(process.stdout.columns, 9001))); 12