From d2509f6e7d9c1f66504f97c455e0b217161c5f89 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 26 Oct 2020 13:36:24 +0100 Subject: [PATCH] fix tests --- apps/remix-ide-e2e/src/tests/generalSettings.test.ts | 6 +++--- apps/remix-ide/src/app/ui/renderer.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/generalSettings.test.ts b/apps/remix-ide-e2e/src/tests/generalSettings.test.ts index a3ddde4d1d..cff0a64686 100644 --- a/apps/remix-ide-e2e/src/tests/generalSettings.test.ts +++ b/apps/remix-ide-e2e/src/tests/generalSettings.test.ts @@ -178,8 +178,8 @@ const remixIdeThemes = { primary: '#2A9FD6', secondary: '#555', success: '#77B300', - info: '#9933CC', - warning: '#FF8800', - danger: '#CC0000' + info: '#93C', + warning: '#F80', + danger: '#C00' } } diff --git a/apps/remix-ide/src/app/ui/renderer.js b/apps/remix-ide/src/app/ui/renderer.js index c9fff7661f..6d33d772a2 100644 --- a/apps/remix-ide/src/app/ui/renderer.js +++ b/apps/remix-ide/src/app/ui/renderer.js @@ -87,8 +87,8 @@ Renderer.prototype.error = function (message, container, opt) { // extract line / column let position = text.match(/^(.*?):([0-9]*?):([0-9]*?)?/) - opt.errLine = position ? position[2] : -1 - opt.errCol = position ? position[3] : -1 + opt.errLine = position ? parseInt(position[2]) - 1 : -1 + opt.errCol = position ? parseInt(position[3]) : -1 // extract file