Skip to content

Commit

Permalink
webdriver: Merge pull request #4 from AutomatedTester/rect
Browse files Browse the repository at this point in the history
Update getElementRect to expect floats to be returned to it

Source-Repo: https://github.com/mozilla/webdriver-rust
Source-Revision: 6c891a20996ed866621eecae5ae29230f22f95fd

--HG--
extra : subtree_source : http%3A//tristan.corp.lon2.mozilla.com%3A8000
extra : subtree_revision : 9bda711ae7a6b7b94d70e35d9c5705ed55eb40a6
  • Loading branch information
AutomatedTester committed Mar 7, 2015
1 parent 07f2922 commit 0d61b12
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions testing/webdriver/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ impl WindowSizeResponse {

#[derive(RustcEncodable, Debug)]
pub struct ElementRectResponse {
x: u64,
y: u64,
width: u64,
height: u64
x: f64,
y: f64,
width: f64,
height: f64
}

impl ElementRectResponse {
pub fn new(x: u64, y: u64, width: u64, height: u64) -> ElementRectResponse {
pub fn new(x: f64, y: f64, width: f64, height: f64) -> ElementRectResponse {
ElementRectResponse {
x: x,
y: y,
Expand Down

0 comments on commit 0d61b12

Please sign in to comment.