Bug 1337133 - Remove references to pen and touch in test_action.js; r=jgraham

Pen and touch support will be added this quarter.

MozReview-Commit-ID: GH7CVNoDOIm

--HG--
extra : rebase_source : 48edfc980a663914636ab3be5e786d5f15cfb41c
This commit is contained in:
Maja Frydrychowicz 2017-02-22 16:57:55 -05:00
Родитель 1e1f032a63
Коммит b34023d31b
1 изменённых файлов: 13 добавлений и 12 удалений

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

@ -40,9 +40,9 @@ add_test(function test_processPointerParameters() {
let message = `parametersData: [pointerType: ${parametersData.pointerType}]`;
check(/Unknown pointerType/, message, parametersData);
}
parametersData.pointerType = "pen";
parametersData.pointerType = "mouse"; //TODO "pen";
deepEqual(action.PointerParameters.fromJson(parametersData),
{pointerType: action.PointerType.Pen});
{pointerType: "mouse"}); //TODO action.PointerType.Pen});
run_next_test();
});
@ -188,7 +188,7 @@ add_test(function test_processPointerAction() {
type: "pointer",
id: "some_id",
parameters: {
pointerType: "touch"
pointerType: "mouse" //TODO "touch"
},
};
let actionItems = [
@ -325,7 +325,7 @@ add_test(function test_processInputSourceActionSequencePointer() {
id: "9",
actions: [actionItem],
parameters: {
pointerType: "pen"
pointerType: "mouse" // TODO "pen"
},
};
let expectedAction = new action.Action(
@ -389,13 +389,14 @@ add_test(function test_processPointerActionInputStateMap() {
`type "pointer" with ${wrongInputState.type} in inputState`);
action.inputStateMap.clear();
wrongInputState = new action.InputState.Pointer("pen");
action.inputStateMap.set(id, wrongInputState);
checkErrors(
/to be mapped to InputState whose subtype is/, action.processPointerAction,
[id, parameters, a],
`subtype ${parameters.pointerType} with ${wrongInputState.subtype} in inputState`);
action.inputStateMap.clear();
// TODO - uncomment once pen is supported
//wrongInputState = new action.InputState.Pointer("pen");
//action.inputStateMap.set(id, wrongInputState);
//checkErrors(
// /to be mapped to InputState whose subtype is/, action.processPointerAction,
// [id, parameters, a],
// `subtype ${parameters.pointerType} with ${wrongInputState.subtype} in inputState`);
//action.inputStateMap.clear();
let rightInputState = new action.InputState.Pointer("mouse");
action.inputStateMap.set(id, rightInputState);
@ -474,7 +475,7 @@ add_test(function test_extractActionChain_twoAndThreeTicks() {
id: "7",
actions: mouseActionItems,
parameters: {
pointerType: "touch"
pointerType: "mouse" //TODO "touch"
},
};
let keyActionItems = [