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

LazyLoad: add new test for changing base URL #20683

Merged
merged 1 commit into from
Dec 15, 2019

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Dec 9, 2019

Add new tests for changing base URL, the test
original-base-url-applied-tentative.html changed the document URL, which
only implicitly changed the document's base URL. These tests explicitly
change the document's base URL via the <base> element.

Bug: 984983
Change-Id: I5ab855aaecc8bd12502eb32a3b1d26ae5ced31a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1954508
Reviewed-by: Dominic Farolino <dom@chromium.org>
Commit-Queue: Rob Buis <rbuis@igalia.com>
Cr-Commit-Position: refs/heads/master@{#724964}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@rwlbuis
Copy link
Contributor

rwlbuis commented Dec 11, 2019

@annevk do you think the tests are correct? Currently failing in Chrome and we are not sure if Chrome is wrong or the tests :)

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

From a quick skim this basically looks correct to me, I do have some suggestions/questions though.

});

async_test(function(t) {
below_viewport_img.promise.then(
Copy link
Member

Choose a reason for hiding this comment

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

If you're dealing with a promise, using promise_test and async functions might be nicer.

Copy link
Contributor

Choose a reason for hiding this comment

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

Not very familiar with them, would prefer to stick to current approach.

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Sure, I recommend finding some time to learn them though as both promise_test (guarantees sequential execution compared to async_test, and looks nice if you're dealing with promises anyway) and async functions (look nice) are pretty great.

@rwlbuis
Copy link
Contributor

rwlbuis commented Dec 12, 2019

Sure, I recommend finding some time to learn them though as both promise_test (guarantees sequential execution compared to async_test, and looks nice if you're dealing with promises anyway) and async functions (look nice) are pretty great.

Ok will look into it :) Thanks for the review.

Copy link
Member

@domfarolino domfarolino left a comment

Choose a reason for hiding this comment

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

Sorry, while finishing this review I realized I should have probably written this up in https://crrev.com/c/1954508. Can you address these over there?

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1954508 branch 3 times, most recently from 6c5ef0b to 506af24 Compare December 15, 2019 06:41
Add new tests for changing base URL, the test
original-base-url-applied-tentative.html changed the document URL, which
only implicitly changed the document's base URL. These tests explicitly
change the document's base URL via the <base> element.

Bug: 984983
Change-Id: I5ab855aaecc8bd12502eb32a3b1d26ae5ced31a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1954508
Reviewed-by: Dominic Farolino <dom@chromium.org>
Commit-Queue: Rob Buis <rbuis@igalia.com>
Cr-Commit-Position: refs/heads/master@{#724964}
Copy link
Member

@domfarolino domfarolino left a comment

Choose a reason for hiding this comment

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

Approving since I've approved on crrev and the CL has landed

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit fce0667 into master Dec 15, 2019
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-1954508 branch December 15, 2019 15:31
annevk added a commit to whatwg/html that referenced this pull request Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants