Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444

This commit is contained in:
Josh Matthews 2017-04-17 12:06:02 +10:00 committed by Anthony Ramine
parent 25e8bf69e6
commit 665817d2a6
35333 changed files with 1818077 additions and 16036 deletions

View file

@ -0,0 +1,3 @@
@gregwhitworth
@tabatkins
@simonsapin

View file

@ -0,0 +1,4 @@
IndexOptions NameWidth=*
AddDefaultCharset Off
AddCharset bogus .bogus
AddCharset windows-1250 .windows1250

View file

@ -0,0 +1,20 @@
page-utf16-css-bomless-utf16be.html
page-utf16-css-bomless-utf16.html
page-utf16-css-no-decl-ascii-only.html
page-utf16-css-no-decl.html
page-windows-1251-charset-attribute-bogus.html
page-windows-1251-css-at-charset-1250-charset-attribute-windows-1253.html
page-windows-1251-css-at-charset-bogus-charset-attribute-windows-1250.html
page-windows-1251-css-at-charset-bogus.html
page-windows-1251-css-at-charset-utf16-ascii-only.html
page-windows-1251-css-at-charset-utf16be.html
page-windows-1251-css-at-charset-utf16.html
page-windows-1251-css-at-charset-windows-1250-in-utf16be.html
page-windows-1251-css-at-charset-windows-1250-in-utf16.html
page-windows-1251-css-http-bogus-at-charset-windows-1250.html
page-windows-1251-css-http-bogus.html
page-windows-1251-css-http-windows-1250-at-charset-windows-1253.html
page-windows-1251-css-no-decl.html
page-windows-1251-css-utf8-bom.html
dir support
xml-stylesheet-page-windows-1251-charset-attribute-windows-1250.xhtml

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>CSS charset: page windows-1251, charset attribute bogus</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/no-decl.css" charset="bogus">
<div id=log></div>
<div id=&#x0418;></div>
<script>
var elm = document.getElementById('\u0418');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>CSS charset: page windows-1251, @charset windows-1250, charset attribute windows-1253</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/at-charset-windows-1250.css" charset=windows-1253>
<div id=log></div>
<div id=&#x010C;></div>
<script>
var elm = document.getElementById('\u010C');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>CSS charset: page windows-1251, CSS @charset bogus, charset attribute windows-1250</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/at-charset-bogus.css" charset=windows-1250>
<div id=log></div>
<div id=&#x010C;></div>
<script>
var elm = document.getElementById('\u010C');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>CSS charset: page windows-1251, @charset bogus</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/at-charset-bogus.css">
<div id=log></div>
<div id=&#x0418;></div>
<script>
var elm = document.getElementById('\u0418');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>CSS charset: page windows-1251, CSS @charset utf-16 (ASCII only)</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/at-charset-utf16-ascii-only.css">
<div id=log></div>
<div id=foo></div>
<script>
var elm = document.getElementById('foo');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>CSS charset: page windows-1251, CSS @charset utf-16</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/at-charset-utf16.css">
<div id=log></div>
<div id=&#xfffd;></div>
<script>
var elm = document.getElementById('\ufffd');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>CSS charset: page windows-1251, CSS @charset utf-16be</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/at-charset-utf16be.css">
<div id=log></div>
<div id=&#xfffd;></div>
<script>
var elm = document.getElementById('\ufffd');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>

View file

@ -0,0 +1,23 @@
<!doctype html>
<title>CSS charset: page windows-1251, CSS @charset windows-1250 in utf-16</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/at-charset-windows-1250-in-utf16.css">
<div id=log></div>
<div id=&#xfffd;></div>
<div id=&#x0418;></div>
<div id=&#x010c;></div>
<script>
var elm_fffd = document.getElementById('\ufffd');
var elm_0418 = document.getElementById('\u0418');
var elm_010c = document.getElementById('\u010c');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm_fffd, '').visibility, 'visible', 'selector U+FFFD matched (utf-8)');
assert_equals(getComputedStyle(elm_0418, '').visibility, 'hidden', 'selector U+0418 did not match (windows-1251)');
assert_equals(getComputedStyle(elm_010c, '').visibility, 'visible', 'selector U+010C matched (windows-1250)');
this.done();
});
</script>

View file

@ -0,0 +1,23 @@
<!doctype html>
<title>CSS charset: page windows-1251, CSS @charset windows-1250 in utf-16be</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/at-charset-windows-1250-in-utf16be.css">
<div id=log></div>
<div id=&#xfffd;></div>
<div id=&#x0418;></div>
<div id=&#x010c;></div>
<script>
var elm_fffd = document.getElementById('\ufffd');
var elm_0418 = document.getElementById('\u0418');
var elm_010c = document.getElementById('\u010c');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm_fffd, '').visibility, 'visible', 'selector U+FFFD matched (utf-8)');
assert_equals(getComputedStyle(elm_0418, '').visibility, 'hidden', 'selector U+0418 did not match (windows-1251)');
assert_equals(getComputedStyle(elm_010c, '').visibility, 'visible', 'selector U+010C matched (windows-1250)');
this.done();
});
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>CSS charset: page windows-1251, CSS HTTP bogus, @charset windows-1250</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/http-bogus-at-charset-windows-1250.bogus.css">
<div id=log></div>
<div id=&#x010C;></div>
<script>
var elm = document.getElementById('\u010C');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>CSS charset: page windows-1251, CSS HTTP bogus</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/http-bogus.bogus.css">
<div id=log></div>
<div id=&#x0418;></div>
<script>
var elm = document.getElementById('\u0418');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>CSS charset: page windows-1251, CSS HTTP windows-1250, @charset windows-1253</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/http-windows-1250-at-charset-windows-1253.windows1250.css">
<div id=log></div>
<div id=&#x010C;></div>
<script>
var elm = document.getElementById('\u010C');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>CSS charset: page windows-1251, CSS no decl</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/no-decl.css">
<div id=log></div>
<div id=&#x0418;></div>
<script>
var elm = document.getElementById('\u0418');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>

View file

@ -0,0 +1,17 @@
<!doctype html>
<title>CSS charset: page windows-1251, CSS UTF-8 BOM</title>
<link rel=help href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding">
<meta charset=windows-1251>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel=stylesheet href="support/utf8-bom.css">
<div id=log></div>
<div id=&#xfffd;></div>
<script>
var elm = document.getElementById('\ufffd');
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>

View file

@ -0,0 +1,15 @@
support at-charset-bogus.css
support at-charset-utf16-ascii-only.css
support at-charset-utf16be.css
support at-charset-utf16.css
support at-charset-windows-1250.css
support at-charset-windows-1250-in-utf16be.css
support at-charset-windows-1250-in-utf16.css
support bomless-utf16be.css
support bomless-utf16.css
support http-bogus-at-charset-windows-1250.bogus.css
support http-bogus.bogus.css
support http-windows-1250-at-charset-windows-1253.windows1250.css
support no-decl-ascii-only.css
support no-decl.css
support utf8-bom.css

View file

@ -0,0 +1,2 @@
@charset "bogus";
#È { visibility:hidden }

View file

@ -0,0 +1,2 @@
@charset "utf-16";
#foo { visibility:hidden }

View file

@ -0,0 +1,2 @@
@charset "utf-16";
#È { visibility:hidden }

View file

@ -0,0 +1,2 @@
@charset "utf-16be";
#È { visibility:hidden }

View file

@ -0,0 +1,2 @@
@charset "windows-1250";
#È { visibility:hidden }

View file

@ -0,0 +1,2 @@
@charset "windows-1250";
#È { visibility:hidden }

View file

@ -0,0 +1 @@
Content-Type: text/css; charset=bogus

View file

@ -0,0 +1 @@
#È { visibility:hidden }

View file

@ -0,0 +1 @@
Content-Type: text/css; charset=bogus

View file

@ -0,0 +1,2 @@
@charset "windows-1253";
#È { visibility:hidden }

View file

@ -0,0 +1 @@
Content-Type: text/css; charset=windows-1250

View file

@ -0,0 +1 @@
#foo { visibility:hidden }

View file

@ -0,0 +1 @@
#È { visibility:hidden }

View file

@ -0,0 +1 @@
#È { visibility:hidden }

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="windows-1251"?>
<?xml-stylesheet href="support/no-decl.css" charset="windows-1250"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSS charset: page windows-1251, charset attribute bogus</title>
<link rel="help" href="https://drafts.csswg.org/css-syntax-3/#determine-the-fallback-encoding"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head><body>
<div id="log"></div>
<div id="foo"></div>
<script>
var elm = document.getElementById('foo');
elm.id = '\u010C';
var t = async_test();
onload = t.step_func(function(){
assert_equals(getComputedStyle(elm, '').visibility, 'hidden');
this.done();
});
</script>
</body></html>

View file

@ -0,0 +1,73 @@
<!doctype html>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<title>Testing valid ident based on first three code points</title>
<link rel="author" title="Greg Whitworth" href="gwhit@microsoft.com" />
<link rel="help" href="https://drafts.csswg.org/css-syntax-3/#would-start-an-identifier" />
<style>
main div {
background-color:red;
}
div[name=one],
div[name=two] {
background: green;
}
#1 {
background-color:red;
}
#-2 {
background-color:red;
}
#--3 {
background-color:green;
}
#---4 {
background-color:green;
}
#a {
background-color:green;
}
#-b {
background-color:green;
}
#--c {
background-color:green;
}
#---d {
background-color:green;
}
</style>
<body>
<main>
<div id="1" class="item" name="one">test1</div>
<div id="-2" class="item" name="two">test2</div>
<div id="--3" class="item" name="three">test3</div>
<div id="---4" class="item" name="four">test4</div>
<div id="a" class="item" name="five">test A</div>
<div id="-b" class="item" name="six">test B</div>
<div id="--c" class="item" name="seven">test C</div>
<div id="---d" class="item" name="eight">test D</div>
</main>
<script>
var items = document.getElementsByClassName('item');
for(var i=0; i < items.length; i++) {
test(function() {
assert_equals(window.getComputedStyle(items[i]).getPropertyValue('background-color'), "rgb(0, 128, 0)");
}, items[i].getAttribute('name') + " should be green");
}
</script>
</body>
</html>