From 09043c25caa2c655be075a227fea0c337faae633 Mon Sep 17 00:00:00 2001 From: Joshua Pan Date: Tue, 18 Jul 2017 11:24:18 -0700 Subject: [PATCH] markdown.js: Move markdown.js test to bugdown-data.json. --- frontend_tests/node_tests/markdown.js | 2 -- zerver/fixtures/bugdown-data.json | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend_tests/node_tests/markdown.js b/frontend_tests/node_tests/markdown.js index cfc4f7e5d4..d6fd64f55d 100644 --- a/frontend_tests/node_tests/markdown.js +++ b/frontend_tests/node_tests/markdown.js @@ -240,8 +240,6 @@ var bugdown_data = JSON.parse(fs.readFileSync(path.join(__dirname, '../../zerver expected: '

T
\n@Cordelia Lear

'}, {input: 'This is a realm filter `hello` with text after it', expected: '

This is a realm filter hello with text after it

'}, - {input: '```quote\n# line 1\n# line 2\n```', - expected: '
\n

# line 1
\n# line 2

\n
'}, ]; // We remove one of the unicode emoji we put as input in one of the test diff --git a/zerver/fixtures/bugdown-data.json b/zerver/fixtures/bugdown-data.json index 13b74e6905..96e695f97f 100644 --- a/zerver/fixtures/bugdown-data.json +++ b/zerver/fixtures/bugdown-data.json @@ -54,6 +54,12 @@ "expected_output": "

I heard about this second hand...

\n
\n

He said:

\n
\n

The customer is complaining.

\n

They looked at this code:

\n
def hello(): print 'hello\n
\n\n\n

They would prefer:

\n
\n

def hello()
\n puts 'hello'
\nend

\n
\n

Please advise.

\n
She said:\n~~~ quote\nJust send them this:\n```\necho "hello\n"\n```\n
", "bugdown_matches_marked": false }, + { + "name": "fenced_quote_with_hashtag", + "input": "```quote\n# line 1\n# line 2\n```", + "expected_output": "
\n

# line 1
\n# line 2

\n
", + "bugdown_matches_marked": true + }, { "name": "dangerous_block", "input": "xxxxxx xxxxx xxxxxxxx xxxx. x xxxx xxxxxxxxxx:\n\n```\"xxxx xxxx\\xxxxx\\xxxxxx\"```\n\nxxx xxxx xxxxx:```xx.xxxxxxx(x'^xxxx$', xx.xxxxxxxxx)```\n\nxxxxxxx'x xxxx xxxxxxxxxx ```'xxxx'```, xxxxx xxxxxxxxx xxxxx ^ xxx $ xxxxxx xxxxx xxxxxxxxxxxx xxx xxxx xx x xxxx xx xxxx xx xxx xxxxx xxxxxx?",