From e42d87631141c24526f07a29801368bbf7ddb6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Baumg=C3=A4rtner?= Date: Fri, 2 Apr 2021 12:22:46 +0200 Subject: [PATCH] adjust tests --- src/test/suite/fixtures/expected/issues.html | 11 ++++++++++- .../suite/fixtures/expected/scoped/colortext.html | 13 +++++++++++++ .../suite/fixtures/testfiles/nix/issues.confluence | 6 ++++++ .../testfiles/nix/scoped/colortext.confluence | 7 ++++++- .../suite/fixtures/testfiles/win/issues.confluence | 6 ++++++ .../testfiles/win/scoped/colortext.confluence | 7 ++++++- 6 files changed, 47 insertions(+), 3 deletions(-) diff --git a/src/test/suite/fixtures/expected/issues.html b/src/test/suite/fixtures/expected/issues.html index 82897de..efdfb4e 100644 --- a/src/test/suite/fixtures/expected/issues.html +++ b/src/test/suite/fixtures/expected/issues.html @@ -202,4 +202,13 @@

third header

first link second link

-

[first] [second]

\ No newline at end of file +

[first] [second]

+

+ #32: Support to {color:}

+

+ cyan +

+

+ rgb(222,150,212)or + hex#12FFFE +

\ No newline at end of file diff --git a/src/test/suite/fixtures/expected/scoped/colortext.html b/src/test/suite/fixtures/expected/scoped/colortext.html index d5254c0..90a2677 100644 --- a/src/test/suite/fixtures/expected/scoped/colortext.html +++ b/src/test/suite/fixtures/expected/scoped/colortext.html @@ -6,4 +6,17 @@

look ma, green text! +

+

+ red + yellow + green +

+

+ rgb(202,200,100)or + rgb(12,200,112) +

+

+ hex#12FFFEor + hex#51F02E

\ No newline at end of file diff --git a/src/test/suite/fixtures/testfiles/nix/issues.confluence b/src/test/suite/fixtures/testfiles/nix/issues.confluence index a81a1ac..395cc71 100644 --- a/src/test/suite/fixtures/testfiles/nix/issues.confluence +++ b/src/test/suite/fixtures/testfiles/nix/issues.confluence @@ -94,3 +94,9 @@ yet _another_ line [first link|www.example.com] [second link|www.example.com] [first\] [second\] + +[#32|https://github.com/denco/vscode-confluence-markup/issues/32]: Support to {color:} + +{color:cyan}cyan{color} + +{color:rgb(222,150,212)}rgb(222,150,212){color} or {color:#12FFFE}hex#12FFFE{color} diff --git a/src/test/suite/fixtures/testfiles/nix/scoped/colortext.confluence b/src/test/suite/fixtures/testfiles/nix/scoped/colortext.confluence index d425ea1..1ba2439 100644 --- a/src/test/suite/fixtures/testfiles/nix/scoped/colortext.confluence +++ b/src/test/suite/fixtures/testfiles/nix/scoped/colortext.confluence @@ -1,3 +1,8 @@ {color:red}look ma, red text!{color} {color:blue}look ma, blue text!{color} -{color:green}look ma, green text!{color} \ No newline at end of file +{color:green}look ma, green text!{color} + +{color:red}red{color}{color:yellow}yellow{color}{color:green}green{color} + +{color:rgb(202,200,100)}rgb(202,200,100){color} or {color:rgb(200,100,212)}rgb(12,200,112){color} +{color:#12FFFE}hex#12FFFE{color} or {color:#51F02E}hex#51F02E{color} \ No newline at end of file diff --git a/src/test/suite/fixtures/testfiles/win/issues.confluence b/src/test/suite/fixtures/testfiles/win/issues.confluence index a81a1ac..395cc71 100644 --- a/src/test/suite/fixtures/testfiles/win/issues.confluence +++ b/src/test/suite/fixtures/testfiles/win/issues.confluence @@ -94,3 +94,9 @@ yet _another_ line [first link|www.example.com] [second link|www.example.com] [first\] [second\] + +[#32|https://github.com/denco/vscode-confluence-markup/issues/32]: Support to {color:} + +{color:cyan}cyan{color} + +{color:rgb(222,150,212)}rgb(222,150,212){color} or {color:#12FFFE}hex#12FFFE{color} diff --git a/src/test/suite/fixtures/testfiles/win/scoped/colortext.confluence b/src/test/suite/fixtures/testfiles/win/scoped/colortext.confluence index d425ea1..1ba2439 100644 --- a/src/test/suite/fixtures/testfiles/win/scoped/colortext.confluence +++ b/src/test/suite/fixtures/testfiles/win/scoped/colortext.confluence @@ -1,3 +1,8 @@ {color:red}look ma, red text!{color} {color:blue}look ma, blue text!{color} -{color:green}look ma, green text!{color} \ No newline at end of file +{color:green}look ma, green text!{color} + +{color:red}red{color}{color:yellow}yellow{color}{color:green}green{color} + +{color:rgb(202,200,100)}rgb(202,200,100){color} or {color:rgb(200,100,212)}rgb(12,200,112){color} +{color:#12FFFE}hex#12FFFE{color} or {color:#51F02E}hex#51F02E{color} \ No newline at end of file