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

Modified protractor to support testing node-webkit by using string conca... #1270

Closed
wants to merge 2 commits into from

Conversation

mikemilano
Copy link
Contributor

I wanted to create a pull request for #1266 in case there was a chance it would be accepted.

When using AngularJS in https://github.com/rogerwang/node-webkit, the browser uses file:// based urls.

The baseUrl in the protractor config is stripped when it begins with file:// because it is run through url.resolve.

This commit simply concatenates baseUrl and destination when the baseUrl begins with file://, otherwise it joins the variables with url.resolve() as normal.

This is the only issue that prevents us from running tests with protractor in a node-webkit project.

@juliemr
Copy link
Member

juliemr commented Aug 30, 2014

Automated CLA checker says: please sign CLA at https://developers.google.com/open-source/cla/individual Please make sure that the email associated with your PR is the same as the email you use to sign.

@juliemr juliemr added cla: no and removed cla: yes labels Aug 30, 2014
@juliemr
Copy link
Member

juliemr commented Aug 30, 2014

CLA signature found, thank you!

@juliemr juliemr added cla: yes and removed cla: no labels Aug 30, 2014
@juliemr
Copy link
Member

juliemr commented Sep 3, 2014

Looks reasonable. Merged as 830f511

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants