Bug 1472900 - Make some closures for arrow function a single line. r=birtles

MozReview-Commit-ID: 2uWYp495Ibl

--HG--
extra : rebase_source : 6397d54051e2ec45c77361f5545e4c25fd431eb6
This commit is contained in:
Hiroyuki Ikezoe 2018-07-05 06:13:21 +09:00
parent 067150dbd6
commit 84b3da673c
2 changed files with 6 additions and 16 deletions

View File

@ -619346,7 +619346,7 @@
"testharness"
],
"web-animations/timing-model/timelines/update-and-send-events.html": [
"1f60aba2afa57960f17f19aa5ea1ff0370ec0b74",
"6ef855775c8fbb7220b0fd7f909b23cc8a64aebe",
"testharness"
],
"web-nfc/OWNERS": [

View File

@ -19,9 +19,7 @@ promise_test(async t => {
await animation.ready;
let rAFReceived = false;
requestAnimationFrame(() => {
rAFReceived = true;
});
requestAnimationFrame(() => rAFReceived = true);
const eventWatcher = new EventWatcher(t, animation, 'cancel');
animation.cancel();
@ -42,9 +40,7 @@ promise_test(async t => {
await animation.ready;
let rAFReceived = false;
requestAnimationFrame(() => {
rAFReceived = true;
});
requestAnimationFrame(() => rAFReceived = true);
const eventWatcher = new EventWatcher(t, animation, 'finish');
animation.finish();
@ -109,12 +105,8 @@ promise_test(async t => {
receivedEvents.push({ type, timeStamp });
}
div.onanimationcancel = event => {
receiveEvent(event.type, event.timeStamp);
};
div.ontransitioncancel = event => {
receiveEvent(event.type, event.timeStamp);
};
div.onanimationcancel = event => receiveEvent(event.type, event.timeStamp);
div.ontransitioncancel = event => receiveEvent(event.type, event.timeStamp);
getComputedStyle(div).marginLeft;
div.style = 'animation: anim 100s; ' +
@ -164,9 +156,7 @@ promise_test(async t => {
const anim = div.getAnimations()[0];
let receivedEvents = [];
anim.oncancel = event => {
receivedEvents.push(event);
};
anim.oncancel = event => receivedEvents.push(event);
const eventWatcher = new EventWatcher(t, div, 'transitionstart');
await eventWatcher.wait_for('transitionstart');