Skip to content

Commit

Permalink
Update web-platform-tests to revision 38bd28fe2368c650cf6e57be205cf31…
Browse files Browse the repository at this point in the history
…18dbd4997
  • Loading branch information
servo-wpt-sync committed Feb 26, 2019
1 parent a28e15e commit 85fe63f
Show file tree
Hide file tree
Showing 165 changed files with 2,144 additions and 2,644 deletions.
1,151 changes: 499 additions & 652 deletions tests/wpt/metadata/MANIFEST.json

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions tests/wpt/metadata/WebIDL/ecmascript-binding/constructors.html.ini
@@ -0,0 +1,25 @@
[constructors.html]
[Subclass constructor in child window]
expected: FAIL

[Constructor in child window with bad NewTarget from parent window]
expected: FAIL

[Subclass constructor in parent window]
expected: FAIL

[Constructor in parent window with normal NewTarget from child window]
expected: FAIL

[Subclass constructor in child window with parent class in parent window]
expected: FAIL

[Constructor in parent window with bad NewTarget from child window]
expected: FAIL

[Constructor in child window with normal NewTarget from parent window]
expected: FAIL

[Subclass constructor in parent window with parent class in child window]
expected: FAIL

2 changes: 2 additions & 0 deletions tests/wpt/metadata/css/CSS2/text/text-indent-wrap-001.xht.ini
@@ -0,0 +1,2 @@
[text-indent-wrap-001.xht]
expected: FAIL

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Expand Up @@ -107,9 +107,6 @@
[Matching font-style: 'oblique 10deg' should prefer 'oblique 0deg' over 'oblique -50deg -20deg']
expected: FAIL

[Matching font-style: 'oblique 10deg' should prefer 'oblique -50deg -20deg' over 'oblique -40deg -30deg']
expected: FAIL

[Matching font-style: 'oblique 0deg' should prefer 'oblique 0deg' over 'oblique 5deg']
expected: FAIL

Expand All @@ -134,9 +131,6 @@
[Matching font-style: 'oblique -10deg' should prefer 'oblique -60deg -30deg' over 'oblique -50deg -40deg']
expected: FAIL

[Matching font-style: 'oblique -10deg' should prefer 'oblique -50deg -40deg' over 'italic']
expected: FAIL

[Matching font-style: 'oblique -10deg' should prefer 'italic' over 'oblique 0deg 10deg']
expected: FAIL

Expand Down Expand Up @@ -317,12 +311,6 @@
[Matching font-style: 'oblique 0deg' should prefer 'oblique 5deg' over 'oblique 15deg 20deg']
expected: FAIL

[Matching font-weight: '399' should prefer '500 501' over '502 510']
expected: FAIL

[Matching font-stretch: '100%' should prefer '100%' over '110% 120%']
expected: FAIL

[Matching font-style: 'oblique 0deg' should prefer 'oblique 40deg 50deg' over 'italic']
expected: FAIL

Expand Down
@@ -0,0 +1,2 @@
[white-space-wrap-after-nowrap-001.html]
expected: FAIL
2 changes: 1 addition & 1 deletion tests/wpt/metadata/encoding/single-byte-decoder.html.ini
Expand Up @@ -32,7 +32,7 @@


[single-byte-decoder.html?XMLHttpRequest]
expected: TIMEOUT
expected: CRASH
[ISO-8859-2: iso_8859-2:1987 (XMLHttpRequest)]
expected: FAIL

Expand Down
@@ -0,0 +1,4 @@
[javascript-url-abort-return-value-string.tentative.html]
[Aborting fetch for javascript:string navigation]
expected: FAIL

This file was deleted.

@@ -0,0 +1,4 @@
[navigation-unload-same-origin-fragment.html]
[Tests that a fragment navigation in the unload handler will not block the initial navigation]
expected: FAIL

This file was deleted.

This file was deleted.

This file was deleted.

@@ -0,0 +1,4 @@
[activation-behavior.window.html]
[<a> that is not connected should be followed]
expected: FAIL

@@ -0,0 +1,2 @@
[script-onerror-insertion-point-2.html]
expected: TIMEOUT
@@ -1,5 +1,4 @@
[realtimeanalyser-fft-scaling.html]
expected: TIMEOUT
[X 2048-point FFT peak position is not equal to 64. Got 0.]
expected: FAIL

Expand Down
@@ -1,5 +1,6 @@
[003.html]
type: testharness
expected: ERROR
[shared]
expected: FAIL

2 changes: 2 additions & 0 deletions tests/wpt/mozilla/meta/css/transition_calc_implicit.html.ini
@@ -0,0 +1,2 @@
[transition_calc_implicit.html]
expected: TIMEOUT
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<script>
window.badNewTarget = function() {};
badNewTarget.prototype = 8;

window.DOMParserSubclass = class extends DOMParser {}
window.ForeignDOMParserSubclass = class extends parent.DOMParser {}
</script>
@@ -0,0 +1,96 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Realm for constructed objects</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
function object_realm(dp) {
// Note that browsers use the URL of the relevant global object's associated
// Document.
// https://github.com/w3c/DOM-Parsing/issues/46
var url = DOMParser.prototype.parseFromString.call(dp, "x", "text/html").documentURI;
var file = url.slice(url.lastIndexOf("/") + 1);
switch (file) {
case "constructors.html":
return "parent window";
case "constructors-support.html":
return "child window";
default:
return "???";
}
}

async_test(function() {
var iframe = document.createElement("iframe");
iframe.onload = this.step_func_done(function() {
var child = iframe.contentWindow;
test(function() {
var dp = new DOMParser();
assert_equals(Object.getPrototypeOf(dp), DOMParser.prototype);
assert_equals(object_realm(dp), "parent window");
}, "Normal constructor in parent window");

test(function() {
var dp = new child.DOMParser();
assert_equals(Object.getPrototypeOf(dp), child.DOMParser.prototype);
assert_equals(object_realm(dp), "child window");
}, "Normal constructor in child window");

test(function() {
var dp = Reflect.construct(child.DOMParser, [], DOMParser);
assert_equals(Object.getPrototypeOf(dp), DOMParser.prototype);
assert_equals(object_realm(dp), "child window");
}, "Constructor in child window with normal NewTarget from parent window");

test(function() {
var dp = Reflect.construct(DOMParser, [], child.DOMParser);
assert_equals(Object.getPrototypeOf(dp), child.DOMParser.prototype);
assert_equals(object_realm(dp), "parent window");
}, "Constructor in parent window with normal NewTarget from child window");

test(function() {
class DOMParserSubclass extends DOMParser {}
var dp = new DOMParserSubclass();
assert_equals(Object.getPrototypeOf(dp), DOMParserSubclass.prototype);
assert_equals(object_realm(dp), "parent window");
}, "Subclass constructor in parent window");

test(function() {
var dp = new child.DOMParserSubclass();
assert_equals(Object.getPrototypeOf(dp), child.DOMParserSubclass.prototype);
assert_equals(object_realm(dp), "child window");
}, "Subclass constructor in child window");

test(function() {
class ForeignDOMParserSubclass extends child.DOMParser {}
var dp = new ForeignDOMParserSubclass();
assert_equals(Object.getPrototypeOf(dp), ForeignDOMParserSubclass.prototype);
assert_equals(object_realm(dp), "child window");
}, "Subclass constructor in parent window with parent class in child window");

test(function() {
var dp = new child.ForeignDOMParserSubclass();
assert_equals(Object.getPrototypeOf(dp), child.ForeignDOMParserSubclass.prototype);
assert_equals(object_realm(dp), "parent window");
}, "Subclass constructor in child window with parent class in parent window");

test(function() {
var badNewTarget = function() {};
badNewTarget.prototype = 7;

var dp = Reflect.construct(child.DOMParser, [], badNewTarget);
assert_equals(Object.getPrototypeOf(dp), DOMParser.prototype);
assert_equals(object_realm(dp), "child window");
}, "Constructor in child window with bad NewTarget from parent window");

test(function() {
var dp = Reflect.construct(DOMParser, [], child.badNewTarget);
assert_equals(Object.getPrototypeOf(dp), child.DOMParser.prototype);
assert_equals(object_realm(dp), "parent window");
}, "Constructor in parent window with bad NewTarget from child window");
});
iframe.src = "constructors-support.html";
document.body.appendChild(iframe);
});
</script>
Expand Up @@ -2,6 +2,7 @@
<title>CSS Reftest Reference</title>
<link rel="author" title="L. David Baron" href="https://dbaron.org/" />
<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
<link rel="mismatch" href="text-indent-wrap-001-ref-inline-margin.xht"/>
<meta name="flags" content="" />
<style type="text/css">
p { margin-left: 100px }
Expand Down
Expand Up @@ -2,7 +2,7 @@
<title>CSS Reftest Reference</title>
<link rel="author" title="L. David Baron" href="https://dbaron.org/" />
<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
<link rel="match" href="text-indent-wrap-001-ref-inline-margin.xht"/>
<link rel="mismatch" href="text-indent-wrap-001-notref-block-margin.xht"/>
<meta name="flags" content="" />
<style type="text/css">
i { float: left; height: 0.3em; width: 100px; }
Expand Down
Expand Up @@ -4,7 +4,6 @@
<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
<link rel="help" href="http://www.w3.org/TR/CSS21/text.html#indentation-prop" />
<link rel="match" href="text-indent-wrap-001-ref-inline-margin.xht"/>
<link rel="mismatch" href="text-indent-wrap-001-notref-block-margin.xht"/>
<meta name="flags" content="" />
<style type="text/css">
p { text-indent: 100px }
Expand All @@ -15,4 +14,4 @@ span { background: yellow }
<p><span>This is a long piece of text that will wrap to multiple lines. This is a long piece of text that will wrap to multiple lines. This is a long piece of text that will wrap to multiple lines. This is a long piece of text that will wrap to multiple lines. This is a long piece of text that will wrap to multiple lines. This is a long piece of text that will wrap to multiple lines. This is a long piece of text that will wrap to multiple lines. This is a long piece of text that will wrap to multiple lines. This is a long piece of text that will wrap to multiple lines. This is a long piece of text that will wrap to multiple lines. This is a long piece of text that will wrap to multiple lines. This is a long piece of text that will wrap to multiple lines.</span></p>


</body></html>
</body></html>

This file was deleted.

@@ -0,0 +1,23 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>border-bottom-left-radius: 48px 28px reference</title>
<style type="text/css">
div
{
width: 200px;
height: 100px;

background: orange;
border: 20px solid teal;
border-bottom-left-radius: 48px 28px;
}
</style>
</head>
<body>
<p>The box should have a border-bottom-left-radius of 48px 28px. The
horizontal radius should therefore be clearly larger than the
vertical radius.</p>
<div></div>
</body>
</html>

0 comments on commit 85fe63f

Please sign in to comment.