Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

chore(types): add in types inherited from selenium-webdriver #3288

Merged
merged 1 commit into from
Jun 21, 2016

Conversation

cnishina
Copy link
Member

  • add element.ts to the gulp task for 'gulp types'
  • clang clean up
  • separate out selenium-webdriver types and extend them in protractor
  • remove webdriver types for index.d.ts file

@cnishina
Copy link
Member Author

Note: removing webdriver.* types from the index.d.ts file since they show up as any. This is because we do not define selenium-webdriver declarations and leaving them in will cause transpiling errors.

@juliemr
Copy link
Member

juliemr commented Jun 20, 2016

The travis failures look legitimate.


var removeTypes = function(line, webdriverType) {
var tempLine = line.trim();
if (tempLine.startsWith('/**') || tempLine.startsWith('*')) {
Copy link
Member

@juliemr juliemr Jun 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They would usually start with * for multiline comments. (That didn't show up well, it's a space in front of the *)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be fine because I am trimming the line prior to testing if it starts with a *. This should capture the comments in the index.d.ts file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right you are.

@cnishina
Copy link
Member Author

cnishina commented Jun 20, 2016

It looks like I went a little overboard trying to clean up the ptor file.

@cnishina cnishina force-pushed the pr_typings_tests branch 2 times, most recently from 0a26e70 to 3b49349 Compare June 20, 2016 20:19
@@ -14,6 +14,40 @@ let WEB_ELEMENT_FUNCTIONS = [
'serialize', 'takeScreenshot'
];

// Explicitly extend selenium webdriver for webdriver.WebElement.
export class WebdriverWebElement {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make more sense for these to be interfaces instead of classes?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing this to be an interface.

@cnishina cnishina force-pushed the pr_typings_tests branch 2 times, most recently from 8295523 to d7e65f4 Compare June 20, 2016 23:45
- add element.ts to the gulp task for 'gulp types'
- clang clean up
- separate out selenium-webdriver types and extend them in protractor
- remove webdriver types for index.d.ts file
@cnishina cnishina merged commit cd21f4d into angular:master Jun 21, 2016
@cnishina cnishina mentioned this pull request Jun 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants