-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix failing Optimizer spec tests with ID generation #4799
Merged
westonruter
merged 18 commits into
develop
from
fix/4798-fix-failing-optimizer-spec-tests-with-ids
Jun 2, 2020
Merged
Fix failing Optimizer spec tests with ID generation #4799
westonruter
merged 18 commits into
develop
from
fix/4798-fix-failing-optimizer-spec-tests-with-ids
Jun 2, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
schlessera
added
Optimizer
Testing
Issues related with Unit, E2E, Smoke, and other testing requirements/needs
labels
May 29, 2020
There's one remaining test failure:
|
westonruter
requested changes
May 29, 2020
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.
One more failing test.
schlessera
commented
Jun 1, 2020
westonruter
approved these changes
Jun 2, 2020
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.
Looks perfect. Great job.
westonruter
deleted the
fix/4798-fix-failing-optimizer-spec-tests-with-ids
branch
June 2, 2020 06:58
westonruter
added
the
Changelogged
Whether the issue/PR has been added to release notes.
label
Jul 17, 2020
3 tasks
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
Changelogged
Whether the issue/PR has been added to release notes.
cla: yes
Signed the Google CLA
Optimizer
Testing
Issues related with Unit, E2E, Smoke, and other testing requirements/needs
WS:Perf
Work stream for Metrics, Performance and Optimizer
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the spec test failures introduced by the merge of ampproject/amp-toolbox#763 in the
ampproject/amp-toolbox
package.Document::getElementId()
fromi-amp-id
toi-amp
Document::getElementId()
to start with0
instead of1
Document::getElementId()
to always add the index instead of skipping the first instanceSkips the following tests until Attribute transformers generate unnecessary IDs amp-toolbox#809 is resolved:-'ServerSideRendering - converts_sizes_attribute_to_css'
-'ServerSideRendering - converts_heights_attribute_to_css'
-'ServerSideRendering - converts_media_attribute_to_css'
CssRule
andCssRules
abstractions so that CSS can be compacted (same properties merged into one rule with multiple selectors)ServerSideRendering
so that it makes use ofCssRule(s)
objects to adapt blocking attributesFixes #4798
Checklist