-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
More visibility spec implementation. #3110
Conversation
This PR adds support for: Conditions: "continuousTimeMin": <milliseconds>, "continuousTimeMax": <milliseconds>, "totalTimeMin": <milliseconds>, "totalTimeMax": <milliseconds>, And Macros: `minVisiblePercentage` `maxVisiblePercentage` `totalVisibleTime` `continuousVisibleTime` `firstSeenTime` `firstVisibleTime` `lastSeenTime` `lastVisibleTime`
@jridgewell The tests are failing with following error:
Are (http://es6-features.org/#ComputedPropertyNames)[computer property names] not supported in tests? |
Likely not, though we could easily add support. |
Can we do that? How do I go about doing it? On Thu, May 5, 2016, 11:28 AM Justin Ridgewell notifications@github.com
|
We define the babel helpers in babelHelpers.defineProperty = function(obj, key, value) {
obj[key] = value;
}; |
ptal. /cc @cramforce |
/** @const {string} */ | ||
const TOTAL_TIME_MIN = 'totalTimeMin'; | ||
|
||
/** @const {string} */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for these annotations. Closure compiler infers this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed these
Looks good. Just a few comments. |
Thanks for the review. Merging the PR. |
This PR adds support for:
Conditions:
"continuousTimeMin": ,
"continuousTimeMax": ,
"totalTimeMin": ,
"totalTimeMax": ,
And Macros:
minVisiblePercentage
maxVisiblePercentage
totalVisibleTime
continuousVisibleTime
firstSeenTime
firstVisibleTime
lastSeenTime
lastVisibleTime
Intent to implement in #1297