mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>pre element</title>
|
||||
<link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-pre-element">
|
||||
<link rel="match" href="grouping-pre-reftest-001.html" />
|
||||
<meta name="assert" content="Newlines within pre elements separate paragraphs for the purposes of BIDI." />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Description</h1>
|
||||
<p>This test continues to validate the pre element.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote>"A newline in a pre element should separate paragraphs for the purposes of the Unicode bidirectional algorithm. This requirement may be implemented indirectly through the style layer. For example, an HTML+CSS user agent could implement these requirements by implementing the CSS 'unicode-bidi' property."</blockquote>
|
||||
|
||||
<p>This reftest passes if below you see "ABC ABC" repeated on two separate lines below (4 ABCs total):</p>
|
||||
|
||||
<pre>ABC ABC
|
||||
ABC ABC</pre>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>pre element</title>
|
||||
<link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-pre-element">
|
||||
<link rel="match" href="grouping-pre-reftest-001-ref.html" />
|
||||
<meta name="assert" content="Newlines within pre elements separate paragraphs for the purposes of BIDI." />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Description</h1>
|
||||
<p>This test continues to validate the pre element.</p>
|
||||
|
||||
<p>The spec states:</p>
|
||||
<blockquote>"A newline in a pre element should separate paragraphs for the purposes of the Unicode bidirectional algorithm. This requirement may be implemented indirectly through the style layer. For example, an HTML+CSS user agent could implement these requirements by implementing the CSS 'unicode-bidi' property."</blockquote>
|
||||
|
||||
<p>This reftest passes if below you see "ABC ABC" repeated on two separate lines below (4 ABCs total):</p>
|
||||
|
||||
<pre>‮ CBA CBA
|
||||
ABC ABC</pre>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>the pre element</title>
|
||||
<link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-pre-element">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Description</h1>
|
||||
<p>This test validates the pre element.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
// check that prototype matches spec's DOM interface
|
||||
test(function () {
|
||||
var testElement = document.createElement("pre");
|
||||
assert_equals(Object.getPrototypeOf(testElement), HTMLPreElement.prototype, "HTMLPreElement.prototype should be used for pre");
|
||||
}, "The prototype for pre is HTMLPreElement.prototype");
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>HTML Test reference: newline in <pre> separates bidi paragraphs</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="https://html.spec.whatwg.org/multipage/#the-pre-element"/>
|
||||
</head>
|
||||
<body>
|
||||
<div class="instructions"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
|
||||
<div class="test">
|
||||
<pre>
|
||||
A Hebrew letter and a full stop: א.‎
|
||||
א this line begins with a Hebrew letter.
|
||||
</pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>HTML Test: newline in pre separates bidi paragraphs</title>
|
||||
<link rel="match" href="pre-newline-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="https://html.spec.whatwg.org/multipage/#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>
|
||||
<div class="instructions"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
|
||||
<div class="test">
|
||||
<pre>
|
||||
A Hebrew letter and a full stop: א.
|
||||
א this line begins with a Hebrew letter.
|
||||
</pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue