diff options
author | Danny <danny.goossen@gioxa.com> | 2018-01-03 20:57:41 +0000 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-01-03 20:57:41 +0000 |
commit | 57a490ec192d91ec2fd9dc9e0511af1709001fe6 (patch) | |
tree | 5e7df9824e7eaf273c3728aad0f3f951aea37eff /spec/lib | |
parent | c6ab17f11395338d4dc13880ae8c60a37b1ba890 (diff) | |
download | gitlab-ce-57a490ec192d91ec2fd9dc9e0511af1709001fe6.tar.gz |
fix issue #37843
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/ci/ansi2html_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/ansi2html_spec.rb b/spec/lib/gitlab/ci/ansi2html_spec.rb index 33540eab5d6..05e2d94cbd6 100644 --- a/spec/lib/gitlab/ci/ansi2html_spec.rb +++ b/spec/lib/gitlab/ci/ansi2html_spec.rb @@ -120,6 +120,10 @@ describe Gitlab::Ci::Ansi2html do expect(convert_html("\e[48;5;240mHello")).to eq('<span class="xterm-bg-240">Hello</span>') end + it "can print 256 xterm fg bold colors" do + expect(convert_html("\e[38;5;16;1mHello")).to eq('<span class="xterm-fg-16 term-bold">Hello</span>') + end + it "can print 256 xterm bg colors on normal magenta foreground" do expect(convert_html("\e[48;5;16;35mHello")).to eq('<span class="term-fg-magenta xterm-bg-16">Hello</span>') end |