mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Auto merge of #24732 - jdm:wptfixes, r=asajeffrey
Address upstream WPT test harness changes https://github.com/web-platform-tests/wpt/pull/19449 and https://github.com/web-platform-tests/wpt/pull/19993 caused some of our proprietary tests to silently start to fail. This addresses all of the breakage.
This commit is contained in:
commit
04119ed84b
10 changed files with 24 additions and 44 deletions
|
@ -18470,7 +18470,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/animation-removed-node.html": [
|
"mozilla/animation-removed-node.html": [
|
||||||
"a2f9dfe284a22a6241290c86841172387dcdbeb6",
|
"d8845c873181c87cfde8bfdfbe31924ea6b73e59",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/binding_keyword.html": [
|
"mozilla/binding_keyword.html": [
|
||||||
|
@ -18946,7 +18946,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/inline-event-listener-panic.html": [
|
"mozilla/inline-event-listener-panic.html": [
|
||||||
"2418893bc058666a018498dbf414faae2f22ffc5",
|
"acde98607ae4bfa19cf894ce7c81b2e6b7071e14",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/inline_event_handler.html": [
|
"mozilla/inline_event_handler.html": [
|
||||||
|
@ -18970,7 +18970,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/interfaces.js": [
|
"mozilla/interfaces.js": [
|
||||||
"786f6e12515ff71bc83f34e4ffa32e7e38b1cd26",
|
"c46c336f8a8a2db777f75d6236b1241c717a02dd",
|
||||||
"support"
|
"support"
|
||||||
],
|
],
|
||||||
"mozilla/interfaces.worker.js": [
|
"mozilla/interfaces.worker.js": [
|
||||||
|
@ -19646,7 +19646,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/window_requestAnimationFrame2.html": [
|
"mozilla/window_requestAnimationFrame2.html": [
|
||||||
"237ef108c5ccaa842a165ee3a93df8fde1964b30",
|
"3227b28d5b249c683e8200cf70a6393181cec7f5",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/window_resize_not_triggered_on_load.html": [
|
"mozilla/window_resize_not_triggered_on_load.html": [
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
[animation-removed-node.html]
|
|
||||||
prefs: [css.animations.testing.enabled:true]
|
|
||||||
expected: ERROR
|
|
||||||
[animation-removed-node]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
[inline-event-listener-panic.html]
|
|
||||||
expected: ERROR
|
|
|
@ -1,4 +0,0 @@
|
||||||
[interfaces.html]
|
|
||||||
[Interfaces exposed on the window]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[interfaces.worker.html]
|
|
||||||
[interfaces]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
[window_requestAnimationFrame2.html]
|
|
||||||
type: testharness
|
|
||||||
expected: ERROR
|
|
||||||
[Test throwing an error inside requestAnimationFrame callback]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ div.test { animation: boo 1s infinite; }
|
||||||
// Verify that the previous animations are no longer considered active.
|
// Verify that the previous animations are no longer considered active.
|
||||||
assert_equals(window.runningAnimationCount, 0);
|
assert_equals(window.runningAnimationCount, 0);
|
||||||
t.done();
|
t.done();
|
||||||
});
|
}));
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
}, "Animations are no longer active when a node can't be animated.");
|
}, "Animations are no longer active when a node can't be animated.");
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
<script src="/resources/testharnessreport.js"></script>
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
var e = document.body;
|
test(function() {
|
||||||
e.setAttribute("onclick", "console.log('x')");
|
var e = document.body;
|
||||||
assert_not_equals(e.onclick, null);
|
e.setAttribute("onclick", "console.log('x')");
|
||||||
assert_not_equals(e.onclick, null);
|
assert_not_equals(e.onclick, null);
|
||||||
done();
|
assert_not_equals(e.onclick, null);
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -55,7 +55,7 @@ function test_interfaces(interfaceNamesInGlobalScope) {
|
||||||
var sources = [
|
var sources = [
|
||||||
ecmaGlobals,
|
ecmaGlobals,
|
||||||
interfaceNamesInGlobalScope,
|
interfaceNamesInGlobalScope,
|
||||||
["AssertionError", "EventWatcher"],
|
["AssertionError", "EventWatcher", "PreconditionFailedError"],
|
||||||
];
|
];
|
||||||
|
|
||||||
var interfaceMap = {};
|
var interfaceMap = {};
|
||||||
|
|
|
@ -6,18 +6,19 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
var stepCalled = false;
|
setup({allow_uncaught_exception: true});
|
||||||
function step() {
|
async_test(function(t) {
|
||||||
if (stepCalled) {
|
var throwDidNotInterrupt = false;
|
||||||
setTimeout(done, 0);
|
function step() {
|
||||||
} else {
|
window.requestAnimationFrame(t.step_func(function() {
|
||||||
stepCalled = true;
|
assert_true(throwDidNotInterrupt, "rAF should not throw errors");
|
||||||
window.requestAnimationFrame(step);
|
t.done();
|
||||||
|
}));
|
||||||
|
throw new Error();
|
||||||
}
|
}
|
||||||
throw new Error();
|
window.requestAnimationFrame(step);
|
||||||
}
|
throwDidNotInterrupt = true;
|
||||||
window.requestAnimationFrame(step);
|
});
|
||||||
assert_equals(true, true, "rAF should not throw errors");
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue