Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

added rotation routes#67

Merged
imurchie merged 1 commit intoappium:masterfrom
rafe-g:master
Jul 19, 2016
Merged

added rotation routes#67
imurchie merged 1 commit intoappium:masterfrom
rafe-g:master

Conversation

@rafe-g
Copy link
Copy Markdown
Contributor

@rafe-g rafe-g commented Jul 17, 2016

@jlipps @imurchie

I know this involves changing the hash for the gulp tests. But before thats done want to make sure this pull is ok.

Here is the spec for this route

@imurchie
Copy link
Copy Markdown
Contributor

The spec seems to say that it should accept a DeviceRotation object, but their examples are sending x, y, and z values (https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#devicerotation). Not sure which is to be taken as correct.

@jlipps
Copy link
Copy Markdown
Member

jlipps commented Jul 18, 2016

DeviceRotation is the "name" of the object type, similarly to NetworkConnection objects. that name doesn't actually need to show up in the JSONWP though.

@imurchie
Copy link
Copy Markdown
Contributor

Ah. Ok. That needs to be reflected here, then.

@rafe-g
Copy link
Copy Markdown
Contributor Author

rafe-g commented Jul 18, 2016

Are we saying the post part should change like this?

POST: {command: 'setRotation', payloadParams: {required: ['rotation']}}

to :

POST: { command: 'setRotation', payloadParams: { unwrap: 'parameters', required: ['type'] } }

@imurchie
Copy link
Copy Markdown
Contributor

No. The spec says the payload should be something like

{"name": "rotation", "parameters": {"x": 0, "y": 0, "z": 0}}

So in the mjsonwp implementation here, it should be something like

payloadParams: {unwrap: 'parameters', required: ['x', 'y', 'z']}

@rafe-g
Copy link
Copy Markdown
Contributor Author

rafe-g commented Jul 19, 2016

updated mobile spec here

@imurchie
Copy link
Copy Markdown
Contributor

Looks good to me.

@imurchie
Copy link
Copy Markdown
Contributor

And thanks for fixing the spec!

@rafe-g
Copy link
Copy Markdown
Contributor Author

rafe-g commented Jul 19, 2016

@imurchie should i update the expected test hash?

@imurchie
Copy link
Copy Markdown
Contributor

Yes. Otherwise the tests will fail and we can't merge.

@imurchie
Copy link
Copy Markdown
Contributor

Thanks!

@imurchie imurchie merged commit c805da7 into appium:master Jul 19, 2016
@rafe-g rafe-g mentioned this pull request Jul 19, 2016
3 tasks
KazuCocoa pushed a commit to KazuCocoa/appium-base-driver that referenced this pull request Apr 30, 2019
* Update travis config to install opencv

* Set clang version

* tune the timeout

* Use gcc7

* tune env

* Switch to clang

* Fix matrix

* Tune the timeout
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants