Skip to content

Commit

Permalink
Added new tests for newline handling in <pre>.
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir E. Aharoni committed Nov 15, 2011
1 parent 513eae2 commit e2ca1a2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
17 changes: 17 additions & 0 deletions html5/pre-newline/pre-break-bidi-ref.html
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML Test reference: BR separates bidi paragraph</title>
<link rel="author" title="Amir E. Aharoni" href="mailto:amir.aharoni@mail.huji.ac.il"/>
<link rel="author" title="Eyal Sela" href="mailto:eyal@post.isoc.org.il"/>
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com"/>
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-pre-element"/>
</head>
<body>
<p>The rightmost character in the first line below must be a full stop and to the left of it must be a Hebrew letter.</p>
<pre>
A Hebrew letter and a full stop: &#x05d0;.&lrm;
&#x05d0; this line begins with a Hebrew letter.
</pre>
</body>
</html>
20 changes: 20 additions & 0 deletions html5/pre-newline/pre-newline-bidi-ref.html
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML Test: BR separates bidi paragraph</title>
<link rel="reference" href="br-bidi-ref.html" />
<link rel="author" title="Amir E. Aharoni" href="mailto:amir.aharoni@mail.huji.ac.il"/>
<link rel="author" title="Eyal Sela" href="mailto:eyal@post.isoc.org.il"/>
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com"/>
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-pre-element"/>
<meta name="assert"
content="A newline in a pre element should separate paragraphs for the purposes of the Unicode bidirectional algorithm.">
</head>
<body>
<p>The rightmost character in the first line below must be a full stop and to the left of it must be a Hebrew letter.</p>
<pre>
A Hebrew letter and a full stop: &#x05d0;.
&#x05d0; this line begins with a Hebrew letter.
</pre>
</body>
</html>

0 comments on commit e2ca1a2

Please sign in to comment.