Update web-platform-tests to revision a3b0fadc7f5001bbe52c65e0a354c454981423a3

This commit is contained in:
Ms2ger 2015-11-30 10:23:39 +01:00
parent 6bb495338b
commit 3bbee99cdb
29 changed files with 730 additions and 4 deletions

View file

@ -4289,6 +4289,66 @@
],
"url": "/html/rendering/non-replaced-elements/flow-content-0/figure.html"
},
{
"path": "html/rendering/non-replaced-elements/lists/li-type-supported.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/li-type-supported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/li-type-supported.html"
},
{
"path": "html/rendering/non-replaced-elements/lists/li-type-supported.xhtml",
"references": [
[
"/html/rendering/non-replaced-elements/lists/li-type-supported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/li-type-supported.xhtml"
},
{
"path": "html/rendering/non-replaced-elements/lists/li-type-unsupported-lower-alpha.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/li-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/li-type-unsupported-lower-alpha.html"
},
{
"path": "html/rendering/non-replaced-elements/lists/li-type-unsupported-lower-roman.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/li-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/li-type-unsupported-lower-roman.html"
},
{
"path": "html/rendering/non-replaced-elements/lists/li-type-unsupported-upper-alpha.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/li-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/li-type-unsupported-upper-alpha.html"
},
{
"path": "html/rendering/non-replaced-elements/lists/li-type-unsupported-upper-roman.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/li-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/li-type-unsupported-upper-roman.html"
},
{
"path": "html/rendering/non-replaced-elements/lists/ol-type-supported.html",
"references": [
@ -4399,6 +4459,76 @@
],
"url": "/html/rendering/non-replaced-elements/lists/ol-type-unsupported-upper-roman.html"
},
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-supported.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-supported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-supported.html"
},
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-supported.xhtml",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-supported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-supported.xhtml"
},
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-unsupported-decimal.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-unsupported-decimal.html"
},
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-unsupported-lower-alpha.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-unsupported-lower-alpha.html"
},
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-unsupported-lower-roman.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-unsupported-lower-roman.html"
},
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-unsupported-upper-alpha.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-unsupported-upper-alpha.html"
},
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-unsupported-upper-roman.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-unsupported-upper-roman.html"
},
{
"path": "html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-a.html",
"references": [
@ -16361,6 +16491,10 @@
"path": "html/semantics/document-metadata/the-link-element/link-style-error-01.html",
"url": "/html/semantics/document-metadata/the-link-element/link-style-error-01.html"
},
{
"path": "html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/parsing.html",
"url": "/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/parsing.html"
},
{
"path": "html/semantics/document-metadata/the-meta-element/the-lang-attribute-012.html",
"url": "/html/semantics/document-metadata/the-meta-element/the-lang-attribute-012.html"
@ -26305,6 +26439,14 @@
"path": "url/a-element.xhtml",
"url": "/url/a-element.xhtml"
},
{
"path": "url/historical.html",
"url": "/url/historical.html"
},
{
"path": "url/historical.worker.js",
"url": "/url/historical.worker"
},
{
"path": "url/interfaces.html",
"url": "/url/interfaces.html"
@ -31743,6 +31885,78 @@
"url": "/html/rendering/non-replaced-elements/flow-content-0/figure.html"
}
],
"html/rendering/non-replaced-elements/lists/li-type-supported.html": [
{
"path": "html/rendering/non-replaced-elements/lists/li-type-supported.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/li-type-supported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/li-type-supported.html"
}
],
"html/rendering/non-replaced-elements/lists/li-type-supported.xhtml": [
{
"path": "html/rendering/non-replaced-elements/lists/li-type-supported.xhtml",
"references": [
[
"/html/rendering/non-replaced-elements/lists/li-type-supported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/li-type-supported.xhtml"
}
],
"html/rendering/non-replaced-elements/lists/li-type-unsupported-lower-alpha.html": [
{
"path": "html/rendering/non-replaced-elements/lists/li-type-unsupported-lower-alpha.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/li-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/li-type-unsupported-lower-alpha.html"
}
],
"html/rendering/non-replaced-elements/lists/li-type-unsupported-lower-roman.html": [
{
"path": "html/rendering/non-replaced-elements/lists/li-type-unsupported-lower-roman.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/li-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/li-type-unsupported-lower-roman.html"
}
],
"html/rendering/non-replaced-elements/lists/li-type-unsupported-upper-alpha.html": [
{
"path": "html/rendering/non-replaced-elements/lists/li-type-unsupported-upper-alpha.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/li-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/li-type-unsupported-upper-alpha.html"
}
],
"html/rendering/non-replaced-elements/lists/li-type-unsupported-upper-roman.html": [
{
"path": "html/rendering/non-replaced-elements/lists/li-type-unsupported-upper-roman.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/li-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/li-type-unsupported-upper-roman.html"
}
],
"html/rendering/non-replaced-elements/lists/ol-type-supported.html": [
{
"path": "html/rendering/non-replaced-elements/lists/ol-type-supported.html",
@ -31875,6 +32089,90 @@
"url": "/html/rendering/non-replaced-elements/lists/ol-type-unsupported-upper-roman.html"
}
],
"html/rendering/non-replaced-elements/lists/ul-type-supported.html": [
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-supported.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-supported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-supported.html"
}
],
"html/rendering/non-replaced-elements/lists/ul-type-supported.xhtml": [
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-supported.xhtml",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-supported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-supported.xhtml"
}
],
"html/rendering/non-replaced-elements/lists/ul-type-unsupported-decimal.html": [
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-unsupported-decimal.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-unsupported-decimal.html"
}
],
"html/rendering/non-replaced-elements/lists/ul-type-unsupported-lower-alpha.html": [
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-unsupported-lower-alpha.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-unsupported-lower-alpha.html"
}
],
"html/rendering/non-replaced-elements/lists/ul-type-unsupported-lower-roman.html": [
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-unsupported-lower-roman.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-unsupported-lower-roman.html"
}
],
"html/rendering/non-replaced-elements/lists/ul-type-unsupported-upper-alpha.html": [
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-unsupported-upper-alpha.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-unsupported-upper-alpha.html"
}
],
"html/rendering/non-replaced-elements/lists/ul-type-unsupported-upper-roman.html": [
{
"path": "html/rendering/non-replaced-elements/lists/ul-type-unsupported-upper-roman.html",
"references": [
[
"/html/rendering/non-replaced-elements/lists/ul-type-unsupported-ref.html",
"=="
]
],
"url": "/html/rendering/non-replaced-elements/lists/ul-type-unsupported-upper-roman.html"
}
],
"html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-a.html": [
{
"path": "html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-a.html",
@ -35548,7 +35846,7 @@
}
]
},
"rev": "ee40b886c701ffa25a673240cabdedd59ee3ace4",
"rev": "a3b0fadc7f5001bbe52c65e0a354c454981423a3",
"url_base": "/",
"version": 2
}

View file

@ -0,0 +1,3 @@
[li-type-supported.html]
type: reftest
expected: FAIL

View file

@ -0,0 +1,3 @@
[li-type-supported.xhtml]
type: reftest
expected: FAIL

View file

@ -0,0 +1,3 @@
[parsing.html]
type: testharness
disabled: https://github.com/servo/servo/issues/8749

View file

@ -1 +1 @@
a00f2d6310f42d641151d8aa46aef53338e568cc
ae2754c1700e2617058a8c276b5bc82684d4ee60

View file

@ -164,3 +164,4 @@
[Parsing: <sc://ñ.test/> against <about:blank>]
expected: FAIL

View file

@ -1,3 +1,3 @@
prefs: [layout.writing-mode.enabled:true]
[viewport_meta.html]
[size_attributes_vertical_writing_mode.html]
type: reftest

View file

@ -0,0 +1,45 @@
<!doctype html>
<meta charset=utf-8>
<title>li@type: supported types</title>
<style>
.decimal { list-style-type: decimal; }
.lower-alpha { list-style-type: lower-alpha; }
.upper-alpha { list-style-type: upper-alpha; }
.lower-roman { list-style-type: lower-roman; }
.upper-roman { list-style-type: upper-roman; }
.disc { list-style-type: disc; }
.circle { list-style-type: circle; }
.square { list-style-type: square; }
.none { list-style-type: none; }
</style>
<li class="decimal">first item</li>
<li class="lower-alpha">second item</li>
<li class="upper-alpha">third item</li>
<li class="lower-roman">fourth item</li>
<li class="upper-roman">fifth item</li>
<li class="disc">sixth item</li>
<li class="circle">seventh item</li>
<li class="square">eigth item</li>
<li class="none">ninth item</li>
<ol>
<li class="decimal">first ordered item</li>
<li class="lower-alpha">second ordered item</li>
<li class="upper-alpha">third ordered item</li>
<li class="lower-roman">fourth ordered item</li>
<li class="upper-roman">fifth ordered item</li>
<li class="disc">sixth ordered item</li>
<li class="circle">seventh ordered item</li>
<li class="square">eigth ordered item</li>
<li class="none">ninth ordered item</li>
</ol>
<ul>
<li class="decimal">first unordered item</li>
<li class="lower-alpha">second unordered item</li>
<li class="upper-alpha">third unordered item</li>
<li class="lower-roman">fourth unordered item</li>
<li class="upper-roman">fifth unordered item</li>
<li class="disc">sixth unordered item</li>
<li class="circle">seventh unordered item</li>
<li class="square">eigth unordered item</li>
<li class="none">ninth unordered item</li>
</ul>

View file

@ -0,0 +1,35 @@
<!doctype html>
<meta charset=utf-8>
<title>li@type: supported types</title>
<link rel=match href=li-type-supported-ref.html>
<li type=1>first item</li>
<li type=a>second item</li>
<li type=A>third item</li>
<li type=i>fourth item</li>
<li type=I>fifth item</li>
<li type=disc>sixth item</li>
<li type=circle>seventh item</li>
<li type=square>eigth item</li>
<li type=none>ninth item</li>
<ol>
<li type=1>first ordered item</li>
<li type=a>second ordered item</li>
<li type=A>third ordered item</li>
<li type=i>fourth ordered item</li>
<li type=I>fifth ordered item</li>
<li type=disc>sixth ordered item</li>
<li type=circle>seventh ordered item</li>
<li type=square>eigth ordered item</li>
<li type=none>ninth ordered item</li>
</ol>
<ul>
<li type=1>first unordered item</li>
<li type=a>second unordered item</li>
<li type=A>third unordered item</li>
<li type=i>fourth unordered item</li>
<li type=I>fifth unordered item</li>
<li type=disc>sixth unordered item</li>
<li type=circle>seventh unordered item</li>
<li type=square>eigth unordered item</li>
<li type=none>ninth unordered item</li>
</ul>

View file

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>li@type: supported types</title>
<link rel="match" href="li-type-supported-ref.html"/>
</head>
<body>
<li type="1">first item</li>
<li type="a">second item</li>
<li type="A">third item</li>
<li type="i">fourth item</li>
<li type="I">fifth item</li>
<li type="disc">sixth item</li>
<li type="circle">seventh item</li>
<li type="square">eigth item</li>
<li type="none">ninth item</li>
<ol>
<li type="1">first ordered item</li>
<li type="a">second ordered item</li>
<li type="A">third ordered item</li>
<li type="i">fourth ordered item</li>
<li type="I">fifth ordered item</li>
<li type="disc">sixth ordered item</li>
<li type="circle">seventh ordered item</li>
<li type="square">eigth ordered item</li>
<li type="none">ninth ordered item</li>
</ol>
<ul>
<li type="1">first unordered item</li>
<li type="a">second unordered item</li>
<li type="A">third unordered item</li>
<li type="i">fourth unordered item</li>
<li type="I">fifth unordered item</li>
<li type="disc">sixth unordered item</li>
<li type="circle">seventh unordered item</li>
<li type="square">eigth unordered item</li>
<li type="none">ninth unordered item</li>
</ul>
</body>
</html>

View file

@ -0,0 +1,14 @@
<!doctype html>
<meta charset=utf-8>
<title>li@type: unsupported type: lower-alpha</title>
<link rel=match href=li-type-unsupported-ref.html>
<li type=lower-alpha>first item</li>
<li type=LOWER-ALPHA>second item</li>
<ol>
<li type=lower-alpha>first ordered item</li>
<li type=LOWER-ALPHA>second ordered item</li>
</ol>
<ul>
<li type=lower-alpha>first unordered item</li>
<li type=LOWER-ALPHA>second unordered item</li>
</ul>

View file

@ -0,0 +1,14 @@
<!doctype html>
<meta charset=utf-8>
<title>li@type: unsupported type: lower-roman</title>
<link rel=match href=li-type-unsupported-ref.html>
<li type=lower-roman>first item</li>
<li type=LOWER-ROMAN>second item</li>
<ol>
<li type=lower-roman>first ordered item</li>
<li type=LOWER-ROMAN>second ordered item</li>
</ol>
<ul>
<li type=lower-roman>first unordered item</li>
<li type=LOWER-ROMAN>second unordered item</li>
</ul>

View file

@ -0,0 +1,13 @@
<!doctype html>
<meta charset=utf-8>
<title>li@type: unsupported types</title>
<li>first item</li>
<li>second item</li>
<ol>
<li>first ordered item</li>
<li>second ordered item</li>
</ol>
<ul>
<li>first unordered item</li>
<li>second unordered item</li>
</ul>

View file

@ -0,0 +1,14 @@
<!doctype html>
<meta charset=utf-8>
<title>li@type: unsupported type: upper-alpha</title>
<link rel=match href=li-type-unsupported-ref.html>
<li type=upper-alpha>first item</li>
<li type=UPPER-ALPHA>second item</li>
<ol>
<li type=upper-alpha>first ordered item</li>
<li type=UPPER-ALPHA>second ordered item</li>
</ol>
<ul>
<li type=upper-alpha>first unordered item</li>
<li type=UPPER-ALPHA>second unordered item</li>
</ul>

View file

@ -0,0 +1,14 @@
<!doctype html>
<meta charset=utf-8>
<title>li@type: unsupported type: upper-roman</title>
<link rel=match href=li-type-unsupported-ref.html>
<li type=upper-roman>first item</li>
<li type=UPPER-ROMAN>second item</li>
<ol>
<li type=upper-roman>first ordered item</li>
<li type=UPPER-ROMAN>second ordered item</li>
</ol>
<ul>
<li type=upper-roman>first unordered item</li>
<li type=UPPER-ROMAN>second unordered item</li>
</ul>

View file

@ -0,0 +1,21 @@
<!doctype html>
<meta charset=utf-8>
<title>ul@type: supported types</title>
<style>
.disc {
list-style-type: disc;
}
.circle {
list-style-type: circle;
}
.square {
list-style-type: square;
}
.none {
list-style-type: none;
}
</style>
<ul class="disc"><li>first disc</li><li>second disc</li></ul>
<ul class="circle"><li>first circle</li><li>second circle</li></ul>
<ul class="square"><li>first square</li><li>second square</li></ul>
<ul class="none"><li>first none</li><li>second none</li></ul>

View file

@ -0,0 +1,8 @@
<!doctype html>
<meta charset=utf-8>
<title>ul@type: supported types</title>
<link rel=match href=ul-type-supported-ref.html>
<ul type=disc><li>first disc</li><li>second disc</li></ul>
<ul type=circle><li>first circle</li><li>second circle</li></ul>
<ul type=square><li>first square</li><li>second square</li></ul>
<ul type=none><li>first none</li><li>second none</li></ul>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ul@type: supported types</title>
<link rel="match" href="ul-type-supported-ref.html"/>
</head>
<body>
<ul type="disc"><li>first disc</li><li>second disc</li></ul>
<ul type="circle"><li>first circle</li><li>second circle</li></ul>
<ul type="square"><li>first square</li><li>second square</li></ul>
<ul type="none"><li>first none</li><li>second none</li></ul>
</body>
</html>

View file

@ -0,0 +1,7 @@
<!doctype html>
<meta charset=utf-8>
<title>ul@type: unsupported type: decimal</title>
<link rel=match href=ul-type-unsupported-ref.html>
<ul type=decimal><li>first item</li><li>second item</li></ul>
<ul type=DECIMAL><li>first item</li><li>second item</li></ul>
<ul type=1><li>first item</li><li>second item</li></ul>

View file

@ -0,0 +1,7 @@
<!doctype html>
<meta charset=utf-8>
<title>ul@type: unsupported type: lower-alpha</title>
<link rel=match href=ul-type-unsupported-ref.html>
<ul type=lower-alpha><li>first item</li><li>second item</li></ul>
<ul type=LOWER-ALPHA><li>first item</li><li>second item</li></ul>
<ul type=a><li>first item</li><li>second item</li></ul>

View file

@ -0,0 +1,7 @@
<!doctype html>
<meta charset=utf-8>
<title>ul@type: unsupported type: lower-roman</title>
<link rel=match href=ul-type-unsupported-ref.html>
<ul type=lower-roman><li>first item</li><li>second item</li></ul>
<ul type=LOWER-ROMAN><li>first item</li><li>second item</li></ul>
<ul type=i><li>first item</li><li>second item</li></ul>

View file

@ -0,0 +1,6 @@
<!doctype html>
<meta charset=utf-8>
<title>ul@type: unsupported types</title>
<ul><li>first item</li><li>second item</li></ul>
<ul><li>first item</li><li>second item</li></ul>
<ul><li>first item</li><li>second item</li></ul>

View file

@ -0,0 +1,7 @@
<!doctype html>
<meta charset=utf-8>
<title>ul@type: unsupported type: upper-alpha</title>
<link rel=match href=ul-type-unsupported-ref.html>
<ul type=upper-alpha><li>first item</li><li>second item</li></ul>
<ul type=UPPER-ALPHA><li>first item</li><li>second item</li></ul>
<ul type=A><li>first item</li><li>second item</li></ul>

View file

@ -0,0 +1,7 @@
<!doctype html>
<meta charset=utf-8>
<title>ul@type: unsupported type: upper-roman</title>
<link rel=match href=ul-type-unsupported-ref.html>
<ul type=upper-roman><li>first item</li><li>second item</li></ul>
<ul type=UPPER-ROMAN><li>first item</li><li>second item</li></ul>
<ul type=I><li>first item</li><li>second item</li></ul>

View file

@ -0,0 +1,112 @@
<!doctype html>
<meta charset=utf-8>
<title>Parsing of meta refresh</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<style>
iframe { display:none }
</style>
<body>
<script>
// failure to parse is []
// success to parse is [time, url] where url is unresolved
var tests_arr = [
{input: '', expected: []},
{input: '1', expected: [1, 'refresh.sub.html']},
{input: '1 ', expected: [1, 'refresh.sub.html']},
{input: '1\t', expected: [1, 'refresh.sub.html']},
{input: '1\r', expected: [1, 'refresh.sub.html']},
{input: '1\n', expected: [1, 'refresh.sub.html']},
{input: '1\f', expected: [1, 'refresh.sub.html']},
{input: '1;', expected: [1, 'refresh.sub.html']},
{input: '1,', expected: [1, 'refresh.sub.html']},
{input: '1; url=foo', expected: [1, 'foo']},
{input: '1, url=foo', expected: [1, 'foo']},
{input: '1 url=foo', expected: [1, 'foo']},
{input: '1;\turl=foo', expected: [1, 'foo']},
{input: '1,\turl=foo', expected: [1, 'foo']},
{input: '1\turl=foo', expected: [1, 'foo']},
{input: '1;\rurl=foo', expected: [1, 'foo']},
{input: '1,\rurl=foo', expected: [1, 'foo']},
{input: '1\rurl=foo', expected: [1, 'foo']},
{input: '1;\nurl=foo', expected: [1, 'foo']},
{input: '1,\nurl=foo', expected: [1, 'foo']},
{input: '1\nurl=foo', expected: [1, 'foo']},
{input: '1;\furl=foo', expected: [1, 'foo']},
{input: '1,\furl=foo', expected: [1, 'foo']},
{input: '1\furl=foo', expected: [1, 'foo']},
{input: '1url=foo', expected: []},
{input: '1x;url=foo', expected: []},
{input: '1 x;url=foo', expected: [1, 'x;url=foo']},
{input: '1;;url=foo', expected: [1, ';url=foo']},
{input: ' 1 ; url = foo', expected: [1, 'foo']},
{input: ' 1 , url = foo', expected: [1, 'foo']},
{input: ' 1 ; foo', expected: [1, 'foo']},
{input: ' 1 , foo', expected: [1, 'foo']},
{input: ' 1 url = foo', expected: [1, 'foo']},
{input: '1; url=foo ', expected: [1, 'foo']},
{input: '1; url=f\to\no', expected: [1, 'foo']},
{input: '1; url="foo"bar', expected: [1, 'foo']},
{input: '1; url=\'foo\'bar', expected: [1, 'foo']},
{input: '1; url="foo\'bar', expected: [1, 'foo\'bar']},
{input: '1; url foo', expected: [1, 'url foo']},
{input: '1; urlfoo', expected: [1, 'urlfoo']},
{input: '1; urfoo', expected: [1, 'urfoo']},
{input: '1; ufoo', expected: [1, 'ufoo']},
{input: '1; "foo"bar', expected: [1, 'foo']},
{input: '; foo', expected: []},
{input: ', foo', expected: []},
{input: 'foo', expected: []},
{input: '+1; url=foo', expected: []},
{input: '-1; url=foo', expected: []},
{input: '+0; url=foo', expected: []},
{input: '-0; url=foo', expected: []},
{input: '0; url=foo', expected: [0, 'foo']},
{input: '+1; foo', expected: []},
{input: '-1; foo', expected: []},
{input: '+0; foo', expected: []},
{input: '-0; foo', expected: []},
{input: '0; foo', expected: [0, 'foo']},
{input: '+1', expected: []},
{input: '-1', expected: []},
{input: '+0', expected: []},
{input: '-0', expected: []},
{input: '0', expected: [0, 'refresh.sub.html']},
{input: '1.9; url=foo', expected: [1, 'foo']},
{input: '1.9..5.; url=foo', expected: [1, 'foo']},
{input: '.9; url=foo', expected: []},
];
tests_arr.forEach(function(test_obj) {
async_test(function(t) {
var iframe = document.createElement('iframe');
t.add_cleanup(function() {
document.body.removeChild(iframe);
});
iframe.src = 'support/refresh.sub.html?input=' + encodeURIComponent(test_obj.input);
document.body.appendChild(iframe);
var loadCount = 0;
iframe.onload = t.step_func(function() {
loadCount++;
if (test_obj.expected.length === 0) {
assert_equals(iframe.contentDocument.body.textContent, 'no redirect\n');
if (loadCount === 1) {
setTimeout(function() {
t.done();
}, 3000); // want to make sure it doesn't redirect when it shouldn't
} else {
assert_unreached('Got > 1 load events');
}
} else {
if (loadCount === 2) {
var path = iframe.contentWindow.location.pathname;
assert_equals(decodeURIComponent(path.substr(path.lastIndexOf('/') + 1)), test_obj.expected[1]);
t.done();
}
}
});
}, format_value(test_obj.input));
});
</script>

View file

@ -0,0 +1 @@
<!doctype html><meta http-equiv=refresh content="{{GET[input]}}">no redirect

View file

@ -108,4 +108,8 @@ PARSE-FAILED:content-security-policy/svg/including.sub.svg
#Helper files that aren't valid XML
PARSE-FAILED:dom/nodes/Document-createElement-namespace-tests/empty.xml
PARSE-FAILED:dom/nodes/Document-createElement-namespace-tests/minimal_html.xml
PARSE-FAILED:dom/nodes/Document-createElement-namespace-tests/minimal_html.xml
# Git submodules are not currently scanned
*:tools/*
*:resources/*

View file

@ -0,0 +1,21 @@
<!doctype html>
<meta charset=utf-8>
<title>URL historical tests</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
var objects = [
[function() { return window.location }, "location object"],
[function() { return document.createElement("a") }, "a element"],
[function() { return document.createElement("area") }, "area element"],
];
objects.forEach(function(o) {
test(function() {
var object = o[0]();
assert_false("searchParams" in object,
o[1] + " should not have a searchParams attribute");
}, "searchParams on " + o[1]);
});
</script>

View file

@ -0,0 +1,8 @@
importScripts("/resources/testharness.js");
test(function() {
assert_false("searchParams" in self.location,
"location object should not have a searchParams attribute");
}, "searchParams on location object");
done();