Skip to content

Commit

Permalink
test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Sep 4, 2024
1 parent c8fbe3d commit 7db8c67
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tests/Issue90Test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

namespace nadar\quill\tests;

class Issue87Test extends DeltaTestCase
{
public $json = <<<'JSON'
{"ops":
[
{"insert":"1"},
{"attributes":{"list":"ordered"},"insert":"\n"},
{"insert":"3"},
{"attributes":{"indent":1,"align":"right","list":"ordered"},"insert":"\n"},
{"insert":"4"},
{"attributes":{"list":"ordered"},"insert":"\n"},
{"insert":"5"},
{"attributes":{"align":"center","list":"ordered"},"insert":"\n"},
{"insert":"6"},
{"attributes":{"list":"ordered"},"insert":"\n"},
{"attributes":{"underline":true},"insert":"Hello"},
{"attributes":{"list":"bullet"},"insert":"\n"},
{"attributes":{"italic":true},"insert":"Please"},
{"attributes":{"align":"center","list":"bullet"},"insert":"\n"},
{"attributes":{"bold":true},"insert":"Work"},
{"attributes":{"align":"right","list":"bullet"},"insert":"\n"}
]
}
JSON;

public $html = <<<'EOT'
<ol><li>1</li><li style="text-align: right;">3</li><li>4</li><li style="text-align: center;">5</li><li>6</li></ol><ul><li><u>Hello</u></li><li style="text-align: center;"><em>Please</em></li><li style="text-align: right;"><strong>Work</strong></li></ul>
EOT;
}

0 comments on commit 7db8c67

Please sign in to comment.