Commit 8102fd82 authored by kojii@chromium.org's avatar kojii@chromium.org

update-w3c-deps import using blink 3b531d5bb326db09a7298b222030cf274590473d:

imported csswg-test@3eb5acaed2443f2e221bf6573110fdc943c762af
imported web-platform-tests@a54a7f60d6b47c1144f0262d2f189c332770451c

* Filed github issues for 3 Writing Modes tests and marked to skip.
* All other Writing Modes skips were resolved in upstream.
* A new test rtcpeerconnection-idl.html failed, -expected.txt added.

BUG=492664

Review URL: https://codereview.chromium.org/1213063003

git-svn-id: svn://svn.chromium.org/blink/trunk@197952 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 22c09fd9
......@@ -316,12 +316,9 @@ crbug.com/492664 imported/csswg-test/css-writing-modes-3/table-column-order-003.
crbug.com/492664 imported/csswg-test/css-writing-modes-3/table-column-order-004.xht [ ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/table-column-order-005.xht [ ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/text-orientation-script-001e.html [ Failure ]
crbug.com/496848 [ Mac ] imported/csswg-test/css-writing-modes-3/text-orientation-script-001k.html [ Crash ]
crbug.com/496848 [ Mac ] imported/csswg-test/css-writing-modes-3/text-orientation-script-001m.html [ Crash ]
crbug.com/496848 [ Mac ] imported/csswg-test/css-writing-modes-3/text-orientation-script-001k.html [ Crash Pass ]
crbug.com/496848 [ Mac ] imported/csswg-test/css-writing-modes-3/text-orientation-script-001m.html [ Crash Pass ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/writing-mode-stretch-001.html [ ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/text-decoration-001.htm [ ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/text-emphasis-001.htm [ ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/value-all-and-inherit-001.htm [ ImageOnlyFailure ]
# These tests pass but images do not match because of position: absolute in vertical flow bug
crbug.com/492664 imported/csswg-test/css-writing-modes-3/block-flow-direction-009.xht [ ImageOnlyFailure ]
......@@ -340,22 +337,17 @@ crbug.com/492664 imported/csswg-test/css-writing-modes-3/bidi-embed-002.html [ P
crbug.com/492664 imported/csswg-test/css-writing-modes-3/bidi-isolate-002.html [ Pass ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/bidi-override-005.html [ Pass ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/bidi-plaintext-001.html [ Pass ImageOnlyFailure ]
crbug.com/492664 [ Linux Win ] imported/csswg-test/css-writing-modes-3/box-offsets-rel-pos-vlr-005.xht [ ImageOnlyFailure Pass ]
crbug.com/492664 [ Linux Win ] imported/csswg-test/css-writing-modes-3/box-offsets-rel-pos-vrl-004.xht [ ImageOnlyFailure Pass ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/value-all-002.html [ ImageOnlyFailure Pass ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/value-all-003.html [ ImageOnlyFailure Pass ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/value-none-001.html [ ImageOnlyFailure Pass ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/writing-mode-vertical-lr-002.xht [ Pass ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/writing-mode-vertical-rl-001.xht [ Pass ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/writing-mode-vertical-rl-002.xht [ Pass ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/writing-mode-vertical-rl-003.htm [ Pass ImageOnlyFailure ]
crbug.com/487281 [ Mac ] fast/forms/select/popup-menu-appearance-long.html [ ImageOnlyFailure ]
crbug.com/487281 [ Mac ] fast/forms/select/popup-menu-appearance-tall.html [ ImageOnlyFailure ]
crbug.com/487281 [ Mac ] fast/forms/select/popup-menu-appearance-transform.html [ ImageOnlyFailure ]
crbug.com/498845 [ Win ] fast/multicol/vertical-rl/float-content-break.html [ ImageOnlyFailure ]
# These CSS Writing Modes Level 3 tests pass but causes 1px diff on images, notified to the submitter.
crbug.com/492664 imported/csswg-test/css-writing-modes-3/box-offsets-rel-pos-vlr-005.xht [ ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/box-offsets-rel-pos-vrl-004.xht [ ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/value-all-002.html [ ImageOnlyFailure ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/value-all-003.html [ ImageOnlyFailure ]
crbug.com/492664 [ Mac ] imported/csswg-test/css-writing-modes-3/block-flow-direction-001.xht [ ImageOnlyFailure ]
crbug.com/492664 [ Mac ] imported/csswg-test/css-writing-modes-3/block-flow-direction-002.xht [ ImageOnlyFailure ]
crbug.com/492664 [ Mac ] imported/csswg-test/css-writing-modes-3/block-flow-direction-003.xht [ ImageOnlyFailure ]
......@@ -405,6 +397,12 @@ crbug.com/492664 [ Mac ] imported/csswg-test/css-writing-modes-3/text-baseline-0
crbug.com/492664 [ Mac ] imported/csswg-test/css-writing-modes-3/text-baseline-008.xht [ ImageOnlyFailure ]
crbug.com/492664 [ Mac ] imported/csswg-test/css-writing-modes-3/text-baseline-009.xht [ ImageOnlyFailure ]
crbug.com/487281 [ Mac ] fast/forms/select/popup-menu-appearance-long.html [ ImageOnlyFailure ]
crbug.com/487281 [ Mac ] fast/forms/select/popup-menu-appearance-tall.html [ ImageOnlyFailure ]
crbug.com/487281 [ Mac ] fast/forms/select/popup-menu-appearance-transform.html [ ImageOnlyFailure ]
crbug.com/498845 [ Win ] fast/multicol/vertical-rl/float-content-break.html [ ImageOnlyFailure ]
crbug.com/133097 crbug.com/399430 [ Mac ] fast/transforms/transformed-focused-text-input.html [ Pass ImageOnlyFailure ]
crbug.com/443615 [ Linux Win ] imported/csswg-test/css-shapes-1/shape-outside/supported-shapes/circle/shape-outside-circle-027.html [ ImageOnlyFailure ]
......@@ -1716,10 +1714,6 @@ crbug.com/503852 imported/web-platform-tests/html/semantics/embedded-content/med
crbug.com/503852 imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrackList/onremovetrack.html [ Skip ]
crbug.com/503856 imported/web-platform-tests/html/semantics/embedded-content/the-img-element/current-pixel-density/error.html [ Failure Pass ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/value-digits2-003.html [ ImageOnlyFailure Pass ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/value-digits3-003.html [ ImageOnlyFailure Pass ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/value-digits4-003.html [ ImageOnlyFailure Pass ]
crbug.com/492664 imported/csswg-test/css-writing-modes-3/value-none-001.html [ ImageOnlyFailure Pass ]
crbug.com/503874 http/tests/inspector/sources/debugger/worker-debugging-script-mapping.html [ Pass Failure ]
crbug.com/503875 inspector/sources/debugger-step/debugger-step-into-document-write.html [ Pass Failure ]
......
......@@ -384,20 +384,12 @@ imported/web-platform-tests/html/semantics/scripting-1/the-script-element/async_
# https://github.com/w3c/web-platform-tests/issues/1875 The test has a syntax error.
imported/web-platform-tests/html/semantics/forms/the-input-element/email.html [ Skip ]
# CSS Writing Modes Level 3: Following tests have known issues and notified to the submitters.
imported/csswg-test/css-writing-modes-3/text-combine-horizontal-010.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-combine-horizontal-011.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-orientation-010.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-orientation-011.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-orientation-013.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-orientation-015.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-orientation-mixed-001.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-orientation-sideways-001.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-orientation-sideways-right-001.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-orientation-upright-001.xht [ Skip ]
# https://github.com/w3c/csswg-test/issues/784 The tests have incorrect expectations
imported/csswg-test/css-writing-modes-3/value-all-and-inherit-001.htm [ Skip ]
# Not test files but our script identify as test files
imported/csswg-test/css-writing-modes-3/text-combine-upright/reference [ Skip ]
# https://github.com/w3c/csswg-test/issues/786 The tests have incorrect expectations
imported/csswg-test/css-writing-modes-3/text-decoration-001.htm [ Skip ]
imported/csswg-test/css-writing-modes-3/text-emphasis-001.htm [ Skip ]
# CSS Writing Modes Level 3: Following tests are "combo", import only one from each combo group (or improve the script to handle automatically).
imported/csswg-test/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001a.html [ Skip ]
......@@ -436,6 +428,8 @@ imported/csswg-test/css-writing-modes-3/line-box-direction-016.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-baseline-007.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-baseline-010.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-baseline-011.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-orientation-013.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-orientation-015.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-orientation-sideways-002.xht [ Skip ]
imported/csswg-test/css-writing-modes-3/text-orientation-sideways-left-001.xht [ Skip ]
......@@ -449,7 +443,10 @@ imported/csswg-test/css-writing-modes-3/text-combine-upright-parsing-valid-001.h
imported/csswg-test/css-writing-modes-3/text-combine-upright-parsing-valid-002.html [ Skip ]
imported/csswg-test/css-writing-modes-3/value-digit2-and-inherit-001.htm [ Skip ]
imported/csswg-test/css-writing-modes-3/value-digits2-002.html [ Skip ]
imported/csswg-test/css-writing-modes-3/value-digits2-003.html [ Skip ]
imported/csswg-test/css-writing-modes-3/value-digits3-001.html [ Skip ]
imported/csswg-test/css-writing-modes-3/value-digits3-002.html [ Skip ]
imported/csswg-test/css-writing-modes-3/value-digits3-003.html [ Skip ]
imported/csswg-test/css-writing-modes-3/value-digits4-001.html [ Skip ]
imported/csswg-test/css-writing-modes-3/value-digits4-002.html [ Skip ]
imported/csswg-test/css-writing-modes-3/value-digits4-003.html [ Skip ]
......@@ -105,4 +105,4 @@
<div id="red-overlapped-reference"></div>
</body>
</html>
\ No newline at end of file
</html>
......@@ -14,6 +14,7 @@
}
.target {
color:blue;
height:3em;
-webkit-writing-mode:vertical-rl;
}
.border {
......@@ -159,8 +160,9 @@ function run() {
test(function () {
try {
var targetNode = node.querySelector(".target");
var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);
var targetBounds = targetNode.getBoundingClientRect();
assert_approx_equals(targetBounds.height, targetBounds.width * 2, .01, "writing-mode is vertical")
assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")
var nextNode = node.querySelector(".next");
var nextBounds = nextNode.getBoundingClientRect();
assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");
......
<!DOCTYPE html>
<title>CSS Writing Modes Test: </title>
<link rel="help" href="http://dev.w3.org/csswg/css-writing-modes-3/#text-combine-layout" title="9.1.2. Layout Rules">
<meta name="assert" content="The resulting composition is treated as a signel glyph for decorations">
<meta name="flags" content="ahem">
<link rel="author" title="Koji Ishii" href="mailto:kojiishi@gmail.com">
<style>
#container {
font: 50px/1 Ahem;
}
.vlr {
-webkit-writing-mode:vertical-lr;
}
.vrl {
-webkit-writing-mode:vertical-rl;
}
.test, .ref {
border:solid thin;
margin:.2em;
}
p {
margin:0 .5em;
}
.underline {
text-decoration:underline;
}
.overline {
text-decoration:overline;
}
.emphasis {
-webkit-text-emphasis:filled;
}
</style>
<p>This test asserts the resulting composition is treated as a signel glyph for decorations.
<p>Test passes if the following two boxes in each row are identical.
<div id=container>
<div class=vlr>
<div class=test>
<p class=underline>X&#xA0;X
<p class=overline>X&#xA0;X
<p class=emphasis>XXX
</div>
<div class=ref>
<p class=underline>X&#xA0;X
<p class=overline>X&#xA0;X
<p class=emphasis>XXX
</div>
</div>
<div class=vrl>
<div class=test>
<p class=underline>X&#xA0;X
<p class=overline>X&#xA0;X
<p class=emphasis>XXX
</div>
<div class=ref>
<p class=underline>X&#xA0;X
<p class=overline>X&#xA0;X
<p class=emphasis>XXX
</div>
</div>
</div>
<!DOCTYPE html>
<title>CSS Writing Modes Test: </title>
<link rel="help" href="http://dev.w3.org/csswg/css-writing-modes-3/#text-combine-layout" title="9.1.2. Layout Rules">
<link rel="match" href="reference/text-combine-upright-decorations-001.html">
<meta name="assert" content="The resulting composition is treated as a signel glyph for decorations">
<meta name="flags" content="ahem">
<link rel="author" title="Koji Ishii" href="mailto:kojiishi@gmail.com">
<style>
#container {
font: 50px/1 Ahem;
}
.vlr {
-webkit-writing-mode:vertical-lr;
}
.vrl {
-webkit-writing-mode:vertical-rl;
}
.test, .ref {
border:solid thin;
margin:.2em;
}
p {
margin:0 .5em;
}
.tcy {
-webkit-text-combine:horizontal;
}
.underline {
text-decoration:underline;
}
.overline {
text-decoration:overline;
}
.emphasis {
-webkit-text-emphasis:filled;
}
</style>
<p>This test asserts the resulting composition is treated as a signel glyph for decorations.
<p>Test passes if the following two boxes in each row are identical.
<div id=container>
<div class=vlr>
<div class=test>
<p class=underline>X<span class=tcy>&#xA0;</span>X
<p class=overline>X<span class=tcy>&#xA0;</span>X
<p class=emphasis>X<span class=tcy>X</span>X
</div>
<div class=ref>
<p class=underline>X&#xA0;X
<p class=overline>X&#xA0;X
<p class=emphasis>XXX
</div>
</div>
<div class=vrl>
<div class=test>
<p class=underline>X<span class=tcy>&#xA0;</span>X
<p class=overline>X<span class=tcy>&#xA0;</span>X
<p class=emphasis>X<span class=tcy>X</span>X
</div>
<div class=ref>
<p class=underline>X&#xA0;X
<p class=overline>X&#xA0;X
<p class=emphasis>XXX
</div>
</div>
</div>
<!DOCTYPE html>
<html>
<head>
<title>CSS Writing Modes Test: text-combine-upright with decoration</title>
<link rel="author" title="Shinsuke Matsuki" href="mailto:shinsuke.matsuki@access-company.com">
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: 'tcu-font';
src: url('support/tcu-font.woff');
}
.tcu-with-decoration {
font: 100px 'tcu-font';
-webkit-writing-mode: vertical-rl;
-webkit-text-combine: horizontal;
text-decoration: underline;
}
</style>
</head>
<body>
<p>Test passes if this figure and the decoration are idencial</p>
<div class="tcu-with-decoration">7</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Writing Modes Test: text-combine-upright with text-decoration</title>
<link rel="author" title="Shinsuke Matsuki" href="mailto:shinsuke.matsuki@access-company.com">
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-combine-upright">
<link rel="match" href="reference/text-decoration-001-ref.htm">
<meta name="assert" content="Test passes if text decoration applies to the composed character but each character inside tate-chu-yoko.">
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: 'tcu-font';
src: url('support/tcu-font.woff');
}
.tcu-with-decoration {
font: 100px 'tcu-font';
-webkit-writing-mode: vertical-rl;
-webkit-text-combine: horizontal;
text-decoration: underline;
}
</style>
</head>
<body>
<p>Test passes if this figure and the emphasis are idencial</p>
<div class="tcu-with-decoration">44</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Writing Modes Test: text-combine-upright with text-emphasis</title>
<link rel="author" title="Shinsuke Matsuki" href="mailto:shinsuke.matsuki@access-company.com">
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: 'tcu-font';
src: url('support/tcu-font.woff');
}
.tcu-with-emphasis {
font: 100px 'tcu-font';
-webkit-writing-mode: vertical-rl;
-webkit-text-combine: horizontal;
-webkit-text-emphasis-style: open dot;
}
</style>
</head>
<body>
<p>Test passes if this figure and the emphasis are idencial</p>
<div class="tcu-with-emphasis">7</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Writing Modes Test: text-combine-upright with text-emphasis</title>
<link rel="author" title="Shinsuke Matsuki" href="mailto:shinsuke.matsuki@access-company.com">
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-combine-upright">
<link rel="match" href="reference/text-emphasis-001-ref.htm">
<link rel="mismatch" href="reference/text-emphasis-001-notref.htm">
<meta name="assert" content="Test passes if text emphasis applies to the composed character but each character inside tate-chu-yoko.">
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: 'tcu-font';
src: url('support/tcu-font.woff');
}
.tcu-with-emphasis {
font: 100px 'tcu-font';
-webkit-writing-mode: vertical-rl;
-webkit-text-combine: horizontal;
-webkit-text-emphasis-style: open dot ;
}
</style>
</head>
<body>
<p>Test passes if this figure and the emphasis are idencial</p>
<div class="tcu-with-emphasis">44</div>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Writing Modes Test: text-orientation - sideways-right</title>
<link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" />
<link rel="help" title="5.1. Orienting Text: the‘text-orientation’property" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation" />
<link rel="match" href="reftest/text-orientation-012-ref.xht" />
<link rel="match" href="reference/text-orientation-012-ref.xht" />
<meta http-equiv="content-language" content="en" />
<meta name="flags" content="ahem" />
<meta name="assert" content="This test checks that 'text-orientation: sideways-right' causes text to be set as if in a horizontal layout, but rotated 90° clockwise, in vertical writing modes. This is effective to verify 1.block flow direction, 2.inline direction and 3.glyph orientation." />
<meta name="assert" content="This test checks that 'text-orientation: sideways-right' causes text to be set as if in a horizontal layout, but rotated 90° clockwise, in vertical writing modes. This is effective to verify 1.block flow direction, 2.inline direction and 3.glyph orientation." />
<style type="text/css">
.view_ahem
{
......@@ -17,7 +17,7 @@
color: blue;
font: 20px/1 "Ahem";
height: 3em;
margin: 10px;
margin: 10px;
width: 3em;
white-space: pre;
}
......@@ -33,7 +33,7 @@
-webkit-writing-mode: horizontal-tb;
-webkit-writing-mode: horizontal-tb;
}
.view
.view
{
border: 1px solid gray;
font-size: 1.5em;
......@@ -43,12 +43,12 @@
-webkit-writing-mode: vertical-rl;
-webkit-writing-mode: vertical-rl;
}
#test
#test
{
-webkit-text-orientation: sideways-right; /* The property to be tested */
-webkit-text-orientation:sideways-right;
}
#control
#control
{
-webkit-text-combine: none;
}
......@@ -58,11 +58,11 @@
<!--
This test consists of a pair of sub-tests which complements each other.
Logically, the test should verify 1.block flow direction, 2.inline direction
and 3.glyph orientation. The "Ahem" sub-test comes first and checks 1. and 2. ,
and 3.glyph orientation. The "Ahem" sub-test comes first and checks 1. and 2. ,
whereas "glyph" sub-test comes later and also checks 3.
-->
<p>Test passes if a pair of rectangles is <strong>identical</strong> including <strong>layout</strong> and <strong>orientation</strong>.</p>
<div class="view_ahem"><span id="test_ahem">123
<div class="view_ahem"><span id="test_ahem">123
56
7 </span></div>
<div class="view_ahem"><span id="control_ahem">7 1
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Writing Modes Test: text-orientation - sideways</title>
<link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" />
<link rel="help" title="5.1. Orienting Text: the‘text-orientation’property" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation" />
<link rel="match" href="reftest/text-orientation-014-ref.xht" />
<link rel="match" href="reference/text-orientation-014-ref.xht" />
<meta http-equiv="content-language" content="en" />
<meta name="flags" content="ahem" />
<meta name="assert" content="This test checks that 'text-orientation: sideways' is equivalent to‘sideways-right’in‘vertical-rl’writing mode. This is effective to verify 1.block flow direction, 2.inline direction and 3.glyph orientation." />
<meta name="assert" content="This test checks that 'text-orientation: sideways' is equivalent to‘sideways-right’in‘vertical-rl’writing mode. This is effective to verify 1.block flow direction, 2.inline direction and 3.glyph orientation." />
<style type="text/css">
.view_ahem
{
......@@ -17,7 +17,7 @@
color: blue;
font: 20px/1 "Ahem";
height: 3em;
margin: 10px;
margin: 10px;
width: 3em;
white-space: pre;
}
......@@ -33,7 +33,7 @@
-webkit-writing-mode: horizontal-tb;
-webkit-writing-mode: horizontal-tb;
}
.view
.view
{
border: 1px solid gray;
font-size: 1.5em;
......@@ -43,12 +43,12 @@
-webkit-writing-mode: vertical-rl;
-webkit-writing-mode: vertical-rl;
}
#test
#test
{
-webkit-text-orientation: sideways; /* The property to be tested */
-webkit-text-orientation: sideways;
}
#control
#control
{
-webkit-text-combine: none;
}
......@@ -58,11 +58,11 @@
<!--
This test consists of a pair of sub-tests which complements each other.
Logically, the test should verify 1.block flow direction, 2.inline direction
and 3.glyph orientation. The "Ahem" sub-test comes first and checks 1. and 2. ,
and 3.glyph orientation. The "Ahem" sub-test comes first and checks 1. and 2. ,
whereas "glyph" sub-test comes later and also checks 3.
-->
<p>Test passes if a pair of rectangles is <strong>identical</strong> including <strong>layout</strong> and <strong>orientation</strong>.</p>
<div class="view_ahem"><span id="test_ahem">123
<div class="view_ahem"><span id="test_ahem">123
56
7 </span></div>
<div class="view_ahem"><span id="control_ahem">7 1
......
<!DOCTYPE html>
<html>
<head>
<title>CSS Writing Modes Test: text-combine-upright :all </title>
<link rel="author" title="Shinsuke Matsuki" href="mailto:shinsuke.matsuki@access-company.com">
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: 'tcu-font';
src: url('support/tcu-font.woff');
}
.tcu-all {
font-family: 'tcu-font';
-webkit-writing-mode: vertical-rl;
}
</style>
</head>
<body>
<p>Test passes if the two white triangles are pointing to the right.</p>
<div class="tcu-all">
<table>
<tr>
<td>
<div style="display: inline-table">
<div style="display: inline-block">
<p>3<span>3</span></p>
</div>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Writing Modes Test: text-combine-upright :all</title>
<link rel="author" title="Shinsuke Matsuki" href="mailto:shinsuke.matsuki@access-company.com">
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-combine-upright">
<link rel="match" href="reference/value-all-and-inherit-001-ref.htm">
<meta name="assert" content="Two white triangles does not pointing to the right. Pointing up.">
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: 'tcu-font';
src: url('support/tcu-font.woff');
}
.tcu-all {
font-family: 'tcu-font';
-webkit-writing-mode: vertical-rl;
-webkit-text-combine: horizontal;
}
</style>
</head>
<body>
<p>Test passes if the two white triangles are pointing to the right.</p>
<div class="tcu-all">
<table>
<tr>
<td>
<div style="display: inline-table">
<div style="display: inline-block">
<p>2<span>2</span></p>
</div>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test Reference</title>
<link rel="author" title="Masataka Yakura" href="https://google.com/+MasatakaYakura">
<meta name="flags" content="ahem">
<style>
.test {
-webkit-writing-mode: vertical-rl;
font-size: 5em;
font-family: Ahem;
}
</style>
</head>
<body>
<p>Test passes if there are 2 <strong>identical</strong> black rectangles.</p>
<div class="test">
<p>xxx</p>
<p>xxx</p>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Writing Modes: text-combine-upright: digits 2 + three digits</title>
<link rel="author" title="Masataka Yakura" href="https://google.com/+MasatakaYakura">
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-combine-upright">
<link rel="match" href="reference/vertical-ahem-1x3-ref.html">
<link rel="mismatch" href="reference/horizontal-ahem-1x3-notref.html">
<meta name="assert" content="'text-combine-upright: digits 2' does not combine digits that are greater than two.">
<meta name="flags" content="ahem">
<style>
.test {
-webkit-writing-mode: vertical-rl;
font-size: 5em;
font-family: Ahem;
}
.tcy {
-webkit-text-combine: digits 2;
}
</style>
</head>
<body>
<p>Test passes if there are 2 <strong>identical</strong> black rectangles.</p>
<div class="test">
<p><span class="tcy">123</span></p>
<p>xxx</p>
</div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test Reference</title>
<link rel="author" title="Masataka Yakura" href="https://google.com/+MasatakaYakura">
<meta name="flags" content="ahem">
<style>
.test {
-webkit-writing-mode: vertical-rl;
font-size: 5em;
font-family: Ahem;
}
</style>
</head>
<body>
<p>Test passes if there are 2 <strong>identical</strong> black rectangles.</p>
<div class="test">
<p>xxxx</p>
<p>xxxx</p>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Writing Modes: text-combine-upright: digits 3 + four digits</title>
<link rel="author" title="Masataka Yakura" href="https://google.com/+MasatakaYakura">
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-combine-upright">
<link rel="match" href="reference/vertical-ahem-1x4-ref.html">
<link rel="mismatch" href="reference/horizontal-ahem-1x4-notref.html">
<meta name="assert" content="'text-combine-upright: digits 3' does not combine digits that are greater than three.">
<meta name="flags" content="ahem">
<style>
.test {
-webkit-writing-mode: vertical-rl;
font-size: 5em;
font-family: Ahem;
}
.tcy {
-webkit-text-combine: digits 3;
}
</style>
</head>
<body>
<p>Test passes if there are 2 <strong>identical</strong> black rectangles.</p>
<div class="test">
<p><span class="tcy">1234</span></p>
<p>xxxx</p>
</div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test Reference</title>
<link rel="author" title="Masataka Yakura" href="https://google.com/+MasatakaYakura">
<meta name="flags" content="ahem">
<style>
.test {
-webkit-writing-mode: vertical-rl;
font-size: 5em;
font-family: Ahem;
}
</style>
</head>
<body>
<p>Test passes if there are 2 <strong>identical</strong> black rectangles.</p>
<div class="test">
<p>xxxxx</p>
<p>xxxxx</p>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Writing Modes: text-combine-upright: digits 4 + five digits</title>
<link rel="author" title="Masataka Yakura" href="https://google.com/+MasatakaYakura">
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-combine-upright">
<link rel="match" href="reference/vertical-ahem-1x5-ref.html">
<link rel="mismatch" href="reference/horizontal-ahem-1x5-notref.html">
<meta name="assert" content="'text-combine-upright: digits 4' does not combine digits that are greater than four.">
<meta name="flags" content="ahem">
<style>
.test {
-webkit-writing-mode: vertical-rl;
font-size: 5em;
font-family: Ahem;
}
.tcy {
-webkit-text-combine: digits 4;
}
</style>
</head>
<body>
<p>Test passes if there are 2 <strong>identical</strong> black rectangles.</p>
<div class="test">
<p><span class="tcy">12345</span></p>
<p>xxxxx</p>
</div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<meta charset="utf-8">
<title>HTMLTableRowElement#deleteCell</title>
<link rel="author" title="Intel" href="http://www.intel.com/">
<script src="../../../../../../resources/testharness.js"></script>
<script src="../../../../../../resources/testharnessreport.js"></script>
<div id="log"></div>
<table>
<tr id="testTr">
<td>ABCDE</td>
<td>12345</td>
<td>ABC12</td>
</tr>
</table>
<script>
var tr = document.getElementById("testTr");
test(function () {
tr.deleteCell(0);
assert_equals(tr.cells[0].innerHTML, "12345");
assert_equals(tr.cells.length, 2);
}, "HTMLTableRowElement deleteCell(0)");
test(function () {
tr.deleteCell(-1);
assert_equals(tr.cells[tr.cells.length - 1].innerHTML, "12345");
assert_equals(tr.cells.length, 1);
}, "HTMLTableRowElement deleteCell(-1)");
test(function () {
assert_throws("IndexSizeError", function () {
tr.deleteCell(-2);
});
}, "HTMLTableRowElement deleteCell(-2)");
test(function () {
assert_throws("IndexSizeError", function () {
tr.deleteCell(tr.cells.length);
});
}, "HTMLTableRowElement deleteCell(cells.length)");
</script>
<!DOCTYPE html>
<meta charset="utf-8">
<title>HTMLTableRowElement#insertCell</title>
<link rel="author" title="Intel" href="http://www.intel.com/">
<script src="../../../../../../resources/testharness.js"></script>
<script src="../../../../../../resources/testharnessreport.js"></script>
<div id="log"></div>
<table>
<tr id="testTr"></tr>
</table>
<script>
var tr = document.getElementById("testTr");
test(function () {
var tdEle = tr.insertCell(0);
assert_equals(tr.cells[0], tdEle);
assert_equals(tr.cells.length, 1);
}, "HTMLTableRowElement insertCell(0)");
test(function () {
var tdEle = tr.insertCell(-1);
assert_equals(tr.cells[tr.cells.length - 1], tdEle);
assert_equals(tr.cells.length, 2);
}, "HTMLTableRowElement insertCell(-1)");
test(function () {
var tdEle = tr.insertCell(tr.cells.length);
assert_equals(tr.cells[tr.cells.length - 1], tdEle);
assert_equals(tr.cells.length, 3);
}, "HTMLTableRowElement insertCell(cells.length)");
test(function () {
var tdEle = tr.insertCell();
assert_equals(tr.cells[tr.cells.length - 1], tdEle);
assert_equals(tr.cells.length, 4);
}, "HTMLTableRowElement insertCell()");
test(function () {
assert_throws("IndexSizeError", function () {
tr.insertCell(-2);
});
}, "HTMLTableRowElement insertCell(-2)");
test(function () {
assert_throws("IndexSizeError", function () {
tr.insertCell(tr.cells.length + 1);
});
}, "HTMLTableRowElement insertCell(cells.length + 1)");
</script>
Access-Control-Allow-Origin: http://{{domains[]}}:{{ports[http][0]}}
Access-Control-Allow-Origin: {{location[scheme]}}://{{domains[]}}:{{location[port]}}
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: http://{{domains[]}}:{{ports[http][0]}}
Access-Control-Allow-Origin: {{location[scheme]}}://{{domains[]}}:{{location[port]}}
Access-Control-Allow-Credentials: true
Constructors and States tests
==============================
These test that each of the defined interfaces can be constructed synthetically, and that all attributes can be set to the appropriate state via the constructors.
Verify the Class Hierarchy
==========================
Make sure the events inherit from the correct interfaces:
e.g., UIEvent > MouseEvent
Requires manual and automated tests
* manually create event and verify hierarchy
* WebDriver create the event and verify hierarchy
UIEvent
* load, unload, abort, error, select, resize, scroll
* Note: some event types may be dropped given that they don't appear to be UIEvents by other specs that define them.
FocusEvent
* blur, focus, focusin, focusout
* blur and focus are handled in HTML5
* but they aren't sure if focusin/out are needed: see bug: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25877
MouseEvent
* click, dblclick, mousedown, mouseenter, mouseleave, mousemove, mouseout, mouseover, mouseup
WheelEvent
* wheel
KeyboardEvent
* keydown, keyup
* need to show interaction with beforeinput and input, which are in the Editing spec
CompositionEvent
* compositionstart
* compositionupdate
* compositionend
* need to show interaction with the keyboard events: keydown, keyup
Interface tests
==============================
These test that the basic UI Events interfaces exist, specifically:
1. Does the interface exist
2. Are all the members defined on the interface accounted for:
* UIEvent
* MouseEvent
* FocusEvent
* KeyboardEvent
* WheelEvent
* CompositionEvent
Order of events
============================
Testing of how events fire in relation to one another
(this is the big work item)
Expecting to need:
* braindead test (does it work at all?)
* specific functional tests
* specific edge cases
Notes:
* small tests so that they can be given specific names for what's broken if it fails
* include a link to the corresponding test in the spec.
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>IDL check of RTCPeerConnection</title>
<link rel="author" title="Harald Alvestrand" href="mailto:hta@google.com"/>
<link rel="help" href="http://w3c.github.io/webrtc-pc/#rtcpeerconnection-interface">
<link rel='stylesheet' href='../../../../resources/testharness.css' media='all'/>
</head>
<body>
<h1 class="instructions" style="display:none">Description</h1>
<p class="instructions" style="display:none">This test verifies the availability of the RTCPeerConnection interface.</p>
<div id='log'></div>
<script src=../../../../resources/testharness.js></script>
<script src=../../../../resources/testharnessreport.js></script>
<script src="../../../../resources/vendor-prefix.js"
data-prefixed-objects=
'[{"ancestors":["window"], "name":"RTCPeerConnection"},
{"ancestors":["window"], "name":"RTCSessionDescription"},
{"ancestors":["window"], "name":"RTCIceCandidate"}]'>
</script>
<script src=../../../../resources/WebIDLParser.js></script>
<script src=../../../../resources/idlharness.js></script>
<!-- The IDL is copied from the 06 March 2015 editors' draft. -->
<script type="text/plain">
[ Constructor (RTCConfiguration configuration)]
interface RTCPeerConnection : EventTarget {
Promise<RTCSessionDescription> createOffer (optional RTCOfferOptions options);
Promise<RTCSessionDescription> createAnswer ();
Promise<void> setLocalDescription (RTCSessionDescription description);
readonly attribute RTCSessionDescription? localDescription;
Promise<void> setRemoteDescription (RTCSessionDescription description);
readonly attribute RTCSessionDescription? remoteDescription;
readonly attribute RTCSignalingState signalingState;
void updateIce (RTCConfiguration configuration);
Promise<void> addIceCandidate (RTCIceCandidate candidate);
readonly attribute RTCIceGatheringState iceGatheringState;
readonly attribute RTCIceConnectionState iceConnectionState;
readonly attribute boolean? canTrickleIceCandidates;
RTCConfiguration getConfiguration ();
void close ();
attribute EventHandler onnegotiationneeded;
attribute EventHandler onicecandidate;
attribute EventHandler onsignalingstatechange;
attribute EventHandler oniceconnectionstatechange;
attribute EventHandler onicegatheringstatechange;
};
partial interface RTCPeerConnection {
void createOffer (RTCSessionDescriptionCallback successCallback, RTCPeerConnectionErrorCallback failureCallback, optional RTCOfferOptions options);
void setLocalDescription (RTCSessionDescription description, VoidFunction successCallback, RTCPeerConnectionErrorCallback failureCallback);
void createAnswer (RTCSessionDescriptionCallback successCallback, RTCPeerConnectionErrorCallback failureCallback);
void setRemoteDescription (RTCSessionDescription description, VoidFunction successCallback, RTCPeerConnectionErrorCallback failureCallback);
void addIceCandidate (RTCIceCandidate candidate, VoidFunction successCallback, RTCPeerConnectionErrorCallback failureCallback);
};
partial interface RTCPeerConnection {
sequence<RTCRtpSender> getSenders ();
sequence<RTCRtpReceiver> getReceivers ();
RTCRtpSender addTrack (MediaStreamTrack track, MediaStream... streams);
void removeTrack (RTCRtpSender sender);
attribute EventHandler ontrack;
};
partial interface RTCPeerConnection {
RTCDataChannel createDataChannel ([TreatNullAs=EmptyString] DOMString label, optional RTCDataChannelInit dataChannelDict);
attribute EventHandler ondatachannel;
};
partial interface RTCPeerConnection {
RTCDTMFSender createDTMFSender (MediaStreamTrack track);
};
partial interface RTCPeerConnection {
void getStats (MediaStreamTrack? selector, RTCStatsCallback successCallback, RTCPeerConnectionErrorCallback failureCallback);
};
partial interface RTCPeerConnection {
void setIdentityProvider (DOMString provider, optional DOMString protocol, optional DOMString username);
void getIdentityAssertion ();
readonly attribute RTCIdentityAssertion? peerIdentity;
attribute EventHandler onidentityresult;
attribute EventHandler onpeeridentity;
attribute EventHandler onidpassertionerror;
attribute EventHandler onidpvalidationerror;
};
</script>
<script>
(function() {
var idl_array = new IdlArray();
[].forEach.call(document.querySelectorAll("script[type=text\\/plain]"),
function(node) {
idl_array.add_idls(node.textContent);
});
window.pc = new RTCPeerConnection(null);
idl_array.add_objects({"RTCPeerConnection": ["pc"]});
idl_array.test();
done();
})();
</script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment