Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
89263f0
Fix race in wpt /wasm/wasm_local_iframe_test.html ()
Dec 5, 2017
f8f63e2
part 1 - Add internal overflow-clip-box-block/-inline properties and …
Dec 5, 2017
79e857b
P5 Fix race in about-blank-replacement.https.html popup test case.
Dec 7, 2017
41df17b
Upstream :any-link reftest to WPT.
Dec 7, 2017
aba92c0
Accept cookie domains with leading dot character
Dec 7, 2017
a59f446
Move element retrieval WPT tests to single directory.
Dec 7, 2017
8ba9bef
Fix test failures.
Dec 7, 2017
b8fbd4a
Fix timing issue of web-platform test: content-security-policy/style-…
Dec 7, 2017
6be87da
Remove duplicated WebDriver WebIDL test.
Dec 7, 2017
229d087
Remove animationiteration from legacy event listener test, make the t…
moz-wptsync-bot Jan 11, 2018
653d2fb
Handle errors for inline module scripts and ensure we update the modu…
moz-wptsync-bot Jan 11, 2018
90466ec
P1: Update the wpt tests to expect to reject the cors synthesized res…
moz-wptsync-bot Jan 11, 2018
980addd
Fix test code that makes incorrect assumptions about when scripts are…
moz-wptsync-bot Jan 11, 2018
bec3819
Fix test that didn't take account of module scripts' defer scheduling
moz-wptsync-bot Jan 11, 2018
da02690
Fix incorrect custom element type in CustomElementData. f=echen,
moz-wptsync-bot Jan 11, 2018
728ba28
Fix inheritance of animation and transition properties of mismatched …
moz-wptsync-bot Jan 11, 2018
7add142
Stop toggling selectedness state of <option disabled>.
moz-wptsync-bot Jan 11, 2018
ae482ac
Add a test for execution order of inline async module scripts
moz-wptsync-bot Jan 11, 2018
51dbc33
P2 Make about-blank-replacement.https.html check simple about:blank a…
moz-wptsync-bot Jan 11, 2018
f762127
part 2 - [css-ui] Add a 'text-overflow' web platform test.
moz-wptsync-bot Jan 11, 2018
e32cf6a
Safely shutdown Firefox from in delete_session.
moz-wptsync-bot Jan 11, 2018
75f14bc
Use classic pytest output style for WPT.
moz-wptsync-bot Jan 11, 2018
0947439
Explicitly drain all queues on exit,
moz-wptsync-bot Jan 11, 2018
4e7a87e
Fixup call to traceback,
moz-wptsync-bot Jan 11, 2018
f3e215b
Remove obsolete optional parameter `reset_session_id` from `delete_se…
moz-wptsync-bot Jan 11, 2018
ca5113e
Make WebDriver:ElementClear conforming to standard.
moz-wptsync-bot Jan 12, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions content-security-policy/securitypolicyviolation/idl.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
long lineNumber;
long columnNumber;
};

interface Event {
};
</script>
<script type="text/plain" id="tested">
[Constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInitDict)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@
document.addEventListener("securitypolicyviolation", t_spv.step_func_done(function(e) {
assert_equals("style-src", e.violatedDirective);
}));

var l = document.createElement("link");
l.setAttribute("href", "/content-security-policy/style-src/resources/style-src-import.sub.css");
l.setAttribute("rel", "stylesheet");
l.setAttribute("type", "text/css");
document.head.appendChild(l);
</script>
<link href="/content-security-policy/style-src/resources/style-src-import.sub.css" rel=stylesheet type=text/css>
</head>
<body>
<div id='log'></div>
Expand Down
24 changes: 24 additions & 0 deletions css/css-animations/animation-delay-011.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!doctype html>
<meta charset="utf-8">
<title>CSS Animations Test: inherited animation-delay with mismatched animation-name length</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://drafts.csswg.org/css-animations-1/#animations">
<link rel="match" href="animation-common-ref.html">
<style>
div:after {
content: '';
display: block;
width: 100px;
height: 100px;
background: red;
animation: doesntmatter 50s linear infinite,
bg 100s step-end infinite;
animation-play-state: paused;
animation-delay: inherit;
}

@keyframes bg {
50% { background: green; }
}
</style>
<div style="animation-delay: -50s"></div>
62 changes: 62 additions & 0 deletions css/css-ui/text-overflow-026-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Reference: text-overflow with leading white-space</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1403986">
<style type="text/css">
html,body {
color:black; background-color:white; font:16px/1 monospace;
}

.ellipsize {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100px;
border: 1px solid;
}

.inline-block {
display: inline-block;
background: red;
}
</style>
</head>
<body>

<pre>
The test PASS if all of the following are true:
1. there are no red areas
2. the first two blocks display "PASS" but no ellipsis
3. the last three blocks display an ellipsis
</pre>

<div class="ellipsize" style="text-overflow: clip">
<span style="margin-left:5px"></span><span class="inline-block" style="background:lime">
PASS PASS PASS PASS PASS</span>
</div>

<div class="ellipsize" style="text-overflow: clip">
<span style="margin-left:5px"></span>
<span class="inline-block" style="background:lime">
PASS PASS PASS PASS PASS</span>
</div>

<div class="ellipsize">
<span style="margin-left:10px"></span>&nbsp;&#x2026;
</div>

<div class="ellipsize">
&nbsp;&#x2026;
</div>

<div class="ellipsize">
a&#x2026;
</div>

</body>
</html>
67 changes: 67 additions & 0 deletions css/css-ui/text-overflow-026.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
<meta charset="utf-8">
<title>Test: text-overflow with leading white-space</title>
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1403986">
<link rel="help" href="https://www.w3.org/TR/css3-ui/#text-overflow" title="5.2. the 'text-overflow' property">
<link rel="match" href="text-overflow-026-ref.html">
<style type="text/css">
html,body {
color:black; background-color:white; font:16px/1 monospace;
}

.ellipsize {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100px;
border: 1px solid;
}

.inline-block {
display: inline-block;
background: red;
}
</style>
</head>
<body>

<pre>
The test PASS if all of the following are true:
1. there are no red areas
2. the first two blocks display "PASS" but no ellipsis
3. the last three blocks display an ellipsis
</pre>

<div class="ellipsize">
<span style="margin-left:5px"></span><span class="inline-block" style="background:lime">
PASS PASS PASS PASS PASS</span>
</div>

<div class="ellipsize">
<span style="margin-left:5px"></span>
<span class="inline-block" style="background:lime">
PASS PASS PASS PASS PASS</span>
</div>

<div class="ellipsize">
<span style="margin-left:10px"></span>&nbsp;<span class="inline-block">
FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL </span>
</div>

<div class="ellipsize">
&nbsp;<span class="inline-block">
FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL </span>
</div>

<div class="ellipsize">
a<span class="inline-block">
FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL </span>
</div>

</body>
</html>
10 changes: 10 additions & 0 deletions css/selectors/any-link-dynamic-001-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS test reference</title>
<link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
<style>
span { color: green; }
</style>
<body>
<a></a><span>This should be green</span>
</body>
14 changes: 14 additions & 0 deletions css/selectors/any-link-dynamic-001.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS test: Handling of dynamic changes to :any-link selectors</title>
<link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
<link rel="match" href="any-link-dynamic-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/selectors-4/#the-any-link-pseudo">
<style>
span { color: green; }
:any-link + span { color: red; }
</style>
<body onload="window.oldColor = getComputedStyle(document.querySelector('span')).color;
document.querySelector('a').removeAttribute('href');">
<a href=""></a><span>This should be green</span>
</body>
15 changes: 15 additions & 0 deletions custom-elements/Document-createElement.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@

}, 'document.createElement must create an instance of custom elements');

test(function () {
class AutonomousCustomElement extends HTMLElement {};
class IsCustomElement extends HTMLElement {};

customElements.define('autonomous-custom-element', AutonomousCustomElement);
customElements.define('is-custom-element', IsCustomElement);

var instance = document.createElement('autonomous-custom-element', { is: "is-custom-element"});

assert_true(instance instanceof AutonomousCustomElement);
assert_equals(instance.localName, 'autonomous-custom-element');
assert_equals(instance.namespaceURI, 'http://www.w3.org/1999/xhtml', 'A custom element HTML must use HTML namespace');

}, 'document.createElement must create an instance of autonomous custom elements when it has is attribute');

function assert_reports(expected, testFunction, message) {
var uncaughtError = null;
window.onerror = function (message, url, lineNumber, columnNumber, error) { uncaughtError = error; return true; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html>
<head>
<title>Custom Elements: Changes to the HTML parser</title>
<meta name="author" title="John Dai" href="mailto:jdai@mozilla.com">
<meta name="assert" content="HTML parser creates a custom element which contains is attribute">
<link rel="help" href="https://html.spec.whatwg.org/#create-an-element-for-the-token">
<link rel="help" href="https://dom.spec.whatwg.org/#concept-create-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<autonomous-custom-element id="instance1" is="is-custom-element"></autonomous-custom-element>
<script>

class AutonomousCustomElement extends HTMLElement { };
class IsCustomElement extends HTMLElement { };

customElements.define('autonomous-custom-element', AutonomousCustomElement);
customElements.define('is-custom-element', IsCustomElement);

test(function () {
var customElement = document.getElementById('instance1');

assert_true(customElement instanceof HTMLElement, 'A resolved custom element must be an instance of HTMLElement');
assert_false(customElement instanceof HTMLUnknownElement, 'A resolved custom element must NOT be an instance of HTMLUnknownElement');
assert_true(customElement instanceof AutonomousCustomElement, 'A resolved custom element must be an instance of that custom element');
assert_equals(customElement.localName, 'autonomous-custom-element');
assert_equals(customElement.namespaceURI, 'http://www.w3.org/1999/xhtml', 'A custom element HTML must use HTML namespace');

}, 'HTML parser must create a defined autonomous custom element when customElements.define comes after HTML parser creation');

</script>
<autonomous-custom-element id="instance2" is="is-custom-element"></autonomous-custom-element>
<script>

test(function () {
var customElement = document.getElementById('instance2');

assert_true(customElement instanceof HTMLElement, 'A resolved custom element must be an instance of HTMLElement');
assert_false(customElement instanceof HTMLUnknownElement, 'A resolved custom element must NOT be an instance of HTMLUnknownElement');
assert_true(customElement instanceof AutonomousCustomElement, 'A resolved custom element must be an instance of that custom element');
assert_equals(customElement.localName, 'autonomous-custom-element');
assert_equals(customElement.namespaceURI, 'http://www.w3.org/1999/xhtml', 'A custom element HTML must use HTML namespace');

}, 'HTML parser must create a defined autonomous custom element when customElements.define comes before HTML parser creation');

</script>
</body>
</html>
19 changes: 19 additions & 0 deletions custom-elements/upgrading/Node-cloneNode.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,25 @@
'A cloned custom element must be an instance of the custom element');
}, 'Node.prototype.cloneNode(false) must be able to clone a custom element');

test(function () {
class AutonomousCustomElement extends HTMLElement {};
class IsCustomElement extends HTMLElement {};

customElements.define('autonomous-custom-element', AutonomousCustomElement);
customElements.define('is-custom-element', IsCustomElement);

var instance = document.createElement('autonomous-custom-element', { is: "is-custom-element"});
assert_true(instance instanceof HTMLElement);
assert_true(instance instanceof AutonomousCustomElement);

var clone = instance.cloneNode(false);
assert_not_equals(instance, clone);
assert_true(clone instanceof HTMLElement,
'A cloned custom element must be an instance of HTMLElement');
assert_true(clone instanceof AutonomousCustomElement,
'A cloned custom element must be an instance of the custom element');
}, 'Node.prototype.cloneNode(false) must be able to clone as a autonomous custom element when it contains is attribute');

test_with_window(function (contentWindow) {
var contentDocument = contentWindow.document;
class MyCustomElement extends contentWindow.HTMLElement {}
Expand Down
14 changes: 4 additions & 10 deletions dom/events/EventListener-invoke-legacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,16 @@
}

function setupTransition(elem) {
elem.style.transition = '';
requestAnimationFrame(function() {
elem.style.color = 'red';
elem.style.transition = 'color 30ms';
requestAnimationFrame(function() {
elem.style.color = 'green';
});
});
getComputedStyle(elem).color;
elem.style.color = 'green';
elem.style.transition = 'color 30ms';
}

function setupAnimation(elem) {
elem.style.animation = 'test 30ms 2';
elem.style.animation = 'test 30ms';
}

runLegacyEventTest('transitionend', 'webkitTransitionEnd', "TransitionEvent", setupTransition);
runLegacyEventTest('animationend', 'webkitAnimationEnd', "AnimationEvent", setupAnimation);
runLegacyEventTest('animationiteration', 'webkitAnimationIteration', "AnimationEvent", setupAnimation);
runLegacyEventTest('animationstart', 'webkitAnimationStart', "AnimationEvent", setupAnimation);
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<html>
<head>
<title>Inline async module script execution order</title>
<meta name=timeout content=long>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
let loaded = [];
let test = async_test("Inline async module script execution order");
window.addEventListener("load", test.step_func(function() {
assert_array_equals(loaded,
["fast", "fast", "fast", "slow", "slow", "slow"]);
test.done();
}));
</script>
<script type="module" async src="resources/slow-module.js?pipe=trickle(d2)&unique=1"></script>
<script type="module" async>
import "./resources/slow-module.js?pipe=trickle(d2)&unique=2";
loaded.push("slow");
</script>
<script type="module" async src="resources/fast-module.js?unique=1"></script>
<script type="module" async>
import "./resources/fast-module.js?unique=2";
loaded.push("fast");
</script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
<script type="module" src="./cycle-unresolvable-a.js"
onerror="unreachable()" onload="log.push(2)"></script>
<script type="module" src="./cycle-unresolvable.js"
onerror="unreachable()" onload="log.push(3)" async></script>
onerror="unreachable()" onload="log.push(3)"></script>
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@
<script onload="onLoad(test4_load);" onerror="onError(test4_load);" type="module" async>"use strict";onExecute(test4_load);</script>
<script onload="onLoad(test1_error);" onerror="onError(test1_error);" type="module">"use strict";import "./not_found.js";</script>
<script onload="onLoad(test4_error);" onerror="onError(test4_error);" type="module" async>"use strict";import "./not_found.js";</script>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
window.evaluated_module_script = true;
</script>
<script>
test(() => assert_true(window.evaluated_module_script), "module script in XHTML documents should be evaluated.");
var test = async_test("module script in XHTML documents should be evaluated.");
window.addEventListener("load", () => {
test.step(() => { assert_true(window.evaluated_module_script); });
test.done();
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
loaded.push("fast");
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This module is imported with pipe=trickle(d2) to make it load more slowly
// than fast-module.js
loaded.push("slow");
Loading