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 |
src/service/visibility-impl.js
Outdated
| /** @const {string} */ | ||
| const TOTAL_TIME_MIN = 'totalTimeMin'; | ||
|
|
||
| /** @const {string} */ |
There was a problem hiding this comment.
No need for these annotations. Closure compiler infers this.
|
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:
minVisiblePercentagemaxVisiblePercentagetotalVisibleTimecontinuousVisibleTimefirstSeenTimefirstVisibleTimelastSeenTimelastVisibleTimeIntent to implement in #1297