зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1411368 - Automatically fix spaced-comment issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: AOFFadV3JrV --HG-- extra : rebase_source : e06da861796c79f118ac734ceebee22253c0485f
This commit is contained in:
Родитель
4de6bf22b1
Коммит
60e4a05b0d
|
@ -28,7 +28,7 @@
|
|||
context.addHitRegion({control: element});
|
||||
|
||||
var input = getAccessible("showA");
|
||||
var [cnvX, cnvY, /*cnvWidth*/, /*cnvHeight*/] = getBoundsForDOMElm(canv);
|
||||
var [cnvX, cnvY, /* cnvWidth */, /* cnvHeight */] = getBoundsForDOMElm(canv);
|
||||
var [accX, accY, accWidth, accHeight] = getBounds(input);
|
||||
|
||||
var [x, y, w, h] = CSSToDevicePixels(window, kX, kY, kWidth, kHeight);
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
var hitcanvas = getAccessible("hitcanvas");
|
||||
var hitcheck = getAccessible("hitcheck");
|
||||
|
||||
var [hitX, hitY, /*hitWidth, hitHeight */] = getBounds(hitcanvas);
|
||||
var [hitX, hitY, /* hitWidth, hitHeight */] = getBounds(hitcanvas);
|
||||
var [deltaX, deltaY] = CSSToDevicePixels(window, offsetX, offsetY);
|
||||
|
||||
var docAcc = getAccessible(document);
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
function testScrollToPoint() {
|
||||
// scrollToPoint relative screen
|
||||
var anchor = getAccessible("bottom1");
|
||||
var [x, /*y*/] = getPos(anchor);
|
||||
var [x, /* y */] = getPos(anchor);
|
||||
var [docX, docY] = getPos(document);
|
||||
|
||||
anchor.scrollToPoint(COORDTYPE_SCREEN_RELATIVE, docX, docY);
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
// scrollToPoint relative window
|
||||
anchor = getAccessible("bottom2");
|
||||
var [x, /*y*/] = getPos(anchor);
|
||||
var [x, /* y */] = getPos(anchor);
|
||||
var wnd = getRootAccessible().DOMDocument.defaultView;
|
||||
var [screenX, screenY] = CSSToDevicePixels(wnd, wnd.screenX, wnd.screenY);
|
||||
var scrollToX = docX - screenX, scrollToY = docY - screenY;
|
||||
|
@ -39,7 +39,7 @@
|
|||
|
||||
// scrollToPoint relative parent
|
||||
anchor = getAccessible("bottom3");
|
||||
var [x, /*y*/] = getPos(anchor);
|
||||
var [x, /* y */] = getPos(anchor);
|
||||
var [parentX, parentY] = getPos(anchor.parent);
|
||||
var scrollToX = parentX - docX, scrollToY = parentY - docY;
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ function testIsItemSelected(aSelectAcc, aTraversedAcc, aIndexObj, aSelectedChild
|
|||
var childCount = aTraversedAcc.childCount;
|
||||
for (var idx = 0; idx < childCount; idx++) {
|
||||
var child = aTraversedAcc.getChildAt(idx);
|
||||
var [state, /*extraState*/] = getStates(child);
|
||||
var [state, /* extraState */] = getStates(child);
|
||||
if (state & STATE_SELECTABLE) {
|
||||
var isSelected = false;
|
||||
var len = aSelectedChildren.length;
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
if (!acc)
|
||||
return;
|
||||
|
||||
var [state, /*extraState*/] = getStates(aAccOrElmOrID);
|
||||
var [state, /* extraState */] = getStates(aAccOrElmOrID);
|
||||
if (state & STATE_UNAVAILABLE) {
|
||||
var role = getRole(acc);
|
||||
if (role != ROLE_GROUPING) {
|
||||
|
|
|
@ -255,7 +255,7 @@ const TEST_DATA = [
|
|||
]
|
||||
},
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -264,7 +264,7 @@ const TEST_DATA = [
|
|||
]
|
||||
}
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -167,7 +167,7 @@ const TEST_DATA = [
|
|||
]
|
||||
},
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -184,7 +184,7 @@ const TEST_DATA = [
|
|||
]
|
||||
},
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -263,7 +263,7 @@ const TEST_DATA = [
|
|||
]
|
||||
},
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -216,7 +216,7 @@ const TEST_DATA = [
|
|||
]
|
||||
},
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -370,7 +370,7 @@ const TEST_DATA = [
|
|||
]
|
||||
},
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -216,7 +216,7 @@ const TEST_DATA = [
|
|||
]
|
||||
},
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -167,7 +167,7 @@ const TEST_DATA = [
|
|||
]
|
||||
},
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -125,7 +125,7 @@ const TEST_DATA = [
|
|||
]
|
||||
}
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -125,7 +125,7 @@ const TEST_DATA = [
|
|||
]
|
||||
}
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -125,7 +125,7 @@ const TEST_DATA = [
|
|||
]
|
||||
}
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -125,7 +125,7 @@ const TEST_DATA = [
|
|||
]
|
||||
}
|
||||
];
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
yield runEventPopupTests(TEST_URL, TEST_DATA);
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
/*eslint-disable */
|
||||
const INITIAL_SRC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADI5JREFUeNrsWwuQFNUVPf1m5z87szv7HWSWj8CigBFMEFZKiQsB1PgJwUAZg1HBpIQsKmokEhNjWUnFVPnDWBT+KolJYbRMoqUVq0yCClpqiX8sCchPWFwVlt2db7+X93pez7zu6Vn2NxsVWh8987p7pu+9555z7+tZjTGGY3kjOMa34w447oBjfKsY7i/UNM3Y8eFSAkD50Plgw03K5P9gvGv7U5ieeR3PszeREiPNX3/0DL4hjslzhm8THh+OITfXk3dhiv4GDtGPVzCaeJmPLYzuu5qJuWfuw2QTlcN1X9pwQU7LhdZ/ZAseD45cOh9hHvDkc/yAF/DNhdb5Mrr3PvBMaAYW8fMSIi2G497IMEK/YutGtAYr6+ej+nxu/NN8Ks3N7AR6HgcLz0Eg1Ljg1UcxZzi5qewIkMYLRweTr2Kzp+nmyXAd5pS3XQDd+N/4h4zg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t98QKMq1FRmDfx3vxty102k0PM4ssEnvuz5+G26Ij4yDpz6z9fV8bkyIkqBFkhej0Ib+ZQ34XJK9AfozaiimqIoX3Jp3tiISrcfYpuN2+iFph/02P36PNC9fVcCnp6H9jYouKyfaWufz5Tp9tVxcUniw7IohZv4dZz81/ns67z3AYPrc2n0+Ix2q8k0PWjgBy88XaibnfK9A+5LdDY2Ivhy36fbT8Zv3Lb1U1qLqUxorXEEXIs0mjjrtxoTZWtdvigNs2sgPiujTv6DIZLld6b/V5742JZV3fUsUVFy5gdsNtKWFzUCEVbNepD1MkSMVbsb6SZm7jI3/zODtQKgUMsOw8wDZ63t5xcV1TnaEAxoc6wrqY+Fj+N4DsqOnhOIdicrQSm1MPYCPlIqHn5bbHg8/bj2D3QfZnCX3mpAICDZV8jH5kpbZqTD0W+DxaA74CWzLN2nd14OlL72J38Lf7+TjC7dadZFDoZJQPrtaIKL/G0L6ktptPZVJ8fMqHYPZOKYPMyQGadIJfDvdXwAFiZOTvDBPydf5vk4rWA+RfdhBlaF/yDDBRoMu9pfnSjv/p7DG+HXfAcQcc49v/BBgAcFAO4DmB2GQAAAAASUVORK5CYII=";
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
const UPDATED_SRC = URL_ROOT + "doc_markup_tooltip.png";
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ const DATA_URL_INLINE_STYLE='color: red; background: url("data:image/png;base64,
|
|||
const DATA_URL_INLINE_STYLE_COLLAPSED='color: red; background: url("data:image/png;base64,iVBORw0KG\u2026NDDeNGe4Ug9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC");';
|
||||
const DATA_URL_ATTRIBUTE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD///+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4Ug9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC";
|
||||
const DATA_URL_ATTRIBUTE_COLLAPSED = "data:image/png;base64,iVBORw0K\u20269/AFGGFyjOXZtQAAAAAElFTkSuQmCC";
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
var TEST_URL = "data:text/html,<div>markup-view attributes addition test</div>";
|
||||
var TEST_DATA = [{
|
||||
|
|
|
@ -11,7 +11,7 @@ const TEST_URL = URL_ROOT + "doc_markup_edit.html";
|
|||
/*eslint-disable */
|
||||
const LONG_ATTRIBUTE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ-ABCDEFGHIJKLMNOPQRSTUVWXYZ-ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ-ABCDEFGHIJKLMNOPQRSTUVWXYZ-ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
const LONG_ATTRIBUTE_COLLAPSED = "ABCDEFGHIJKLMNOPQRSTUVWXYZ-ABCDEFGHIJKLMNOPQRSTUVWXYZ-ABCDEF\u2026UVWXYZ-ABCDEFGHIJKLMNOPQRSTUVWXYZ-ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
/*eslint-enable */
|
||||
/* eslint-enable */
|
||||
|
||||
add_task(function* () {
|
||||
let {inspector, testActor} = yield openInspectorForURL(TEST_URL);
|
||||
|
|
|
@ -374,8 +374,8 @@ action.PointerOrigin.get = function(obj) {
|
|||
action.PointerType = {
|
||||
Mouse: "mouse",
|
||||
// TODO For now, only mouse is supported
|
||||
//Pen: "pen",
|
||||
//Touch: "touch",
|
||||
// Pen: "pen",
|
||||
// Touch: "touch",
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -122,7 +122,7 @@ frame.Manager = class {
|
|||
}
|
||||
}
|
||||
}
|
||||
/*eslint-enable*/
|
||||
/* eslint-enable*/
|
||||
|
||||
getOopFrame(winId, frameId) {
|
||||
// get original frame window
|
||||
|
|
|
@ -200,7 +200,7 @@ add_task(async function test_add_visits_to_database() {
|
|||
// calculated excluding download transitions, but the query includes
|
||||
// downloads.
|
||||
// TODO: Bug 488966 could fix this behavior.
|
||||
//Ci.nsINavHistoryService.TRANSITION_DOWNLOAD,
|
||||
// Ci.nsINavHistoryService.TRANSITION_DOWNLOAD,
|
||||
];
|
||||
|
||||
function newTimeInMicroseconds() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче