From f12b005733a1414f16e1de0232cb7a5d3ccfcdc7 Mon Sep 17 00:00:00 2001 From: "Dmitry.Krasilschikov" Date: Wed, 26 Jun 2019 16:43:33 +0200 Subject: [PATCH] IDEA-CR-44517 RUBY-17964 markdown enter handler: more tests GitOrigin-RevId: ebc21c69d2f91089e1eabb7d089470e0feee1661 --- .../test/data/enter/codeFenceWithSpace.after.md | 4 ++++ .../test/data/enter/codeFenceWithSpace.before.md | 3 +++ .../data/enter/quoteInListMiddleWithSpace.after.md | 3 +++ .../data/enter/quoteInListMiddleWithSpace.before.md | 2 ++ .../test/data/enter/quoteInListWithSpace.after.md | 2 ++ .../test/data/enter/quoteInListWithSpace.before.md | 1 + .../markdown/enter/MarkdownEnterHandlerTest.java | 12 ++++++++++++ 7 files changed, 27 insertions(+) create mode 100644 plugins/markdown/test/data/enter/codeFenceWithSpace.after.md create mode 100644 plugins/markdown/test/data/enter/codeFenceWithSpace.before.md create mode 100644 plugins/markdown/test/data/enter/quoteInListMiddleWithSpace.after.md create mode 100644 plugins/markdown/test/data/enter/quoteInListMiddleWithSpace.before.md create mode 100644 plugins/markdown/test/data/enter/quoteInListWithSpace.after.md create mode 100644 plugins/markdown/test/data/enter/quoteInListWithSpace.before.md diff --git a/plugins/markdown/test/data/enter/codeFenceWithSpace.after.md b/plugins/markdown/test/data/enter/codeFenceWithSpace.after.md new file mode 100644 index 000000000000..04a8e22f57f8 --- /dev/null +++ b/plugins/markdown/test/data/enter/codeFenceWithSpace.after.md @@ -0,0 +1,4 @@ +```html +abc + +``` \ No newline at end of file diff --git a/plugins/markdown/test/data/enter/codeFenceWithSpace.before.md b/plugins/markdown/test/data/enter/codeFenceWithSpace.before.md new file mode 100644 index 000000000000..3fa6bedf6084 --- /dev/null +++ b/plugins/markdown/test/data/enter/codeFenceWithSpace.before.md @@ -0,0 +1,3 @@ +```html +abc +``` \ No newline at end of file diff --git a/plugins/markdown/test/data/enter/quoteInListMiddleWithSpace.after.md b/plugins/markdown/test/data/enter/quoteInListMiddleWithSpace.after.md new file mode 100644 index 000000000000..716b382f469c --- /dev/null +++ b/plugins/markdown/test/data/enter/quoteInListMiddleWithSpace.after.md @@ -0,0 +1,3 @@ +- >qwe + >asd + > \ No newline at end of file diff --git a/plugins/markdown/test/data/enter/quoteInListMiddleWithSpace.before.md b/plugins/markdown/test/data/enter/quoteInListMiddleWithSpace.before.md new file mode 100644 index 000000000000..e9980b4d75c0 --- /dev/null +++ b/plugins/markdown/test/data/enter/quoteInListMiddleWithSpace.before.md @@ -0,0 +1,2 @@ +- >qwe + >asd \ No newline at end of file diff --git a/plugins/markdown/test/data/enter/quoteInListWithSpace.after.md b/plugins/markdown/test/data/enter/quoteInListWithSpace.after.md new file mode 100644 index 000000000000..15a9f8758533 --- /dev/null +++ b/plugins/markdown/test/data/enter/quoteInListWithSpace.after.md @@ -0,0 +1,2 @@ +- > + > \ No newline at end of file diff --git a/plugins/markdown/test/data/enter/quoteInListWithSpace.before.md b/plugins/markdown/test/data/enter/quoteInListWithSpace.before.md new file mode 100644 index 000000000000..9b0516bf6b55 --- /dev/null +++ b/plugins/markdown/test/data/enter/quoteInListWithSpace.before.md @@ -0,0 +1 @@ +- > \ No newline at end of file diff --git a/plugins/markdown/test/src/org/intellij/plugins/markdown/enter/MarkdownEnterHandlerTest.java b/plugins/markdown/test/src/org/intellij/plugins/markdown/enter/MarkdownEnterHandlerTest.java index 8b26e70231e9..1d3e2ba7b7f3 100644 --- a/plugins/markdown/test/src/org/intellij/plugins/markdown/enter/MarkdownEnterHandlerTest.java +++ b/plugins/markdown/test/src/org/intellij/plugins/markdown/enter/MarkdownEnterHandlerTest.java @@ -38,6 +38,18 @@ public class MarkdownEnterHandlerTest extends BasePlatformTestCase { doTest(); } + public void testQuoteInListWithSpace() { + doTest(); + } + + public void testCodeFenceWithSpace() { + doTest(); + } + + public void testQuoteInListMiddleWithSpace() { + doTest(); + } + private void doTest() { String testName = getTestName(true); myFixture.configureByFile(testName + ".before.md");