Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented Browser tests #220

Merged
merged 12 commits into from
May 15, 2018
Merged

Conversation

Meir017
Copy link
Member

@Meir017 Meir017 commented May 11, 2018

closes #185

await Task.Delay(150);
Assert.Equal(0, disconnectedOriginal);
Assert.Equal(0, disconnectedRemote1);
Assert.Equal(1, disconnectedRemote2);
Copy link
Member Author

Choose a reason for hiding this comment

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

something isn't working with the Disconnected event

@kblok
Copy link
Member

kblok commented May 11, 2018

Why are we including lib/Win64-526987/chrome-win32/locales/ar.pak?

@@ -97,6 +100,12 @@ internal void ChangeTarget(Target target)
return version.product.ToString();
}

public async Task<string> GetUserAgentAsync()
Copy link
Member

Choose a reason for hiding this comment

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

Docs

@@ -116,7 +125,6 @@ internal void ChangeTarget(Target target)
}

Disconnect();
Closed?.Invoke(this, new EventArgs());
Copy link
Member

Choose a reason for hiding this comment

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

Could you explain this?

@@ -152,7 +148,7 @@ internal void OnMessage(string message)
}
}

internal void Close()
internal void OnClose()
Copy link
Member

Choose a reason for hiding this comment

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

I don't know if I buy this rename 🤔

@@ -152,7 +148,7 @@ internal void OnMessage(string message)
}
}

internal void Close()
internal void OnClosed()
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Awesome

@kblok
Copy link
Member

kblok commented May 13, 2018

Check this out @Meir017 f7ed88e

Meir017 and others added 2 commits May 13, 2018 19:58
When I implemented this catch I thought that we might have errors generated by the client, but Chromium is catching those errors for us
@kblok
Copy link
Member

kblok commented May 13, 2018

@Meir017 90e9b23

If you want to read a little bit about the WebSocket mess go to dotnet/corefx#26429 and https://github.com/dotnet/corefx/issues/26556

I found out that we don't need to filter exceptions if the read fails we need to close and move on.

@kblok
Copy link
Member

kblok commented May 14, 2018

It's not WIP anymore right @Meir017 ?

@Meir017 Meir017 changed the title [WIP] Implemented Browser tests Implemented Browser tests May 14, 2018
@kblok kblok merged commit e242e76 into hardkoded:master May 15, 2018
@Meir017 Meir017 deleted the features/browser-tests branch June 15, 2018 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Browser tests
2 participants