Bug 1295010 - Removed testActor from highlighterHelper in inspector tests; r=me

MozReview-Commit-ID: GMksl81iGcp
This commit is contained in:
Patrick Brosset 2016-09-07 11:10:49 +02:00
Родитель 46b536cd2f
Коммит 347d0b7f04
2 изменённых файлов: 8 добавлений и 9 удалений

Просмотреть файл

@ -77,21 +77,22 @@ const MOVE_EVENTS_DATA = [
];
add_task(function* () {
let helper = yield openInspectorForURL("data:text/html;charset=utf-8,"
+ encodeURIComponent(TEST_URI)
).then(getHighlighterHelperFor(HIGHLIGHTER_TYPE));
let {inspector, testActor} = yield openInspectorForURL(
"data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
let helper = yield getHighlighterHelperFor(HIGHLIGHTER_TYPE)({inspector, testActor});
helper.prefix = ID;
yield helper.show("html");
yield respondsToMoveEvents(helper);
yield respondsToMoveEvents(helper, testActor);
yield respondsToReturnAndEscape(helper);
helper.finalize();
});
function* respondsToMoveEvents(helper) {
function* respondsToMoveEvents(helper, testActor) {
info("Checking that the eyedropper responds to events from the mouse and keyboard");
let {mouse, testActor} = helper;
let {mouse} = helper;
let {width, height} = yield testActor.getBoundingClientRect("html");
for (let {type, x, y, key, shift, expected, desc} of MOVE_EVENTS_DATA) {

Просмотреть файл

@ -531,9 +531,7 @@ const getHighlighterHelperFor = (type) => Task.async(
finalize: function* () {
highlightedNode = null;
yield highlighter.finalize();
},
testActor: testActor
}
};
}
);