Skip to content

Commit

Permalink
Replace general source type with none source type
Browse files Browse the repository at this point in the history
Based on the web driver spec the general source type
string should be "none".
https://w3c.github.io/webdriver/#input-source-state
  • Loading branch information
NavidZ committed Nov 15, 2018
1 parent 4bf9cbf commit 0c9db14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/testdriver-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
function Actions() {
this.sourceTypes = new Map([["key", KeySource],
["pointer", PointerSource],
["general", GeneralSource]]);
["none", GeneralSource]]);
this.sources = new Map();
this.sourceOrder = [];
for (let sourceType of this.sourceTypes.keys()) {
Expand All @@ -17,7 +17,7 @@
for (let sourceType of this.sourceTypes.keys()) {
this.currentSources.set(sourceType, null);
}
this.createSource("general");
this.createSource("none");
this.tickIdx = 0;
}

Expand Down Expand Up @@ -62,7 +62,7 @@
* If no name is passed, a new source with the given type is
* created.
*
* @param {String} type - Source type ('general', 'key', or 'pointer')
* @param {String} type - Source type ('none', 'key', or 'pointer')
* @param {String?} name - Name of the source
* @returns {Source} Source object for that source.
*/
Expand Down Expand Up @@ -187,7 +187,7 @@
* @returns {Actions}
*/
pause: function(duration) {
this.getSource("general").addPause(this, duration);
this.getSource("none").addPause(this, duration);
return this;
},

Expand Down

0 comments on commit 0c9db14

Please sign in to comment.