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

chore(typings): rename protractor to browser and add a protractor namespace #3214

Merged
merged 1 commit into from
May 13, 2016

Conversation

cnishina
Copy link
Contributor

@cnishina cnishina commented May 12, 2016

rename protractor to browser and add a protractor namespace

  • added wrapDriver method from the browser.ts and ExpectedConditions
  • added a new instance of ExpectedConditions to the protractor namespace
  • imported selenium webdriver ActionSequence, Key, Command, and CommandName to the protractor namespace
  • added promise object to the browser class

@cnishina cnishina changed the title chore(browser): rename protractor to browser and add a protractor namespace chore(typings): create a typings declaration file, protractor.d.ts May 12, 2016
@juliemr
Copy link
Member

juliemr commented May 12, 2016

We spoke briefly, but let's split the change to Browser into a separate PR.
I decided I'm fine calling it just Browser, it's clear in context and won't namespace conflict (yay typescript!)

@cnishina cnishina changed the title chore(typings): create a typings declaration file, protractor.d.ts chore(typings): rename protractor to browser and add a protractor namespace May 13, 2016
@cnishina cnishina force-pushed the wip_d_ts branch 4 times, most recently from f28af63 to a7c2432 Compare May 13, 2016 19:11
@@ -184,7 +185,7 @@ export class Protractor {
*
* @type {Plugins} Object containing plugin funtions from config.
*/
private plugins_: Plugins;
plugins_: Plugins;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are these no longer private?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They were marked as private; however, lib/browser.ts makes a call to a private variable. This is the same issue for all the private variables in browser. They probably should be using a Get method.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe double check with Julie, but if they're not actually private then we should just drop the underscore at the end and remove the @Private annotations in the jsdoc as well.

Copy link
Member

Choose a reason for hiding this comment

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

Hm yeah, these were fake private. We don't really want them as part of our documented API really, but the runner needs to access them. I'm fine making them public for now.

…espace

* added wrapDriver method from the browser.ts and ExpectedConditions to the protractor namespace
* imported selenium webdriver ActionSequence, Key, promise, Command, and CommandName to the protractor namespace
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.

4 participants