From 4f49b16079b27d7ce633619e4cddfdf2bffbc952 Mon Sep 17 00:00:00 2001 From: cashmere Date: Fri, 4 Sep 2026 09:05:24 +0200 Subject: initial commit --- tools/copland/tests/fixtures/org/all.html | 50 +++++++++++++++++++ tools/copland/tests/fixtures/org/all.org | 52 ++++++++++++++++++++ tools/copland/tests/fixtures/org/all.txt | 66 ++++++++++++++++++++++++++ tools/copland/tests/fixtures/org/security.html | 9 ++++ tools/copland/tests/fixtures/org/security.org | 13 +++++ 5 files changed, 190 insertions(+) create mode 100644 tools/copland/tests/fixtures/org/all.html create mode 100644 tools/copland/tests/fixtures/org/all.org create mode 100644 tools/copland/tests/fixtures/org/all.txt create mode 100644 tools/copland/tests/fixtures/org/security.html create mode 100644 tools/copland/tests/fixtures/org/security.org (limited to 'tools/copland/tests/fixtures') diff --git a/tools/copland/tests/fixtures/org/all.html b/tools/copland/tests/fixtures/org/all.html new file mode 100644 index 0000000..33fc537 --- /dev/null +++ b/tools/copland/tests/fixtures/org/all.html @@ -0,0 +1,50 @@ +
+

Über & <Fossil>

+ + +

Intro & safety

+

A paragraph with bold, italic, underline, strike, <code>, and verbatim & text. Words_like_this and paths/like/this stay literal.

+ +
    +
  1. one
  2. +
  3. two
  4. +
+ + + + + + + + +
NameValue
α<tag>
twobold
+
{ pkgs, ... }: <unsafe> & value
+
example <script>alert(1)</script>
+

external relative internal unsafe

+

Duplicate

+

Text.

+

Duplicate

+

More.

+

日本語

+

Unicode heading.

+
+ diff --git a/tools/copland/tests/fixtures/org/all.org b/tools/copland/tests/fixtures/org/all.org new file mode 100644 index 0000000..f5c644a --- /dev/null +++ b/tools/copland/tests/fixtures/org/all.org @@ -0,0 +1,52 @@ +#+TITLE: Über & +#+AUTHOR: Ada +#+DATE: 2026-08-21 +#+OPTIONS: toc:2 num:nil +#+STARTUP: overview + +:PROPERTIES: +:ID: hidden +:END: + +* Intro & safety + +A paragraph with *bold*, /italic/, _underline_, +strike+, ~~, and +=verbatim & text=. Words_like_this and paths/like/this stay literal. + +- first + - nested *item* + 1. nested ordered +- second + +1. one +2. two + +| Name | Value | +|------+-------| +| α | | +| two | *bold* | + +#+begin_src nix +{ pkgs, ... }: & value +#+end_src + +#+begin_example +example +#+end_example + +[[https://example.test/a?x=1&y=2][external]] +[[file:guide.org][relative]] +[[*Intro & safety][internal]] +[[javascript:alert(1)][unsafe]] + +** Duplicate + +Text. + +* Duplicate + +More. + +* 日本語 + +Unicode heading. diff --git a/tools/copland/tests/fixtures/org/all.txt b/tools/copland/tests/fixtures/org/all.txt new file mode 100644 index 0000000..266ab90 --- /dev/null +++ b/tools/copland/tests/fixtures/org/all.txt @@ -0,0 +1,66 @@ +Über & + + + +AuthorAda +Date2026-08-21 + + + +Contents + +Intro & safety +Duplicate +Duplicate +日本語 + + + +Intro & safety + +A paragraph with bold, italic, underline, strike, , and verbatim & text. Words_like_this and paths/like/this stay literal. + +first +nested item + + +nested ordered + + +second + + +one +two + + + + + +NameValue + + + +α +twobold + + + +{ pkgs, ... }: & value + +example + +external relative internal unsafe + +Duplicate + +Text. + +Duplicate + +More. + +日本語 + +Unicode heading. + diff --git a/tools/copland/tests/fixtures/org/security.html b/tools/copland/tests/fixtures/org/security.html new file mode 100644 index 0000000..38707e0 --- /dev/null +++ b/tools/copland/tests/fixtures/org/security.html @@ -0,0 +1,9 @@ +
+

<img src=x onerror=alert(1)>

+

Raw <script>alert(1)</script> and "quotes".

+

attribute file scheme confusion

+
<img src=x onerror=alert(1)>
+
echo "unterminated and escaped <tag>"
+
+
+ diff --git a/tools/copland/tests/fixtures/org/security.org b/tools/copland/tests/fixtures/org/security.org new file mode 100644 index 0000000..3e7280a --- /dev/null +++ b/tools/copland/tests/fixtures/org/security.org @@ -0,0 +1,13 @@ +#+TITLE: + +Raw and "quotes". + +[[https://example.test/" onmouseover="alert(1)][attribute]] +[[file:javascript:alert(1)][file scheme confusion]] + +#+begin_export html + +#+end_export + +#+begin_src sh +echo "unterminated and escaped " -- cgit v1.3.1