aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/webdriver_handlers.rs
Commit message (Collapse)AuthorAgeFilesLines
* script: Stop copying the document URL.Patrick Walton2015-09-241-2/+3
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-3/+3
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-2/+1
| | | | This merges import blocks that were reported by tidy as unmerged.
* Remove helper traitsAnthony Ramine2015-08-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand.
* sort all usesJohann Tuffe2015-08-201-7/+7
|
* Added support for int32 to webdriver.Christopher Hotchkiss2015-07-241-1/+1
|
* Ensure we get the post-redirect urlJames Graham2015-07-191-0/+8
|
* compositing: Make the constellation messages serializable.Patrick Walton2015-07-181-12/+27
|
* Upgrade to SM 39Michael Wu2015-06-191-32/+34
|
* Add support for switching frames with the webdriver API.James Graham2015-06-011-3/+34
| | | | This moves webdriver_traits into msg to avoid a circular dependency.
* Reduce max line length from 150 to 120 charactersCorey Farwell2015-05-241-4/+9
| | | | Part of https://github.com/servo/servo/issues/6041
* Add support for timing out scriptsJames Graham2015-05-141-11/+10
|
* Add basic support for executeAsyncScript.James Graham2015-05-141-15/+29
| | | | | | This relies on a global webdriverCallback function, which is visible to content. Obviously that's not a long term solution for a number of reasons, but it allows us to experiment for now
* Make WebDriver Get() command wait on pages loading before returning.James Graham2015-05-141-1/+1
| | | | | This makes using WebDriver significantly less racy. Also refactors the message structure a little
* Add support for getActiveElement webdriver commandJames Graham2015-05-111-0/+5
|
* Add WebDriver support for getting elements by selector.James Graham2015-05-081-1/+68
| | | | Also adds example support for getting the name and text properties of the elements.
* Implement webdriver commands for back/forward/title/handles.James Graham2015-05-061-1/+6
|
* Uniformise root() methodsAnthony Ramine2015-04-281-1/+1
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Add script execution support via WebDriverJames Graham2015-04-231-0/+38