소스 검색

Include tests for bracketed links too.

tags/v0.3.1
Ben Kurtovic 11 년 전
부모
커밋
d6e03800fa
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. +15
    -0
      tests/tokenizer/integration.mwtest

+ 15
- 0
tests/tokenizer/integration.mwtest 파일 보기

@@ -135,3 +135,18 @@ name: comment_inside_link
label: an HTML comment inside an external link
input: "http://example.com/foo<!--comment-->bar"
output: [ExternalLinkOpen(brackets=False), Text(text="http://example.com/foo"), CommentStart(), Text(text="comment"), CommentEnd(), Text(text="bar"), ExternalLinkClose()]

---

name: bracketed_link_inside_template
label: a bracketed external link nested inside a template, before the end
input: "{{URL|[http://example.com}}]"
output: [Text(text="{{URL|"), ExternalLinkOpen(brackets=True), Text(text="http://example.com}}"), ExternalLinkClose()]


---

name: comment_inside_bracketed_link
label: an HTML comment inside a bracketed external link
input: "[http://example.com/foo<!--comment-->bar]"
output: [ExternalLinkOpen(brackets=True), Text(text="http://example.com/foo"), CommentStart(), Text(text="comment"), CommentEnd(), Text(text="bar"), ExternalLinkClose()]

불러오는 중...
취소
저장