Skip to content

Commit

Permalink
fix tests #686
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Sep 8, 2021
1 parent 9c9e5ec commit 296ae0f
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 15 deletions.
6 changes: 6 additions & 0 deletions __tests__/__snapshots__/terminal.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Object {
"rows": 25,
"terminal": Object {
"height": 0,
"padding": Object {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0,
},
"width": 0,
},
}
Expand Down
9 changes: 5 additions & 4 deletions js/jquery.terminal-2.29.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Wed, 08 Sep 2021 17:02:45 +0000
* Date: Wed, 08 Sep 2021 18:31:52 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -5033,7 +5033,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Wed, 08 Sep 2021 17:02:45 +0000',
date: 'Wed, 08 Sep 2021 18:31:52 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -9375,7 +9375,7 @@
geometry: function() {
var style = window.getComputedStyle(self[0]);
function padding(name) {
return parseInt(style.getPropertyValue('padding-' + name), 10);
return parseInt(style.getPropertyValue('padding-' + name), 10) || 0;
}
var left = padding('left');
var right = padding('right');
Expand Down Expand Up @@ -9845,7 +9845,8 @@
cmd_prompt.css('margin-left', 0);
cmd_outer.css('top', 0);
command_line.__set_prompt_margin(0);
last_row = self.find('.terminal-output div:last-child div:last-child');
last_row = self.find('.terminal-output div:last-child ' +
'div:last-child');
last_row.css({
width: '100%',
display: ''
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.29.1.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -9375,7 +9375,7 @@
geometry: function() {
var style = window.getComputedStyle(self[0]);
function padding(name) {
return parseInt(style.getPropertyValue('padding-' + name), 10);
return parseInt(style.getPropertyValue('padding-' + name), 10) || 0;
}
var left = padding('left');
var right = padding('right');
Expand Down Expand Up @@ -9845,7 +9845,8 @@
cmd_prompt.css('margin-left', 0);
cmd_outer.css('top', 0);
command_line.__set_prompt_margin(0);
last_row = self.find('.terminal-output div:last-child div:last-child');
last_row = self.find('.terminal-output div:last-child ' +
'div:last-child');
last_row.css({
width: '100%',
display: ''
Expand Down
9 changes: 5 additions & 4 deletions js/jquery.terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Wed, 08 Sep 2021 17:02:45 +0000
* Date: Wed, 08 Sep 2021 18:31:52 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -5033,7 +5033,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Wed, 08 Sep 2021 17:02:45 +0000',
date: 'Wed, 08 Sep 2021 18:31:52 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -9375,7 +9375,7 @@
geometry: function() {
var style = window.getComputedStyle(self[0]);
function padding(name) {
return parseInt(style.getPropertyValue('padding-' + name), 10);
return parseInt(style.getPropertyValue('padding-' + name), 10) || 0;
}
var left = padding('left');
var right = padding('right');
Expand Down Expand Up @@ -9845,7 +9845,8 @@
cmd_prompt.css('margin-left', 0);
cmd_outer.css('top', 0);
command_line.__set_prompt_margin(0);
last_row = self.find('.terminal-output div:last-child div:last-child');
last_row = self.find('.terminal-output div:last-child ' +
'div:last-child');
last_row.css({
width: '100%',
display: ''
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.min.js.map

Large diffs are not rendered by default.

0 comments on commit 296ae0f

Please sign in to comment.