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

Fixing UA matching for Safari #4378

Merged
merged 5 commits into from Aug 4, 2016
Merged

Fixing UA matching for Safari #4378

merged 5 commits into from Aug 4, 2016

Conversation

aghassemi
Copy link
Contributor

Closes #4374

@@ -106,6 +106,18 @@ class TestConfig {
return fn.apply(this, arguments);
});
}

/** @private */
isAgentMatched_(agent) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we reuse platform.js?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh didn't know about platform.js. Yeah, should be able too. Wait for the next patch before reviewing..

@aghassemi
Copy link
Contributor Author

PTAL
Now using platform.
Also removed skipOnTravis(), it was not used and the check didn't seem 100% right anyway. When we need it back, we can think of a better approach.

* List of predicate functions that are called before running each test
* suite to check whether the suite should be skipped or not.
* If any of the functions return 'true', the suite will be skipped.
* @type {!Array<function>}
Copy link
Member

Choose a reason for hiding this comment

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

please add () should be type {!Array<function()>}

Copy link
Contributor

Choose a reason for hiding this comment

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

function():boolean

@lannka
Copy link
Contributor

lannka commented Aug 4, 2016

LGTM

@lannka lannka added LGTM and removed NEEDS REVIEW labels Aug 4, 2016
@jridgewell
Copy link
Contributor

:shipit:

@@ -55,25 +55,26 @@ class TestConfig {
* @type {!Array<function(!TestSuite)>}
*/
this.configTasks = [];
this.platform_ = platformFor(window);
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️😍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lol designed a fashionable T-Shirt for you:

lztrksjlqhq

Copy link
Contributor

Choose a reason for hiding this comment

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

s/$/s/. 😜

@aghassemi aghassemi merged commit 2eef060 into ampproject:master Aug 4, 2016
ariangibson pushed a commit to Mixpo/amphtml that referenced this pull request Sep 7, 2016
mityaha pushed a commit to ooyala/amphtml that referenced this pull request Nov 30, 2016
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.

None yet

4 participants